Forum

Post a new question

Categories:

Tags:

Server-Side-Task-Control, re-start only once

Joël 2015-08-11 20:52:55 UTC in WMSPanel functionality
3b4ac90c74f1f6941223ebab5952e991

Hello, is it possible, when a command fails, that he will retry it for a period of time or maybe over and over again, every 15sec ?

I'm recording with ffmpeg. And whenn the input stream isn't available yet he must retry it several times.

the output will be "Video_`date +%#F_%H.%M.%S`.mp4"
so no problems with overwriting the file.

Andrey Gridin 2015-08-12 01:53:37 UTC
B5b8f14d2a3b870017719bf5dfe99354

Hello Joël,

All functionality you asked about is supported. Please see this blog article for details http://blog.wmspanel.com/2014/10/server-tasks-web-management.html

Joël 2015-08-12 09:14:00 UTC
3b4ac90c74f1f6941223ebab5952e991

Hi Andrey, yes this is a useful artikel.
and Server-Side task control is a powerful tool in the panel. I love it.

But both options are checked: Autorestart and Restart if no output.

But in my case, the retry is only once.
He gets a input/output error of ffmpeg, and thats it.

Andrey Gridin 2015-08-12 09:25:53 UTC
B5b8f14d2a3b870017719bf5dfe99354

Hi Joël,

Could you please perform new support request by sending e-mail to help@wmspanel.com.
Please also specify your task that is not restarted automatically in this e-mail for further analysis.

Vinicius Moll 2017-06-14 18:55:07 UTC
E7a79dd29638d99538f0433418ed44f4

Hello there, I'm having trouble to execute simple comands using server tasks.

The task convertMp4-stream2 is returning Permission Denied. What shold i do to solve this kind of trouble. Tried to change permission of user nimble as root but still getting the same problem.

Here folows my two tasks:

[
{
"alias": "convertMp4-stream2",
"autorestart": true,
"command": "ffmpeg -i http://127.0.0.1:8081/live/stream2.stream/playlist_dvr.m3u8 -codec copy -an /var/cache/nimble/dvr/live/stream2.stream.mp4",
"restart_if_no_output": true,
"restart_if_no_output_interval": 5,
"restart_interval": 2
},
{
"restart_interval": 15,
"restart_if_no_output_interval": 10,
"autorestart": true,
"restart_if_no_output": true,
"command": "aws s3 sync ./var/cache/nimble/dvr/live/* s3://streamsvod/vod",
"alias": "syncAWS-S3"
}
]

I'm looking forward for your help.

Thanks!

Max 2017-06-14 20:55:13 UTC
Ba425406063261ec184229ed0d5a200d

Hello Vinicius,

Nimble does not run server-side tasks under root user even if Nimble is running as root. Tasks are executed under user "nimble" so please make sure "nimble" can write to /var/cache/nimble/dvr/, but I'd suggest using some other directory to save .mp4 files.

Thank you.

Post a reply



This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the Privacy Policy. If you want to know more or withdraw your consent to all or some of the cookies, please refer to the Privacy Policy.
By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies.