usmannasir / cyberpanel

Cyber Panel - The hosting control panel for OpenLiteSpeed
GNU General Public License v3.0
1.53k stars 591 forks source link

[BUG] Manual Backup Failed #1207

Closed eakteam closed 7 months ago

eakteam commented 8 months ago

Trying to generate a backup using /usr/local/CyberCP/bin/python /usr/local/CyberCP/plogical/IncScheduler.py Weekly from ssh terminal, but it fails with below message:

[02.05.2024_15-01-58] [Errno 2] No such file or directory: '/home/cyberpanel/git'. [IncScheduler.git:90]
[02.05.2024_15-02-01] Creating website result....{'status': 0, 'createWebSiteStatus': 0, 'error_message': 'Invalid domain.'}
[02.05.2024_15-02-01] 'tempStatusPath'. [Cron.CheckHostName]
usmannasir commented 7 months ago

do you have latest commit and btw which backups (v2 or normal one?)

eakteam commented 7 months ago

do you have latest commit and btw which backups (v2 or normal one?)

Yes i have the very latest commit 2.3.5 and using normal backup

usmannasir commented 7 months ago

Google drive or sftp ?

usmannasir commented 7 months ago

OK. I checked it is just a warning from back-end and from another function which is not related to backup.

Both Google Drive and sftp backups are going through, you can also double check.

eakteam commented 7 months ago

Google drive or sftp ?

Local, and is not working in my case...

usmannasir commented 7 months ago

ah local, let me test the local.

usmannasir commented 7 months ago
root@dockertesting:~# ls -la /home/kolkaripath/02.08.2024_10-26-39/
total 16
drwxr-xr-x 2 root      root      4096 Feb  8 10:26 .
drwxr-xr-x 3 root      root      4096 Feb  8 10:26 ..
-rw------- 1 wpmau1322 wpmau1322 6060 Feb  8 10:26 backup-wpmautic.net-02.08.2024_10-26-39.tar.gz
root@dockertesting:~#

local working too.

usmannasir commented 7 months ago

Can you go here and check logs of local backup 8090/backup/scheduleBackup

eakteam commented 7 months ago

Can you go here and check logs of local backup 8090/backup/scheduleBackup

There is no log there but here is the output of terminal after trying to run the backup:

root@server ~ # /usr/local/CyberCP/bin/python /usr/local/CyberCP/plogical/IncScheduler.py Weekly
Disk Usage of info@xxxxx.com is 621
Disk Usage of reservation@xxxxx.com is 1
497,1.6566666666666667
Disk Usage of eval@xxxxx.com is 38
194,0.6466666666666667
6426,21.42
du: cannot access '/home/vmail/xxxxx.com/info': No such file or directory
Disk Usage of info@xxxxx.com is 0MB
918,3.06
Disk Usage of aa@xxxxx.com is 32
Disk Usage of bb@xxxxx.com is 13
Disk Usage of reservation@xxxxx.com is 1
67,0.22333333333333336
622,2.0733333333333333
Disk Usage of info@xxxxx.com is 819
9,0.030000000000000002
85,0.2833333333333333
Disk Usage of info@xxxxx.com is 1
73,0.24333333333333335
62,0.2066666666666667
Disk Usage of info@xxxxx.com is 1750
92,0.3066666666666667
Disk Usage of info@xxxxx.com is 1
379,1.2633333333333334
17,0.05666666666666667
Disk Usage of info@xxxxx.com is 94
629,2.0966666666666667
Disk Usage of book@xxxxx.com is 1
572,1.9066666666666667
[02.09.2024_13-35-46] [Errno 2] No such file or directory: '/home/cyberpanel/git'. [IncScheduler.git:90]
Hostname is already set, the same hostname is also used with mail service and rDNS. Let see if valid SSL also exists for this hostname..,10
[02.09.2024_13-35-49] Hostname is already set, the same hostname is also used with mail service and rDNS. Let see if valid SSL also exists for this hostname..,10
It looks like your current hostname is already the mail server hostname and rDNS is also set and there is a valid SSL, nothing needed to do.
[02.09.2024_13-35-50] It looks like your current hostname is already the mail server hostname and rDNS is also set and there is a valid SSL, nothing needed to do.
usmannasir commented 7 months ago

Can I get access to your server via ticket ?

eakteam commented 7 months ago

Can I get access to your server via ticket ?

Sure, here it is: https://platform.cyberpersons.com/support/KFHU3GJMB/

usmannasir commented 7 months ago

Screenshot 2024-02-10 at 14-18-59 Schedule Backup - CyberPanel

I see that you have added no sites to the schedule and 'Selected sites` were selected. I've added one site now, can you try

eakteam commented 7 months ago

Screenshot 2024-02-10 at 14-18-59 Schedule Backup - CyberPanel

I see that you have added no sites to the schedule and 'Selected sites` were selected. I've added one site now, can you try

It doesn't work even with one site or adding all of them. Do you want a screen recording?

eakteam commented 7 months ago

cyberrrrr

usmannasir commented 7 months ago

If you see Frequency column it says NEVER, It was a minor issue now I set the frequency to Weekly via dropdown and its going through, backup job is running.