Afrostream / afrostream-back-end

Simple backo for afrostream
1 stars 0 forks source link

PF: bug import The_New_Edition_Story-0001 #410

Closed syndr0m closed 7 years ago

syndr0m commented 7 years ago
output: {"error":"invalid character 'o' in literal false (expecting 'a')"}{"error":"invalid character 'o' in literal false (expecting 'a')"}{"error":"invalid character 'o' in literal false (expecting 'a')"}{"error":"invalid character 'o' in literal false (expecting 'a')"}{"error":"invalid character 'o' in literal false (expecting 'a')"}{"error":"invalid character 'o' in literal false (expecting 'a')"}

logs screen pf

2017/03/28 17:47:18 Transferring file `The New Edition Story-0001.xml'
2017/03/28 17:47:18  -- FTP mirroring completed on ftps://185.32.100.62
2017/03/28 17:47:18  -- fullPath is /space/home/afrostream/media/catchup/bet/The New Edition Story-0001.stl
2017/03/28 17:47:18  -- path.Ext(fullPath) is .stl
2017/03/28 17:47:18  -- fullPath is /space/home/afrostream/media/catchup/bet/The New Edition Story-0001.xml
2017/03/28 17:47:18  -- path.Ext(fullPath) is .xml
2017/03/28 17:47:18  -- Sleeping 5 minutes
2017/03/28 18:02:18  -- FTP mirroring started on ftps://185.32.100.62
2017/03/28 18:02:18  -- Starting transfer from ftps://185.32.100.62
2017/03/28 18:02:20  -- FTP mirroring completed on ftps://185.32.100.62
2017/03/28 18:02:20  -- Sleeping 5 minutes
2017/03/28 18:17:20  -- FTP mirroring started on ftps://185.32.100.62
2017/03/28 18:17:20  -- Starting transfer from ftps://185.32.100.62
2017/03/28 18:17:23 Transferring file `The New Edition Story-0001.mxf'
2017/03/28 18:40:22  -- FTP mirroring completed on ftps://185.32.100.62
2017/03/28 18:40:22  -- fullPath is /space/home/afrostream/media/catchup/bet/The New Edition Story-0001.mxf
2017/03/28 18:40:22  -- path.Ext(fullPath) is .mxf
2017/03/28 18:40:22 XML PATH is /space/home/afrostream/media/catchup/bet/The New Edition Story-0001.xml
2017/03/28 18:40:23  -- Converted /space/home/afrostream/media/catchup/bet/The New Edition Story-0001.stl -> /space/home/afrostream/media/catchup/bet/The_New_Edition_Story-0001.vtt
2017/03/28 18:40:23 Execute /usr/local/scripts/sh/move_file_to_source.sh /space/home/afrostream/media/catchup/bet/The New Edition Story-0001.mxf /space/home/afrostream/media/catchup/bet/The_New_Edition_Story-0001.vtt
2017/03/28 18:48:58 output: {"error":"invalid character 'o' in literal false (expecting 'a')"}{"error":"invalid character 'o' in literal false (expecting 'a')"}{"error":"invalid character 'o' in literal false (expecting 'a')"}{"error":"invalid character 'o' in literal false (expecting 'a')"}{"error":"invalid character 'o' in literal false (expecting 'a')"}{"error":"invalid character 'o' in literal false (expecting 'a')"}
2017/03/28 18:48:58 -- Copying files [/space/home/afrostream/media/catchup/bet/The_New_Edition_Story-0001.xml] to ubuntu@p-afsmogn-001.afrostream.tv:/share/origin/catchup/bet/
2017/03/28 18:48:59  XX Cannot query database for filename=/space/videos/sources/The_New_Edition_Story-0001.mxf: sql: no rows in result set
2017/03/28 18:49:04  XX Cannot query database for filename=/space/videos/sources/The_New_Edition_Story-0001.mxf: sql: no rows in result set
2017/03/28 18:49:09  XX Cannot query database for filename=/space/videos/sources/The_New_Edition_Story-0001.mxf: sql: no rows in result set
2017/03/28 18:49:14  XX Cannot query database for filename=/space/videos/sources/The_New_Edition_Story-0001.mxf: sql: no rows in result set
2017/03/28 18:49:19  XX Cannot query database for filename=/space/videos/sources/The_New_Edition_Story-0001.mxf: sql: no rows in result set
2017/03/28 18:49:24  XX Cannot query database for filename=/space/videos/sources/The_New_Edition_Story-0001.mxf: sql: no rows in result set
2017/03/28 18:49:29  XX Cannot query database for filename=/space/videos/sources/The_New_Edition_Story-0001.mxf: sql: no rows in result set
2017/03/28 18:49:34  XX Cannot query database for filename=/space/videos/sources/The_New_Edition_Story-0001.mxf: sql: no rows in result set
2017/03/28 18:49:39  XX Cannot query database for filename=/space/videos/sources/The_New_Edition_Story-0001.mxf: sql: no rows in result set
2017/03/28 18:49:44  XX Cannot query database for filename=/space/videos/sources/The_New_Edition_Story-0001.mxf: sql: no rows in result set
2017/03/28 18:49:49 -- POST JSON {"sharedSecret":"62b8557f248035275f6f8219fed7e9703d59509c","xml":"http://origin.cdn.afrostream.net/catchup/bet/The_New_Edition_Story-0001.xml","pfContentId": "", "captions":["http://sources-1.adm.afrostream.net/subtitles/The_New_Edition_Story-0001.vtt"]} on https://legacy-api.afrostream.tv/api/catchup/bet
2017/03/28 18:49:49 -- Response Status: 500 Internal Server Error
2017/03/28 18:49:49 -- Response Headers: map[Date:[Tue, 28 Mar 2017 16:49:49 GMT] Cache-Control:[max-age=0,private,no-cache,no-store,must-revalidate] Server:[Cowboy] X-Powered-By:[Express] Vary:[X-HTTP-Method-Override, Accept-Encoding] Access-Control-Allow-Origin:[*] Pragma:[no-cache] Via:[1.1 vegur] Connection:[Keep-Alive] Content-Type:[application/json; charset=utf-8] Access-Control-Allow-Headers:[Content-Type, Accept, Access-Token, Authorization, x-http-method-override] Content-Length:[80] Expires:[Thu, 01-Jan-1970 00:00:01 GMT] Keep-Alive:[timeout=5] Access-Control-Allow-Methods:[GET,PUT,POST,DELETE] X-Hw:[1490719789.dop006.pa1.t,1490719789.cds008.pa1.shn,1490719789.cds008.pa1.sc,1490719789.cds008.pa1.p]]
2017/03/28 18:49:49 -- Response Body: {"error":"pfContentId missing","message":"pfContentId missing","statusCode":500}
2017/03/28 18:49:49  -- Starting lftp script open ftps://185.32.100.62; user afrostream pw71J4KL; set ssl:verify-certificate no; mv "./The New Edition Story-0001.mxf" ./Processed/; mv "./The New Edition Story-0001.xml" ./Processed/; mv "./The New Edition Story-0001.stl" ./Processed/; wait all; bye
2017/03/28 18:49:51  -- Sleeping 5 minutes
2017/03/28 19:04:51  -- FTP mirroring started on ftps://185.32.100.62
2017/03/28 19:04:51  -- Starting transfer from ftps://185.32.100.62
2017/03/28 19:04:54  -- FTP mirroring completed on ftps://185.32.100.62
syndr0m commented 7 years ago
 ✓ ubuntu@p-afsmsch-001  ~ $ curl -X POST -d "{\"filename\":\"/space/videos/sources/The_New_Edition_Story-0001.mxf\"}" http://p-afsmsch-001.afrostream.tv:4000/api/contents
{"error":"fork/exec /usr/bin/ffmpeg: cannot allocate memory"}

=> kill -9 du pfScheduler => on relance l'import manuellement

syndr0m commented 7 years ago
 ✓ ubuntu@p-afsmsch-001  ~ $ curl -X POST -d "{\"filename\":\"/space/videos/sources/The_New_Edition_Story-0001.mxf\"}" http://p-afsmsch-001.afrostream.tv:4000/api/contents
{"contentId":13013,"uuid":"0776419d-bb3f-4097-9cd8-04ffe860b771"}
export FILENAME="/space/videos/sources/subtitles/The_New_Edition_Story-0001.vtt";
export SUBTITLE="/space/home/afrostream/media/catchup/bet/The_New_Edition_Story-0001.vtt";
export SUBTITLE=$(basename "$SUBTITLE");
export SOURCE_FILENAME=/space/videos/sources/The_New_Edition_Story-0001.mxf;
export SOURCE_SUBTITLE=/space/videos/sources/subtitles/The_New_Edition_Story-0001.vtt;
export contentId=13013;

  curl -X POST -d "{\"contentId\":${contentId},\"subtitles\":[{\"lang\":\"fra\",\"url\":\"http://sources-1.adm.afrostream.net/subtitles/${SUBTITLE}\"}]}" http://p-afsmsch-001.afrostream.tv:4000/api/pfSubtitles;
  curl -X POST -d "{\"contentId\":${contentId},\"streams\":[{\"lang\":\"eng\",\"type\":\"video\",\"channel\":0},{\"lang\":\"eng\",\"type\":\"audio\",\"channel\":1}]}" http://p-afsmsch-001.afrostream.tv:4000/api/pfContentsStreams;

