DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th December 2024
peterbsd peterbsd is offline
Port Guard
 
Join Date: Nov 2024
Posts: 23
Default Gnome cannot start

Hello,

I have fresh installation of OpenBSD 7.6 and installed gnome 46
disabled xenodm and enabled multicast messagebus avahi_daemon gdm

Gnome after starting displays failing icon ...something has gone wrong

and I think that pasted daemon log lines below has something with it.
After second day of searching forums and trying to resolve it no success.
Help me please what should I try ?

Code:
Dec 11 11:33:11 bsd gnome-session-binary[56566]: WARNING: Unable to find required component 'org.gnome.SettingsDaemon.Sharing'
Dec 11 11:33:24 bsd ntpd[36495]: peer 162.159.200.1 now valid
Dec 11 11:33:24 bsd ntpd[36495]: peer 212.55.254.189 now valid
Dec 11 11:33:24 bsd ntpd[36495]: peer 87.197.132.218 now valid
Dec 11 11:33:27 bsd ntpd[36495]: peer 185.242.56.5 now valid
Dec 11 11:33:28 bsd ntpd[36495]: peer 213.81.129.99 now valid
Dec 11 11:34:45 bsd ntpd[60673]: adjusting local clock by 0.895004s
Dec 11 11:37:12 bsd avahi-daemon[21948]: Got SIGTERM, quitting.
Dec 11 11:37:12 bsd avahi-daemon[21948]: Leaving mDNS multicast group on interface em0.IPv4 with address 192.168.1.11.
Dec 11 11:37:12 bsd avahi-daemon[21948]: Leaving mDNS multicast group on interface lo0.IPv6 with address ::1.
Dec 11 11:37:12 bsd avahi-daemon[21948]: Leaving mDNS multicast group on interface lo0.IPv4 with address 127.0.0.1.
Dec 11 11:37:12 bsd avahi-daemon[21948]: avahi-daemon 0.8 exiting.
Dec 11 11:37:12 bsd gdm-launch-environment][43204]: Gdm: The connection is closed
Dec 11 11:37:12 bsd gdm[32443]: Gdm: Child process -268 was already dead.
Dec 11 11:37:12 bsd gdm[32443]: Gdm: GdmDisplay: Session never registered, failing
Dec 11 11:37:12 bsd gdm[32443]: GLib: Source ID 8 was not found when attempting to remove it
Dec 11 11:37:53 bsd dhcpleased[27845]: adding 192.168.1.11 to em0 (lease from 192.168.1.4)
Reply With Quote
  #2   (View Single Post)  
Old 11th December 2024
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,077
Default

Hello, and welcome!

I understand that Gnome requires 3D acceleration to function correctly.

Would you please post the contents of:
  • dmesg(8)
  • /etc/rc.conf.local
  • /var/log/Xorg.0.log
These may help determine the source of the problem.
Reply With Quote
  #3   (View Single Post)  
Old 11th December 2024
peterbsd peterbsd is offline
Port Guard
 
Join Date: Nov 2024
Posts: 23
Default

Machine is Thinkpad T520
Attached Files
File Type: txt dmesg.txt (15.1 KB, 9 views)
File Type: txt rc.conf.local.txt (54 Bytes, 9 views)
File Type: txt Xorg.0.log.txt (23.5 KB, 11 views)
Reply With Quote
  #4   (View Single Post)  
Old 11th December 2024
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,077
Default

Thank you. At first glance, nothing jumps out at me. Someone else may see something I've missed, and, I will review again after $DAYJOB ends today.
Reply With Quote
  #5   (View Single Post)  
Old 11th December 2024
jmccue jmccue is offline
Real Name: John McCue
Package Pilot
 
Join Date: Aug 2012
Location: here
Posts: 193
Default

Did you try this to create an xorg.conf ?

Code:
Xorg -config
Also you may want to enable ampd(8).

For gnome, the only thing I can see is you may want to enable dbus, see file:

/usr/local/share/doc/pkg-readmes/dbus

I am far from a expert in understanding what dmesg reports. But dbus is needed for gnome.
__________________
[t]csh(1) - "An elegant shell, for a more... civilized age."
- Paraphrasing Star Wars (tvtropes.org)
Reply With Quote
  #6   (View Single Post)  
Old 11th December 2024
peterbsd peterbsd is offline
Port Guard
 
Join Date: Nov 2024
Posts: 23
Default

There are running three dbus-daemon processes. messagebus script under /etc/rc.d/ contains this:
Code:
...
daemon="/usr/local/bin/dbus-daemon --system"
...
and this command line is visible in ps output like first instance of dbus-daemon.

another two instances are several lines below.
Part of ps output:

