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.

FTP password for user is not defined.

Discussion in 'General Discussion' started by Diego.Vieira, Jul 26, 2011.

  1. Diego.Vieira

    Diego.Vieira Member

    Joined:
    Jul 19, 2010
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    When I try to run "/scripts/cpbackup --force" to test the backup, I got the following:
    Code:
    root@127.0.0.1 [~]# /scripts/cpbackup --force
    [cpbackup] FTP password for diego is not defined.
    [2011-07-26 10:35:08 -0400] warn [cpbackup] Could not write to /var/cpanel/notifications/cpbackup at /usr/local/cpanel/Cpanel/Notify.pm line 134
            Cpanel::Notify::_checkstatusinterval('app', 'cpbackup', 'status', 'FTP password for diego is not defined.', 'interval', 86400) called at /usr/local/cpanel/Cpanel/Notify.pm line 30
            Cpanel::Notify::notification('application', 'cpbackup', 'status', 'FTP password for diego is not defined.', 'priority', 2, 'interval', 86400, 'subject', 'FTP password for diego is not defined.', 'message', 'The exact error was: ', 'msgtype', '') called at /scripts/cpbackup line 863
            main::exit_stderr_log_and_notify('FTP password for diego is not defined.', 'FTP password for diego is not defined.') called at /scripts/cpbackup line 320
    warn [cpbackup] Could not write to /var/cpanel/notifications/cpbackup
    [2011-07-26 10:35:08 -0400] info [cpbackup] FTP password for diego is not defined.
    info [cpbackup] FTP password for diego is not defined.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,449
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You can use this link to do a basic test on the FTP server with your FTP users login details:
    Gene6 FTP Server ™ - Online FTP Test

    Silly question time: Were all details filled in properly in Configure Backup options? I have just setup a remote backup to test here and it is running as expected.
     
  3. Diego.Vieira

    Diego.Vieira Member

    Joined:
    Jul 19, 2010
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Actually, the ftp details are working fine.
    The thing is that the backup that was done last night, made 0kb files on the host.

    And, yes, the details are setup correctly on WHM.

    Thank you!
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,449
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Well, the backup did not complete properly it seems. The FTP user could not login.

    You might try resetting the password and save in the config, and give it another go. If that pass isn't saving properly you might want to click the link at top of forums titled Bugs and put in a ticket.
     
  5. Diego.Vieira

    Diego.Vieira Member

    Joined:
    Jul 19, 2010
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    How do I manually edit the config and set the ftp password?
    Thank you!
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,449
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    WHM > Backup > Configure Backup, FTP Backup Password (Remote FTP Backup Only)
     
  7. 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
    I wouldn't necessarily recommend editing it, but /etc/cpbackup.conf.shadow file has this entry for the password in it:

    Code:
    BACKUPFTPPASS passwordhere
    Where passwordhere is the FTP password. Also, please check the permissions and mutability options on that file:

    Code:
    lsattr /etc/cpbackup.conf.shadow && ls -lah /etc/cpbackup.conf.shadow
    You should get a return such as the following:

    Code:
    ------------- /etc/cpbackup.conf.shadow
    -rw------- 1 root root 24 Jul 26 10:00 /etc/cpbackup.conf.shadow
     
  8. Diego.Vieira

    Diego.Vieira Member

    Joined:
    Jul 19, 2010
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Great, everything is good now!!
    Thanks a lot
     
Loading...

Share This Page