Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 26
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge rking's Avatar
    Join Date
    Aug 2005
    Posts
    192

    Default Starting cPanel ssl services: [Failed]

    This was a fun little error. I will share in case anyone else comes across this.

    Upon restarting cPanel, I would see the following error:

    Starting cPanel ssl services: [FAILED]

    and in /var/log/messages:

    Error binding pop3s to 0.0.0.0:995
    bind: Address already in use (98)

    I checked the usual fix, /etc/xinetd.d/, made sure there were no port conflicts. Tried again, same error.

    After

    ps aux | grep stunnel

    I notice my processes are still many days old (i.e. they are not getting killed).

    After digging, I find the script responsible for stopping stunnel:

    /usr/local/cpanel/etc/init/stopstunnel

    pico stopstunnel

    shows:

    #!/usr/bin/perl

    killstunnel();
    sub killstunnel {
    system("/scripts/ckillall -9 stunnel");
    system("/scripts/ckillall -9 stunnel-3.22local");
    system("/scripts/ckillall -9 stunnel-4.00local");
    system("/scripts/ckillall -9 stunnel-4.02local");
    system("/scripts/ckillall -9 stunnel-4.04local");
    system("/scripts/ckillall -9 stunnel-4.05local");
    }

    but I'm running stunnel version 4.15!

    added:

    system("/scripts/ckillall -9 stunnel-4.15local");

    Make sure to chattr your stopstunnel or cPanel will overwrite this each time you upcp.

    chattr +i /usr/local/cpanel/etc/init/stopstunnel

    Good to go.

    Happy hunting.
    Last edited by rking; 05-26-2006 at 01:43 PM.

  2. #2
    Member
    Join Date
    Mar 2006
    Posts
    5

    Default

    Recently spotted I had the same problem, tried the other suggestions but this fixed it.
    Many Thanks!

  3. #3
    Member
    Join Date
    Nov 2003
    Posts
    119

    Default

    Had hte same problem here, fixed it for me to.

    Considering Im running the release version of cpanel you'd think they would have spotted and fixed that bug before releasing it, i thought release was supposed to be the tested version

  4. #4
    Member
    Join Date
    Mar 2004
    Posts
    7

    Default

    Hehe, nice. This solved my SSL problem. I put in a renewed SSL certificate, but whatever I tried it didn't seem to actually refresh. It now turns out I had the same stunnel problem and this fixed it!

    See this thread

    Thanks!

  5. #5
    Member
    Join Date
    Apr 2005
    Posts
    18

    Default

    Thank you, worked for me too.

  6. #6
    Member isputra's Avatar
    Join Date
    May 2003
    Location
    Mbelitar
    Posts
    593

    Default

    This method worked for me too.

    Look at this thread
    It's me ...... It's me ......

  7. #7
    Member
    Join Date
    Feb 2005
    Posts
    223

    Default

    In order for this tweak to work you'll first have to run:

    /usr/local/cpanel/etc/init/stopstunnel
    /usr/local/cpanel/etc/init/startstunnel

    THEN you can try installing your certificate again.

  8. #8
    cPanel Partner NOC cPanel Partner NOC Badge rking's Avatar
    Join Date
    Aug 2005
    Posts
    192

    Default Courier and port conflicts

    Additionally, I've noticed on fresh installs of cPanel that courier is running by default. Apparently it creates a port conflict with cPanel SSL Services. I have to manually kill all the courier related processes before the cPanel secure ports will work.

    I've searched the forums extensively and have been unable to find if I need to disable courier somewhere to stop these processes from starting again. I haven't seen the processes come back, so I'm guessing not. Can anyone shed some light?

  9. #9
    cPanel Partner NOC cPanel Partner NOC Badge rking's Avatar
    Join Date
    Aug 2005
    Posts
    192

    Default

    Found it:

    service courier-imap stop

    I don't believe this will break any of my exim-related mail, but this is my first run in with courier. All sources on the web seem to indicate the two are very much unrelated. If anyone has any input, it's appreciated.

    EDIT:

    Looks like courier-imap and courier-authlib run cppop. I'm not at all familiar with this change, but it seems I shouldn't be killing these. Heh.
    Last edited by rking; 05-28-2006 at 04:40 PM.

  10. #10
    Member
    Join Date
    Sep 2001
    Posts
    43

    Default

    I got same problem about stunnel, I follow instruction on first post, I can run stunnel again.
    But when access whm using https on port 2087, I got blank page only

    Right now I cant access cpanel and whm using https.
    Anyone know how to fix it?
    Regards,

    Alex.

  11. #11
    Member avijit's Avatar
    Join Date
    Jul 2004
    Location
    India
    Posts
    116

    Default

    run the /usr/local/cpanel/etc/init/startstunnel and then try to see if that allowes the access. Often It can be the firewall. So try iptables -F , iptables -X and see.
    Stop Reymond !! A single conversation with a wise man is better than ten years of study. So....

  12. #12
    Member
    Join Date
    Sep 2001
    Posts
    43

    Default

    Thank's for reply avijit
    I try your instructions, whm using ssl work but I still got blank page
    Regards,

    Alex.

  13. #13
    Member
    Join Date
    Feb 2005
    Posts
    35

    Default

    HI,

    Having this problem also, and all solutions found on this site is not working... kinldy help:

    Code:
    root@server [/etc/xinetd.d]# service cpanel restart
    Stopping cPanel services:                                  [  OK  ]
    Stopping pop3 services:                                    [  OK  ]
    Stopping cPanel log services:                              [  OK  ]
    Stopping cPanel Chat services:                             [  OK  ]
    Stopping Melange Chat services:                            [  OK  ]
    Stopping InterChange services:                             [FAILED]
    Stopping cPanel ssl services:                              [  OK  ]
    
    Stopping mailman services: Shutting down Mailman's master qrunner
    
    Starting eximstats:                                        [  OK  ]
    Starting cPanel services:                                  [  OK  ]
    Starting cPanel Log services:                              [  OK  ]
    Starting pop3 services:                                    [  OK  ]
    Starting cPanel Chat services:                             [  OK  ]
    Starting Melange Chat services:                            [  OK  ]
    Starting cPanel ssl services:                              [FAILED]
    Starting mailman services: Starting Mailman's master qrunner.
    
    
    Jun  9 02:51:32 server stunnel: LOG5[30654:3086792928]: stunnel 4.15 on i686-pc-linux-gnu with OpenSSL 0.9.7a Feb 19 2003
    Jun  9 02:51:32 server stunnel: LOG5[30654:3086792928]: Threading:PTHREAD SSL:ENGINE Sockets:POLL,IPv4 Auth:LIBWRAP
    Jun  9 02:51:32 server stunnel: LOG5[30654:3086792928]: 500 clients allowed
    Jun  9 02:51:32 server stunnel: LOG3[30654:3086792928]: Error binding pop3s to 0.0.0.0:995
    Jun  9 02:51:32 server stunnel: LOG3[30654:3086792928]: bind: Address already in use (98)
    Jun  9 02:51:32 server cpanel: startstunnel startup failed
    I also checked /etx/xinetd.d/ and there is no *pop* file in there and all are disabled except for cpimap. Anybody can help? I already open a ticket, but still waiting..

    Thanks
    Luke

  14. #14
    Member Stephanie_R's Avatar
    Join Date
    Mar 2004
    Posts
    36

    Default

    Starting cPanel ssl services: [FAILED]


    I found the easiest fix to be as below,

    I didn't have tiome to hit the links to other posts so forgive me if I'm duplicating:

    ps -ef | grep stunnel

    kill -9 <PID>

    /etc/init.d/cpanel restart

    Starting eximstats: [ OK ]
    Starting cPanel services: [ OK ]
    Starting cPanel Log services: [ OK ]
    Starting pop3 services: [ OK ]
    Starting cPanel Chat services: [ OK ]
    Starting Melange Chat services: [ OK ]
    Starting cPanel ssl services: [ OK ]

    Then go reset the cert in WHM, all is good.

    As I said if this is a dupe, please forgive my lack of time to read everything through.

  15. #15
    Member
    Join Date
    Feb 2005
    Posts
    35

    Default

    Hi,


    Thanks for the reply, stopping stunnel does not help, coz I think there is a conflict and I don't know where I can find it.. and release it..

    kindly help

Similar Threads & Tags
Similar threads

  1. SSL services has failed, and won't restart
    By schwim in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 09-23-2006, 10:33 AM
  2. Starting cPanel ssl services: [FAILED]
    By sh4ka in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-10-2006, 07:58 PM
  3. Starting cPanel ssl services:[FAILED]
    By meweb in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-12-2005, 09:52 AM
  4. Starting Cpanel6 Services FAILED
    By hostseller in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 07-27-2003, 10:41 PM
  5. Cpanel Starting Services Issues HELP!
    By hostseller in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-24-2003, 10:26 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube