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

On-fly converter error (...) Exec format error #78

Closed
longview opened this issue Dec 18, 2022 · 3 comments
Closed

On-fly converter error (...) Exec format error #78

longview opened this issue Dec 18, 2022 · 3 comments
Labels
bug Something isn't working format converting Issues related to file format converting

Comments

@longview
Copy link

Using the youtube-converter script fails for me, with the error message being:

On-fly converter error: An error occurred trying to start process '/usr/share/webone/yt.sh' with working directory '/'. Exec format error

OS is RHEL 9.0, ImageMagick conversion does work fine, and calling the yt.sh script directly with the YT link works.
SELinux does not report any issues related to WebOne either.

The error message suggest the DotNet library doesn't realize yt.sh is a shell script, and is trying to execute it as a binary application, which fails.

@longview
Copy link
Author

Well, fixed it myself, but not sure what the root cause was.

I ran a hexdump -C on the yt.sh script (as installed by the official RPM), and the first three bytes were:
ef bb bf before the #!/bin/sh

No idea how those got there (the current git branch doesn't seem to have them).

This was obviously throwing off the OS, but bash would just print an error message and continue.

@atauenis atauenis added bug Something isn't working format converting Issues related to file format converting labels Dec 19, 2022
atauenis added a commit that referenced this issue Dec 19, 2022
@atauenis
Copy link
Owner

atauenis commented Dec 19, 2022

Tried on Ubuntu 22.04, same feel. Seems that yt.sh file got UTF-8 BOM, which is not welcome in mainstream distros. Interesting that TinyCore Linux supports such shell scripts.

As a temporary workaround, solved re-creating the file in nano text editor initially in DOS format (Ctrl+O, Alt+D), then in UNIX (again, Ctrl+O, Alt+D).

Probably 1281294 should fix this permanently. Some later I'll try to build a package and verify.

Upd: not working, as now line endings became CrLf.

$ /usr/share/webone/yt.sh
bash: /usr/share/webone/yt.sh: /bin/sh^M: неверный интерпретатор: Нет такого файла или каталога
                                          (invalid interpreter: no such file or directory)

New update coming soon.

atauenis added a commit that referenced this issue Dec 20, 2022
@atauenis
Copy link
Owner

atauenis commented Dec 20, 2022

In 1281294 I've broken line endings, so now fixed this mistake in d66f7de.

A test installation of deb package have working Youtube download feature. Probably rpm should be correct too.

Correct deb/rpm packages will be published soon. I hope, in this year. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working format converting Issues related to file format converting
Projects
None yet
Development

No branches or pull requests

2 participants