Code:
_dbus    42740  0.0  0.0  1856  2776 ??  I       6:33PM    0:00.03 - /usr/local/bin/dbus-daemon --system
_avahi   52276  0.0  0.0  1016  2464 ??  S       6:33PM    0:00.03 - avahi-daemon: -avahi-daemon: running [bsd.local] (avahi-daemon)
root     89182  0.0  0.1 10496  6536 ??  I       6:33PM    0:00.11 - /usr/local/sbin/console-kit-daemon
_polkitd 56995  0.0  0.1  5668  6276 ??  I       6:33PM    0:00.05 - /usr/local/lib/polkit-1/polkitd
root     95737  0.0  0.0  4852  5792 ??  I       6:33PM    0:00.05 - /usr/local/libexec/accounts-daemon
root     81871  0.0  0.0  1156  1408 ??  Ip      6:33PM    0:00.00 - /usr/sbin/cron
_gnome-i 96984  0.0  0.0  5360  5976 ??  I       6:33PM    0:00.03 - /usr/local/libexec/at-spi-bus-launcher
_gnome-i 59577  0.0  0.0  1520  2988 ??  I       6:33PM    0:00.02 `-- /usr/local/bin/dbus-daemon --config-file=/usr/local/share/defaults/at-spi2/accessibility.conf --nofork --print-address 13 --address=unix:path=/var/run/gnome-initial-setup/.cache/at-spi/bus_0
_gnome-i 61987  0.0  0.1  6372  7188 ??  I       6:33PM    0:00.03 - /usr/local/libexec/gvfsd
_gnome-i 96301  0.0  0.1  4448  6592 ??  I       6:33PM    0:00.03 - /usr/local/libexec/at-spi2-registryd
root      5627  0.0  0.1  5856  6692 C0- I       6:33PM    0:00.08 - /usr/local/sbin/gdm
_x11     46157  0.0  0.4 25952 53212 ??  I       6:33PM    0:01.50 |-- /usr/X11R6/bin/X :0 -background none -noreset -verbose -auth /var/run/gdm/auth-for-_gdm-OZBLY2/database -nolisten tcp vt5 (Xorg)
root     95548  0.0  0.0  2972  1468 ??  IpU     6:33PM    0:00.08 | `-- X: [priv] (Xorg)
root     57353  0.0  0.0  3920  5852 ??  I       6:33PM    0:00.03 `-- gdm-session-worker [pam/gdm-launch-environment] (gdm-session-worker)
_gnome-i 19013  0.0  0.0   776  1292 ??  I       6:33PM    0:00.00   `-- dbus-run-session -- gnome-session --autostart /usr/local/share/gdm/greeter/autostart --session gnome-initial-setup
_gnome-i 94600  0.0  0.0  1752  3084 ??  I       6:33PM    0:00.04     |-- dbus-daemon --nofork --print-address 4 --session
_gnome-i 21236  0.0  0.1  6116 12568 ??  I       6:33PM    0:00.10     `-- /usr/local/libexec/gnome-session-binary
_gnome-i 59494  0.0  0.2  9432 26220 ??  I       6:33PM    0:00.26       `-- /usr/local/libexec/gnome-session-failed
Reply With Quote
  #7   (View Single Post)  
Old 11th December 2024
peterbsd peterbsd is offline
Port Guard
 
Join Date: Nov 2024
Posts: 23
Default

Regarding to

/usr/local/share/doc/pkg-readmes/dbus

There are two scripts one to add to ~/.xinitrc and second to add to ~/.xsession
These files does not exist in my /root directory so I created them and put suggested scripts to them.
I am not sure if is it correct but after rebooting problem is still present.
Reply With Quote
  #8   (View Single Post)  
Old 11th December 2024
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,077
Default

Quote:
Originally Posted by peterbsd View Post
These files does not exist in my /root directory...
Try running gnome as a non-root user. Running from root is never considered best practice, and it might be a contributing factor to this problem.
Reply With Quote
  #9   (View Single Post)  
Old 12th December 2024
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,533
Default

"There are two scripts one to add to ~/.xinitrc and second to add to ~/.xsession"

~/.xinitrc is the startup script invoked by the startx command.
~/.xession is invoked by xenodm.

You start X with one or the other and neither of them are recommended to run Gnome in OpenBSD.

What I would suggest is deleting ~/.xinitrc and ~/.xsession and running $ startx. This will verify that X-windows runs and has the necessary firmware for your graphics chip.

If the problem is not X-windows, I would review /usr/local/share/doc/pkg-readmes/gnome
linked here.

Last edited by shep; 12th December 2024 at 01:53 AM.
Reply With Quote
Old 12th December 2024
peterbsd peterbsd is offline
Port Guard
 
Join Date: Nov 2024
Posts: 23
Default

Quote:
Originally Posted by jggimi View Post
Try running gnome as a non-root user. Running from root is never considered best practice, and it might be a contributing factor to this problem.
Yes this was problem.
When I created user and reboot then gnome does not stop and displayed login prompt with that new username. So it seems that minimally one non-root user must exist.
Problem resolved.

Thank you !
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VNC failed to start Gnome notooth OpenBSD Packages and Ports 4 18th July 2020 01:53 PM
gnome doesn't start philo_neo71 OpenBSD Packages and Ports 27 18th August 2015 05:24 PM
X11 won't start. abtekk OpenBSD General 11 8th August 2012 09:47 PM
Why cannot mpd start ? sw2wolf OpenBSD Packages and Ports 1 24th March 2012 03:05 AM
Fluxbox don't start Artur FreeBSD General 4 3rd September 2009 01:04 PM


All times are GMT. The time now is 10:52 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick