Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

In Progress [CPANEL-21358] Unable to validate rsync backup destination

Discussion in 'Data Protection' started by Cyber911, Aug 2, 2018.

Tags:
  1. Cyber911

    Cyber911 Member

    Joined:
    May 24, 2003
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    151
    Hi,

    I'm currently testing the new "Rsync" Backup Transport in version 74.0.2.

    Current System Specs:
    CentOS 7.5
    cPanel / WHM 74.0.2

    I've validated the host, user, password and destination folder by using cli commands, destination port is 23 (not 22) and everything works via cli.

    With the same settings used as new backup destination validation always fails with the message

    "Error: Validation for transport “Backup (Rsync)” failed: Could not create path directory “server03rs/”: child exited with code 1"

    When I connect to the destination via sftp I see the server03rs folder got created and a file in there (tmp.test.10504-1533208029) was uploaded which contains the text

    "This is a test file created to determine if backups are operable::
    10504
    1533208029"

    I can also download this file without problems via rsync cli command, sync via rsync into the folder etc. but the validation always fails.

    As I can't find any logs about what's happening here I'm a bit clueless. Did anyone else ran into this problem or is there any way to find out what's exactly happening here?

    Server + backupspace are located at Hetzner (Germany), SSH-Support is activated on backupspace.

    kind Regards,

    Sven B. 8)
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,555
    Likes Received:
    2,182
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. Cyber911

    Cyber911 Member

    Joined:
    May 24, 2003
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    151
    Hi Michael,

    this does not help. I can't enter /../ or /../server03rs/ or /../server03rs as the system declines paths with "." or "..".

    I've already tried using "server03rs/" and "server03rs", if I enter the slash after path ("server03rs/") the validation fails with errormessage "Error: Validation for transport “Backup (Rsync)” failed: Could not upload test file: child exited with code 1", without slash ("server03rs") it gives "Error: Validation for transport “Backup (Rsync)” failed: Could not create path directory “server03rs/”: child exited with code 1".

    In both cases the folder got created and a file was uploaded into it.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,555
    Likes Received:
    2,182
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Cyber911,

    Can you open a support ticket so we can take a closer look at your system to see why the validation process is failing? You can post the ticket number here and I'll link this thread to the ticket.

    Thank you.
     
  5. Cyber911

    Cyber911 Member

    Joined:
    May 24, 2003
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    151
    Hi Michael,

    Support Request ID is: 10066019

    :)
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,555
    Likes Received:
    2,182
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    To update, here's part of the response to the support ticket explaining why validation failed for the the Rsync backup destination on this system:

    I'll update this thread with more information on the status of case CPANEL-21358 as it becomes available.

    Thank you.
     
  7. Misiek

    Misiek Well-Known Member

    Joined:
    Feb 23, 2004
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    Root Administrator
    Still same problem for me too with Hetzner, can You please update what is the status of this ??
     
  8. Martin Hinrichsen

    Martin Hinrichsen Member

    Joined:
    Nov 23, 2018
    Messages:
    13
    Likes Received:
    3
    Trophy Points:
    3
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    I can confirm that this was a resent change, where as a "/" in the beginning of the path is denied by the GUI.
    A workaround, until it gets sorted:
    Go to:
    /var/cpanel/backups
    Edit the file named: somthing_UID_##some-key##_backup_destination
    ad a "/" in the beginning of the "path:" to change it to absolute.

    I have tested this with */backup --force, and it seems to work.
     
  9. Misiek

    Misiek Well-Known Member

    Joined:
    Feb 23, 2004
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    Root Administrator
    Nope, that doesn't help.
     
  10. Martin Hinrichsen

    Martin Hinrichsen Member

    Joined:
    Nov 23, 2018
    Messages:
    13
    Likes Received:
    3
    Trophy Points:
    3
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    Nope.. sry, I posted that in the wrong thread! This was to fix the backup transport going to /root folder.
    You need to get past the validation before that is relevant :D

    However, I resonantly had issues with validation. Because of latest change, I had to remove the transport settings completely, and recreate a new one, and refill the data. Remember to choose "SFTP". as the new standard selection is "Custom" which requires a script. Also my top workaround is relevant, because the new default path is Relative to the user, so it tries to create /user/path
    Test with a root user, as that folder already exists, and has the correct permission.
     
  11. mbd5882

    mbd5882 Well-Known Member

    Joined:
    Apr 30, 2005
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    United Kingdom
    cPanel Access Level:
    Root Administrator
    I'm having the same issue in this thread, I'm trying to configure an Rsync destination to a Hetzner storage box. Rsync works with no issues when running the command manually.

    However validating my destination is giving me the error Error: Validation for transport “Hetzner Storage Box” failed: Could not upload test file: child exited with code 1. I can see files tmp.test.68555-1543257347 being created in the backup folder.

    The backup directory value is empty. Does anyone have a working solution to this? I'd like to stick with Rsync so I can use incremental backup.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. Cyber911

    Cyber911 Member

    Joined:
    May 24, 2003
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    151
    Hi,

    there's no solution for this, yet. The only (useable) possibility for Hetzners storage boxes / backup systems to use incremental rsync backups is to mount the box as CIFS Volume and select that mountpoint as rsync destination.

    Works pretty good on my current machines.

    kind regards,

    Sven B. 8)
     
  13. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,555
    Likes Received:
    2,182
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I don't have new information to report on the status of internal case CPANEL-21358 at this time, however I'll continue to monitor the case and update this thread with more information as it becomes available.

    Thank you.
     
  14. Michael Svendsen

    Michael Svendsen Registered

    Joined:
    Dec 19, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    Sven, how did you make it work with CIFS mount? I tried mounting as CIFS, but got lot of mknod failed invalid argument (22) error messages resulting in an incomplete backup.

    - Michael
     
  15. mbd5882

    mbd5882 Well-Known Member

    Joined:
    Apr 30, 2005
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    United Kingdom
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    I was able to get a CIFS share mounted using systemd on CentOS 7, however in the end I didn't use it as I was getting file/folder permission issues. SSHFS might be a better way to mount the share but I haven't looked into that yet.

    The steps below should work just fine, this assumes you're using /mnt/backup as the mount point. If it's any different then your systemd script filename needs to be modified.

    1. Create /etc/systemd/system/mnt-backup.mount with the contents below:
    2. Run systemctl daemon-reload
    3. Run systemctl enable mnt-backup to auto mount on boot
    4. Mount the share using systemctl start mnt-backup

    Best of luck.

    - Asad
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. Michael Svendsen

    Michael Svendsen Registered

    Joined:
    Dec 19, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    Hi Asad,

    I know how to mount things :)
    My question was not how to Mount volumes, but that CIFS doesn't work with CPanel backup.
    Also SSHFS doesn't work (maybe issue with symlink support)

    The only workaround I've got was to mount volume as SSHFS to fx /mnt/storage and then create an image file and format it as ext4 or equivalent and then mount the image as fx /mnt/backup and then run CPanel backup towards that. It works quite well, but it's kind of a "bad" workaround in my opinion.

    - Michael
     
  17. mbd5882

    mbd5882 Well-Known Member

    Joined:
    Apr 30, 2005
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    United Kingdom
    cPanel Access Level:
    Root Administrator
    Hey Michael,

    Sorry, misread what you wrote.

    I thought about doing something similar with EncFS but I agree, all bad workarounds. I hope cPanel get the bug causing this fixed as I've just left it as it is - incremental backups to a local folder.

    - Asad
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. ival

    ival Registered

    Joined:
    Dec 18, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Hello people!

    Same problem here. Trying to setup remote incremental rsync with Hetzner backup and rsync works manually from a terminal window but not from inside the cpanel remote destination interface.
    it would be great if you could help figure this out.

    Thanks
    Yiannis
     
  19. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,555
    Likes Received:
    2,182
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    To update, CPANEL-21358 is still open at this time. I don't have a specific time frame to offer on the solution at this time, but the case is receiving attention due to the amount of customer feedback we've received. I'll update this thread with more information as soon as it's available.

    Thank you.
     
  20. Michael Svendsen

    Michael Svendsen Registered

    Joined:
    Dec 19, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    Any updates/timeframe? :)
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice