Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck in a loop when restoring backup #11900

Open
rdeherder opened this issue Dec 24, 2024 · 0 comments
Open

Stuck in a loop when restoring backup #11900

rdeherder opened this issue Dec 24, 2024 · 0 comments

Comments

@rdeherder
Copy link

rdeherder commented Dec 24, 2024

Describe the bug
When restoring a backup Medusa gets stuck in a loop with 2 exceptions.
The backup was made from the Medusa app on a Synology nas, version 1.0.22. The backup was loaded into a Medusa docker image from LinuxServer, version 1.0.22.

To Reproduce
Create a backup from a Medusa version 1.0.22 on a Synology nas. Restore the backup file into a newly created Medusa docker container version 1.0.22 on a QNAP nas.

Expected behavior
The backup should be restored correctly.

Medusa (please complete the following information):
Source: Synology DSM 6.2.4-25556 Update 8

  • App version 1.3 (https://github.com/BenjV/SYNO-packages)
  • Branch: master
  • Commit: d996387
  • Version: 1.0.22
  • Database: 44.19
  • Python Version: 3.8.16 (default, May 13 2023, 17:44:50) [GCC 4.9.3 20150311 (prerelease)]
  • SSL Version: OpenSSL 1.1.1t 7 Feb 2023
  • OS: Linux-3.10.105-x86_64-with-glibc2.2.5
  • Locale: en_US.UTF-8

Target: QNAP QTS 5.2.2.2950

  • Docker image: linuxserver/docker-medusa (latest)
  • Branch: master
  • Commit: Unknown
  • Version: 1.0.22
  • Database: 44.19
  • Python Version: 3.11.11 (main, Dec 6 2024, 11:15:21) [GCC 13.2.1 20231014]
  • SSL Version: OpenSSL 3.1.7 3 Sep 2024
  • OS: Linux-5.10.60-qnap-x86_64-with
  • Locale: en_US.UTF-8

Debug logs (at least 50 lines):
General > Advanced Settings > Enable debug

  • Not available since Medusa did not start correctly

Docker console output with the exceptions:

ERROR:medusa.exception_handler:Environment error: [Errno 2] No such file or directory: '/config/restore/main.db' Traceback (most recent call last): File "/usr/lib/python3.11/shutil.py", line 853, in move os.rename(src, real_dst) FileNotFoundError: [Errno 2] No such file or directory: '/config/restore/main.db' -> '/config/main.db'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/app/medusa/medusa/main.py", line 2357, in restore_db
shutil.move(src_file, dst_file)
File "/usr/lib/python3.11/shutil.py", line 873, in move
copy_function(src, real_dst)
File "/usr/lib/python3.11/shutil.py", line 448, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.11/shutil.py", line 256, in copyfile
with open(src, 'rb') as fsrc:
^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/config/restore/main.db'
Restore: restoring DB and config.ini FAILED!
Traceback (most recent call last):
File "/app/medusa/start.py", line 9, in
main()
File "/app/medusa/medusa/main.py", line 2400, in main
application.start(sys.argv[1:])
File "/app/medusa/medusa/main.py", line 350, in start
self.initialize(console_logging=self.console_logging)
File "/app/medusa/medusa/main.py", line 480, in initialize
if not helpers.make_dir(app.LOG_DIR):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/medusa/medusa/helpers/init.py", line 182, in make_dir
if not os.path.isdir(path):
^^^^^^^^^^^^^^^^^^^
File "", line 42, in isdir
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant