unable to load media url

soaringeagle
@soaringeagle
6 years ago
3,304 posts
this is happening again, i think on all music (vids too maybe?)

does this url look correct (from error log)
GET /uploaded_audio/stream/audio_file/14719/key=1/file.mp3 HTTP/1.1
i would think the key=1 would come after a ? after the filename/



--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 05/06/18 01:46:14PM
SteveX
SteveX
@ultrajam
6 years ago
2,584 posts
key=1 is in the right place, it doesn't need to be after a ?

But "1" isn't the right key, it should be something like key=J0F2hpzP


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
soaringeagle
@soaringeagle
6 years ago
3,304 posts
great
it seems all my music, all my uploaded vids have this issue.
is there any way to fix it
can anyone write a script that will reassign the proper keys

and how the hell did this happen to begin with
only thing i can think of is when doingt a forced reconvert and verify videos


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
SteveX
SteveX
@ultrajam
6 years ago
2,584 posts
My first thought is that it's something to do with your new custom server setup. That has broken other things, so that is probably the cause of your issues here as well.

Could be that that is breaking your keys now, or it could be that you broke something to do with your keys when you reconverted. I'm not sure, but I expect that if you tried it on a working server that all would work fine.

Did you already fix the php misconfiguration on your server? Or are you still trying to troubleshoot that at the same time as troubleshooting this?


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
soaringeagle
@soaringeagle
6 years ago
3,304 posts
thats being taken care of but no. how would it "work just fine' onn any other server when the url itself has been changed. these keys, come from the database, and it must be due to improper key incrimination. ..we had that issue with photos i think it was once when they would not incrimant right and had to mannually delete the most recent dozen or so db entries to revert back to when it was incrementing right. if it was the reconvert it was likely due to something like that , 1 key being incorrect set off a chain reaction of every key after getting the default value of 1


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
6 years ago
3,304 posts
i think i discovered it in datastore
audio_file_track: 2
alternates between 1 and 2
i use 2 conversion workers
if they finish nearly simultaniously both get assigned 1
so back anfd forth they get 1 or 2
going to attempt reconversion with 1 worker but not sure that will help vids


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
SteveX
SteveX
@ultrajam
6 years ago
2,584 posts
It won't help you at all. The key isn't stored with the item.

I think it does work just fine on every other server (apart from yours, obviously). Otherwise people would be posting here saying that their media isn't playing. Keys are being generated just fine on all of mine, I haven't seen any issues with playing media at all, ever.

Why not wait until you get the breaking problems fixed on your server? A reconvert might work better then? At least you could rule one thing out rather than shooting around at a million possibilities at once?


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
soaringeagle
@soaringeagle
6 years ago
3,304 posts
the servers fine, the fixes i added to fastcgi are working, and it will be switched to mod_php tonight.
so where do these keys come from then/ why is the database track numbers all alternate beytween 1 and 2?
the old server (and this 1) would time oputt when adding to the queue, or converting larger files so the add to queue process as well as the ffmpeg process might be restarted many times. thats likely the cause.
now its no longer restarting or timing out ..its not perfect maybe till mod_php gets implimemted, but it is working fine the add to queue ran through withpout any issues (to be extra safe paused queue prior to starting the process) its 1/2 way through the reconversion and i'll see then if it worked..if so.. wil need a force reconversion option for vids as well (or a comand line way to do it?)


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
6 years ago
3,304 posts
confirmed! its on 5465 of 7980 conversions so i simp0ly looked for any track number above 2 found 1 that said track 4 and it played absolutely perfectly

so, can you give me a way to force reconversion on the vids as well and the problem will be solved (by my own troubleshooting)


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
6 years ago
3,304 posts
yup, they are all working now (except the last 700 to go)
it probably was not using 2 workers that caused this (i was being overly cautious and for diagnostic reasons switched to 1)
the moore i think about it the more certain i am that when add to queue timesd out then got testarted it added the same files in twice causing the key to not increment correctly.

so if yo9u can PLEASE add a force reconvert to the video module too or give me a script i could run or a command line option to reconveryt all my videos that would be great
as it is vids uploaded fail at the very last second, i am assuming thats when the db key is assigned and that causes the upload to fail


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

Tags