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.

Can I do a manual Pure FTP Reinstall

Discussion in 'General Discussion' started by hostb, May 21, 2011.

  1. hostb

    hostb Member

    Joined:
    Jul 14, 2009
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Hi There.

    My PureFTP server seems to be corrupt. Currently I have switched to the alternative (ProFTP) but would like to switch back to the lighter PureFTP.

    Can I do a manual reinstall of PureFTP without loosing all of the users accounts?

    Below is a integrity check error I receive when I switch the server back to PureFTP.

    Thanks.


    The following list of files have FAILED the md5sum comparison test. This means that the file has been changed in some way. This could be a result of an OS update or application upgrade. If the change is unexpected it should be investigated:

    /usr/bin/ftpcount: FAILED open or read
    /usr/bin/ftptop: FAILED open or read
    /usr/bin/ftpwho: FAILED open or read
    /usr/bin/prxs: FAILED open or read
    /usr/sbin/ftpdctl: FAILED open or read
    /usr/sbin/ftpscrub: FAILED open or read
    /usr/sbin/ftpshut: FAILED open or read
    /usr/sbin/in.proftpd: FAILED open or read
    /usr/sbin/proftpd: FAILED open or read
    /etc/init.d/proftpd: FAILED open or read
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    That message is from CSF/LFD and can be 'ignored' for the most part as you know why those files were flagged, you just switched FTP servers. Restarting CSF/LFD will sort that.

    Switching FTP server back should do what you want. Of course be sure to restart CDF/LFD afterward so it doesn't keep bugging you about changed files.

    You shouldn't lose any accounts I don't think.
     
  3. hostb

    hostb Member

    Joined:
    Jul 14, 2009
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Thanks.
    I have switched a couple of times.
    But pureftp service is always marked as down.
    Thats is why I switched.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Is ftpd checked for Enabled and Monitor in: WHM > Service Configuration > Service Manager?
     
  5. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Can you provide your cPanel version and operating system version?

    Code:
    cat /usr/local/cpanel/version
    cat /etc/redhat-release
    Next, what happens when you switch to pure-ftpd for the status details on restart attempts?

    Code:
    /scripts/restartsrv_pureftpd status
    Please tail the cPanel error logs in a second window on pure-ftpd restart to see if any messages are outputting:

    Code:
    tail -fn0 /usr/local/cpanel/logs/error_log
    Please check if anything else is running on the ftpd port on the restart:

    Code:
    lsof -i :21
    Finally, please check /etc/pure-ftpd.conf file that the following is not uncommented:

    Code:
    #CallUploadScript yes
    This option will prevent pure-ftpd from running if someone has uncommented it. It should be commented out with the # at the beginning. If it is uncommented, please add a # to the beginning of the line and restart pure-ftpd again.

    Please also check that /var/cpanel/conf/pureftpd/main does not have CallUploadScript listed in it. I've seen ftp_clamscan installed by some users change the variable to have CallUploadScript into our /var/cpanel/conf/pureftpd/main file and then pure-ftpd ceased working.
     
  6. hostb

    hostb Member

    Joined:
    Jul 14, 2009
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Thanks so much for your reply.
    Now pro ftp seems not to work either.

    Because of the WHM updates stall mid way.

    Below are answers to your questions.[

    B]cat /usr/local/cpanel/version =[/B] 11.30.0.23
    cat /etc/redhat-release = CentOS release 5.6 (Final)

    /scripts/restartsrv_pureftpd status = Ftp server is not installed. Exiting. at /usr/local/cpanel/Cpanel/RestartSrv.pm line 285.

    tail -fn0 /usr/local/cpanel/logs/error_log = The log file is massive. Should I just cop in the whole thing?

    lsof -i :21 = Nothing so I guess nothing else is running.


    /etc/pure-ftpd.conf = Only the below files exist.
    proftpd.conf proftpd.conf.bytes
    proftpd.conf.rpmsave pure-ftpd.conf.rpmnew
    pure-ftpd.conf.rpmsave
    pure-ftpd.pem
     
  7. hostb

    hostb Member

    Joined:
    Jul 14, 2009
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    UPDATE:

    Pureftp running but not working.
    File listings are timing out

    I used the post at http://forums.cpanel.net/f5/pure-ftp-help-187152.html to fix it.

    So first I disabled all ftp and did a reboot.

    Reinstalled pureftp
    Code:
    /scripts/ftpup --force
    This gave me back the missing
    /etc/pure-ftpd.conf

    In this I commented out
    Code:
    CallUploadScript yes
    I also removed the same line from
    Code:
    /var/cpanel/conf/pureftpd/main
     
    #7 hostb, Jun 2, 2011
    Last edited: Jun 2, 2011
  8. hostb

    hostb Member

    Joined:
    Jul 14, 2009
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    ANOTHER UPDATE,

    On testing ftp server is running but can't be used.
    No directory listings are retreived etc ...

    Help...
     
  9. keddie

    keddie Well-Known Member

    Joined:
    Nov 17, 2007
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    My pure-ftp stopped working this morning after upcp ran.

    I followed the advice gieven here and found calluploadscript in both of the suggested locations, probably left over from an old clamav install. Removing it from both locations solved the issue - thanks!
     
  10. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello hostb,

    At this point, if all the suggestions haven't worked to get pure-ftpd working, please submit a ticket using WHM > Support Center > Contact cPanel or using the link in my signature.

    Thanks!
     
  11. hostb

    hostb Member

    Joined:
    Jul 14, 2009
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Hi

    Thanks I seem to have FTP up again. But the update still does not complete and is hanging at 52%.
    The last few lines are


    Code:
    [20110602.201550]    - Processing command `/usr/local/cpanel/scripts/compilerscheck`
    [20110602.201550]    - Processing command `/usr/local/cpanel/scripts/updatephpconf`
    [20110602.201550]    - Processing command `/usr/local/cpanel/scripts/checksuexecpatch`
    [20110602.201550]   Processing: Updating email whitelists
    [20110602.201550]    - Processing command `/usr/local/cpanel/bin/rim_bis_update --quiet`
    [20110602.201551]   Processing: Purging old comet files
    [20110602.201551]    - Processing command `/usr/local/cpanel/bin/purge_dead_comet_files --quiet`
    [20110602.201551]   Processing: Updating ftp
    [20110602.201551]    - Processing command `/usr/local/cpanel/scripts/ftpup`
    [20110602.201556]      [3160] proftpd: no process killed
    [20110602.201556]      [3160] proftpd: no process killed
    [20110602.201556]      [3160] pure-ftpd-1.0.32-1.tls is already installed.  Use --force to reinstall.
    [20110602.201556]   Processing: Updating bandmin
    [20110602.201556]    - Processing command `/usr/local/cpanel/scripts/bandminup`
     
  12. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Have you opened up a ticket as I suggested? If not, tickets are complimentary at no extra cost. Please post the ticket number here upon submitting one. Thanks!
     
  13. hostb

    hostb Member

    Joined:
    Jul 14, 2009
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Tristan

    Thanks for your help,

    Request id is: 1572938.
     
    #13 hostb, Jun 3, 2011
    Last edited: Jun 3, 2011
  14. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You could PM me the email address that you used. I couldn't find it via your IP number in our system.
     
Loading...

Share This Page