influxdata / telegraf

Agent for collecting, processing, aggregating, and writing metrics, logs, and other arbitrary data.
https://influxdata.com/telegraf
MIT License
14.59k stars 5.56k forks source link

gdm not work #3610

Closed fffffreedom closed 6 years ago

fffffreedom commented 6 years ago

Directions

GitHub Issues are reserved for actionable bug reports and feature requests. General questions should be asked at the InfluxData Community site.

Before opening an issue, search for similar bug reports or feature requests on GitHub Issues. If no similar issue can be found, fill out either the "Bug Report" or the "Feature Request" section below. Erase the other section and everything on and above this line.

Please note, the quickest way to fix a bug is to open a Pull Request.

Bug report

on master cd $GOPATH/src/github.com/influxdata/telegraf make gdm can not get the code in Godeps

Relevant telegraf.conf:

System info:

[Include Telegraf version, operating system name, and other relevant details]

Steps to reproduce:

  1. ...
  2. ...

Expected behavior:

Actual behavior:

Additional info:

[Include gist of relevant config, logs, etc.]

Feature Request

Opening a feature request kicks off a discussion.

Proposal:

Current behavior:

Desired behavior:

Use case: [Why is this important (helps with prioritizing requests)]

danielnelson commented 6 years ago

What error are you getting?

fffffreedom commented 6 years ago

@danielnelson no error shows. i run make, it just get hang: make deps make[1]: Entering directory `/root/go/src/github.com/influxdata/telegraf' go get github.com/sparrc/gdm gdm restore ...hang, no msg...

danielnelson commented 6 years ago

Can you run these and paste the output:

which gdm
gdm --help
gdm restore -v
fffffreedom commented 6 years ago
gdm --version
GDM 3.22.3

which gdm
/usr/sbin/gdm

gdm --help
Usage:
  gdm [OPTION...] GNOME Display Manager

Help Options:
  -h, --help           Show help options

Application Options:
  --fatal-warnings     Make all warnings fatal
  --timed-exit         Exit after a time (for debugging)
  --version            Print GDM version

gdm restore -v

Dec 23 11:53:13 host-10-101-15-152 gnome-session-binary[21650]: dconf-WARNING: Unable to open /root/.local/share/flatpak/exports/share/dconf/profile/gdm: Permission denied
Dec 23 11:53:13 host-10-101-15-152 gnome-session: gnome-session-binary[21650]: dconf-WARNING: Unable to open /root/.local/share/flatpak/exports/share/dconf/profile/gdm: Permission denied
Dec 23 11:53:13 host-10-101-15-152 gnome-session: gnome-session-binary[21650]: dconf-WARNING: unable to open named profile (gdm): using the null configuration.
Dec 23 11:53:13 host-10-101-15-152 gnome-session-binary[21650]: dconf-WARNING: unable to open named profile (gdm): using the null configuration.
Dec 23 11:53:13 host-10-101-15-152 gnome-session: generating cookie with syscall
Dec 23 11:53:13 host-10-101-15-152 gnome-session: generating cookie with syscall
Dec 23 11:53:13 host-10-101-15-152 gnome-session: generating cookie with syscall
Dec 23 11:53:13 host-10-101-15-152 gnome-session: generating cookie with syscall
Dec 23 11:53:13 host-10-101-15-152 journal: Unable to open /root/.local/share/flatpak/exports/share/dconf/profile/gdm: Permission denied
Dec 23 11:53:13 host-10-101-15-152 journal: unable to open named profile (gdm): using the null configuration.
Dec 23 11:53:13 host-10-101-15-152 journal: JS ERROR: Error: No property 'gi' in importer (or its value was undefined)#012@<main>:1
Dec 23 11:53:13 host-10-101-15-152 kernel: gnome-shell[21680]: segfault at 8 ip 00007f6a04bc7980 sp 00007ffe2c131b08 error 4 in libmozjs-24.so[7f6a04a22000+55e000]
Dec 23 11:53:13 host-10-101-15-152 abrt-hook-ccpp: Process 21680 (gnome-shell) of user 42 killed by SIGSEGV - dumping core
Dec 23 11:53:14 host-10-101-15-152 gnome-session-binary[21650]: WARNING: Application 'org.gnome.Shell.desktop' killed by signal 11
Dec 23 11:53:14 host-10-101-15-152 gnome-session: gnome-session-binary[21650]: WARNING: Application 'org.gnome.Shell.desktop' killed by signal 11
Dec 23 11:53:14 host-10-101-15-152 abrt-server: Duplicate: core backtrace
Dec 23 11:53:14 host-10-101-15-152 abrt-server: DUP_OF_DIR: /var/spool/abrt/ccpp-2017-12-20-21:45:42-1974
Dec 23 11:53:14 host-10-101-15-152 abrt-server: Deleting problem directory ccpp-2017-12-23-11:53:13-21680 (dup of ccpp-2017-12-20-21:45:42-1974)
Dec 23 11:53:14 host-10-101-15-152 journal: Unable to open /root/.local/share/flatpak/exports/share/dconf/profile/gdm: Permission denied
Dec 23 11:53:14 host-10-101-15-152 journal: unable to open named profile (gdm): using the null configuration.
Dec 23 11:53:14 host-10-101-15-152 dbus[598]: [system] Activating service name='org.freedesktop.problems' (using servicehelper)
Dec 23 11:53:14 host-10-101-15-152 dbus-daemon: dbus[598]: [system] Activating service name='org.freedesktop.problems' (using servicehelper)
Dec 23 11:53:14 host-10-101-15-152 dbus[598]: [system] Successfully activated service 'org.freedesktop.problems'
Dec 23 11:53:14 host-10-101-15-152 dbus-daemon: dbus[598]: [system] Successfully activated service 'org.freedesktop.problems'
Dec 23 11:53:14 host-10-101-15-152 journal: JS ERROR: Error: No property 'gi' in importer (or its value was undefined)#012@<main>:1
Dec 23 11:53:14 host-10-101-15-152 kernel: gnome-shell[21698]: segfault at 8 ip 00007facddabc980 sp 00007ffedf79d118 error 4 in libmozjs-24.so[7facdd917000+55e000]
Dec 23 11:53:14 host-10-101-15-152 abrt-server: Email address of sender was not specified. Would you like to do so now? If not, 'user@localhost' is to be used [y/N] 
Dec 23 11:53:14 host-10-101-15-152 abrt-server: Email address of receiver was not specified. Would you like to do so now? If not, 'root@localhost' is to be used [y/N] 
Dec 23 11:53:14 host-10-101-15-152 abrt-server: Sending an email...
Dec 23 11:53:14 host-10-101-15-152 abrt-server: Sending a notification email to: root@localhost
Dec 23 11:53:14 host-10-101-15-152 abrt-hook-ccpp: Process 21698 (gnome-shell) of user 42 killed by SIGSEGV - ignoring (repeated crash)
Dec 23 11:53:14 host-10-101-15-152 gnome-session-binary[21650]: WARNING: Application 'org.gnome.Shell.desktop' killed by signal 11
Dec 23 11:53:14 host-10-101-15-152 gnome-session-binary: Unrecoverable failure in required component org.gnome.Shell.desktop
Dec 23 11:53:14 host-10-101-15-152 gnome-session: gnome-session-binary[21650]: WARNING: Application 'org.gnome.Shell.desktop' killed by signal 11
Dec 23 11:53:14 host-10-101-15-152 gnome-session: gnome-session-binary[21650]: WARNING: App 'org.gnome.Shell.desktop' respawning too quickly
Dec 23 11:53:14 host-10-101-15-152 gnome-session-binary[21650]: WARNING: App 'org.gnome.Shell.desktop' respawning too quickly
Dec 23 11:53:14 host-10-101-15-152 spice-vdagent[21731]: Cannot access vdagent virtio channel /dev/virtio-ports/com.redhat.spice.0
Dec 23 11:53:14 host-10-101-15-152 gnome-session-binary[21650]: WARNING: App 'spice-vdagent.desktop' exited with code 1
Dec 23 11:53:14 host-10-101-15-152 gnome-session: gnome-session-binary[21650]: WARNING: App 'spice-vdagent.desktop' exited with code 1
Dec 23 11:53:14 host-10-101-15-152 abrt-server: Email was sent to: root@localhost
Dec 23 11:53:14 host-10-101-15-152 journal: Unable to open /root/.local/share/flatpak/exports/share/dconf/profile/gdm: Permission denied
Dec 23 11:53:14 host-10-101-15-152 journal: unable to open named profile (gdm): using the null configuration.
Dec 23 11:53:14 host-10-101-15-152 journal: Unable to open /root/.local/share/flatpak/exports/share/dconf/profile/gdm: Permission denied
Dec 23 11:53:14 host-10-101-15-152 journal: unable to open named profile (gdm): using the null configuration.
Dec 23 11:53:14 host-10-101-15-152 dbus[598]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
Dec 23 11:53:14 host-10-101-15-152 dbus-daemon: dbus[598]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
Dec 23 11:53:14 host-10-101-15-152 systemd: Starting Hostname Service...
Dec 23 11:53:14 host-10-101-15-152 dbus[598]: [system] Successfully activated service 'org.freedesktop.hostname1'
Dec 23 11:53:14 host-10-101-15-152 dbus-daemon: dbus[598]: [system] Successfully activated service 'org.freedesktop.hostname1'
Dec 23 11:53:14 host-10-101-15-152 systemd: Started Hostname Service.
Dec 23 11:53:14 host-10-101-15-152 gnome-session-binary: Entering running state
Dec 23 11:53:14 host-10-101-15-152 journal: Unable to inhibit keypresses: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Permission denied
Dec 23 11:53:14 host-10-101-15-152 journal: g_task_return_error: assertion 'error != NULL' failed
Dec 23 11:53:14 host-10-101-15-152 dbus[598]: [system] Activating via systemd: service name='org.freedesktop.locale1' unit='dbus-org.freedesktop.locale1.service'
Dec 23 11:53:14 host-10-101-15-152 dbus-daemon: dbus[598]: [system] Activating via systemd: service name='org.freedesktop.locale1' unit='dbus-org.freedesktop.locale1.service'
Dec 23 11:53:14 host-10-101-15-152 systemd: Starting Locale Service...
Dec 23 11:53:14 host-10-101-15-152 dbus[598]: [system] Successfully activated service 'org.freedesktop.locale1'
Dec 23 11:53:14 host-10-101-15-152 dbus-daemon: dbus[598]: [system] Successfully activated service 'org.freedesktop.locale1'
Dec 23 11:53:14 host-10-101-15-152 systemd: Started Locale Service.
Dec 23 11:53:42 host-10-101-15-152 journal: gnome-settings-daemon: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Dec 23 11:53:42 host-10-101-15-152 gnome-session-binary[21650]: WARNING: Lost name on bus: org.gnome.SessionManager
Dec 23 11:53:42 host-10-101-15-152 gnome-session: gnome-session-binary[21650]: WARNING: Lost name on bus: org.gnome.SessionManager
Dec 23 11:53:42 host-10-101-15-152 gdm: Child process 21646 was already dead.
Dec 23 11:53:42 host-10-101-15-152 gdm: Unable to kill session worker process
Dec 23 11:53:42 host-10-101-15-152 gdm: GLib: g_hash_table_find: assertion 'version == hash_table->version' failed
Dec 23 11:53:42 host-10-101-15-152 gdm: (gdm-display.c:1176):gdm_display_dispose: runtime check failed: (self->priv->access_file == NULL)
danielnelson commented 6 years ago

Looks like the bin directory is not in your PATH, though the Makefile should normally set this for you. As a result it is running the gnome display manager instead of the go dependency manager (both named gdm).

Can you post the output of env?

danielnelson commented 6 years ago

Let me know if you need more help.