Backup V2 Error

CyberPanel: v2.3.4
Build: 4
Current Commit: f41f07d8f241b6a9086b8d94e1db39fcf8816537
OS: Ubuntu 20.04
Kernel: 5.4.0-166-generic

Steps to Reproduce

  1. Backup V2 → Configure Backends
  2. Select Website & Select GDrive
  3. Authenticate with Google after adding name for the connection
  4. Backup V2 → Create/Restore Backup
  5. Choose same domain & same repo you just created
  6. Choose data/database/email and click Create Bacup
  7. It will process, check if the backup modules are there, and then error out with the following:

Error message: ["[11.08.2023_22-10-24:INFO] Checking if backup modules installed,0","[11.08.2023_22-10-30:INFO] Creating backup config,0","[11.08.2023_22-10-34:FAILED] Failed during config generation, Error: Expecting value: line 1 column 1 (char 0)[404]"]

Given the error shows that it cannot create the config, I checked, via shell, if the config was there for the domain in question:

We can see it in rclone config without any issue via commandline as well.

drwxr-xr-x 2 s***** s***** 4096 Nov  8 14:10 .
drwxrwxr-x 4 s***** s***** 4096 Nov  7 12:07 ..
-rw------- 1 s***** s*****  984 Nov  8 14:10 rclone.conf

So, not entirely sure why it’s doing what it is doing, and not entirely sure how to fix this issue. It’s saying it cannot create the config, but clearly, the config is there.

Same error using S3 @usmannasir

But backups v2 only offer sftp and google drive backups?

@someeadmin did you solve the problem?

Has anyone solved this problem? Can you post how you did it? I have the same problem.

Failure in Backup V2 with Google Drive (CyberPanel + Rustic + Rclone)
Description:
CyberPanel cannot perform backups to Google Drive using Backup V2 unless the manual authorization of the Rclone OAuth2 token is completed first. Additionally, it does not adjust the necessary permissions for the cyberpanel user to access the rclone.conf file.

Error Symptoms:

  • Token Not update inside
  • Error: Extra data: line 1 column 5 (char 4)
  • Backup failed parsing config backup result: Expecting value: line 1 column 1 (char 0)[404]

Solution:

  1. Create an OAuth client in Google Cloud (Desktop type).
  2. Configure the backend in CyberPanel using the client_id and client_secret.

From the server:

bash

export RCLONE_CONFIG=/home/[domain]/.config/rclone/rclone.conf
rclone config

→ Select the existing remote and choose the option to regenerate the token using an external browser:

Install Rclone on your computer and run the command provided by Rclone to obtain the token through your browser.

→ Copy the token generated on your computer into the SSH terminal.

Adjust permissions for the cyberpanel user:

bash

chmod o+rx /home/[domain]
chmod o+rx /home/[domain]/.config
chmod o+r /home/[domain]/.config/rclone/rclone.conf
chown -R cyberpanel:cyberpanel /home/backup/[domain]

And voilà, it works!

Dear CyberPanel support, could you please fix this issue in a future update? Thank you.