Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
dlaureys
New Contributor

automated backup to the cloud failing

I set up an automated backup job as follows:

config system auto-script
    edit "backup"
        set interval 604800
        set repeat 0
        set start auto
        set script "execute backup config management-station Weekly-Cloud-Backup"
    next
end

 

When I run this script, it fails with: 

########## script name: backup ##########

========== #1, 2016-08-03 13:48:38 ==========
FBCNC-FGT90D $ execute backup config management-station Weekly-Cloud-Backup

Mapping boot device /dev/sdb to /dev/sg1

Checking spareblock on /dev/sg1...

SCSI Status: Good


Plane No Spare Block Counts
1 1534
2 1534
Current admin user is not super_admin.
Command fail. Return code -37

 

Any idea on how to make this work?

10 REPLIES 10
MikePruett
Valued Contributor

Silly question to ask I know....but is the account you are executing it from a super_admin as it requires?

Mike Pruett Fortinet GURU | Fortinet Training Videos
dlaureys

I can run the command below from the cli under my account just fine.

execute backup config management-station Weekly-Cloud-Backup

But if it runs as part of the auto-script, it fails.

So I don't know if those scripts are run as a system user, or a low permission user account.

dlaureys
New Contributor

In case anyone is interested, I opened a ticket with support about this and this is a know bug.

Will be resolved in 5.4.2

Mark
New Contributor

Any update on this? I am experiencing the exact same issue/error.

My unit has been updated to 5.4.2 but still not working..?

NeilG

With 60D running 5.4.3:

 

This from the cli interface with super_admin level user.

 

XXXXXXXXXX # exec auto-script start WeeklyBak 
Script WeeklyBak is already running.
 
XXXXXXXXXXX # exec auto-script status 
 <Enter>
 
XXXXXXXXXXXX # exec auto-script status 
	WeeklyBak <-- running, size: 242
 
XXXXXXXXXXXX # exec auto-script result 
Please specify script name.
 
XXXXXXXXXXXX # exec auto-script result WeeklyBak 
Script WeeklyBak output:
########## script name: WeeklyBak ##########
 
========== #1, 2017-02-10 16:00:21 ==========
XXXXXXXXXXXX $  execute backup config management-station Weekly-Cloud-Backup
Current admin user is not super_admin.
Command fail. Return code -37
 
 
NeilG

Also here is the relevant configuration:

 

show system auto-script WeeklyBackup config system auto-script     edit "WeeklyBackup"         set interval 604800         set repeat 0         set start auto         set script "execute backup config management-station Weekly-Cloud-Backup"     next end

 

JDMurphy
New Contributor

I've been trying to get this same auto-script working for a couple weeks now also. 

 

Even on 5.4.4 build 1117, still failing.

Mark
New Contributor

I have Ticket #1987327 open with support, last update is this will be fixed in 5.6.0 but no ETA on the release...

NeilG

Thanks for providing the tick# Mark,

 

-N

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors