Zammad 5.3.1 docker-compose restore files and database error

Infos:

  • Used Zammad version: 5.3.1
  • Used Zammad installation type: docker-compose
  • Operating system: ubuntu 20.04
  • Browser + version: chrome + Version 109

Expected behavior:

  • Restore zammad backup without errors

Actual behavior:

  • error to restore backup zammad.
    inside the docker container docker-compose exec zammad-postgresql /bin/sh, zammad_restore.sh is executed, the date of the database and files is provided.

Then the restore fails because of the following.

Restoring Files
tar: can’t create symlink ‘opt/zammad/node_modules/postcss-selector-parser/node_modules/.bin/cssesc’ to ‘…/…/…/cssesc/bin/cssesc’

  • ERROR(1) - File restore reported an error*.

Steps to reproduce the behavior:

  • backup files were previously added in the /var/tmp/zammad path of the zammad-backup container,
    Then go to docker-compose exec zammad-postgresql /bin/sh container, run zammad_restore.sh.
    the date of the backup to be restored is provided (files and database)
    The process starts and when checking the backup of the files the following error appears.

Restoring Files
tar: can’t create symlink ‘opt/zammad/node_modules/postcss-selector-parser/node_modules/.bin/cssesc’ to ‘…/…/…/cssesc/bin/cssesc’
ERROR(1) - File restore reported an error.
- Check file permissions, and ensure Zammad IS NOT running, and try again.

As mentioned in Backup and Restore — Zammad documentation you’re trying something that’s not supported. Especially the filesystem part won’t work.

Ensure you have all your attachments in the database and import the database dump.
Using the restore script in docker scope is not working.

This topic was automatically closed 360 days after the last reply. New replies are no longer allowed.