Author Topic: Backup files crated but empty in my NAS  (Read 9524 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Backup files crated but empty in my NAS
« on: March 18, 2021, 05:27:56 AM »
Hello,
When it run my "New Backup (Beta)" service, it creates the folders and the files in my local NAS, but this files are always empty.
I use FTP method for downloading, and it connects ok with my NAS (i think).

I have any problem when i do local backup.

The connection logs:

2021-03-18 01:11:55 cd /backup/domain/;ionice -c 3 nice -n +19 tar -czvf domain.tar.gz --exclude domain.tar.gz *
2021-03-18 01:12:09 cd /backup/domain/;mv domain.tar.gz --exclude /backup/domain.tar.gz
2021-03-18 01:12:09 Generating domain.tar.gz
2021-03-18 01:12:09 Type conection cron FTP
2021-03-18 01:12:09 connection FTP successful
2021-03-18 01:12:09 Put file from /backup/domain.tar.gz TO /full/manual/accounts/domain.tar.gz
2021-03-18 01:12:09 Failed to upload file "/backup/domain.tar.gz" en /full/manual/accounts/domain.tar.gz
2021-03-18 01:12:09 Error in Update domain.tar.gz
2021-03-18 01:12:09 rm -fR /backup/domain/
2021-03-18 01:12:09 rm -fR /backup/domain.tar.gz
2021-03-18 01:12:09 rm -fR /home/domain/mysql/
2021-03-18 01:12:09 rm -fR /home/domain/named/
2021-03-18 01:12:10 rm -fR /home/domain/postfix/
2021-03-18 01:12:10 rm -fR /home/domain/vmail/
2021-03-18 01:12:10 rm -fR /home/domain/domains.sql
2021-03-18 01:12:10 rm -fR /home/domain/passwd
2021-03-18 01:12:19 END
2021-03-18 01:12:22 Backup Finished


Someone knows what's happening, and/or how to solve it?
Thank you all :)


Offline
*
Re: Backup files crated but empty in my NAS
« Reply #1 on: March 26, 2021, 08:59:28 PM »
Lost on the same boat. Getting the same error when using FTP connection. FTP connection has been a success but the backup is failing to upload! Whats wrong? Can someone please explain?

Offline
*****
Re: Backup files crated but empty in my NAS
« Reply #2 on: March 27, 2021, 06:04:24 AM »
can you try again as devs fixed some issues.

Offline
*
Re: Backup files crated but empty in my NAS
« Reply #3 on: March 27, 2021, 08:14:10 AM »
can you try again as devs fixed some issues.

To be honest, I think that update still not functioning properly for all servers maybe? Or it could be a problem with remote server?

So this is what I receive on CWP side, after a fail backup.

Code: [Select]
2021-03-27 08:05:38   UPDATE backups SET BACKUP_FORCE=1, STRUN=1 WHERE ID = 7
2021-03-27 04:05:38 Manual!
2021-03-27 04:05:38 Backup Initiated
2021-03-27 04:05:38 emailvp@null
2021-03-27 04:05:38 ["emailvp"]
2021-03-27 04:05:38 Starting compression1
2021-03-27 04:05:38 /home/tmp_bak/
2021-03-27 04:05:38 /home/tmp_bak/ >> /home/tmp_bak
2021-03-27 04:05:38  >> ionice -c 3 nice -n +19
2021-03-27 04:05:38 0
2021-03-27 04:05:38 Type conection cron FTP
2021-03-27 04:05:38 connection FTP successful
2021-03-27 04:05:38
2021-03-27 04:05:39 Failed to create directory to "/full"
2021-03-27 04:05:39 Failed to create directory to "/full/manual"
2021-03-27 04:05:39 Failed to create directory to "/full/manual/accounts"
2021-03-27 04:05:39 Local directory /home/tmp_bak/ was created
2021-03-27 04:05:39 OPCION NO_OTHER 1
2021-03-27 04:05:39 Send email to xxxx@gmail.com
2021-03-27 04:05:39 The /home/emailvp/ directory is copied to the destination /home/tmp_bak/emailvp/
2021-03-27 04:05:39 password"\/home\/tmp_bak\/emailvp\/"
2021-03-27 04:05:39 Backing up account password
2021-03-27 04:05:39 Backing  Domains Add and Subdomain
2021-03-27 04:05:39 Create /home/tmp_bak/emailvp//ftp/
2021-03-27 04:05:39 mkdir -p /home/tmp_bak/emailvp/mysql/
2021-03-27 04:05:39 Backing users Mysql
2021-03-27 04:05:39 RECORDS_DNS_DOMAIN 1
2021-03-27 04:05:43 Generating emailvp.tar.gz
2021-03-27 04:05:43 Type conection cron FTP
2021-03-27 04:05:43 connection FTP successful
2021-03-27 04:05:43 Put file from /home/tmp_bak/emailvp.tar.gz TO /full/manual/accounts/emailvp.tar.gz
2021-03-27 04:05:44 Failed to upload file "/home/tmp_bak/emailvp.tar.gz" en /full/manual/accounts/emailvp.tar.gz
2021-03-27 04:05:44 Error in Update emailvp.tar.gz
2021-03-27 04:05:44 OPCION NO_OTHER 1
2021-03-27 04:05:44 Send email to xxxx@gmail.com
2021-03-27 04:05:44 END
2021-03-27 04:05:47 Backup Finished

The reason why there's are 'failed to create' notice above because the folder already exists.

On my remote server, which is actually a router connected to USB drive and using FTP server. I could connect using any FTP client. But when I try to making connection for CWP backup on my router end, FTP server response saying this: 500 Illegal PORT command.
I tested connection over both passive and active connection on my router but that makes no difference. It using FreshTomato latest firmware.

xx are IP numbers that I have to hide.

Code: [Select]
Mar 27 14:05:43 Hidden ftp.info vsftpd[24796]: [ftp_user_name] OK LOGIN: Client "52.2xx.xx.xx"
Mar 27 14:05:43 Hidden ftp.info vsftpd[24796]: [ftp_user_name] FTP response: Client "52.2xx.xx.xx", "230 Login successful."
Mar 27 14:05:43 Hidden ftp.info vsftpd[24796]: [ftp_user_name] FTP command: Client "52.2xx.xxx.xx", "SYST"
Mar 27 14:05:43 Hidden ftp.info vsftpd[24796]: [ftp_user_name] FTP response: Client "52.2xx.xxx.xx", "215 UNIX Type: L8"
Mar 27 14:05:43 Hidden ftp.info vsftpd[24796]: [ftp_user_name] FTP command: Client "52.2xx.xxx.xx", "TYPE I"
Mar 27 14:05:43 Hidden ftp.info vsftpd[24796]: [ftp_user_name] FTP response: Client "52.2xx.xxx.xx", "200 Switching to Binary mode."
Mar 27 14:05:44 Hidden ftp.info vsftpd[24796]: [ftp_user_name] FTP command: Client "52.2xx.xxx.xx", "PORT 172,3x,xx,xx,154,21"
Mar 27 14:05:44 Hidden ftp.info vsftpd[24796]: [ftp_user_name] FTP response: Client "52.2xx.xxx.xx", "500 Illegal PORT command."
Mar 27 14:05:44 Hidden ftp.info vsftpd[24796]: [ftp_user_name] FTP command: Client "52.2xx.xxx.xx", "QUIT"
Mar 27 14:05:44 Hidden ftp.info vsftpd[24796]: [ftp_user_name] FTP response: Client "52.2xx.xxx.xx", "221 Goodbye."
Mar 27 14:08:29 Hidden ftp.info vsftpd[24680]: [ftp_user_name] FTP response: Client "192.168.0.100", "421 Timeout."

Reason for client and port IP are different from CWP side, because I am using AWS server with NAT-ed network configuration option on CWP.

Before someone, say's problem on my router ends. Kindly please do understand that all other FTP clients working fine to connect my router FTP server over Remote Connection.

If the problem is with the remote still, then kindly share your thoughts on how to resolve it. So I can understand the problem is not on CWP side.
« Last Edit: March 27, 2021, 08:21:23 AM by strang3r »

Offline
*
Re: Backup files crated but empty in my NAS
« Reply #4 on: March 27, 2021, 09:24:38 AM »
can you try again as devs fixed some issues.

To be honest, I think that update still not functioning properly for all servers maybe? Or it could be a problem with remote server?

So this is what I receive on CWP side, after a fail backup.

Code: [Select]
2021-03-27 08:05:38   UPDATE backups SET BACKUP_FORCE=1, STRUN=1 WHERE ID = 7
2021-03-27 04:05:38 Manual!
2021-03-27 04:05:38 Backup Initiated
2021-03-27 04:05:38 emailvp@null
2021-03-27 04:05:38 ["emailvp"]
2021-03-27 04:05:38 Starting compression1
2021-03-27 04:05:38 /home/tmp_bak/
2021-03-27 04:05:38 /home/tmp_bak/ >> /home/tmp_bak
2021-03-27 04:05:38  >> ionice -c 3 nice -n +19
2021-03-27 04:05:38 0
2021-03-27 04:05:38 Type conection cron FTP
2021-03-27 04:05:38 connection FTP successful
2021-03-27 04:05:38
2021-03-27 04:05:39 Failed to create directory to "/full"
2021-03-27 04:05:39 Failed to create directory to "/full/manual"
2021-03-27 04:05:39 Failed to create directory to "/full/manual/accounts"
2021-03-27 04:05:39 Local directory /home/tmp_bak/ was created
2021-03-27 04:05:39 OPCION NO_OTHER 1
2021-03-27 04:05:39 Send email to xxxx@gmail.com
2021-03-27 04:05:39 The /home/emailvp/ directory is copied to the destination /home/tmp_bak/emailvp/
2021-03-27 04:05:39 password"\/home\/tmp_bak\/emailvp\/"
2021-03-27 04:05:39 Backing up account password
2021-03-27 04:05:39 Backing  Domains Add and Subdomain
2021-03-27 04:05:39 Create /home/tmp_bak/emailvp//ftp/
2021-03-27 04:05:39 mkdir -p /home/tmp_bak/emailvp/mysql/
2021-03-27 04:05:39 Backing users Mysql
2021-03-27 04:05:39 RECORDS_DNS_DOMAIN 1
2021-03-27 04:05:43 Generating emailvp.tar.gz
2021-03-27 04:05:43 Type conection cron FTP
2021-03-27 04:05:43 connection FTP successful
2021-03-27 04:05:43 Put file from /home/tmp_bak/emailvp.tar.gz TO /full/manual/accounts/emailvp.tar.gz
2021-03-27 04:05:44 Failed to upload file "/home/tmp_bak/emailvp.tar.gz" en /full/manual/accounts/emailvp.tar.gz
2021-03-27 04:05:44 Error in Update emailvp.tar.gz
2021-03-27 04:05:44 OPCION NO_OTHER 1
2021-03-27 04:05:44 Send email to xxxx@gmail.com
2021-03-27 04:05:44 END
2021-03-27 04:05:47 Backup Finished

The reason why there's are 'failed to create' notice above because the folder already exists.

On my remote server, which is actually a router connected to USB drive and using FTP server. I could connect using any FTP client. But when I try to making connection for CWP backup on my router end, FTP server response saying this: 500 Illegal PORT command.
I tested connection over both passive and active connection on my router but that makes no difference. It using FreshTomato latest firmware.

xx are IP numbers that I have to hide.

Code: [Select]
Mar 27 14:05:43 Hidden ftp.info vsftpd[24796]: [ftp_user_name] OK LOGIN: Client "52.2xx.xx.xx"
Mar 27 14:05:43 Hidden ftp.info vsftpd[24796]: [ftp_user_name] FTP response: Client "52.2xx.xx.xx", "230 Login successful."
Mar 27 14:05:43 Hidden ftp.info vsftpd[24796]: [ftp_user_name] FTP command: Client "52.2xx.xxx.xx", "SYST"
Mar 27 14:05:43 Hidden ftp.info vsftpd[24796]: [ftp_user_name] FTP response: Client "52.2xx.xxx.xx", "215 UNIX Type: L8"
Mar 27 14:05:43 Hidden ftp.info vsftpd[24796]: [ftp_user_name] FTP command: Client "52.2xx.xxx.xx", "TYPE I"
Mar 27 14:05:43 Hidden ftp.info vsftpd[24796]: [ftp_user_name] FTP response: Client "52.2xx.xxx.xx", "200 Switching to Binary mode."
Mar 27 14:05:44 Hidden ftp.info vsftpd[24796]: [ftp_user_name] FTP command: Client "52.2xx.xxx.xx", "PORT 172,3x,xx,xx,154,21"
Mar 27 14:05:44 Hidden ftp.info vsftpd[24796]: [ftp_user_name] FTP response: Client "52.2xx.xxx.xx", "500 Illegal PORT command."
Mar 27 14:05:44 Hidden ftp.info vsftpd[24796]: [ftp_user_name] FTP command: Client "52.2xx.xxx.xx", "QUIT"
Mar 27 14:05:44 Hidden ftp.info vsftpd[24796]: [ftp_user_name] FTP response: Client "52.2xx.xxx.xx", "221 Goodbye."
Mar 27 14:08:29 Hidden ftp.info vsftpd[24680]: [ftp_user_name] FTP response: Client "192.168.0.100", "421 Timeout."

Reason for client and port IP are different from CWP side, because I am using AWS server with NAT-ed network configuration option on CWP.

Before someone, say's problem on my router ends. Kindly please do understand that all other FTP clients working fine to connect my router FTP server over Remote Connection.

If the problem is with the remote still, then kindly share your thoughts on how to resolve it. So I can understand the problem is not on CWP side.





Update 2:

I have found this on StackOverflow. I believe issue has something to do with private nat-ed configuration. As you can see above, where PORT connection supposed to be made into my remote server but its making to my Nat Local IP on CWP.

https://drops.creativedevstudio.com/VgMT77


And if we compare below response from remote, using a FTP client, then you will see connection properly happening on remote FTP server and also returning PORT to remote IP with a successful connection.


Code: [Select]
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] OK LOGIN: Client "202.1xx.xx.xxx"
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP response: Client "202.1xx.xx.xxx", "230 Login successful."
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP command: Client "202.1xx.xx.xxx", "TYPE I"
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP response: Client "202.1xx.xx.xxx", "200 Switching to Binary mode."
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP command: Client "202.1xx.xx.xxx", "PWD"
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP response: Client "202.1xx.xx.xxx", "257 "/" is the current directory"
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP command: Client "202.1xx.xx.xxx", "CWD /"
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP response: Client "202.1xx.xx.xxx", "250 Directory successfully changed."
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP command: Client "202.1xx.xx.xxx", "PWD"
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP response: Client "202.1xx.xx.xxx", "257 "/" is the current directory"
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP command: Client "202.1xx.xx.xxx", "FEAT"
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP response: Client "202.1xx.xx.xxx", "211-Features:"
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP response: Client "202.1xx.xx.xxx", " EPRT^M "
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP response: Client "202.1xx.xx.xxx", " EPSV^M "
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP response: Client "202.1xx.xx.xxx", " MDTM^M "
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP response: Client "202.1xx.xx.xxx", " PASV^M "
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP response: Client "202.1xx.xx.xxx", " REST STREAM^M "
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP response: Client "202.1xx.xx.xxx", " SIZE^M "
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP response: Client "202.1xx.xx.xxx", " TVFS^M "
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP response: Client "202.1xx.xx.xxx", " UTF8^M "
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP response: Client "202.1xx.xx.xxx", "211 End"
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP command: Client "202.1xx.xx.xxx", "SYST"
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP response: Client "202.1xx.xx.xxx", "215 UNIX Type: L8"
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP command: Client "202.1xx.xx.xxx", "PASV"
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP response: Client "202.1xx.xx.xxx", "227 Entering Passive Mode (192,168,0,1,4,0)."
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP command: Client "202.1xx.xx.xxx", "LIST"
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP response: Client "202.1xx.xx.xxx", "150 Here comes the directory listing."
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP response: Client "202.1xx.xx.xxx", "226 Directory send OK."
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP command: Client "202.1xx.xx.xxx", "PASV"
Mar 27 15:21:01 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP response: Client "202.1xx.xx.xxx", "227 Entering Passive Mode (192,168,0,1,4,1)."
Mar 27 15:21:02 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP command: Client "202.1xx.xx.xxx", "LIST"
Mar 27 15:21:02 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP response: Client "202.1xx.xx.xxx", "150 Here comes the directory listing."
Mar 27 15:21:02 Hidden ftp.info vsftpd[26820]: [ftp_user_name] FTP response: Client "202.1xx.xx.xxx", "226 Directory send OK."


If the problem is with the remote still, then kindly share your thoughts on how to resolve it. So I can understand the problem is not on CWP side. How can I resolve this, please?

Offline
*
Re: Backup files crated but empty in my NAS
« Reply #5 on: March 27, 2021, 10:35:32 AM »
Hi, I just fixed my issue.

Over the last few days I have looked at the ports several times with the nmap command, but everything seemed fine.

But I finally chose to open all my hosting provider firewall ports ...

After that, both; the copy and the FTP downloads worked perfectly :)

Not even for testing, see if the provider has any extra firewalls, and if so try disabling it (or open all ports).

CWP already has its Firewall and many security tools

I hope you find my comment usefull

Offline
*
Re: Backup files crated but empty in my NAS
« Reply #6 on: March 27, 2021, 11:12:06 AM »
Hi, I just fixed my issue.

Over the last few days I have looked at the ports several times with the nmap command, but everything seemed fine.

But I finally chose to open all my hosting provider firewall ports ...

After that, both; the copy and the FTP downloads worked perfectly :)

Not even for testing, see if the provider has any extra firewalls, and if so try disabling it (or open all ports).

CWP already has its Firewall and many security tools

I hope you find my comment usefull

My CWP firewall is off.

How did you solve it on your remote server?

Are you using NAT-ed configuration like mine?

My issue seems to be more with receiving different IP from CWP

Offline
*
Re: Backup files crated but empty in my NAS
« Reply #7 on: March 27, 2021, 12:23:38 PM »
Sorry, my English is not good.

My provider have his own firewall, and it was blocking the port 20.
I have a different port for FTP connections in my NAS, but you can type the port in the configuration...
Sorry i don't undertstand too much that you say.

But my CWP have all security services enabled, and it can connect.
Maybe you should enable the firewall, and open the ports 20, 21, 22 (or alternatives),2031,...

Maybe changing the connection to active/passive mode...

Sorry