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

ERR: spawn ./db/ffmpeg ENOENT #100

Closed
Catacas opened this issue Nov 3, 2021 · 41 comments
Closed

ERR: spawn ./db/ffmpeg ENOENT #100

Catacas opened this issue Nov 3, 2021 · 41 comments
Assignees
Milestone

Comments

@Catacas
Copy link

Catacas commented Nov 3, 2021

Hi, I'm running the downlaoder in docker on Unraid.

Everytime there is a new Video, it does download the video, but can't process it.
image
When I go into the download folder it looks like this.
image
My configuration looks like this.
image

@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

What tag are you running for the docker version?

@Catacas
Copy link
Author

Catacas commented Nov 3, 2021

Currently non. Should I change it to latest?

@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

Yes please try latest

@Catacas
Copy link
Author

Catacas commented Nov 3, 2021

The log gives the same Error codes

@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

Can you check what exists under the db folder? ffmpeg should be saved there and should be executable

@Catacas
Copy link
Author

Catacas commented Nov 3, 2021

only a folder called "channels", cookies.json and settings.json

@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

Can you try running with headless set to false and let me know if that works better?

@Catacas
Copy link
Author

Catacas commented Nov 3, 2021

Yes! That worked. Now it said, that ffmpeg is missing and it downloaded it. The videos get processed aswell.
Thanks for the very quick response!

@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

This appears to be a remenant of #82 caused by this #57...

Ill need to fix this in the next release, leaving this issue open. For now use headless=false but understand it may result in behaviour not supported for a docker enviroment.

@Inrixia Inrixia self-assigned this Nov 3, 2021
@Inrixia Inrixia added the bug label Nov 3, 2021
@Inrixia Inrixia added this to To do in Release 5.2.0 via automation Nov 3, 2021
@Inrixia Inrixia added this to the Next Release milestone Nov 3, 2021
@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

Found the issue. #57 does not update this line so when running headless ffmpeg is attempting to spawn from the wrong directory...

'./db/ffmpeg',

Should check for headless and set appropriately #todo

@Catacas
Copy link
Author

Catacas commented Nov 3, 2021

FYI I wouldn't run it with the headless in docker. The downloader works and processes the videos. But at the same time it crashed the whole UI of UNraid. When I stoped the downloader through putty the UI worked again.

@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

FYI I wouldn't run it with the headless in docker. The downloader works and processes the videos. But at the same time it crashed the whole UI of UNraid. When I stoped the downloader through putty the UI worked again.

Do you mean wouldn't run it with headless true or headless false?

@Catacas
Copy link
Author

Catacas commented Nov 3, 2021

When I set headless to false the downloader worked, but th GUI of unriad crashed. When the downloader was stoped the GUI worked again.

@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

Right yea, probably due to the console spam. Ill push a fix for the headless ffmpeg issue for you to test soon

@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

Found the issue. #57 does not...

Actually this is wrong was looking at the wrong branch. @Catacas Are you sure your using the latest version when headless=true was not working? Can you try with headless enabled now?

@Catacas
Copy link
Author

Catacas commented Nov 3, 2021

I've tried a few things.
I stoped the container, delted everything in the db and video folder, set headless to true and started it again.
Then I got the error from the beginning again.
I stoped it again, set headless to false and started it again. Then all the videos were processed and the ui crashed.
I stoped it again deleted everything except ffmpeg from the db and video folder, set headless to true and ran it again and it worked.

So it apperas, that in headless mode it doesn't check if ffmpeg exists or doesn't download it

@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

Mmk, Ill fix this now then

@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

Should be fixed in 0f404e7

Please do a clean install with latest and see if its fixed @Catacas.

@Inrixia Inrixia added awaiting fix confirmed Waiting for someone to confirm the fix/change works in progress labels Nov 3, 2021
@Catacas
Copy link
Author

Catacas commented Nov 3, 2021

Now it said:
Ffmpeg binary missing! Downloading... Done!
But ffmpeg is not in the db folder, so I got the same error

@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

Ok, 5b51b08 should properly fix this without breaking things now.

Once https://github.com/Inrixia/Floatplane-Downloader/actions/runs/1416220216 finishes please do a clean install on latest again and see if its fixed running with headless=true thanks :)

@Catacas
Copy link
Author

Catacas commented Nov 3, 2021

Same error again. Would it be possible, that you print the current version at the beginning just to make sure, that I have the right version?

@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

If your pulling a new image then it will be up to date. That said I should probably add a version printout at some point.

Ive pushed some changes that might fix it. Please pull from docker hub and test.

@Catacas
Copy link
Author

Catacas commented Nov 3, 2021

Same error and still no ffmpeg.

@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

Pushed some changes, please try them out and let me know if it works.

Also if you can see the folder structure of the container not just the ./db folder that would be helpful.

@Catacas
Copy link
Author

Catacas commented Nov 3, 2021

Same error and no ffmpeg in the db folder. But there is ffmpeg in the root folder.

@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

Hmm, and the ffmpeg in the db folder has no file extension its just called ffmpeg?

@Catacas
Copy link
Author

Catacas commented Nov 3, 2021

inside the db folder there is no ffmpeg and in the root folder it is just ffmpeg with no file extensiton.
image

@Catacas
Copy link
Author

Catacas commented Nov 3, 2021

sorry, not root but this is the fp folder

@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

Hmm, ok progress maybe. ffmpeg should be inside that folder.

Pull the latest and try now

@Catacas
Copy link
Author

Catacas commented Nov 3, 2021

still the same.

@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

Hmm this is beginning to look like some kinda weird permissions error.

@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

Go ahead and repull this one should fix it

@Catacas
Copy link
Author

Catacas commented Nov 3, 2021

i just noticed, that you are changing dev and not latest
image
I was still on latest. I'm gonna try dev

@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

omfg lmao, my bad the tags are confusing

@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

Go ahead and re-pull. Ive rolled back dev to how it was before the patches.

@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

I bet this was fixed in #82 all along

@Catacas
Copy link
Author

Catacas commented Nov 3, 2021

wich one should i download? latest still has the issue

@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

Use dev

@Catacas
Copy link
Author

Catacas commented Nov 3, 2021

YES! That works!

@Inrixia
Copy link
Owner

Inrixia commented Nov 3, 2021

Hah so it was fixed all along and I was running in circles. Funny.

Closing as this is a duplicate of #82

Let me know if you run into any other issues :)

@Inrixia Inrixia closed this as completed Nov 3, 2021
Release 5.2.0 automation moved this from To do to Done Nov 3, 2021
@Inrixia Inrixia added duplicate and removed awaiting fix confirmed Waiting for someone to confirm the fix/change works in progress labels Nov 3, 2021
@Catacas
Copy link
Author

Catacas commented Nov 3, 2021

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

2 participants