Unknown Command (Code=500) Uploading to FTP

Questions about Cobian Reflector
Post Reply
sedandevious
Posts: 4
Joined: 23 Feb 2022, 22:37

Unknown Command (Code=500) Uploading to FTP

Post by sedandevious »

I just switched my tasks over to the freshly install Cobian Reflector and am testing each task. I imported my tasks from Gravity 11.

The backup tasks all ran fine, but there are problems with the final task, which is to upload the backup files to a server via FTP.

Running the task, Reflector is failing with error code 500 on each file. No other information is provided.

This task ran fine under Gravity 11.

The task type is incremental.

So in this example, these are the files on both systems. NOTE that the task log states there are 5 files.
1. File with date 2-14 doesn't exist on my PC, nor on server
2. File with date 2-16 exists on PC and server
3. File with date 2-21 exists on PC and server
4. File with date 2-23 exists on PC, but not on server

Code: Select all

14:16:05 *  Backup part for the task "Server Upload" has ended  *
    2022-02-23 14:16:05 *  Number of backed up files: 5. Backup part size: 632.1 MB.  *
    2022-02-23 14:16:05 Connecting to [redacted] ...
    2022-02-23 14:16:05 Connected to [redacted].
    2022-02-23 14:16:05 Logged in into the remote server.
    2022-02-23 14:16:06 Uploading the directory "C:\Backup\Google Drive Backup" to "/backup/Google Drive Backup"...
ERR 2022-02-23 14:27:48 An error occurred while uploading the file "C:\Backup\Google Drive Backup\Google Drive 2022-02-14 00;00;07 (Full).zip" to "/backup/Google Drive Backup": Unknown command (code=500)
ERR 2022-02-23 14:27:48 An error occurred while uploading the file "C:\Backup\Google Drive Backup\Google Drive 2022-02-21 00;00;07 (Full).zip" to "/backup/Google Drive Backup": Unknown command (code=500)
ERR 2022-02-23 14:27:48 An error occurred while uploading the file "C:\Backup\Google Drive Backup\Google Drive 2022-02-23 00;00;06 (Full).zip" to "/backup/Google Drive Backup": Unknown command (code=500)
    2022-02-23 14:27:48 The directory "C:\Backup\Google Drive Backup" has been uploaded to "/backup/Google Drive Backup".
    2022-02-23 14:27:48 Disconnected from [redacted].
Questions:
1. Where is Reflector getting the information for a file that doesn't exist, the one dated 2-14.
2. Why is Reflector trying to upload a file that already exists on the server, the one dated 2-21. It didn't do this with the file dated 2-16.
3. What is error code 500 and how do I fix the problem?
sedandevious
Posts: 4
Joined: 23 Feb 2022, 22:37

Re: Unknown Command (Code=500) Uploading to FTP

Post by sedandevious »

I tried running the task a second time to see if anything changed. It seems to have forgotten about the non-existent file dated 2-14 and now tried to upload the filed dated 2-16, which it ignored the first time.

Code: Select all

ERR 2022-02-23 14:54:16 An error occurred while uploading the file "C:\Backup\Chrome Backup\Default 2022-02-16 02;00;37 (Full).zip" to "/backup/Chrome Backup": Unknown command (code=500)
ERR 2022-02-23 14:54:16 An error occurred while uploading the file "C:\Backup\Chrome Backup\Default 2022-02-21 02;00;51 (Full).zip" to "/backup/Chrome Backup": Unknown command (code=500)
ERR 2022-02-23 14:54:16 An error occurred while uploading the file "C:\Backup\Chrome Backup\Default 2022-02-23 02;00;40 (Full).zip" to "/backup/Chrome Backup": Unknown command (code=500)
User avatar
cobian
Site Admin
Posts: 4713
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Unknown Command (Code=500) Uploading to FTP

Post by cobian »

It seems like you are uploading from a Google Drive. Are the files offline? If not you will get File not found errors because the fie don't actually exist. You may have a placeholder only.
--
Luis Cobian
Cobian Backup's creator
User avatar
cobian
Site Admin
Posts: 4713
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Unknown Command (Code=500) Uploading to FTP

Post by cobian »

Error 500 means that the client is sending a command that the server doesn't understand. Hard to say if I don't know your client configuration AND the server you are using. Often /but not always/ is the Show hidden files option that is not undesrstood.
--
Luis Cobian
Cobian Backup's creator
sedandevious
Posts: 4
Joined: 23 Feb 2022, 22:37

Re: Unknown Command (Code=500) Uploading to FTP

Post by sedandevious »

I have Google Drive set up so that all the files are local on my PC and synced.

As I said, these errors occur on all my other backups as well, which are all local files. I should not have used the Drive as an example as that is not the issue. The backups are already created. This task is only to copy the backups to a server via FTP.

The FTP configuration is very simple
Host: ftp.server.com
Port: 21
Username: user@server.com
Password: ********
Initial directory: backup
Passive Mode
All other settings are the defaults.

There were no issues in Gravity 11. Only in Reflector after importing task.
Last edited by sedandevious on 23 Feb 2022, 23:49, edited 1 time in total.
User avatar
cobian
Site Admin
Posts: 4713
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Unknown Command (Code=500) Uploading to FTP

Post by cobian »

What kind of server are you using?
--
Luis Cobian
Cobian Backup's creator
sedandevious
Posts: 4
Joined: 23 Feb 2022, 22:37

Re: Unknown Command (Code=500) Uploading to FTP

Post by sedandevious »

It is my domain account at Hostgator.

It's a Unix server.

My storage is not full.

I can transfer the files manually with Filezilla.

Testing the connection works fine via the "test connection" option.

The task can connect and disconnect just fine in Reflector.

It's just the file transfer that Reflector seems to be having an issue with.

I had no issues with the task in Gravity 11 with the same server and connection.

I've tried turning on debug logging, but I get an error: "Warning: the safe mirror directory doesn't seem to exist or is not accessible."

This is a new install of Reflector and all I did was import my tasks.
User avatar
cobian
Site Admin
Posts: 4713
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Unknown Command (Code=500) Uploading to FTP

Post by cobian »

I am guessing this is an issue with the firewall (yours or, most likely, the server's). Can you use active connections with your server?
--
Luis Cobian
Cobian Backup's creator
sedandevious
Posts: 4
Joined: 23 Feb 2022, 22:37

Re: Unknown Command (Code=500) Uploading to FTP

Post by sedandevious »

Ok....

Nothing has changed on my PC and I am using the same server and connection.

What is the difference between Gravity 11 and Reflector that would make you think this is a firewall issue?
User avatar
cobian
Site Admin
Posts: 4713
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Unknown Command (Code=500) Uploading to FTP

Post by cobian »

2 very differents libraries. One written in Delphi in 2001 and this written in C# in 2017... Something is different in the way they work, it seems.
--
Luis Cobian
Cobian Backup's creator
Post Reply