The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Stunnel stuck on "failed" after cPanel discontinued support

Discussion in 'General Discussion' started by hello-electro, Aug 9, 2016.

Tags:
  1. hello-electro

    hello-electro Member

    Joined:
    Aug 9, 2016
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Maryland
    cPanel Access Level:
    Root Administrator
    Hello. I am having an issue where I can not get the stunnel service to stop/start or enable/disable. Anytime I run the following status checks i get:

    Code:
    [root@cloud ~]# systemctl status stunnel
    ● stunnel.service - cPanel ssl services
       Loaded: loaded (/etc/systemd/system/stunnel.service; disabled; vendor preset: disabled)
       Active: failed (Result: exit-code) since Tue 2016-08-09 16:09:46 EDT; 1h 2min ago
    
    Aug 09 16:09:46 cloud.XXX.co systemd[1]: Starting cPanel ssl services...
    Aug 09 16:09:46 cloud.XXX.co systemd[1]: stunnel.service: control process exited, code=exited status=203
    Aug 09 16:09:46 cloud.XXX.co systemd[1]: Failed to start cPanel ssl services.
    Aug 09 16:09:46 cloud.XXX.co systemd[1]: Unit stunnel.service entered failed state.
    Aug 09 16:09:46 cloud.XXX.co systemd[1]: stunnel.service failed.
    Because I can't stop the service it just sits as failed, so i am always showing a degraded service:

    Code:
    [root@cloud ~]# systemctl status
    ● cloud.XXX.co
        State: degraded
         Jobs: 0 queued
       Failed: 1 units
        Since: Tue 2016-08-09 02:56:53 EDT; 12h ago
    If I look at the journal records I see this:

    Code:
    [root@cloud ~]# journalctl -a | grep stunnel
    Aug 09 02:57:01 cloud.XXX.co systemd[1248]: Failed at step EXEC spawning /usr/local/cpanel/startstunnel: No such file or directory
    Aug 09 02:57:01 cloud.XXX.co systemd[1]: stunnel.service: control process exited, code=exited status=203
    Aug 09 02:57:01 cloud.XXX.co systemd[1]: Unit stunnel.service entered failed state.
    Aug 09 02:57:01 cloud.XXX.co systemd[1]: stunnel.service failed.
    
    When I explored the referenced stunnel.service file I noticed it is referencing the removed cPanel directories mentioned in your release notes about stopping support for stunnel.

    Code:
    [root@cloud ~]# cat /etc/systemd/system/stunnel.service
    [Unit]
    Description=cPanel ssl services
    PartOf=cpanel.service
    After=cpanel.service
    ConditionPathExists=/var/cpanel/cpanel.config
    # this is used by a DNS only server and should not block on /var/cpanel/dnsonly #
    
    [Service]
    Type=forking
    ExecStart=/usr/local/cpanel/startstunnel
    
    [Install]
    WantedBy=multi-user.target
    I am assuming that this file is causing stunnel to fail because there is now no directives to start within cpanel files. I am unsure how to fix this issue so that I can just properly disable stunnel. I have tried everything from various start/stop/restart commands, to disable and have since restarted all services. Any advice on this would be much appreciated. Thank you so much!

    OS and CP versions:
    CENTOS 7.2 x86_64
    WHM 58.0 (build 17) autoupdating to 58.0.19 tonight.

    XXX = intentional domain redaction
     
    #1 hello-electro, Aug 9, 2016
    Last edited by a moderator: Aug 9, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    The stunnel service is disabled in cPanel 58, however the remaining configuration files associated with this service are removed in cPanel version 60. Here's the output on a test system running cPanel 60:

    Code:
    # ls  /etc/systemd/system/stunnel.service
    ls: cannot access /etc/systemd/system/stunnel.service: No such file or directory
    Thank you.
     
  3. hello-electro

    hello-electro Member

    Joined:
    Aug 9, 2016
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Maryland
    cPanel Access Level:
    Root Administrator
    To confirm, what I am reporting is to be expected and will be resolved once v60 is released for production?

    Thanks!
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Yes, this is correct.

    Thanks!
     
  5. hello-electro

    hello-electro Member

    Joined:
    Aug 9, 2016
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Maryland
    cPanel Access Level:
    Root Administrator
    Great. Thanks for the info!
     
    cPanelMichael likes this.
Loading...

Share This Page