LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   X takes forever to load (http://www.linuxquestions.org/questions/linux-general-1/x-takes-forever-to-load-435263/)

mrclisdue 04-14-2006 08:40 PM

X takes forever to load
 
Hey all,

About 5 months ago, or so, X (Gnome) began to take a long time to load - seemingly 4 or 5 minutes from the time the mouse pointer appears until the Gnome desktop is fully loaded. It didn't really concern me, and it still doesn't, really, but I am curious as to what's going on, and why.

In browsing my messages log, it appears that this is what's causing undue delay:

Code:

Apr 14 20:53:35 main smbd[2291]: [2006/04/14 20:53:35, 0] lib/smbldap.c:fetch_ldap_pw(312)
Apr 14 20:53:35 main smbd[2291]:  fetch_ldap_pw: neither ldap secret retrieved!
Apr 14 20:53:35 main smbd[2291]: [2006/04/14 20:53:35, 0] lib/smbldap.c:smbldap_connect_system(813)
Apr 14 20:53:35 main smbd[2291]:  ldap_connect_system: Failed to retrieve password from secrets.tdb
Apr 14 20:53:36 main smbd[2291]: [2006/04/14 20:53:36, 0] lib/smbldap.c:fetch_ldap_pw(312)
Apr 14 20:53:36 main smbd[2291]:  fetch_ldap_pw: neither ldap secret retrieved!
Apr 14 20:53:36 main smbd[2291]: [2006/04/14 20:53:36, 0] lib/smbldap.c:smbldap_connect_system(813)
Apr 14 20:53:36 main smbd[2291]:  ldap_connect_system: Failed to retrieve password from secrets.tdb
Apr 14 20:53:37 main smbd[2291]: [2006/04/14 20:53:37, 0] lib/smbldap.c:fetch_ldap_pw(312)
Apr 14 20:53:37 main smbd[2291]:  fetch_ldap_pw: neither ldap secret retrieved!
Apr 14 20:53:37 main smbd[2291]: [2006/04/14 20:53:37, 0] lib/smbldap.c:smbldap_connect_system(813)

until, finally:

Apr 14 20:54:21 main smbd[2291]: [2006/04/14 20:54:21, 0] passdb/pdb_ldap.c:ldapsam_search_one_group(1971)
Apr 14 20:54:21 main smbd[2291]:  ldapsam_search_one_group: Problem during the LDAP search: LDAP error: (unknown) (Timed out)

Obviously, this is related to samba and lpad, but I don't have an issue with samba and how it performs for me (that I'm aware of, anyhow)

So, could some kind soul please explain to me what's happening, or not happening here, and how to either make it happen, or not, so that X may load quicker, and I can find something else to enquire about in another few months?

TIA


cheers,

fuzzyash 04-15-2006 04:02 PM

I'm assuming you use lpad in samba but if you don't you could disable it!
Not really an answer I know but even if you do use it try disabling it just to see if it helps.

Seams others have experienced the same, check out :

http://www.google.com.au/search?num=...G=Search&meta=

which is a Google for "ldapsam_search_one_group: Problem during the LDAP search: LDAP error: (unknown) (Timed out)" (including "")

There are several things to try that might help.

Sorry I couldn't be more helpful!

mrclisdue 04-15-2006 05:12 PM

Quote:

Originally Posted by fuzzyash
I'm assuming you use lpad in samba but if you don't you could disable it!
Not really an answer I know but even if you do use it try disabling it just to see if it helps......

Sorry I couldn't be more helpful!

Sorry? Why, you've been helpful, indeed. I have no idea how lpad in samba was turned on (unless it's 'on' by default), but I certainly have no need for it, so I will disable it.

Thanks for the link, I'll report the results the next time I reboot (reboot? with Linux, that could be days.......)

cheers,

fuzzyash 04-16-2006 05:28 AM

Reboot?? Why bother?!? Simply restart samba.

Code:

service smb restart

mrclisdue 04-16-2006 07:02 AM

Quote:

Originally Posted by fuzzyash
Reboot?? Why bother?!? Simply restart samba.

Code:

service smb restart

because it's not 'starting samba' that's the issue, it's booting, or loading X, that's the issue.

Alas, there is still a huge delay from the time the blue-screen-mouse-cursor appears until the desktop loads. Here's the latest from messages:

Code:

a bunch of stuff looking good.....then:
Apr 15 18:32:54 main nmbd[1936]:   
Apr 15 18:32:54 main nmbd[1936]:  *****
Apr 15 18:32:58 main gdm-autologin(pam_unix)[2069]: session opened for user main by (uid=0)
Apr 15 18:33:00 main gconfd (main-2350): starting (version 2.10.0), pid 2350 user 'main'
Apr 15 18:33:00 main gconfd (main-2350): Resolved address "xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only configuration source at position 0
Apr 15 18:33:00 main gconfd (main-2350): Resolved address "xml:readwrite:/home/main/.gconf" to a writable configuration source at position 1
Apr 15 18:33:00 main gconfd (main-2350): Resolved address "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only configuration source at position 2
Apr 15 18:33:04 main noip2[2363]: v2.1.1 daemon started with NAT enabled
Apr 15 18:35:04 main gconfd (main-2350): Failed to send buffer
Apr 15 18:35:06 main gconfd (main-2350): Resolved address "xml:readwrite:/home/main/.gconf" to a writable configuration source at position 0
Apr 15 18:35:40 main ntpd[1797]: synchronized to LOCAL(0), stratum 10
Apr 15 18:35:40 main ntpd[1797]: kernel time sync disabled 0041

