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

Author
Nishad
New Member
  • Total Posts : 13
  • Scores: 0
  • Reward points: 0
  • Joined: 2016/01/13 07:01:50
  • Status: offline
2016/01/13 07:20:27 (permalink)
0

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

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

12 Replies Related Threads

    ede_pfau
    Expert Member
    • Total Posts : 6514
    • Scores: 565
    • Reward points: 0
    • Joined: 2004/03/09 01:20:18
    • Location: Heidelberg, Germany
    • Status: offline
    Re: Row log backup error " command failed. Error code -1 " 2016/01/15 09:56:05 (permalink)
    0
    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.

    Ede

    " Kernel panic: Aiee, killing interrupt handler!"
    #2
    Nishad
    New Member
    • Total Posts : 13
    • Scores: 0
    • Reward points: 0
    • Joined: 2016/01/13 07:01:50
    • Status: offline
    Re: Row log backup error " command failed. Error code -1 " 2016/01/18 05:21:42 (permalink)
    0
    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"  
    #3
    ericlei
    New Member
    • Total Posts : 1
    • Scores: 0
    • Reward points: 0
    • Joined: 2016/10/10 23:46:33
    • Status: offline
    Re: Row log backup error " command failed. Error code -1 " 2017/01/04 01:13:00 (permalink)
    0
    i got the same problem,already fix?
    #4
    cyber_area
    New Member
    • Total Posts : 2
    • Scores: 0
    • Reward points: 0
    • Joined: 2016/12/12 01:54:02
    • Status: offline
    Re: Row log backup error " command failed. Error code -1 " 2017/02/05 23:14:42 (permalink)
    0
    how to fix the problem? i got the same problem. help me
    #5
    AtiT
    Platinum Member
    • Total Posts : 479
    • Scores: 42
    • Reward points: 0
    • Joined: 2012/04/18 12:13:27
    • Location: Prague / Czech Republic
    • Status: offline
    Re: Row log backup error " command failed. Error code -1 " 2017/02/06 00:18:45 (permalink)
    0
    Just to be sure - are you executing the backup command under the management vdom (root by default)?

    AtiT
    --------------------
    NSE 8, CCNP R+S
    #6
    vivianwu_FTNT
    New Member
    • Total Posts : 15
    • Scores: 0
    • Reward points: 0
    • Joined: 2014/03/03 12:04:38
    • Status: offline
    Re: Row log backup error " command failed. Error code -1 " 2017/02/10 08:40:28 (permalink)
    0
    "exe backup disk alllogs" is per-vdom command.
     
    make sure under root vdom you can ping your ftp server.  
     
    for example:
    ### vdom1 can ping ftp 
    B (vdom1) # exe ping 172.16.200.55
    PING 172.16.200.55 (172.16.200.55): 56 data bytes
    64 bytes from 172.16.200.55: icmp_seq=0 ttl=64 time=0.2 ms
    64 bytes from 172.16.200.55: icmp_seq=1 ttl=64 time=0.2 ms
     
    B (vdom1) # exe backup disk log ftp 172.16.200.55 root 123456 event
    Please wait...
    Connect to ftp server 172.16.200.55 ...
    Sent log file elog.65533 to ftp server as event_FGT5HD3915800164_vdom1_20170210_083329 OK.
    Please wait...
    Connect to ftp server 172.16.200.55 ...
    Sent log file elog.65534 to ftp server as event_FGT5HD3915800164_vdom1_20170209_234327 OK.
    Please wait...
    Connect to ftp server 172.16.200.55 ...
    Sent log file elog.65535 to ftp server as event_FGT5HD3915800164_vdom1_20170208_234324 OK.
    Please wait...
    Connect to ftp server 172.16.200.55 ...
    Sent log file elog.0 to ftp server as event_FGT5HD3915800164_vdom1_20170207_235322 OK.
     
     
     
     
     
    #7
    ck888
    New Member
    • Total Posts : 16
    • Scores: 0
    • Reward points: 0
    • Joined: 2021/06/22 07:55:15
    • Status: offline
    Re: Row log backup error " command failed. Error code -1 " 2021/10/12 23:27:51 (permalink)
    0
    HI,
     
    I face the same issue, anyone of you fix it?
     
    any debug command could troubleshoot.?
     
    Thanks
    #8
    vivianwu_FTNT
    New Member
    • Total Posts : 15
    • Scores: 0
    • Reward points: 0
    • Joined: 2014/03/03 12:04:38
    • Status: offline
    Re: Row log backup error " command failed. Error code -1 " 2021/10/13 17:00:32 (permalink)
    0
    What is the fos version? Just make sure ftp server is reachable from the FGT management vdom. 
    #9
    ck888
    New Member
    • Total Posts : 16
    • Scores: 0
    • Reward points: 0
    • Joined: 2021/06/22 07:55:15
    • Status: offline
    Re: Row log backup error " command failed. Error code -1 " 2021/10/13 17:10:01 (permalink)
    0
    Hi Vivian,
     
    There is no vdom enable. The FortiOS version is 6.2.7 and confirm the connection good from FGT to FTP server. 
     
    It's not all log have the error, only certain log.
     
    do you know any debug command could troubleshoot.?
    #10
    vivianwu_FTNT
    New Member
    • Total Posts : 15
    • Scores: 0
    • Reward points: 0
    • Joined: 2014/03/03 12:04:38
    • Status: offline
    Re: Row log backup error " command failed. Error code -1 " 2021/10/13 17:18:21 (permalink)
    0
    Can you post the output for failed log type? 
     
    exe log filter device disk
    exe log list xxx (xxx is the log type)
    exe backup disk log ftp x.x.x.x user pass xxx 
     
    Here is what I got on 6.2.0
    100D-1 # exe log list 10
    rlog.64959 7824 1417 Wed Oct 13 17:04:01 2021
    1 rlog file(s) found.
    Uncompressed Total: 7 KB Compressed Total: 1 KB
    100D-1 # exe backup disk log ftp 172.16.200.55 username pass app-ctrl
    Please wait...
    Connect to ftp server 172.16.200.55 ...
    Sent log file rlog.64959 to ftp server as disk-app-ctrl_FG100D3G13810517_root_20211013_170401_64959 OK.
    #11
    ck888
    New Member
    • Total Posts : 16
    • Scores: 0
    • Reward points: 0
    • Joined: 2021/06/22 07:55:15
    • Status: offline
    Re: Row log backup error " command failed. Error code -1 " 2021/10/13 21:50:19 (permalink)
    0
    HI Vivian
     
    Here is what i got. i'm going backup all log files.
     
    100D-1 # exe log list 0
    tlog.65516 125184242 9060014 Sat Oct 9 00:00:00 2021
    tlog.65515 291196187 20589922 Sun Oct 10 00:00:00 2021
    tlog.65514 289291580 20220670 Mon Oct 11 00:00:00 2021
    tlog.65513 286981423 19698449 Tue Oct 12 00:00:00 2021
    tlog.65512 291608258 19997269 Wed Oct 13 00:00:00 2021
    tlog.65511 300448586 20972903 Wed Oct 13 21:44:11 2021
    tlog.65510 29605088 2037185 Thu Oct 14 00:00:00 2021
    tlog.65509 171201162 11781236 Thu Oct 14 12:45:28 2021
    8 tlog file(s) found.
    Uncompressed Total: 1702 MB Compressed Total: 118 MB

    100D-1 # exe backup disk alllogs ftp 10.10.10.180 ftp ftp
    Connect to ftp server 10.10.10.180:21...
    Error: Sent log file tlog.65289 to ftp server as via vdom root failed.
    Please wait...
    #12
    vivianwu_FTNT
    New Member
    • Total Posts : 15
    • Scores: 0
    • Reward points: 0
    • Joined: 2014/03/03 12:04:38
    • Status: offline
    Re: Row log backup error " command failed. Error code -1 " 2021/10/14 09:27:52 (permalink)
    0
    it is interesting. there is no tlog.65289 under exe log list 0.  Could you list "fnsysctl ls -al /var/log/root/tlog*" 
    #13
    Jump to:
    © 2021 APG vNext Commercial Version 5.5