LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Gnome3, gnome-session and DEBUG(+) messages won't turn off (https://www.linuxquestions.org/questions/linux-desktop-74/gnome3-gnome-session-and-debug-messages-wont-turn-off-930193/)

scottyanke 02-19-2012 09:01 AM

Gnome3, gnome-session and DEBUG(+) messages won't turn off
 
After upgrading to Fedora 16 (from 14) and by default, Gnome3, I have started getting debug messages in the /var/log/messages file that I can't get to stop. They begin like this -

systemd-logind[1151]: New session 1 of user gdm.
systemd-logind[1151]: Linked /tmp/.X11-unix/X0 to /run/user/gdm/X11/display.
gnome-session[1902]: DEBUG(+): Enabling debugging
gnome-session[1902]: DEBUG(+): GsmXsmpServer: SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/1902,unix/unix:/tmp/.ICE-unix/1902#012
gnome-session[1902]: DEBUG(+): GsmShell: Not connected to the shell
gnome-session[1902]: DEBUG(+): GsmManager: setting client store 0x1faeb20
gnome-session[1902]: DEBUG(+): GdmSignalHandler: Adding handler 1: signum=4 (nil)
gnome-session[1902]: DEBUG(+): GdmSignalHandler: Registering for 4 signals
...
gnome-session[1902]: DEBUG(+): fill: *** Getting session 'gdm-shell'
gnome-session[1902]: DEBUG(+): fill: *** Looking if /var/lib/gdm/.config/gnome-session/sessions/gdm-shell.session is a valid session file
gnome-session[1902]: DEBUG(+): Cannot use session '/var/lib/gdm/.config/gnome-session/sessions/gdm-shell.session': non-existing or invalid file.
gnome-session[1902]: DEBUG(+): fill: *** Looking if /etc/xdg/gnome-session/sessions/gdm-shell.session is a valid session file
gnome-session[1902]: DEBUG(+): Cannot use session '/etc/xdg/gnome-session/sessions/gdm-shell.session': non-existing or invalid file.
...
gnome-session[1902]: DEBUG(+): GsmManager: disposing manager
gnome-session[1902]: DEBUG(+): GsmStore: Clearing object store
gnome-session[1902]: DEBUG(+): GsmStore: Unreffing object: 0x20119f0
gnome-session[1902]: DEBUG(+): GsmStore: Unreffing object: 0x2011830
gnome-session[1902]: DEBUG(+): GsmStore: Unreffing object: 0x2011910
gnome-session[1902]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App2
gnome-session[1902]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App1
gnome-session[1902]: DEBUG(+): GsmStore: emitting removed for /org/gnome/SessionManager/App3
gnome-session[1902]: DEBUG(+): GsmStore: Clearing object store
gnome-session[1902]: DEBUG(+): GsmStore: Clearing object store
systemd-logind[1151]: Removed session 1.
gdm-simple-slave[1628]: WARNING: Child process 1902 was already dead.

The messages show up whenever booting the machine, logging on or off.

I've tried setting up /etc/gdm/custom.conf as follows, but it still seems to ignore the debug setting. Note that for this cut-n-paste I removed the blank lines.
# GDM configuration storage
[daemon]
[security]
DisallowTCP=true
[xdmcp]
[greeter]
[chooser]
[debug]
Enable=false

I've looked for other configuration files that might be overriding the custom.conf file, but haven't been able to find one. I used the gconf tools to try and find any configuration settings that way, but with no luck on the debug setting.

It isn't a fatal problem, but it is very annoying. Until the upgrade to F16 and Gnome3 I never got these messages. Although I've switched to xfce4 as a result of Gnome3 being a different kind of pain than just the messages, I still keep some vestiges of Gnome on the system for certain programs so completely removing it isn't an option.

Any suggestions?

scottyanke 02-22-2012 06:14 PM

After looking through the source for gdm-3.2.1.1, I found that gdm-greeter-session.c is hardcoded to start gnome-session in debug mode. The specific command it uses is "/gnome-session -f --debug". Compiling it myself, I get the debug stuff to shut off, although I've got lots of other issues in trying to get the configuration parameters correct...

Is it possible that this program was distributed with debugging forced on by accident?

scottyanke 06-30-2012 01:10 AM

Solved
 
I hit this same debug message issue when I did a clean install to Fedora 17. It happened beginning with the very first boot after the OS was installed.

The solution to clearing it? I removed NetworkManager as a package. Since I don't need NetworkManager on a desktop machine I figured I'd get rid of it. The side effect was that the Gnome debug messages went away once NetworkManage was removed. I didn't even have to change anything in Gnome (I'm using XFCE by the way), and didn't need to remove any other Gnome packages to clear this.

It is annoying that even with F17 the debug messages were still there. They tend to fill the log in a spot where I'm trying find other issues.

EDDY1 06-30-2012 04:17 AM

Although you've solved your problem, isn't debug turned on & off in grub?
Also don't forget to mark post as solved.

scottyanke 06-30-2012 11:09 PM

Sorry about forgetting to mark it as solved.

No, the debug is not part of the grub configuration. It was GNOME specific, and seemed to only happen when the Gnome GDM was used. It happened to me on two machines with clean installs, and on both removing NetworkManager solved the problem for me. I've also switched to using SLIM, in part because it is simpler, and from a security point of view it prompts for an id, instead of telling you an id and just prompting for a password like GDM started doing a little while back.


All times are GMT -5. The time now is 09:23 PM.