Skip to main content
Nishad
New Member
January 13, 2016
Question

Row log backup error " command failed. Error code -1 "

  • January 13, 2016
  • 1 reply
  • 23063 views

hi,

 

I am trying to take row log backup of my primary Fortigate log disk. Fortigate failed to backup vdom root. 

 

Connect to ftp server 1x.xx.xx.x ... Error: Sending log file /var/log/root/rlog.xxxx to ftp server via vdom root failed. Please wait...

 

Connect to ftp server 1x.xx.xx.x ... Error: Sending log file /var/log/root/wlog.xxxx to ftp server via vdom root failed. Please wait...

 

Connect to ftp server 1x.xx.xx.x ... Error: Sending log file /var/log/root/wlog.xxxx to ftp server via vdom root failed. Command fail. Return code -1

 

 

 

Kindly help me.. Why this is happning.?

    1 reply

    ede_pfau
    SuperUser
    SuperUser
    January 15, 2016

    Please post the command you're using.

    Does the FGT have a route to the target server?

    Test this: can you "exec ping 1x.xxx.xxx.xxx" ?

    Which source IP address is used (for some FGT initiated traffic you can set the source address).

     

    From what I see here (which is quite few information) I'd guess the routing isn't correct.

    Nishad
    NishadAuthor
    New Member
    January 18, 2016

    Hi thx for the reply..

     

    I am trying to take raw log backup to FTP. The command is as follows. 

    execute backup disk alllogs ftp [xx.xx.xx.xx]:[xxxx] ftp_username ftp_password.

     

    FGT has route for the ftp server and I am able to ping to it. some file were getting copied but files that are situated in vdom-root that files are not getting transferred to ftp. And at the end I am getting error "command failed, error code -1"  

    ericlei
    New Member
    January 4, 2017

    i got the same problem,already fix?