curl -X POST -d "{\"contentId\":${contentId},\"broadcaster\":\"afrostream\"}" http://p-afsmsch-001.afrostream.tv:4000/api/pfTranscode;
curl -X POST -d "{\"contentId\":${contentId},\"broadcaster\":\"bouyguesmiami\"}" http://p-afsmsch-001.afrostream.tv:4000/api/pfTranscode;
curl -X POST -d "{\"contentId\":${contentId},\"broadcaster\":\"bouygues\"}" http://p-afsmsch-001.afrostream.tv:4000/api/pfTranscode;
curl -X POST -d "{\"contentId\":${contentId},\"broadcaster\":\"orange\"}" http://p-afsmsch-001.afrostream.tv:4000/api/pfTranscode;
syndr0m commented 7 years ago
 ✗ ubuntu@p-afsmsch-001  /usr/local/scripts/sh $ curl -X POST -H 'Content-Type: application/json' -d '{"sharedSecret":"62b8557f248035275f6f8219fed7e9703d59509c","xml":"http://origin.cdn.afrostream.net/catchup/bet/The_New_Edition_Story-0001.xml","pfContentId": "13013", "captions":["http://sources-1.adm.afrostream.net/subtitles/The_New_Edition_Story-0001.vtt"]}' https://legacy-api.afrostream.tv/api/jobs/catchup-bet
{"message":"job created","id":10252} 
syndr0m commented 7 years ago

problème : http://p-afsmsch-001.afrostream.tv:4000/api/assetsStreams?md5Hash=778f399d63509950506ec080c18e08e5&profileName=VIDEO0ENG_AUDIO0ENG&broadcaster=AFROSTREAM sort vide =>

 ✓ ubuntu@p-afsmsch-001  /usr/local/scripts/sh $ curl -X POST -d "{\"contentId\":${contentId},\"broadcaster\":\"afrostream\"}" http://p-afsmsch-001.afrostream.tv:4000/api/pfTranscode;
{"assetsId":[128507,128508,128509,128510,128511,128512,128513]}
syndr0m commented 7 years ago

probablement en attente => standby @see http://p-afsmsch-001.afrostream.tv:4000/api/contents/13013/assets

syndr0m commented 7 years ago

done