Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
imapd: authentication error: Connection refused
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Toady
Apprentice
Apprentice


Joined: 21 Dec 2004
Posts: 161
Location: South Wales, UK

PostPosted: Wed Mar 02, 2005 7:52 pm    Post subject: imapd: authentication error: Connection refused Reply with quote

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
View user's profile Send private message
jkt
Retired Dev
Retired Dev


Joined: 06 Feb 2004
Posts: 1250
Location: Prague, Czech republic, EU

PostPosted: Wed Mar 02, 2005 8:03 pm    Post subject: Reply with quote

`/etc/init.d/authdaemon start; rc-update add authdaemon default`
_________________
cd /local/pub && more beer > /dev/mouth

Česká dokumentace
Back to top
View user's profile Send private message
jkt
Retired Dev
Retired Dev


Joined: 06 Feb 2004
Posts: 1250
Location: Prague, Czech republic, EU

PostPosted: Wed Mar 02, 2005 8:05 pm    Post subject: Re: imapd: authentication error: Connection refused Reply with quote

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
View user's profile Send private message
j-m
Retired Dev
Retired Dev


Joined: 31 Oct 2004
Posts: 975

PostPosted: Wed Mar 02, 2005 8:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Toady
Apprentice
Apprentice


Joined: 21 Dec 2004
Posts: 161
Location: South Wales, UK

PostPosted: Wed Mar 02, 2005 8:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
j-m
Retired Dev
Retired Dev


Joined: 31 Oct 2004
Posts: 975

PostPosted: Wed Mar 02, 2005 8:15 pm    Post subject: Reply with quote

Please search the forums and read the post-install instruction in the ebuild.
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Tue Apr 05, 2005 11:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
jkt
Retired Dev
Retired Dev


Joined: 06 Feb 2004
Posts: 1250
Location: Prague, Czech republic, EU

PostPosted: Wed Apr 06, 2005 1:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Wed Apr 06, 2005 2:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
jkt
Retired Dev
Retired Dev


Joined: 06 Feb 2004
Posts: 1250
Location: Prague, Czech republic, EU

PostPosted: Wed Apr 06, 2005 3:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Wed Apr 06, 2005 5:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
jkt
Retired Dev
Retired Dev


Joined: 06 Feb 2004
Posts: 1250
Location: Prague, Czech republic, EU

PostPosted: Wed Apr 06, 2005 5:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Wed Apr 06, 2005 6:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
jkt
Retired Dev
Retired Dev


Joined: 06 Feb 2004
Posts: 1250
Location: Prague, Czech republic, EU

PostPosted: Wed Apr 06, 2005 7:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Wed Apr 06, 2005 7:16 pm    Post subject: Reply with quote

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:

Code:
mod_php
v4.3.10
Back to top
View user's profile Send private message
jkt
Retired Dev
Retired Dev


Joined: 06 Feb 2004
Posts: 1250
Location: Prague, Czech republic, EU

PostPosted: Wed Apr 06, 2005 7:28 pm    Post subject: Reply with quote

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:

Code:
mod_php
v4.3.10

what happens if you select another MPM or disable extensions like PHP?
_________________
cd /local/pub && more beer > /dev/mouth

Česká dokumentace
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Wed Apr 06, 2005 7:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
jkt
Retired Dev
Retired Dev


Joined: 06 Feb 2004
Posts: 1250
Location: Prague, Czech republic, EU

PostPosted: Wed Apr 06, 2005 7:38 pm    Post subject: Reply with quote

can you select another MPM (prefork, worker,...)?
_________________
cd /local/pub && more beer > /dev/mouth

Česká dokumentace
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Wed Apr 06, 2005 7:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
jkt
Retired Dev
Retired Dev


Joined: 06 Feb 2004
Posts: 1250
Location: Prague, Czech republic, EU

PostPosted: Wed Apr 06, 2005 8:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Wed Apr 06, 2005 8:05 pm    Post subject: Reply with quote

Isn't there a bare minimum of modules that Apache needs to function with?
Back to top
View user's profile Send private message
jkt
Retired Dev
Retired Dev


Joined: 06 Feb 2004
Posts: 1250
Location: Prague, Czech republic, EU

PostPosted: Wed Apr 06, 2005 8:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Wed Apr 06, 2005 8:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
jkt
Retired Dev
Retired Dev


Joined: 06 Feb 2004
Posts: 1250
Location: Prague, Czech republic, EU

PostPosted: Wed Apr 06, 2005 8:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Thu Apr 07, 2005 5:43 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum