Website backup not working

Discussion in 'Installation/Configuration' started by Trix, Feb 28, 2022.

  1. Trix

    Trix Member HowtoForge Supporter

    Hey,

    Wanted to try out the backup function so I set up a daily badcup using tar + 7z (BZip2) for website files and 7z (BZip2) for database using encryption. The problem I encounterd is the following:
    Backup of web files for domain domain.com reported success, but the resulting file Backup of web files for domain domain.com reported success, but the resulting file /var/backup/web131/web131_2022-02-28_00-04.tar.7z not found.

    If I remove the encryption then the daily cron finishes the job correctly.
    When runnig the backup function manually with encryption I still get the same, but when I remove the encryption then it succeeds.
    On the interface it stated that only 7z, RAR and zip supports encryption and I am using 7z. Clearly something is wrong with the encryption part.

    I am running ISPConfig on ubuntu 20.04, using the latest version 3.2.7p1 with a single server setup and I have installed all required packages for compression.

    Thanks,
    Trix
     
    Last edited: Feb 28, 2022
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    If I remember correctly there may be a fix for this issue by @Th0m but I think it may not yet included in the ISPConfig stable package. The issue being proper folder not created during website creation but whether or not this issue is related to yours, I am not quite sure. Sorry in advance if this is not a related issue.
     
  3. Trix

    Trix Member HowtoForge Supporter

    Thank you for you answer Ahrasis! Since backup without encryption works and folders are created i would put my money on the encryption part but you never know.
    Maybe someone can confirm it or look into it.
     
  4. Trix

    Trix Member HowtoForge Supporter

    Anyone?
     
  5. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    No, that was a different problem.

    Not sure why the encryption does not work. You can debug the cronjob with
    Code:
    php /usr/local/ispconfig/server/cron_debug.php --cronjob=500-backup.inc.php
     
  6. Trix

    Trix Member HowtoForge Supporter

    Got the following message while running the debug command:

    Code:
    PHP Warning:  Placeholder count not matching argument list. in /usr/local/ispconfig/server/lib/classes/system.inc.php on line 2377
    03.03.2022-11:45 - ERROR - Backup of web files for domain domain.com reported success, but the resulting file /var/backup/web21/web21_2022-03-03_11-45.tar.7z not found.
    PHP Warning:  Placeholder count not matching argument list. in /usr/local/ispconfig/server/lib/classes/system.inc.php on line 2377
    finished cron debug.
    
    Does this have to do anything with client templates? I had a custom client template before upgrading to the newest version but i deleted the template before uprgading.
     
  7. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    No, it shouldn't be related. How did you install the server? Which guide?
     
  8. Trix

    Trix Member HowtoForge Supporter

  9. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Trix likes this.
  10. Trix

    Trix Member HowtoForge Supporter

    Hey,

    Any luck on reproducing this issue?

    Thanks,
    Trix
     
  11. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    I tested it here, can't reproduce it. Can you share a screenshot of your settings?
     
  12. Trix

    Trix Member HowtoForge Supporter

    Sure. Here are the screenshots.

    [​IMG]

    [​IMG]

    Thanks,
    Trix
     
  13. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    With those settings, it works fine on my system...
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    As a test, please try to use a password consisting of letters and chars (no special chars). If it works, then this might be narrowed down to a special char escape issue.
     
    Th0m likes this.
  15. Trix

    Trix Member HowtoForge Supporter

    Thank you for taking a look.

    The odd thing was that i previously tried to use a simple password and i still ran into that problem, but now it seems to work. Tried it on multiple websites and all of them finished successfully.

    Thanks for the help!
     
    till likes this.
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, so there must be an issue with special chars. I'll add an issue in our git system for that.
     

Share This Page