LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 09-19-2019, 03:12 PM   #1
smiledt
LQ Newbie
 
Registered: Sep 2019
Posts: 3

Rep: Reputation: Disabled
Angry Cannot launch gnome-session from command line


I'm trying to right a system service unit file that launches a gnome-session then connects a vnc server to it.

I can't get the gnome-session of it to work, however. If I run "XDG_SESSION_TYPE=wayland dbus-run-session gnome-session" from the cli, I get the error:
Code:
[session uid=1000 pid=3191] Activating service name='org.freedesktop.systemd1' requested by ':1.1' (uid=1000 pid=3192 comm="/usr/lib/gnome-session/gnome-session-binary " label="unconfined")
dbus-daemon[3191]: [session uid=1000 pid=3191] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
Here is part of the syslog:
Code:
Sep 19 18:10:14 testvm03 dbus-daemon[17845]: [session uid=1000 pid=17841] AppArmor D-Bus mediation is en
abled
Sep 19 18:10:15 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] AppArmor D-Bus mediation is en
abled
Sep 19 18:10:15 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] Activating service name='org.f
reedesktop.systemd1' requested by ':1.3' (uid=1000 pid=17828 comm="/usr/lib/gnome-session/gnome-session-
binary " label="unconfined")
Sep 19 18:10:15 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] Activated service 'org.freedes
ktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
Sep 19 18:10:15 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] Activating service name='org.a
11y.Bus' requested by ':1.4' (uid=1000 pid=17898 comm="/usr/lib/gnome-session/gnome-session-check-acceler" label="unconfined")
Sep 19 18:10:15 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] Successfully activated service 'org.a11y.Bus'
Sep 19 18:10:15 testvm03 org.a11y.Bus[17875]: dbus-daemon[17907]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=1000 pid=17898 comm="/usr/lib/gnome-session/gnome-session-check-acceler" label="unconfined")
Sep 19 18:10:16 testvm03 org.a11y.Bus[17875]: dbus-daemon[17907]: Successfully activated service 'org.a11y.atspi.Registry'
Sep 19 18:10:16 testvm03 org.a11y.Bus[17875]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Sep 19 18:10:16 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] Activating service name='org.gtk.vfs.Daemon' requested by ':1.7' (uid=1000 pid=17898 comm="/usr/lib/gnome-session/gnome-session-check-acceler" label="unconfined")
Sep 19 18:10:16 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] Successfully activated service 'org.gtk.vfs.Daemon'
Sep 19 18:10:16 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] Activating service name='org.freedesktop.systemd1' requested by ':1.11' (uid=1000 pid=17828 comm="/usr/lib/gnome-session/gnome-session-binary " label="unconfined")
Sep 19 18:10:16 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
Sep 19 18:10:16 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] Activating service name='org.freedesktop.systemd1' requested by ':1.13' (uid=1000 pid=17828 comm="/usr/lib/gnome-session/gnome-session-binary " label="unconfined")
Sep 19 18:10:16 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
Sep 19 18:10:16 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] Activating service name='org.freedesktop.systemd1' requested by ':1.15' (uid=1000 pid=17828 comm="/usr/lib/gnome-session/gnome-session-binary " label="unconfined")
Sep 19 18:10:16 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
Sep 19 18:10:16 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] Activating service name='org.freedesktop.systemd1' requested by ':1.17' (uid=1000 pid=17828 comm="/usr/lib/gnome-session/gnome-session-binary " label="unconfined")
Sep 19 18:10:16 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
Sep 19 18:10:16 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] Activating service name='org.freedesktop.systemd1' requested by ':1.19' (uid=1000 pid=17828 comm="/usr/lib/gnome-session/gnome-session-binary " label="unconfined")
Sep 19 18:10:16 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
Sep 19 18:10:16 testvm03 gnome-session[17828]: gnome-session-binary[17828]: WARNING: Could not get session id for session. Check that logind is properly installed and pam_systemd is getting used at login.
Sep 19 18:10:16 testvm03 gnome-session-binary[17828]: WARNING: Could not get session id for session. Check that logind is properly installed and pam_systemd is getting used at login.
Sep 19 18:10:16 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] Activating service name='org.freedesktop.systemd1' requested by ':1.20' (uid=1000 pid=17828 comm="/usr/lib/gnome-session/gnome-session-binary " label="unconfined")
Sep 19 18:10:16 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
Sep 19 18:10:16 testvm03 systemd[1]: Started Remote desktop service (VNC).
Sep 19 18:10:17 testvm03 gnome-keyring-pkcs11.desktop[17947]: GNOME_KEYRING_CONTROL=/home/smiledt/.cache/keyring-V9GD8Z
Sep 19 18:10:17 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] Activating service name='org.freedesktop.systemd1' requested by ':1.20' (uid=1000 pid=17828 comm="/usr/lib/gnome-session/gnome-session-binary " label="unconfined")
Sep 19 18:10:17 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] Activated service 'org.freedes
ktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
Sep 19 18:10:17 testvm03 gnome-keyring-secrets.desktop[17949]: GNOME_KEYRING_CONTROL=/home/smiledt/.cach
e/keyring-V9GD8Z
Sep 19 18:10:17 testvm03 gnome-keyring-ssh.desktop[17946]: GNOME_KEYRING_CONTROL=/home/smiledt/.cache/keyring-V9GD8Z
Sep 19 18:10:17 testvm03 gnome-keyring-ssh.desktop[17946]: SSH_AUTH_SOCK=/home/smiledt/.cache/keyring-V9GD8Z/ssh
Sep 19 18:10:17 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] Activating service name='org.freedesktop.systemd1' requested by ':1.20' (uid=1000 pid=17828 comm="/usr/lib/gnome-session/gnome-session-binary " label="unconfined")
Sep 19 18:10:17 testvm03 dbus-daemon[17875]: [session uid=1000 pid=17873] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
Sep 19 18:10:17 testvm03 org.gnome.Shell.desktop[17964]: Window manager warning: Unsupported session type
Sep 19 18:10:17 testvm03 gnome-session[17828]: gnome-session-binary[17828]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Sep 19 18:10:17 testvm03 gnome-session-binary[17828]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Sep 19 18:10:17 testvm03 org.gnome.Shell.desktop[17967]: Window manager warning: Unsupported session type
Sep 19 18:10:17 testvm03 gnome-session[17828]: gnome-session-binary[17828]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Sep 19 18:10:17 testvm03 gnome-session[17828]: gnome-session-binary[17828]: WARNING: App 'org.gnome.Shell.desktop' respawning too quickly
Sep 19 18:10:17 testvm03 gnome-session-binary[17828]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Sep 19 18:10:17 testvm03 gnome-session-binary[17828]: Unrecoverable failure in required component org.gnome.Shell.desktop
Sep 19 18:10:17 testvm03 gnome-session[17828]: gnome-session-binary[17828]: CRITICAL: We failed, but the fail whale is dead. Sorry....
Sep 19 18:10:17 testvm03 gnome-session-binary[17828]: WARNING: App 'org.gnome.Shell.desktop' respawning too quickly
Sep 19 18:10:17 testvm03 gnome-session-binary[17828]: CRITICAL: We failed, but the fail whale is dead. Sorry....
Is there a log that would provide any sort of clue as to why this has been happening? I've been googling for days, I've posted multiple places, but I've made no progress.

Last edited by smiledt; 09-19-2019 at 03:30 PM. Reason: Adding more info
 
Old 09-19-2019, 08:01 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,272
Blog Entries: 28

Rep: Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124
You have provided not much information, such as what distro/version you are using, are you booting to the terminal or to a desktop environment, and so on. Please read this, then provide more information.

I must compliment you for using "code" tags. They make your post much more readable.
 
Old 09-24-2019, 01:17 PM   #3
smiledt
LQ Newbie
 
Registered: Sep 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
Dual post

Last edited by smiledt; 09-24-2019 at 03:19 PM. Reason: Dual post
 
Old 09-24-2019, 01:29 PM   #4
smiledt
LQ Newbie
 
Registered: Sep 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
You have provided not much information, such as what distro/version you are using, are you booting to the terminal or to a desktop environment, and so on. Please read this, then provide more information.
Thanks for the response! I apologize for the lack of info, I was intending to get back to this after work last week but something came up. I've attempted to troubleshoot more over the weekend without much luck.

I'm trying to follow the instructions provided here to install the gnome desktop environment and launch a vnc server as a system process on Ubuntu 18.04 LTS server. I am booting without a desktop environment (I believe) then trying to launch the desktop from the terminal.

Here is my systemd unit file, and here
and here are two xstartup files I've tried. Neither have mad a difference.

I've done a lot of googling and have found some posts here and there that seem to point to the DBUS_SESSION or something, but I must admit that some of these readings are a bit over my head.

Here is the error if I try to run "XDG_SESSION_TYPE=wayland sudo dbus-run-session gnome-session"
Code:
dbus-daemon[2806]: [session uid=0 pid=2806] Activating service name='org.freedesktop.systemd1' requested by ':1.1' (uid=0 pid=2807 comm="/usr/lib/gnome-session/gnome-session-binary " label="unconfined")
dbus-daemon[2806]: [session uid=0 pid=2806] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[2806]: [session uid=0 pid=2806] Activating service name='org.freedesktop.systemd1' requested by ':1.3' (uid=0 pid=2807 comm="/usr/lib/gnome-session/gnome-session-binary " label="unconfined")
dbus-daemon[2806]: [session uid=0 pid=2806] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[2806]: [session uid=0 pid=2806] Activating service name='org.freedesktop.systemd1' requested by ':1.5' (uid=0 pid=2807 comm="/usr/lib/gnome-session/gnome-session-binary " label="unconfined")
dbus-daemon[2806]: [session uid=0 pid=2806] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[2806]: [session uid=0 pid=2806] Activating service name='org.freedesktop.systemd1' requested by ':1.7' (uid=0 pid=2807 comm="/usr/lib/gnome-session/gnome-session-binary " label="unconfined")
dbus-daemon[2806]: [session uid=0 pid=2806] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[2806]: [session uid=0 pid=2806] Activating service name='org.freedesktop.systemd1' requested by ':1.9' (uid=0 pid=2807 comm="/usr/lib/gnome-session/gnome-session-binary " label="unconfined")
dbus-daemon[2806]: [session uid=0 pid=2806] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[2806]: [session uid=0 pid=2806] Activating service name='org.freedesktop.systemd1' requested by ':1.11' (uid=0 pid=2807 comm="/usr/lib/gnome-session/gnome-session-binary " label="unconfined")
dbus-daemon[2806]: [session uid=0 pid=2806] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
dbus-daemon[2806]: [session uid=0 pid=2806] Activating service name='org.freedesktop.systemd1' requested by ':1.12' (uid=0 pid=2807 comm="/usr/lib/gnome-session/gnome-session-binary " label="unconfined")
dbus-daemon[2806]: [session uid=0 pid=2806] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
One last edit: Here is the entire stderr of the "XDG_SESSION_TYPE=wayland sudo dbus-run-session gnome-session --debug" command.
Likewise, here is the output of just "gnome-session --debug".

Last edited by smiledt; 09-24-2019 at 03:19 PM. Reason: Didn't let me post the first time
 
Old 09-24-2019, 06:49 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,272
Blog Entries: 28

Rep: Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124
In most Linux distro with desktop environments, a display manager (GUI login) is also installed. The display manager starts the desktop environment.

I don't have access to any computers running Gnome right now (actually, I quite dislike Gnome), but you could try the command referenced here: https://linux.die.net/man/1/gnome-session

Also, I certainly understand that stuff sometimes comes up.

Last edited by frankbell; 09-24-2019 at 06:51 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to launch "cinnamon-session-cinnamon" X session "cinnamon-session-cinnamon" -found; Falling back to default "session." xxxindigo Linux Mint 22 09-01-2019 09:21 AM
Session key renegotiation if session lasts longer than configured (e.g. an hour) then session keys needs to be renegotiated. dakshinya Linux - Newbie 1 02-04-2016 04:15 PM
[SOLVED] Startup fail -Always goes to command line Error: Cannot launch.-in Zorin/ubuntu Hevithan Linux - Newbie 1 06-16-2011 02:27 PM
Can I launch a complete Gnome desktop session using SSH via PuTTY? linuxinvasion Linux - General 9 06-05-2011 10:39 AM
gnome: launch application associated to a document type from command line cweiske Linux - Software 1 09-28-2004 06:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 12:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration