-
Notifications
You must be signed in to change notification settings - Fork 335
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
Fix concurrency issue with .jobs #63
Comments
I've been getting the same error - almost always when processing a large file, but occasionally also with small files. The problem seems to be that the JSON parsing in redis/fake.js fails when loading the '.jobs' file in load(). Judging by the fairly random occurrence of the error, I suspect there's a concurrency issue with reading/writing to the '.jobs' file. Catching the parsing error and retrying after a short wait seems to resolve the error. |
Thanks for the details - it looks like the issue stems from the
To your |
Three possible options for resolving this once and for all:
|
Perfect, that fixed it (at least my first couple of jobs have worked). I installed Redis and restarted my audiogram server. Thanks for your help. |
yeah weirdly I've been noticing this too -- only in the last few days! Installing and using Redis seemed to fix it. Hadn't touched the server for a few weeks. I'm on the smallest Ubuntu droplet on digitalocean, in case anyone else is and that's the factor, but sounds like everyone else is using different servers. |
I'm having exactly the same issue - for all but the shortest clips. I'm running on an Ubuntu 12 box (Linux Mint maya installed in an Asus EeePC I got back in 2008). It might not help that it's an old (and hence slower) machine. |
|
For the record I also have this "Unexpected end of input" problem often. Maybe 1 in 10 times. I have been testing with a mp3 file that's 411KB. Retrying the same file nearly always works the next time. I'll try the redis fix, but +1 for a troubleshooting section. |
Same issue here. Fixed by switching to Redis. |
I think the appropriate fix for this will be to replace |
Still happening even with redis and deleting On another try, I noticed that
And lo! When I looked in So although I received the "Unknown error", quite by chance I discovered that Audiogram had produced the video, and of course I could move and rename it by hand. |
Can someone explain how to add the code: js to the independentx file? I cannot get it right. |
Very late to this party. Running this for our newsroom on a heroku server. Implemented Redis which is a good call anyway, but were still sometimes seeing the 500 occur when calling to the status endpoint during rendering. For what's it worth, a very easy fix that so far seems to be without issue was just changing the timeout call to give more time for the reading and writing to occur between status checks to decrease the likelihood of the concurrency instance. Might be useful for someone else so wanted to share. |
Every time I click "Generate" it returns an Unknown Error and takes me back to the editor. The only success I've had was cutting the audio down to a short clip (<10sec), but sometimes that still fails. It sometimes runs through generating frames and gets to near 70% before exiting, but other times it fails before it even starts.
My terminal output is:
I have been tweaking my theme, which looks like this:
I'm running the server on my local machine which is running Ubuntu 16.04 Mate.
Any guidance would be appreciated.
Thank you
The text was updated successfully, but these errors were encountered: