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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Prob with Backup on remote FTP Server

Discussion in 'General Discussion' started by ezztro, Aug 8, 2004.

  1. ezztro

    ezztro Well-Known Member

    Joined:
    Nov 11, 2003
    Messages:
    148
    Likes Received:
    0
    Trophy Points:
    166
    Hi,

    im using the backupfunktion with a remote ftp server. No problems, but in the last night o found this in one of the logfiles.

    Can't call method "login" on an undefined value at /scripts/cpbackup line 378.

    What can i do ?
    The Remote Loginname und PW is ok.

    WHM 9.4.0 cPanel 9.4.1-C135
    RedHat 9 i686 - WHM X v3.1.0

    Thank you
     
  2. sloop

    sloop Well-Known Member

    Joined:
    May 4, 2003
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    north carolina
    I'm getting the same error. this is in my upcp cron email, at the end where it is doing FTP backups:

     
  3. picoyak

    picoyak Well-Known Member

    Joined:
    Jun 10, 2004
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    156
    Me too

    looks like an issue with the username or pass

    Line 378: $ftp->login("$ftpuser",$ftppass);
     
  4. picoyak

    picoyak Well-Known Member

    Joined:
    Jun 10, 2004
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    156
    Did some testing, seems it's the pass that isn't getting passed into var $ftppass. I'll try to figure out why.
     
  5. picoyak

    picoyak Well-Known Member

    Joined:
    Jun 10, 2004
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    156
    Ok, well, I futzed around with what seemed to be obvious, that there was a var not being passed. Now I know that wasn't the case.

    My problem was that I has limited the server I was backing up to for sftp only... and I totally forgot. So apparently when no ftp session could be aquired, cpbackup spat out the "Can't call method "login" on an undefined value at /scripts/cpbackup line 378" error. Dunno why precisely, but it did.

    All working as it should now.

    Note to self: prune your unnecessary download files before initiating backup! heh :p
     
  6. ramprage

    ramprage Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    655
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Canada
Loading...

Share This Page