Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED Ftp failed to restart

Discussion in 'General Discussion' started by Osama Tariq, May 4, 2016.

Tags:
  1. Osama Tariq

    Osama Tariq Well-Known Member

    Joined:
    Nov 27, 2014
    Messages:
    206
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Lahore, Pakistan
    cPanel Access Level:
    Root Administrator
    Twitter:
    Code:
    # /scripts/restartsrv_pureftpd
    Waiting for “pureftpd” to restart ………warn [restartsrv_base] The 'pureftpd' service's PID file '/var/run/pure-ftpd.pid' did not appear after 10 seconds.
    
    …warn [restartsrv_base] The 'pureftpd' service's PID file '/var/run/pure-ftpd.pid' did not appear after 10 seconds.
    
    …warn [restartsrv_base] The 'pureftpd' service's PID file '/var/run/pure-ftpd.pid' did not appear after 10 seconds.
    
    …failed.
    
    Service Error
        (XID vv6ane) The “pureftpd” service failed to start.
    
    Startup Log
        Starting pure-config.pl: [  OK  ]
        Starting pure-authd:
    
    pureftpd has failed. Contact your system administrator if the service does not automagically recover.
     
  2. ssfred

    ssfred Well-Known Member

    Joined:
    Jan 6, 2012
    Messages:
    64
    Likes Received:
    4
    Trophy Points:
    58
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello

    Check whether /var is writable and is not filled up. You can simply check it by creating a file using the command

    touch /var/test1
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Osama Tariq

    Osama Tariq Well-Known Member

    Joined:
    Nov 27, 2014
    Messages:
    206
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Lahore, Pakistan
    cPanel Access Level:
    Root Administrator
    Twitter:
    It's not filled up and created successfully.
     
  4. waqas_websouls

    PartnerNOC

    Joined:
    Dec 9, 2014
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    The reason for this error is that Pure-ftpd service doesn’t work with {CallUploadScript} set to (yes) in /etc/pure-ftpd.conf configuration file. That is because the pure-uploadscript service is not getting started while restarting the pure-ftpd service.

    Run the following command via SSH for fix this issue:

    # /usr/sbin/pure-uploadscript -B -r /etc/pure-ftpd.conf

    Restart the service :

    # /etc/init.d/pure-ftpd restart
     
    cornishman33 likes this.
  5. Osama Tariq

    Osama Tariq Well-Known Member

    Joined:
    Nov 27, 2014
    Messages:
    206
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Lahore, Pakistan
    cPanel Access Level:
    Root Administrator
    Twitter:
    great it's worked for me. Thanks for sharing :)
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Axell35

    Axell35 Member

    Joined:
    Nov 10, 2006
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    153
    Thank you, worked like a charm

    Running Centos 6.8 and cPanel 60.0
     
    cPanelMichael likes this.
  8. cornishman33

    cornishman33 Member

    Joined:
    Jun 25, 2014
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Found this via a google search, and it worked perfectly, thank you.
     
    cPanelMichael likes this.
  9. arjanvr

    arjanvr Well-Known Member

    Joined:
    Dec 13, 2013
    Messages:
    113
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello,

    Sorry for bumping old threat

    At every reboot i keep getting that ftp service failed and i run the fix mentioned here:

    "Run the following command via SSH for fix this issue:

    # /usr/sbin/pure-uploadscript -B -r /etc/pure-ftpd.conf

    Restart the service :

    # /etc/init.d/pure-ftpd restart"

    and it works again but why do i need to do this after every reboot.. what can be the unline cause? I only have this on one vps.

    Thanks
     
  10. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @arjanvr,

    Please post the output from the following command:

    Code:
    grep Call /etc/pure-ftpd.conf
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. arjanvr

    arjanvr Well-Known Member

    Joined:
    Dec 13, 2013
    Messages:
    113
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Sorry for my extreme late response, i missed it somehow..

    [~]# grep Call /etc/pure-ftpd.conf
    CallUploadScript yes
    [~]#
     
  12. garconcn

    garconcn Well-Known Member

    Joined:
    Oct 29, 2009
    Messages:
    133
    Likes Received:
    6
    Trophy Points:
    68
    I've checked all my servers and only found "CallUploadScript no" on two servers, both servers having Imunify360 installed. Other servers without Imunify360 using default cpanel setting "#CallUploadScript yes". Can anyone confirm this on your servers?
     
  13. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @arjanvr,

    I've seen this happen on systems that previously utilized a third-party application such as CXS. Upon removing the third-party application (which made use of /usr/sbin/pure-uploadscript) , the "CallUploadScript yes" value was left in-place. To solve the issue, you can modify or add "CallUploadScript no" in /var/cpanel/conf/pureftpd/main using the instructions at:

    FTP FAQ - Version 68 Documentation - cPanel Documentation

    Hi @garconcn,

    The default value in the Pure-FTP configuration file included with cPanel & WHM is as follows:

    Code:
    # CallUploadScript             yes
    The "#" indicates the line is commented, and thus the option is disabled. It's likely your third-party application that's setting the value to "CallUploadScript no", however note that in either case the option is disabled.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice