Moving Neth8 Debian→Rocky-linux

NethServer Version: 8
Module: mail sogo imapsync nextcloud

Hello, again,

… because Nethesis only supports systems on Rocky-Linux we moving last weekend our NS8 from Debian12 to Rocky9. It was a little bit bumpy and we have to go often some steps backward. Glad to work on a virtual machine …

What we done:

  • install a fresh Rocky 9
  • install NS8 on top of Rocky
  • joined this NS8 to “old” Cluster on debian
  • moved all modules step by step to the new node on Rocky
  • replicate the “old” LDAP domain to Rocky
  • made the new node on Rocky to header node
  • checked and rectified the configuration of each module
  • checked and rectified the configuration of DNS/DHCP

After that we checked backup to USB-HD - much errors. We configured backup new, but the same:

Task module/crowdsec4/run-backup run failed: {‘output’: ‘’, ‘error’: “restic snapshots\nFatal: repository does not exist: unable to open config file: does not exist\nIs there a repository at the following location?\nrclone::webdav:/crowdsec/314a6f22-9758-416f-a19f-4851b5c28c4c\nInitializing repository c203eb82-8297-5331-b31d-b7c6512e5e00 at path crowdsec/314a6f22-9758-416f-a19f-4851b5c28c4c\nrestic init\nrclone: 2025/11/17 09:28:13 ERROR : : Create repo failed to Mkdir: Conflict: 409 Conflict\nFatal: create repository at rclone::webdav:/crowdsec/314a6f22-9758-416f-a19f-4851b5c28c4c failed: Fatal: unable to open repository at rclone::webdav:/crowdsec/314a6f22-9758-416f-a19f-4851b5c28c4c: unexpected HTTP response (500): 500 Internal Server Error\n\n[ERROR] restic init failed. Command ‘[‘podman’, ‘run’, ‘-i’, ‘–rm’, ‘–name=restic-crowdsec4-953572’, ‘–privileged’, ‘–network=host’, ‘–volume=restic-cache:/var/cache/restic’, ‘–log-driver=none’, ‘-e’, ‘RESTIC_PASSWORD’, ‘-e’, ‘RESTIC_CACHE_DIR’, ‘-e’, ‘RESTIC_REPOSITORY’, ‘-e’, ‘RCLONE_WEBDAV_URL’, ‘Package restic · GitHub’, ‘init’]’ returned non-zero exit status 1.\n”, ‘exit_code’: 1} Task module/metrics6/run-backup run failed: {‘output’: ‘’, ‘error’: “restic snapshots\nFatal: repository does not exist: unable to open config file: does not exist\nIs there a repository at the following location?\nrclone::webdav:/metrics/df3ec682-dc3d-4c63-b6ed-8d6303e33d5d\nInitializing repository c203eb82-8297-5331-b31d-b7c6512e5e00 at path metrics/df3ec682-dc3d-4c63-b6ed-8d6303e33d5d\nrestic init\nrclone: 2025/11/17 09:28:14 ERROR : : Create repo failed to Mkdir: Conflict: 409 Conflict\nFatal: create repository at rclone::webdav:/metrics/df3ec682-dc3d-4c63-b6ed-8d6303e33d5d failed: Fatal: unable to open repository at rclone::webdav:/metrics/df3ec682-dc3d-4c63-b6ed-8d6303e33d5d: unexpected HTTP response (500): 500 Internal Server Error\n\n[ERROR] restic init failed. Command ‘[‘podman’, ‘run’, ‘-i’, ‘–rm’, ‘–name=restic-metrics6-953569’, ‘–privileged’, ‘–network=host’, ‘–volume=restic-cache:/var/cache/restic’, ‘–log-driver=none’, ‘-e’, ‘RESTIC_PASSWORD’, ‘-e’, ‘RESTIC_CACHE_DIR’, ‘-e’, ‘RESTIC_REPOSITORY’, ‘-e’, ‘RCLONE_WEBDAV_URL’, ‘Package restic · GitHub’, ‘init’]’ returned non-zero exit status 1.\n”, ‘exit_code’: 1} Task module/sogo2/run-backup run failed: {‘output’: ‘’, ‘error’: “restic snapshots\nFatal: repository does not exist: unable to open config file: does not exist\nIs there a repository at the following location?\nrclone::webdav:/sogo/b1530faa-9b71-46eb-b94d-a3d1292d0dcf\nInitializing repository c203eb82-8297-5331-b31d-b7c6512e5e00 at path sogo/b1530faa-9b71-46eb-b94d-a3d1292d0dcf\nrestic init\nrclone: 2025/11/17 09:28:16 ERROR : : Create repo failed to Mkdir: Conflict: 409 Conflict\nFatal: create repository at rclone::webdav:/sogo/b1530faa-9b71-46eb-b94d-a3d1292d0dcf failed: Fatal: unable to open repository at rclone::webdav:/sogo/b1530faa-9b71-46eb-b94d-a3d1292d0dcf: unexpected HTTP response (500): 500 Internal Server Error\n\n[ERROR] restic init failed. Command ‘[‘podman’, ‘run’, ‘-i’, ‘–rm’, ‘–name=restic-sogo2-953567’, ‘–privileged’, ‘–network=host’, ‘–volume=restic-cache:/var/cache/restic’, ‘–log-driver=none’, ‘-e’, ‘RESTIC_PASSWORD’, ‘-e’, ‘RESTIC_CACHE_DIR’, ‘-e’, ‘RESTIC_REPOSITORY’, ‘-e’, ‘RCLONE_WEBDAV_URL’, ‘Package restic · GitHub’, ‘init’]’ returned non-zero exit status 1.\n”, ‘exit_code’: 1} Task module/openldap2/run-backup run failed: {‘output’: ‘Dumping state to LDIF files:\n’, ‘error’: “restic snapshots\nFatal: repository does not exist: unable to open config file: does not exist\nIs there a repository at the following location?\nrclone::webdav:/openldap/a05f9974-2732-4f28-8d49-3653c3797bd2\nInitializing repository c203eb82-8297-5331-b31d-b7c6512e5e00 at path openldap/a05f9974-2732-4f28-8d49-3653c3797bd2\nrestic init\nrclone: 2025/11/17 09:28:15 ERROR : : Create repo failed to Mkdir: Conflict: 409 Conflict\nFatal: create repository at rclone::webdav:/openldap/a05f9974-2732-4f28-8d49-3653c3797bd2 failed: Fatal: unable to open repository at rclone::webdav:/openldap/a05f9974-2732-4f28-8d49-3653c3797bd2: unexpected HTTP response (500): 500 Internal Server Error\n\n[ERROR] restic init failed. Command ‘[‘podman’, ‘run’, ‘-i’, ‘–rm’, ‘–name=restic-openldap2-953566’, ‘–privileged’, ‘–network=host’, ‘–volume=restic-cache:/var/cache/restic’, ‘–log-driver=none’, ‘-e’, ‘RESTIC_PASSWORD’, ‘-e’, ‘RESTIC_CACHE_DIR’, ‘-e’, ‘RESTIC_REPOSITORY’, ‘-e’, ‘RCLONE_WEBDAV_URL’, ‘Package restic · GitHub’, ‘init’]’ returned non-zero exit status 1.\n”, ‘exit_code’: 1} Task module/nextcloud3/run-backup run failed: {‘output’: ‘’, ‘error’: “restic snapshots\nFatal: repository does not exist: unable to open config file: does not exist\nIs there a repository at the following location?\nrclone::webdav:/nextcloud/c76251d2-b877-46a2-b1b9-d82b149407d4\nInitializing repository c203eb82-8297-5331-b31d-b7c6512e5e00 at path nextcloud/c76251d2-b877-46a2-b1b9-d82b149407d4\nrestic init\nrclone: 2025/11/17 09:28:21 ERROR : : Create repo failed to Mkdir: Conflict: 409 Conflict\nFatal: create repository at rclone::webdav:/nextcloud/c76251d2-b877-46a2-b1b9-d82b149407d4 failed: Fatal: unable to open repository at rclone::webdav:/nextcloud/c76251d2-b877-46a2-b1b9-d82b149407d4: unexpected HTTP response (500): 500 Internal Server Error\n\n[ERROR] restic init failed. Command ‘[‘podman’, ‘run’, ‘-i’, ‘–rm’, ‘–name=restic-nextcloud3-953570’, ‘–privileged’, ‘–network=host’, ‘–volume=restic-cache:/var/cache/restic’, ‘–log-driver=none’, ‘-e’, ‘RESTIC_PASSWORD’, ‘-e’, ‘RESTIC_CACHE_DIR’, ‘-e’, ‘RESTIC_REPOSITORY’, ‘-e’, ‘RCLONE_WEBDAV_URL’, ‘Package restic · GitHub’, ‘init’]’ returned non-zero exit status 1.\n”, ‘exit_code’: 1} Task module/traefik3/run-backup run failed: {‘output’: “mkdir: Verzeichnis ‘state-backup’ angelegt\n’traefik.yaml’ → ‘state-backup/traefik.yaml’\n’configs’ → ‘state-backup/configs’\n’configs/_http2https.yml’ → ‘state-backup/configs/_http2https.yml’\n’configs/_default_cert.yml’ → ‘state-backup/configs/_default_cert.yml’\n’configs/_api.yml’ → ‘state-backup/configs/_api.yml’\n’configs/mail2-rspamd.yml’ → ‘state-backup/configs/mail2-rspamd.yml’\n’configs/sogo2.yml’ → ‘state-backup/configs/sogo2.yml’\n’configs/nextcloud3.yml’ → ‘state-backup/configs/nextcloud3.yml’\n’configs/cluster-admin.yml’ → ‘state-backup/configs/cluster-admin.yml’\n’configs/openldap2-amld.yml’ → ‘state-backup/configs/openldap2-amld.yml’\n’configs/3CX.yml’ → ‘state-backup/configs/3CX.yml’\n’configs/BMA.yml’ → ‘state-backup/configs/BMA.yml’\n’configs/PASSWORK.yml’ → ‘state-backup/configs/PASSWORK.yml’\n’configs/ESWEB.yml’ → ‘state-backup/configs/ESWEB.yml’\n’manual_flags’ → ‘state-backup/manual_flags’\n’manual_flags/3CX’ → ‘state-backup/manual_flags/3CX’\n’manual_flags/BMA’ → ‘state-backup/manual_flags/BMA’\n’manual_flags/PASSWORK’ → ‘state-backup/manual_flags/PASSWORK’\n’manual_flags/ESWEB’ → ‘state-backup/manual_flags/ESWEB’\n’custom_certificates’ → ‘state-backup/custom_certificates’\n’acme’ → ‘state-backup/acme’\n’acme/acme.json.acmejson-notify’ → ‘state-backup/acme/acme.json.acmejson-notify’\n’acme/acme.json’ → ‘state-backup/acme/acme.json’\n”, ‘error’: “restic snapshots\nFatal: repository does not exist: unable to open config file: does not exist\nIs there a repository at the following location?\nrclone::webdav:/traefik/428c0566-7193-42b5-8234-29f67487629e\nInitializing repository c203eb82-8297-5331-b31d-b7c6512e5e00 at path traefik/428c0566-7193-42b5-8234-29f67487629e\nrestic init\nrclone: 2025/11/17 09:28:14 ERROR : : Create repo failed to Mkdir: Conflict: 409 Conflict\nFatal: create repository at rclone::webdav:/traefik/428c0566-7193-42b5-8234-29f67487629e failed: Fatal: unable to open repository at rclone::webdav:/traefik/428c0566-7193-42b5-8234-29f67487629e: unexpected HTTP response (500): 500 Internal Server Error\n\n[ERROR] restic init failed. Command ‘[‘podman’, ‘run’, ‘-i’, ‘–rm’, ‘–name=restic-traefik3-953565’, ‘–privileged’, ‘–network=host’, ‘–volume=restic-cache:/var/cache/restic’, ‘–log-driver=none’, ‘-e’, ‘RESTIC_PASSWORD’, ‘-e’, ‘RESTIC_CACHE_DIR’, ‘-e’, ‘RESTIC_REPOSITORY’, ‘-e’, ‘RCLONE_WEBDAV_URL’, ‘Package restic · GitHub’, ‘init’]’ returned non-zero exit status 1.\n”, ‘exit_code’: 1} Task module/mail2/run-backup run failed: {‘output’: ‘Dumping Mail state to disk:\nSaving Maildir IMAP folder index:\nSaving service status:\n’, ‘error’: “restic snapshots\nFatal: repository does not exist: unable to open config file: does not exist\nIs there a repository at the following location?\nrclone::webdav:/mail/159e4824-fc0d-427c-bfb5-84d8172a6d4f\nInitializing repository c203eb82-8297-5331-b31d-b7c6512e5e00 at path mail/159e4824-fc0d-427c-bfb5-84d8172a6d4f\nrestic init\nrclone: 2025/11/17 09:28:16 ERROR : : Create repo failed to Mkdir: Conflict: 409 Conflict\nFatal: create repository at rclone::webdav:/mail/159e4824-fc0d-427c-bfb5-84d8172a6d4f failed: Fatal: unable to open repository at rclone::webdav:/mail/159e4824-fc0d-427c-bfb5-84d8172a6d4f: unexpected HTTP response (500): 500 Internal Server Error\n\n[ERROR] restic init failed. Command ‘[‘podman’, ‘run’, ‘-i’, ‘–rm’, ‘–name=restic-mail2-953581’, ‘–privileged’, ‘–network=host’, ‘–volume=restic-cache:/var/cache/restic’, ‘–log-driver=none’, ‘-e’, ‘RESTIC_PASSWORD’, ‘-e’, ‘RESTIC_CACHE_DIR’, ‘-e’, ‘RESTIC_REPOSITORY’, ‘-e’, ‘RCLONE_WEBDAV_URL’, ‘Package restic · GitHub’, ‘init’]’ returned non-zero exit status 1.\n”, ‘exit_code’: 1} Task module/imapsync2/run-backup run failed: {‘output’: ‘’, ‘error’: “restic snapshots\nFatal: repository does not exist: unable to open config file: does not exist\nIs there a repository at the following location?\nrclone::webdav:/imapsync/209e1bde-cb38-4456-8b71-68102013a203\nInitializing repository c203eb82-8297-5331-b31d-b7c6512e5e00 at path imapsync/209e1bde-cb38-4456-8b71-68102013a203\nrestic init\nrclone: 2025/11/17 09:28:14 ERROR : : Create repo failed to Mkdir: Conflict: 409 Conflict\nFatal: create repository at rclone::webdav:/imapsync/209e1bde-cb38-4456-8b71-68102013a203 failed: Fatal: unable to open repository at rclone::webdav:/imapsync/209e1bde-cb38-4456-8b71-68102013a203: unexpected HTTP response (500): 500 Internal Server Error\n\n[ERROR] restic init failed. Command ‘[‘podman’, ‘run’, ‘-i’, ‘–rm’, ‘–name=restic-imapsync2-953568’, ‘–privileged’, ‘–network=host’, ‘–volume=restic-cache:/var/cache/restic’, ‘–log-driver=none’, ‘-e’, ‘RESTIC_PASSWORD’, ‘-e’, ‘RESTIC_CACHE_DIR’, ‘-e’, ‘RESTIC_REPOSITORY’, ‘-e’, ‘RCLONE_WEBDAV_URL’, ‘Package restic · GitHub’, ‘init’]’ returned non-zero exit status 1.\n”, ‘exit_code’: 1} Task module/loki6/run-backup run failed: {‘output’: ‘’, ‘error’: “restic snapshots\nFatal: repository does not exist: unable to open config file: does not exist\nIs there a repository at the following location?\nrclone::webdav:/loki/56973854-7070-4651-a2fa-d81cbba0ab7f\nInitializing repository c203eb82-8297-5331-b31d-b7c6512e5e00 at path loki/56973854-7070-4651-a2fa-d81cbba0ab7f\nrestic init\nrclone: 2025/11/17 09:28:14 ERROR : : Create repo failed to Mkdir: Conflict: 409 Conflict\nFatal: create repository at rclone::webdav:/loki/56973854-7070-4651-a2fa-d81cbba0ab7f failed: Fatal: unable to open repository at rclone::webdav:/loki/56973854-7070-4651-a2fa-d81cbba0ab7f: unexpected HTTP response (500): 500 Internal Server Error\n\n[ERROR] restic init failed. Command ‘[‘podman’, ‘run’, ‘-i’, ‘–rm’, ‘–name=restic-loki6-953571’, ‘–privileged’, ‘–network=host’, ‘–volume=restic-cache:/var/cache/restic’, ‘–log-driver=none’, ‘-e’, ‘RESTIC_PASSWORD’, ‘-e’, ‘RESTIC_CACHE_DIR’, ‘-e’, ‘RESTIC_REPOSITORY’, ‘-e’, ‘RCLONE_WEBDAV_URL’, ‘Package restic · GitHub’, ‘init’]’ returned non-zero exit status 1.\n”, ‘exit_code’: 1} 9

What should we do ?

The second blemish - we have now 3x “loki”. How to delete the old loki2 and loki4 ?

1 Like

The backup is encrypted with a key.

To get the key from the old backup, go to the backup destination details:

and show the data encryption key.

It should be used when setting up the new backup destination:

This could be due to changing leader node, see also System logs — NS8 documentation

2 Likes

Thanks,

To remove an inactive instance, select the three-dots menu and choose the Uninstall action.

we read this too, but we can’t see the 3-dots-menu … where is it ?

Backup to USB-HD

we do, like you wrote, but there is a new error

Sorry, but there is no way to see … Should we remove all backup destinations first ?

→→ the USB-HD is clean, fresh ext4 formated and then the long way to join to rclone-webdav …

As an aside:

… Nethesis makes a good job - don’t be offended, but:

Nethserver should be a software for little/middle companies…

  • Little companies don’t like it to store backup outside in a cloud anywhere - they use NAS/USB-HD
  • the backup handling on Nethserver8 is a little bit tricky for this - have a look at NS7 !

It’s in “settings/system logs”:

At least you need to remove the local backup destination as just one local backup is allowed.

I think backup to NAS is implemented in a good way by using a Samba share.
I agree that the local backup is tricky as manual steps on CLI are needed.

1 Like