PDA

View Full Version : GDM 2.26 cannot login


bsd5543
April 22nd, 2009, 12:30
Hi all,

I am using FreeBSD 7.1p2 with hald and dbus activated.

When I start GDM 2.26 the userlist only shows 'others' and a login as root or any other user is not possible.

Any hint to solve this problem is greatly appreciated.

cheers

tangram
April 22nd, 2009, 14:55
Did you place

gnome_enable="YES"

in your /etc/rc.conf?

FreeBSD's Gnome project has load of useful documentation at http://www.freebsd.org/gnome/index.html.

bsd5543
April 22nd, 2009, 15:03
Yes, I did. Also /proc is mounted.

tangram
April 22nd, 2009, 15:14
Try FAQ entry #23 (http://www.freebsd.org/gnome/docs/faq2.html#q23).

bsd5543
April 22nd, 2009, 18:52
The whole documentation doesn't touch my problem.

The communication between FreeBSD's user authetification and GDM seems to be broken.

I have attached a log file from /var/log/gdm.

SirDice
April 24th, 2009, 11:48
This one looks serious:

E: core-util.c: Home directory /usr/local/etc/gdm/home not ours.

Have a look at the permissions and ownership of that directory.

bsd5543
April 24th, 2009, 20:10
These are the acl of my /usr/local/etc/gdm/home

drwxrwx--T 11 root gdm 512 Apr 24 19:41 home

Is there anything wrong?

kenorb
October 20th, 2010, 13:46
The same problem. I see gdm started, but it doesn't load gnome session further. I see some gray box of my username but can't log in.

More details here:
http://groups.google.com/group/mailing.freebsd.hackers/browse_thread/thread/57111c057118ccec#
FreeBSD 8.1 + xorg-server-1.7.5,1 + gnome2-2.30.1_1
Compiled and installed xorg and gnome from ports.

The same related topic here:
http://www.listware.net/201005/freebsd-gnome/90450-trouble-with-gnome-session-0.html

The only difference is that you have:

gnome-session[1217]: WARNING: Could not launch application 'gnome-power-manager.desktop': Unable to start application: Failed to execute child
process "gnome-power-manager" (No such file or directory)

I have:

gnome-session[96761]: WARNING: Could not launch application 'at-spi-registryd-wrapper.desktop': Unable to start application: Failed to execute
child process "${exec_prefix}/libexec/at-spi-registryd" (No such file or directory)

Probably this is the main reason why gnome-session doesn't start.

Workaround:
From root run:

setenv DISPLAY :0.0
gnome-terminal &


Then go to graphics mode and you could run: gnome-session or gnome-panel

Does that mean that ${exec-prefix} is not parsed or defined correctly in at-spi-registryd-wrapper.desktop?
Line:
Exec=${exec_prefix}/libexec/at-spi-registryd

kenorb
October 20th, 2010, 13:58
See attachment log.

in your case I could suggest you to check if you have gnome-power-manager installed as the error suggest?

kenorb# pkg_info -W `which gnome-power-manager`
/usr/local/bin/gnome-power-manager was installed by package gnome-power-manager-2.30.1_1

Related: http://forums.freebsd.org/showthread.php?p=100006#post100006

Related: http://forums.freebsd.org/showthread.php?p=85710#post85710

Another related topic with the same error:

http://forums.freebsd.org/showthread.php?t=17184
http://pastebin.com/F73TA3Lk

kenorb
October 20th, 2010, 14:29
See this:
http://www.mailinglistarchive.com/html/freebsd-gnome@freebsd.org/2010-09/msg00067.html

-Exec=${exec_prefix}/libexec/at-spi-registryd
+Exec=/usr/local/libexec/at-spi-registryd

This could be the bug in gdm?

kenorb
October 20th, 2010, 14:36
Probably fixed in GNOME 2.32.
See: http://permalink.gmane.org/gmane.os.freebsd.devel.gnome/30604
But I still see: gdm-2.30.5 in latest ports.
How I can upgrade this via ports?

kenorb
October 20th, 2010, 15:00
Yes, it's the bug!
It does work!

Workaround FIX, run this:
sed -i '.bak' -e 's@Exec=${exec_prefix}@Exec=/usr/local@' `locate at-spi-registryd-wrapper.desktop`

DutchDaemon
October 20th, 2010, 15:04
Would you be so kind not to press the http://forums.freebsd.org/images/freebsd/buttons/report.gif button when you experience a EUREKA! moment? It sends an email to the moderators and admins. We get enough email, usually of a more interesting nature too.

kenorb
October 21st, 2010, 17:44
Sorry, I read that as 'Repost Post', not 'Report Post'. I wanted to re-edit (re-post) my Post.
Usually 'Edit' button is available in most of the forums and this icon doesn't meant nothing to me.
It's not logical to be able to report my own post?;)
Nnow I know. Sorry, I'll not do it again.

SirDice
October 21st, 2010, 18:13
Sorry, but it's a real pity to not able to edit our mistakes.

You can edit your posts after 10 posts and 10 days of membership.

DutchDaemon
October 21st, 2010, 19:45
In the meantime, you can read before you post ... Can be done without buttons ;)

Ralf
October 21st, 2010, 19:46
Good evening,

I did sed -i '.bak' -e 's@Exec=${exec_prefix}@Exec=/usr/local@' `locate at-spi-registryd-wrapper.desktop`

It returned locate: database too small: /var/db/locate.database
sed: -I or -i may not be used with stdin

What now?

Ralf
October 21st, 2010, 19:59
Ok I did /usr/libexec/locate.updatedb (found here http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2008-07/msg00588.html)

So sed -i '.bak' -e 's@Exec=${exec_prefix}@Exec=/usr/local@' `locate at-spi-registryd-wrapper.desktop` was successfull. No error message in /var/log/messages.

But I'm still not able to enter login data. /var/log/messages stil says Oct 21 20:44:42 Katecholamin console-kit-daemon[1058]: WARNING: kvm_getenvv failed: cannot open /proc/1058/mem
Oct 21 20:44:56 Katecholamin gnome-session[1152]: WARNING: Application 'metacity.desktop' failed to register before timeout
Oct 21 20:44:56 Katecholamin console-kit-daemon[1058]: WARNING: kvm_getenvv failed: cannot open /proc/1172/mem
Oct 21 20:44:57 Katecholamin console-kit-daemon[1058]: WARNING: kvm_getenvv failed: cannot open /proc/1170/mem
Oct 21 20:45:21 Katecholamin gdm-simple-greeter[1170]: Gtk-WARNING: gtkwidget.c:5628: widget not within a GtkWindow
Oct 21 20:45:21 Katecholamin console-kit-daemon[1058]: WARNING: kvm_getenvv failed: cannot open /proc/1170/mem
Oct 21 20:45:21 Katecholamin gdm-simple-greeter[1170]: WARNING: Unable to find users: no seat-id found

Ralf
October 21st, 2010, 20:55
Update:

I can now enter login data and the systems seems to accept them.

The problem was missing mounting of /proc.

As I said, the systems seems to accept login data. I could not verify this the whole system freezes. SSH-connections dying as well -.-
/var/log/meesages says Oct 21 20:44:56 Katecholamin gnome-session[1152]: WARNING: Application 'metacity.desktop' failed to register before timeout
Oct 21 20:45:21 Katecholamin gdm-simple-greeter[1170]: Gtk-WARNING: gtkwidget.c:5628: widget not within a GtkWindow