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

command fail. return code 49

hi guys,
we've got an error on updating ffdb database on our FortiGate.
our device (FG400E - forios 7.0) is in an isolated part of our network and we have to
update it manually. when I run the command for (ffdb update database) it says:
"command fail. return code 49".
would you please tell me what exactly this error means?
thanks.

screenshot.png

 

25 REPLIES 25
AEK
Honored Contributor

Hello

I think the issue may be related with some FTP compatibility issue.

Try the following:

- Check connection logs on FTP server

- Enable FTP debug on FGT and check what's wrong in the debug logs

- Then tune the FTP server or try with another one

 

AEK
AEK
Forti_New
New Contributor

Hi AEK, thank you for your reply. 

i dont think this error is related to our tftp compatibility issue as it says (get other objects from tftp server OK). because the file has completely uploaded to the device and other files such as antivirus, application control and etc are updated correctly as well. just this ffdb file has this problem. 
any one else had face this problem?

Bodyak
New Contributor II

Hello. Also faced this problem. Did all sorts of ftp debugging. Since the volume of ffdb signatures has increased to 37mb since August, we cannot update. A device with firmware 7.0.3 build0237 is updated, but a device with firmware 7.0.6 is not.

AEK
Honored Contributor

So you got it Bodyak.. tftp supports no more then 32MB files.

tftp is old world protocol, try your restore command with scp or ftp.

AEK
AEK
Bodyak
New Contributor II

Thanks for the answer. But we update everything via ftp server. And as I wrote above, the update passes on firmware 7.0.3, but not on firmware 7.0.6.

command: execute restore other-objects ftp ffdb.pkg 192.0.27.18 

The ftp server is filezilla

AaronD_
New Contributor

Hi,

Does the update apply regardless of the error? I tried this today on 7.0.6 and got the same error but noticed the IPs were updated.

Forti_New

Hi AaronD_,

would you please tell us which database is updating with ffdb package to check it is updated or not? we should check it by diag autoupdate versions command right? so what is the name of database that updates with ffdb package.

thanks.

AaronD_

This is what I see under diag autoupdate versions.

 

Internet-service Full Database
---------
Version: 7.02621
Contract Expiry Date: n/a
Last Updated using manual update on Wed Aug 24 07:45:00 2022
Last Update Attempt: Wed Aug 24 07:46:51 2022
Result: Connectivity failure

Forti_New

I checked and Internet-service database didn't updated. is there any one who has updated this database via ftp instead of tftp? maybe it's a limitation of file transferring size on tftp?

best reguards. 

Labels
Top Kudoed Authors