could not find any valid magic files! #2

Closed
opened 2024-06-20 23:18:51 +00:00 by pescu · 3 comments

When I try to run the LoN-Deployer binary on linux (tried it on Gentoo and Opensuse Tumbleweed) I get this error:

image

Traceback (most recent call last):
File "run.py", line 2, in
File "lon_deployer/main.py", line 120, in main
File "lon_deployer/utils.py", line 107, in check_rootfs
File "magic/init.py", line 73, in init
File "magic/init.py", line 332, in magic_load
File "magic/init.py", line 225, in errorcheck_negative_one
magic.MagicException: b'could not find any valid magic files!'
[19529] Failed to execute script 'run' due to unhandled exception!

When I try to run the LoN-Deployer binary on linux (tried it on Gentoo and Opensuse Tumbleweed) I get this error: ![image](/attachments/0efac8f4-accf-47c4-923a-9c68bf069cf8) > Traceback (most recent call last): File "run.py", line 2, in <module> File "lon_deployer/main.py", line 120, in main File "lon_deployer/utils.py", line 107, in check_rootfs File "magic/__init__.py", line 73, in __init__ File "magic/__init__.py", line 332, in magic_load File "magic/__init__.py", line 225, in errorcheck_negative_one magic.MagicException: b'could not find any valid magic files!' [19529] Failed to execute script 'run' due to unhandled exception!
138 KiB
Author

Running the app with the debug argument reveals that it's trying to use /usr/share/file/misc/magic.mgc, but /usr/share/file/misc/magic/ is a folder with multiple magic files inside

Running the app with the debug argument reveals that it's trying to use /usr/share/file/misc/magic.mgc, but /usr/share/file/misc/magic/ is a folder with multiple magic files inside
Author

I git cloned the script and tried to run it manually and it worked. There might be a problem with the python-magic version packed in the app.

I git cloned the script and tried to run it manually and it worked. There might be a problem with the python-magic version packed in the app.
Owner

Thanks. Currently I'm working on new version of installation tool, that uses it's own file validation.

Thanks. Currently I'm working on new version of installation tool, that uses it's own file validation.
This repo is archived. You cannot comment on issues.
No milestone
No project
No assignees
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: timoxa0/LoN-Deployer#2
No description provided.