and X loads, and we're off to the races....

As you may notice, there is a full 2 minutes of 'inactivity' between the time noip2 loads and the message:

Apr 15 18:35:04 main gconfd (main-2350): Failed to send buffer

So the samba-lpad issue appears to have been only part of the whole issue.

Any thoughts, anyone?


cheers,

fuzzyash 04-16-2006 06:27 PM

Again, not sure if this will help, but recently I had a problem with loading Metacity which turned out that SELinux was preventing an openGL shared library from being read. I first turned SELinux off all together to see if it was the problem, which obviously it was, then made a rule to allow that library to be read.

It's a long shot, but perhaps temporarily disabling SELinux might show you the problem??? As samba-lpad has turned out not to be the issue but merely a symptom of the issue, your trouble must be from deep within the core of Linux, maybe!?!

I unfortunately don't have an immediate answer for you but the more we sniff around the closer we'll get to the turd in you system.

mrclisdue 04-16-2006 07:04 PM

First off, let me express my appreciation for following this thread.

I don't have SeLinux turned on, so that's not the issue.

Also, keep in mind, from my original post, that I don't consider this to be a huge issue. In fact, it's the only concern I have, at the moment.

It's just occurred to me that the problem only happens with one particular user login, which also happens to be setup as an autologin, hence occurring on reboots.

Obviously, a solution is to create a new user, and delete the old, but then we'd never know what was causing the problem. Plus, there'd be those precious few minutes getting the new desktop/user just 'right'. Fortunately, that's not a big deal (because I'm not the affected user....)

Before I take that step though, are there any likely places I may look in the user's ~ to track this down?

cheers,

fuzzyash 04-17-2006 06:40 AM

Hmm... I unfortunately have the infliction that when I have even a small problem I just can't sleep until I figure it out!

The first place I'd start is to stop any apps from auto-starting so X is started & nothing else, if this works then auto-start one of them at a time until you get the same problem, then delete the dot-config dir for that app, restart it, which will create a new dot-config dir.
But this probably won't work, so the next thing I'd try is to move the .gnome2 dir to somewhere else & start X again, more than likely some config file in there has become corrupted. Gnome will automatically create a new one so if this works you can simply copy the file called "session" & the dir called "panel2" from your old .gnome2 dir to the newly created one & the next time you login your gnome session should be as you remember it.

If this doesn't work, well we'll see!

Good Luck!!

mrclisdue 04-17-2006 10:07 PM

well, that's SOLVED.

Thanks for your help - it turned out to be an issue with a session startup program, which I disabled, then re-enabled, and it's fine. Don't know why.

I've found a couple of other issues; now samba is messed up (I've posted that problem elsewhere), and I'm puzzled as to what to do if fstab is loaded before samba starts, how can samba shares be mounted?...hmmm, samba seems to be running in the top 5 issues brought forth in this forum.

anyway, some stuff to concern myself with in the near future....


cheers,

fuzzyash 04-19-2006 03:58 AM

Glad I could help!

Please post a link to your samba question for me to take a look at.

As for fstab, mounting all in that file occurs long before any daemons, including samba, are started, as you probably know, this is necessary for samba shares to be mounted anyway! so I'm a little confused as to your problem, maybe reading your other question will help.

mrclisdue 04-19-2006 05:23 AM

I rectified one issue with samba, but my fstab 'problem' is this:

fstab loads before samba starts, which means that the samba shares aren't mounted when gdm loads. I have to run the mount -a command, which requires root privelees, when X loads.

Unless I'm missing something,


cheers,

fuzzyash 04-19-2006 07:36 AM

When you say "fstab" I'm assuming that you mean the file /etc/fstab, this file contains all the partitions & their mount locations that need to be mounted for your system to operate, of course. The fact that you have to run "mount -a" to get these to mount is very strange indeed!! as "mount -a" is one of the commands in the startup script /etc/rc.d/rc.sysinit.
If the entries in your fstab file aren't being mounted during bootup by your system startup scripts then this means that something is very wrong with this script!

What distro are you running, have you modified any scripts in /etc/rc.d, during boot does everything say "[ OK ]" ????

There are ways around this but it should not be happening in the first place!

mrclisdue 04-19-2006 08:43 PM

Well, without going into too much detail, I have solved the problem.

Netfs wasn't able to mount the samba entries in fstab, hence they weren't showing up when X started. A 'mount -a', as root, would mount the samba entries. Non-root users couldn't use the 'mount -a' command, so I ran a chmod on the mount command, and that worked, briefly, but then I would get various errors (as non-root; root would still work.)

Since I was able to mount the shares using the mount -a command, I believed that my fstab entries were correct. However, they weren't (though, as root, 'mount' managed to make it work....)

So, I fixed the fstab entries, and now everything works as it should.

I'm about to tackle some NFS issues....


cheers,


All times are GMT -5. The time now is 10:00 AM.