Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Restore not possible when mailbox is included in backup

    Unsolved Support backup restore mail
    10
    1
    2 Votes
    10 Posts
    259 Views
    robiR
    @nebulon here's what an AI found: Tarball Permissions The tarball contains files with ownership/permissions the process can’t replicate (e.g., root-owned files). Example: Extraction fails when tar.extract preserves original ownership. SELinux/AppArmor Security policies block filesystem operations despite correct permissions. Tar Library Behavior: The tar library (likely tar-fs) might try to preserve file permissions from the tarball. If the tarball contains files owned by root and the app runs as yellowtent, extraction fails unless permissions are ignored. Fix: Modify the code to ignore permissions: javascript const tarStream = tar.extract({ cwd: destinationPath, ignore: () => true }); Debugging Steps Check Permissions: javascript console.log('Source:', fs.statSync(sourcePath).mode.toString(8)); console.log('Dest:', fs.statSync(destinationPath).mode.toString(8)); Ensure Directory Exists: javascript if (!fs.existsSync(destinationPath)) fs.mkdirSync(destinationPath, { recursive: true }); fs.accessSync(destinationPath, fs.constants.W_OK); Add Error Logging: javascript const readStream = fs.createReadStream(sourcePath).on('error', (err) => console.error('Read:', err)); const unzipStream = zlib.createGunzip().on('error', (err) => console.error('Gunzip:', err)); const tarStream = tar.extract({ cwd: destinationPath }).on('error', (err) => console.error('Tar:', err)); Potential Fixes Ignore Tar Permissions: javascript const tarStream = tar.extract({ cwd: destinationPath, ignore: () => true }); Test with Logging: Run the modified code with error handlers. async function tarExtract(sourcePath, destinationPath) { ensureSafePath(sourcePath); ensureSafePath(destinationPath); console.log('Source:', sourcePath, fs.statSync(sourcePath)); console.log('Dest:', destinationPath, fs.existsSync(destinationPath) ? fs.statSync(destinationPath) : 'does not exist'); const readStream = fs.createReadStream(sourcePath) .on('error', (err) => console.error('Read error:', err)); const unzipStream = zlib.createGunzip() .on('error', (err) => console.error('Gunzip error:', err)); const tarStream = tar.extract({ cwd: destinationPath }) .on('error', (err) => console.error('Tar error:', err)); readStream.pipe(unzipStream).pipe(tarStream); await streamPromise(tarStream); } Conclusion The error is likely a mismatch between the Cloudron app’s user permissions and the filesystem.
  • How to uplaod the downloaded tar.gz backup file

    Solved Support backup restore
    6
    1 Votes
    6 Posts
    711 Views
    nebulonN
    If you mean the webterminal, then this is into the filesystem of the app, not the host system. Cloudron does not have a webterminal into the host system, as it is not advised to tinker with this. However in this case you should use scp (essentially file transfer via ssh) to put the tarball into the /tmp of the server.
  • 1 Votes
    7 Posts
    714 Views
    girishG
    I put storj separately at https://forum.cloudron.io/topic/11670/add-storj-as-backup-option
  • Can not restore/reinstall cloudron

    Solved Support dashboard restore reinstall backup
    2
    1
    0 Votes
    2 Posts
    331 Views
    girishG
    @privsec said in Can not restore/reinstall cloudron: I have set up cloudron to use the same 7.5.2 version of my current install. On the new install after I update the DNS records to the new IP address, I get this After the cloudron installation, did you do the domain/dns setup and create an admin account? If so, you should not do that. Setup new server with cloudron --version 7.5.2 Go to https://ip For good meaure, I would power off your old server. This prevents any dns caching issues wrt my.domain.com pointing to your old server. Start restore from the setup view Cloudron will automatically navigate to https://my.domain.com 'Already activated' means that you already setup admin account on that server. After that, you cannot restore anymore for security reasons. For example, if you find a cloudron installation in the wild and try to restore, it won't work. That route is completely locked.
  • Nextcloud and volumes: Backup

    Solved Support aws cloudron nextcloud backup volume
    3
    1
    1 Votes
    3 Posts
    507 Views
    nottheendN
    Great! Thank you so much for the detailed and helpful answer
  • Backup before upgrade failing.

    Solved Support backup upgrade error access
    21
    1 Votes
    21 Posts
    827 Views
    girishG
    To follow up, 11GB worked fine too. [image: 1708449838055-61cb612d-e125-405b-94f1-1b7d6598a349-image-resized.png]
  • Error while recovering backup

    Solved Support backup restore
    22
    0 Votes
    22 Posts
    2k Views
    girishG
    @andreasdueren yes, usually that means the passphrase is wrong.
  • Persist backup app doesn't work

    Solved Support backup
    31
    0 Votes
    31 Posts
    3k Views
    girishG
    Should be in next release (8.0), but otherwise you have to apply that one liner manually.
  • What is a Minio "backup path"

    Solved Support minio backup
    5
    1
    1 Votes
    5 Posts
    581 Views
    robiR
    Having to go through a restore, this was baffling with no hints for me too. I'll make a Feature Request to make this more obvious in the restore dialogue.
  • Cloudron Backup Issue with LAMP Application

    Solved Support backup lamp
    7
    1 Votes
    7 Posts
    830 Views
    J
    The things we learn going through the support requests!
  • Backup failed: du error: Command failed

    Solved Support backup backups disk-usage
    4
    1 Votes
    4 Posts
    541 Views
    necrevistonnezrN
    Might not be limited to „lock“ files: Today I had a similar error (first time ever!) du error: Command failed: du -Dsb "/home/yellowtent/boxdata/mail" du: cannot access '/home/yellowtent/boxdata/mail/vmail/[REDACTED]/mail/dovecot.list.index.log.2': No such file or directory
  • Backup failing

    Solved Support scaleway backup backup-storage backups
    4
    0 Votes
    4 Posts
    691 Views
    nebulonN
    So is this then fixed by now with getting unbound back alive?
  • 0 Votes
    4 Posts
    558 Views
    girishG
    @pbischoff thanks, I have fixed the link.
  • Backing up media cache

    Mastodon mastodon backup backup-storage
    35
    0 Votes
    35 Posts
    4k Views
    S
    Hello Did you finally succeed to synchronize your local data ? I've the same issue, no more avatar for example
  • 0 Votes
    7 Posts
    959 Views
    girishG
    @jdaviescoates said in Backing up multiple Cloudrons to the same backup destination?: And just to be double clear, having different prefixs results in different paths, right? yes!
  • Move to new Server destroyed Baserow

    Solved Support restore backup
    12
    1 Votes
    12 Posts
    1k Views
    P
    @nebulon you were right. With the new version 7.3 the restore worked immediately and now baserow is running again. Thank you for the great support!
  • How to force a full rsync backup?

    Solved Support backup rsync
    3
    0 Votes
    3 Posts
    603 Views
    G
    @girish Thanks, that works.
  • Restore of Cloudron on AWS from S3 Backup fails

    Solved Support backup aws restore
    12
    0 Votes
    12 Posts
    1k Views
    nottheendN
    @girish perfect! Thank you so much! I really highly appreciate the effort! Thanks! I see it now!
  • Backup fails repeatedly because of mongodbdump timeout

    Solved Support mongodb backup
    6
    1
    0 Votes
    6 Posts
    753 Views
    G
    @girish So after the upgrade to 7.2.2 the problem vanished. Closing the Ticket. Thank you for the help!
  • Volume Backup

    Solved Support volumes backup
    4
    0 Votes
    4 Posts
    837 Views
    girishG
    @msbt We won't break it intentionally atleast.