You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
The text was updated successfully, but these errors were encountered:
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
Target: QNAP QTS 5.2.2.2950
Debug logs (at least 50 lines):
General > Advanced Settings > Enable debug
Docker console output with the exceptions:
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
The text was updated successfully, but these errors were encountered: