View previous topic :: View next topic |
Author |
Message |
Toady Apprentice
Joined: 21 Dec 2004 Posts: 161 Location: South Wales, UK
|
Posted: Wed Mar 02, 2005 7:52 pm Post subject: imapd: authentication error: Connection refused |
|
|
I set my system to do a world update evry month....
I am now thinking this is a bad move
In my logs every time I try and use IMAP mail I get :
Code: | Mar 2 19:37:00 hogarth imapd: Connection, ip=[10.x.x.x]
Mar 2 19:37:00 hogarth imapd: authdaemon: s_connect() failed: Connection refused
Mar 2 19:37:00 hogarth imapd: [Hint: perhaps authdaemond is not running?]
Mar 2 19:37:00 hogarth imapd: LOGIN FAILED, user=testuser, ip=[10.x.x.x]
Mar 2 19:37:00 hogarth imapd: authentication error: Connection refused |
_________________ Toady
Gentoo Laptop
3.1.10-gentoo-r1, Intel Core 2 Duo (32bit)
Gnome on the desk, Intel in the box, on-board everything, but it all works! |
|
Back to top |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Wed Mar 02, 2005 8:03 pm Post subject: |
|
|
`/etc/init.d/authdaemon start; rc-update add authdaemon default` _________________ cd /local/pub && more beer > /dev/mouth
Česká dokumentace |
|
Back to top |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Wed Mar 02, 2005 8:05 pm Post subject: Re: imapd: authentication error: Connection refused |
|
|
Toady wrote: | I set my system to do a world update evry month....
I am now thinking this is a bad move |
Always check manually what is about to be upgraded. But having cronjobs for `emerge --sync` is a Good Think (tm) _________________ cd /local/pub && more beer > /dev/mouth
Česká dokumentace |
|
Back to top |
|
|
j-m Retired Dev
Joined: 31 Oct 2004 Posts: 975
|
Posted: Wed Mar 02, 2005 8:07 pm Post subject: |
|
|
Are you using courier-imap?
Code: |
rc-update del authdaemond
rc-update add courier-authlib default
/etc/init.d/authdaemond stop
/etc/init.d/authdaemond zap
rm /etc/init.d/authdaemond
/etc/init.d/courier-authlib start
|
The config files have also moved, you should read the ebuild instructions. Also solved many times here. |
|
Back to top |
|
|
Toady Apprentice
Joined: 21 Dec 2004 Posts: 161 Location: South Wales, UK
|
Posted: Wed Mar 02, 2005 8:13 pm Post subject: |
|
|
Yes I am running courier-imapd
OK so I have done the above.. but now I cant connect and I also have nothing in the logs grrrrr _________________ Toady
Gentoo Laptop
3.1.10-gentoo-r1, Intel Core 2 Duo (32bit)
Gnome on the desk, Intel in the box, on-board everything, but it all works! |
|
Back to top |
|
|
j-m Retired Dev
Joined: 31 Oct 2004 Posts: 975
|
Posted: Wed Mar 02, 2005 8:15 pm Post subject: |
|
|
Please search the forums and read the post-install instruction in the ebuild. |
|
Back to top |
|
|
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Tue Apr 05, 2005 11:17 pm Post subject: |
|
|
Toady, I also did what you asked but when I try and restart courier-authlib, I get this:
Code: | * Stopping courier-imapd... [ ok ]
* Stopping courier-authlib: authdaemond...
tart-stop-daemon: warning: failed to kill 11330: No such process [ ! ! ] |
Any ideas? |
|
Back to top |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Wed Apr 06, 2005 1:24 pm Post subject: |
|
|
JulesF wrote: | Toady, I also did what you asked but when I try and restart courier-authlib, I get this:
Code: | * Stopping courier-imapd... [ ok ]
* Stopping courier-authlib: authdaemond...
tart-stop-daemon: warning: failed to kill 11330: No such process [ ! ! ] |
Any ideas? |
Yep. If the init file is correct (it should be) and bugfree, then something nasty happened to the authdaemond and it died. `/etc/init.d/authdaemond zap; /etc/init.d/authdaemond start` will restart it, but you should really figure out why had it died. Anything interesting in logs? _________________ cd /local/pub && more beer > /dev/mouth
Česká dokumentace |
|
Back to top |
|
|
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Wed Apr 06, 2005 2:34 pm Post subject: |
|
|
Had to reboot the entire server to get this to work. I hate having to do that. But of course now my Apache installation ov 2.0.53 is screwed and I am getting this segmentation error:
Code: | child pid 14313 exit signal Segmentation fault (11) |
If it's not one thing it's the other... Anyone with similar woes? |
|
Back to top |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Wed Apr 06, 2005 3:11 pm Post subject: |
|
|
JulesF wrote: | Code: | child pid 14313 exit signal Segmentation fault (11) |
If it's not one thing it's the other... Anyone with similar woes? |
segfaulting is neither normal nor common behaviour . Are you using correct CFLAGS/CXXFLAGS? Have you checked your memory with memtest? _________________ cd /local/pub && more beer > /dev/mouth
Česká dokumentace |
|
Back to top |
|
|
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Wed Apr 06, 2005 5:45 pm Post subject: |
|
|
This started the moment I upgraded to Apache 2.0.53 everything was fine before then. If you look at the countless posts with this subject, I'm afraid it is VERY common behaviour. The only prob is that now I have reinstalled the system with Apache 2.0.50 and the same issue has arisen. |
|
Back to top |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Wed Apr 06, 2005 5:50 pm Post subject: |
|
|
JulesF wrote: | This started the moment I upgraded to Apache 2.0.53 everything was fine before then. If you look at the countless posts with this subject, I'm afraid it is VERY common behaviour. The only prob is that now I have reinstalled the system with Apache 2.0.50 and the same issue has arisen. |
OK, it's cetrainly possible that one package has problems, but if suddenly "everything works crazy", it is probably not related to the upgrade of Apache. Did you upgraded something else during that time? _________________ cd /local/pub && more beer > /dev/mouth
Česká dokumentace |
|
Back to top |
|
|
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Wed Apr 06, 2005 6:41 pm Post subject: |
|
|
Courier-imap got updated earlier in the day and then I did Apache. Courier is fine. Perhaps I should uninstall it? I have seen a post regarding gcc so I am upgrading that as my version was a some months old. I built the server new in December. The only original part was the CPU a 1.3Ghz Athlon. Man I am REALLY suffering. I host a few sites for people and they are screwing. Will be 24 hours soon. Postfix still works in the background so mail comes in ok and I am using a different client to check imap.
Courier must be working otherwise I could not use the client. |
|
Back to top |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Wed Apr 06, 2005 7:02 pm Post subject: |
|
|
Maybe the problem with authdaemon was only that the daemons were killed in wrong order. So now you have only broken apache, right? What happens if you emerge another version? BTW, it could be easily caused by some apache module, for example. Have you recompiled mod_php (if you use PHP)? _________________ cd /local/pub && more beer > /dev/mouth
Česká dokumentace |
|
Back to top |
|
|
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Wed Apr 06, 2005 7:16 pm Post subject: |
|
|
Well I have just manually compiled versio v50 of Apache and I get the same error. I have reseated the mem chips also, no avail. I am using:
|
|
Back to top |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Wed Apr 06, 2005 7:28 pm Post subject: |
|
|
JulesF wrote: | Well I have just manually compiled versio v50 of Apache and I get the same error. I have reseated the mem chips also, no avail. I am using:
|
what happens if you select another MPM or disable extensions like PHP? _________________ cd /local/pub && more beer > /dev/mouth
Česká dokumentace |
|
Back to top |
|
|
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Wed Apr 06, 2005 7:35 pm Post subject: |
|
|
Have taken php out of the equasion and I get the same Segmentation fault. I have also reinstalled Apache v52 which is what I had before all this. Same result. What is this all about, where does this problem lie? Segmentation can mean so many things, but the server does not, never has crashed. It is just with Apache. |
|
Back to top |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Wed Apr 06, 2005 7:38 pm Post subject: |
|
|
can you select another MPM (prefork, worker,...)? _________________ cd /local/pub && more beer > /dev/mouth
Česká dokumentace |
|
Back to top |
|
|
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Wed Apr 06, 2005 7:43 pm Post subject: |
|
|
Sorry, I don't quite understand. The fork part of my conf file:
Code: | Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule prefork.c>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
<IfModule perchild.c>
NumServers 10
StartThreads 10
MinSpareThreads 10
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 1
</IfModule>
<IfModule peruser.c>
MinSpareServers 2
MaxProcessors 10
MaxClients 150
MaxRequestsPerChild 100
Multiplexer nobody nobody
Processor user group /home/user
# chroot dir is optional:
# Processor user group
</IfModule> |
What do you suggest? |
|
Back to top |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Wed Apr 06, 2005 8:02 pm Post subject: |
|
|
Oops, using another MPM will require rebuild. So it breaks even after recompialtion of apache? Without any modules (PHP, mod_ssl,...)? _________________ cd /local/pub && more beer > /dev/mouth
Česká dokumentace |
|
Back to top |
|
|
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Wed Apr 06, 2005 8:05 pm Post subject: |
|
|
Isn't there a bare minimum of modules that Apache needs to function with? |
|
Back to top |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Wed Apr 06, 2005 8:29 pm Post subject: |
|
|
JulesF wrote: | Isn't there a bare minimum of modules that Apache needs to function with? |
AFAIK no "modules" loaded at runtime are required...
Is something interesting in logs? What about increasing the verbosity? (`/usr/sbin/apache2 -X -e level_of_debig_info`...) _________________ cd /local/pub && more beer > /dev/mouth
Česká dokumentace |
|
Back to top |
|
|
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Wed Apr 06, 2005 8:37 pm Post subject: |
|
|
The only thing in the logs is this:
Code: | [Wed Apr 06 21:31:53 2005] [notice] child pid 1516 exit signal Segmentation fault (11)
[Wed Apr 06 21:32:59 2005] [notice] child pid 1517 exit signal Segmentation fault (11)
[Wed Apr 06 21:33:00 2005] [notice] child pid 1518 exit signal Segmentation fault (11)
[Wed Apr 06 21:33:11 2005] [notice] child pid 1520 exit signal Segmentation fault (11)
[Wed Apr 06 21:33:11 2005] [notice] child pid 1519 exit signal Segmentation fault (11)
[Wed Apr 06 21:33:31 2005] [notice] child pid 2203 exit signal Segmentation fault (11)
[Wed Apr 06 21:33:32 2005] [notice] child pid 2205 exit signal Segmentation fault (11)
[Wed Apr 06 21:33:47 2005] [notice] child pid 2207 exit signal Segmentation fault (11)
[Wed Apr 06 21:33:47 2005] [notice] child pid 2206 exit signal Segmentation fault (11) |
|
|
Back to top |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Wed Apr 06, 2005 8:41 pm Post subject: |
|
|
you can alwasy compile apache with `FEATURES=nostrip USE=debug emerge apache` and then use gdb debugger .
Are you really sure that you're compiling for correct CPU? Do you have sane CFLAGS? Isn't there somethign broken in apache's deps? (`emerge -epv world`) _________________ cd /local/pub && more beer > /dev/mouth
Česká dokumentace |
|
Back to top |
|
|
trossachs Veteran
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Thu Apr 07, 2005 5:43 am Post subject: |
|
|
Why would I have changed the CPU type with my CFLAGS? Nothing has changed, I just upgraded to 2.0.53 and all this happened. I have even gone back down to v2.0.51/52 and it is the same. I have changed memory, reduced clock speed, all sorts. |
|
Back to top |
|
|
|