Foliovision › Forums › FV Player › Bug Reports › Coconut encoding jobs not showing
-
Hello
We have change site domain (from subdomain to main domain). We have problem with media selector DigitalOcean. We had to use import option to add old vids, we dont see any on media selector DigitalOcean. We can add new job to Coconut by media selector and Coconut panel. Media are procesing corectly all files are on DigitalOcean, but media selector is still empty. No old or new files. DigitalOcean folder names in setup wordpres are corect. Where can be problem? How i can add media from DigitalOcean?
We had 7 FV version. I change to 8 with hope to solve the problem, but with no result.
( System Info removed )
-
-
Hello Maryia,
Unless you added a whole bunch of videos on the new website I would suggest that you migrate the
wp_fv_player_encoding_jobs
database table to the new website. That will work as FV Player Coconut keeps a database of the encoding jobs and does not rely on files. This way we can keep a proper data structure for all video URLs and decryption keys.If these old videos were also encrypted, then you will have to allow their playback too by allowing the 3rd party domain playback. Please let us know if that’s the case and we will publish the guide.
Thanks,
MartinWe imported old video files via json and they work. The problem is that coconat’s jobs, although they are finished and uploaded to Digital Ocean (they appear in the correct folders on their site), does not appear in the media selector as before. The problem is not with the old files, but with the new ones.
Hello Maryia,
Please check if you can see the encoding jobs in wp-admin -> FV Player -> Coconut Jobs.
If yes, then the problem might be with the media selector.
To troubleshoot that go to wp-admin -> FV Player and open your browser console, here’s how to do that: https://foliovision.com/player/troubleshooting/browser-console
Then bring up the FV Player Editor by clicking “Add new” on that wp-admin -> FV Player page which you loaded with the console open.
Click to pick the video URL and finally navigate to the Coconut tab – which will load empty as you said.
Will any of that show any error on the browser console?
You can check for PHP errors too.
Please let us know how it goes.
Thanks,
Martinwp-admin -> FV Player -> Coconut Jobs are ok. Jobs are procesing and as i wrote files go to final folder on digital ocean. I can add Coconut jobs by FV Player -> Coconut Jobs and by FV media selector.
In the console there is no errors. Just in media selector there is no files from digital ocean tab (in the . There is red X and sign “No files here”. On the panel digital ocean are files in the folder. Folder name is set up in config (pasted above) corectly. I can even make new folder in media selector.
In coconut admin panel job is marked as succes. In Notifications job Response is http/1.1 200 ok
In FV Player -> Coconut jobs status is “created”. Thats ok?
Hello Maryia,
It’s strange that the wp-admin -> FV Player -> Coconut jobs screen shows “status” row with value of “created” for your videos. It should be “completed”.
Is it the case with all of them, even the ones which were processed?
You can run this MySQL query to mark all these jobs as completed:
UPDATE wp_fv_player_encoding_jobs SET status = 'completed' WHERE type = 'coconut' AND status = 'created';
Please back up your database before running that and let us know if it helped.
I was also looking at the code to see if I can find any reason why this would ever break. I wonder if you were adding these new videos while the website was locked for the outside access. If you add a new video now, will it still not show up?
Thanks,
MartinYes, i have added 1-2 first film to job when the site was not active, but next films i added when was active. I clic on coconut to resend response and response status is ok, so FV get the info. For a moment i will try mysql query. I think that shoud be good for now. I will try again add job and try to copy coconut job table as you write before (films copied by json dont work).
I have copy table with jobs, but nothing change. I even try to delete plugin (with checked erase all plugin data in config). After instalation plugin, FV pro and coconout (from zero, standard instalation) i have errors and nothing works.
I find only one error on wp-content/plugins/fv-player/controller/s3-ajax.php?
Hello Maryia,
Please grab a new FV Player Coconut 8 ZIP file from https://foliovision.com/my-licenses and reinstall from that.
If these
s3-ajax.php
errors won’t go away, please check the PHP error log and let us know what’s there.If you are not sure about how to check the PHP error log, the server technical support should be able to give you a hand.
Or you can install this plugin which makes a list of these errors available in wp-admin: https://wordpress.org/plugins/error-log-monitor/
Then try to upload a video once again and if the “Coconut” tab ends up being empty then the error should be recorded in these logs.
Thanks,
MartinIn media selector FV after upload i have “Error while submitting to Coconut for processing. Please retry manually.” Uploaded file is on digitalocean panel in folder to to-convert.
In Coconut jobs i can select uploaded file but still is error 500.
In error log i have one error[Thu Aug 29 10:04:17.554980 2024] [proxy_fcgi:error] [pid 24301:tid 140428552681216] [client 175.22.83.124:42390] AH01071: Got error 'PHP message: PHP Warning: Constant WP_DEBUG already defined in .../public_html/wp-config.php on line 91'
After set FV Coconut debug in setting to off:
PHP Fatal error: Uncaught TypeError: arsort(): Argument #1 ($array) must be of type array, null given in .../public_html/wp-includes/plugin.php:771 Stack trace: #0 .../public_html/wp-includes/plugin.php(771): arsort() #1 .../public_html/wp-includes/plugin.php(893): plugin_basename() #2 .../public_html/wp-content/plugins/fv-player-pro-8/fv-player-pro.php(319): register_deactivation_hook() #3 .../public_html/wp-content/plugins/fv-player-coconut-8/controller/coconut-ajax.php(93): include_once('...') #4 {main}\n thrown in .../public_html/wp-includes/plugin.php on line 771', referer: /wp-admin/admin.php?page=fv_player_coconut
Hello Maryia,
I was able to reproduce the issue when using WordPress 6.6.
Please grab a new FV Player Coconut 8 ZIP file from https://foliovision.com/my-licenses and reinstall from that.
That will fix the issue.
Thanks,
MartinHello Marin, thanks for response. After update i can add job but there is next errors. First is licence error “Invalid license key, please check your license and re-save the options!”. Licence key is good. I try to add job. it appeared on the list but there is an error. Logs from Coconut
{ "settings": { "ultrafast": true }, "input": { "url": "https://marie-margo-source-videos-to-convert.ams3.digitaloceanspaces.com/MM-1_WST%C4%98P.mp4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=DO00UJJ4P23CCWLCTBN4%2F20240902%2Fams3%2Fs3%2Faws4_request&X-Amz-Date=20240902T101355Z&X-Amz-Expires=14400&X-Amz-SignedHeaders=host&X-Amz-Signature=224b0f1196c96bca469633da417c7ebc35a42bd402d596f67ccce8593c627b70" }, "notification": { "type": "http", "url": "https://mariemargo.pl?fv_player_coconut_job_id=1" }, "outputs": { "jpg:320x": { "path": "//cdn.foliovision.com/MM-1-WST-P/sprite-a1cc5c5a77.jpg", "interval": 0, "sprite": { "limit": 1000 }, "vtt": { "filename": "sprite-a1cc5c5a77.vtt" } }, "jpg:300x": { "path": "//cdn.foliovision.com/MM-1-WST-P/thumbnail-30dbd09c79.jpg" }, "jpg:1280x": { "path": "//cdn.foliovision.com/MM-1-WST-P/thumbnail-large-42940459e8.jpg" }, "httpstream": { "if": "{{ input.height }} <= 2160", "hls": { "path": "/MM-1-WST-P", "version": 3, "encryption_mode": "AES-128", "encryption_key": "ef6e4be487eb91ca1f3ba484e99ee2ed", "encryption_key_uri": "https://mariemargo.pl/?stream_optim=/MM-1-WST-P/index" }, "playlist_name": "index", "variants": [ "mp4:240p_320k::maxrate=960k", "mp4:480p_700k::maxrate=2100k", "mp4:720p_4000k::maxrate=12000k", "mp4:1080p_6000k::maxrate=18000k", "mp4:0x1440_10000k::maxrate=30000k", "mp4:2160p_16000k::maxrate=48000k" ] }, "httpstream#above4K": { "if": "{{ input.height }} > 2160", "hls": { "path": "/MM-1-WST-P", "version": 3, "encryption_mode": "AES-128", "encryption_key": "ef6e4be487eb91ca1f3ba484e99ee2ed", "encryption_key_uri": "https://mariemargo.pl/?stream_optim=/MM-1-WST-P/index" }, "playlist_name": "index", "variants": [ "mp4:240p_320k::maxrate=960k", "mp4:480p_700k::maxrate=2100k", "mp4:720p_4000k::maxrate=12000k", "mp4:1080p_6000k::maxrate=18000k", "mp4:0x1440_10000k::maxrate=30000k", "mp4:2160p_16000k::maxrate=48000k" ] } }, "storage": { "service": "s3", "region": "us-east-2", "endpoint": "https://ams3.digitaloceanspaces.com", "bucket": "marie-margo-encoded-videos-coconut", "credentials": { "access_key_id": "hidden", "secret_access_key": "hidden" }, "acl": "private" } }
The media file is not valid.
is this due to a licensing error?
Hello Maryia,
I’m not sure what could cause the license error, but I’ll look into that.
The license only takes care of the updates, it does not affect FV Player Coconut functions.
I see that you are using
Ę
letter in your file name. I’m checking if something changed in FV Player Coconut 8 to see if we are no longer sanitizing such input.In the meantime please try to upload your source video without any unusual characters.
Thanks,
MartinHello Maryia,
I fixed the license key check for FV Player Coconut 8, it should stop complaining in a couple of hours.
About
Ę
– I’m not sure why, but in my testing WordPress core functionremove_accents()
did not remove it.Please reinstall FV Player from https://foliovision.com/downloads/fv-player-8.zip and it should fix the issue.
Thanks,
MartinĘ is not a problem. Names should not contain Polish letters. I have corrected it. Unfortunately, the status does not change. The list says created. It does not change to error or completed. I manually changed the status in the mysql database. I don’t know what to do next. There is no way to add a movie from the jobs level, and there is no movie on the Add from media library list either. There are files on digitalocean. No errors appear.
Hello Maryia,
Now I realized that changing the status manually won’t help. You did say that the Coconut jobs seem to be finishing properly:
files go to final folder on digital ocean.
However there is still a bit of processing to be done before the job can be marked as “complete”.
Could you please check the jobs on https://app.coconut.co/jobs in the meantime?
- “Status” column should show “success”
- When you click to the job you get to an URL like https://app.coconut.co/jobs/0ffZwMQNd4ucBQ
- In the “Outputs” section on that page you should see “httpstream” with “success” Status
- In the “Notifications” section you should see “JOB.COMPLETED” and “success”
I’m attaching a screenshot of that screen to that you can compare it to yours.
Please let me know.
Debugging these issues is certainly taking longer than I expected. I’ll work on adding debug for the webhook now.
Thanks,
MartinHello Maryia,
Please grab a new FV Player Coconut 8 ZIP file from https://foliovision.com/my-licenses and reinstall from that.
Then enable wp-admin -> FV Player -> Coconut Jobs -> Settings -> Debug. Once you save the settings, you will get a message like this next to the checkbox with a link:
Logging into fv-player-coconut-8-debug-05…82.log. Disabling Debug will delete the log file.
Please send over the link to that debug log file.
Finally submit another (short) video for encoding and then we will be able to see what shows up the log.
Thanks,
Martindebug log
(removed)error log:
[Tue Sep 03 16:12:11.421271 2024] [proxy_fcgi:error] [pid 11351:tid 140552167044864] [remote 83.5.156.111:53909] AH01071: Got error 'PHP message: PHP Warning: Constant WP_DEBUG already defined in /public_html/wp-config.php on line 91', referer: /wp-admin/admin.php?page=fv_player_coconut [Tue Sep 03 16:12:13.849593 2024] [proxy_fcgi:error] [pid 11351:tid 140552292935424] [remote 83.5.156.111:53909] AH01071: Got error 'PHP message: PHP Warning: Constant WP_DEBUG already defined in /public_html/wp-config.php on line 91', referer: /wp-admin/admin.php?page=fv_player_coconut [Tue Sep 03 16:12:20.219011 2024] [proxy_fcgi:error] [pid 11351:tid 140549029877504] [client 5.187.51.121:54132] AH01071: Got error 'PHP message: PHP Warning: Constant WP_DEBUG already defined in /public_html/wp-config.php on line 91' [Tue Sep 03 16:12:20.301941 2024] [proxy_fcgi:error] [pid 11351:tid 140552057939712] [remote 83.5.156.111:53909] AH01071: Got error 'PHP message: PHP Warning: Constant WP_DEBUG already defined in /public_html/wp-config.php on line 91', referer: /wp-admin/admin.php?page=fv_player_coconut [Tue Sep 03 16:12:22.851055 2024] [proxy_fcgi:error] [pid 11351:tid 140552150259456] [remote 83.5.156.111:53909] AH01071: Got error 'PHP message: PHP Warning: Constant WP_DEBUG already defined in /public_html/wp-config.php on line 91', referer: /wp-admin/admin.php?page=fv_player_coconut [Tue Sep 03 16:12:27.574934 2024] [proxy_fcgi:error] [pid 11351:tid 140552351684352] [remote 83.5.156.111:53909] AH01071: Got error 'PHP message: PHP Warning: Constant WP_DEBUG already defined in /public_html/wp-config.php on line 91', referer: /wp-content/uploads/fv-player-coconut-8-debug-3397921dc6c575624d5205a6897840d6.log [Tue Sep 03 16:12:28.730076 2024] [proxy_fcgi:error] [pid 11351:tid 140549013092096] [client 5.187.51.121:54138] AH01071: Got error 'PHP message: PHP Warning: Constant WP_DEBUG already defined in /public_html/wp-config.php on line 91' [Tue Sep 03 16:12:28.801826 2024] [proxy_fcgi:error] [pid 11351:tid 140552032761600] [remote 83.5.156.111:53909] AH01071: Got error 'PHP message: PHP Warning: Constant WP_DEBUG already defined in /public_html/wp-config.php on line 91', referer: /wp-admin/admin.php?page=fv_player_coconut&panel=settings [Tue Sep 03 16:12:37.605600 2024] [proxy_fcgi:error] [pid 11351:tid 140548862088960] [client 91.121.145.32:33594] AH01071: Got error 'PHP message: PHP Warning: Constant WP_DEBUG already defined in /public_html/wp-config.php on line 91' [Tue Sep 03 16:13:04.026886 2024] [proxy_fcgi:error] [pid 11351:tid 140549818398464] [client 34.196.51.17:46658] AH01071: Got error 'PHP message: PHP Warning: Constant WP_DEBUG already defined in /public_html/wp-config.php on line 91', referer: https://kurs.mariemargo.pl/
coconut response json
{ "job_id": "skPNzzVfJNmFOU", "event": "job.completed", "metadata": false, "data": { "type": "job", "status": "job.completed", "progress": "100%", "id": "skPNzzVfJNmFOU", "created_at": "2024-09-03 14:07:59 +0000", "completed_at": "2024-09-03 14:09:20 +0000", "input": { "status": "input.transferred" }, "outputs": [ { "key": "jpg:320x", "type": "image", "format": "jpg:320x", "urls": [ "https://ams3.digitaloceanspaces.com/marie-margo-encoded-videos-coconut/22/sprite-9f134afb4f.jpg", "https://ams3.digitaloceanspaces.com/marie-margo-encoded-videos-coconut/22/sprite-9f134afb4f.vtt" ], "status": "image.created" }, { "key": "jpg:300x", "type": "image", "format": "jpg:300x", "urls": [ "https://ams3.digitaloceanspaces.com/marie-margo-encoded-videos-coconut/22/thumbnail-446f5830e6.jpg" ], "status": "image.created" }, { "key": "jpg:1280x", "type": "image", "format": "jpg:1280x", "urls": [ "https://ams3.digitaloceanspaces.com/marie-margo-encoded-videos-coconut/22/thumbnail-large-8f38e01143.jpg" ], "status": "image.created" }, { "key": "httpstream", "type": "httpstream", "format": "httpstream", "urls": [ { "format": "hls", "url": "https://ams3.digitaloceanspaces.com/marie-margo-encoded-videos-coconut/22/index.m3u8" } ], "status": "httpstream.packaged" }, { "key": "httpstream#above4K", "type": "httpstream", "format": "httpstream", "status": "httpstream.skipped" } ] } }
coconut response http
HTTP/1.1 200 OK Date: Tue, 03 Sep 2024 14:09:22 GMT Server: Apache/2 Upgrade: h2,h2c Connection: Upgrade, Keep-Alive Cache-Control: max-age=0 Expires: Tue, 03 Sep 2024 14:09:22 GMT Vary: User-Agent Content-Length: 0 Keep-Alive: timeout=2, max=100 Content-Type: text/html; charset=UTF-8 Status: 200 OK
config, line 90 and 91
require_once(ABSPATH . 'wp-settings.php'); define('WP_DEBUG', false);
Hello Maryia,
Are you sure you grabbed a new FV Player Coconut 8 ZIP file from https://foliovision.com/my-licenses and did you really reinstall from that file?
I’m asking because an important part of the log file is missing. There’s nothing about job_check.
But it could also be the reason why it just won’t work for you.
Please let me know. We are also happy to fix the issue hands on right on your website if you purchase our Pro support: https://foliovision.com/pro-support
Thanks,
MartinHello Maryia,
The conclude this thread –
We found that your website was missing a single database field and in your server environment it caused failures when trying to update the encoding jobs in database. This might depend on the MySQL version you are using.
So we improved the compatibility of FV Player Coconut.
Thanks,
Martin