Forum

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

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

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 

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 

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 

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 

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 

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


Post a new question

Categories:

Tags:

nimbleNimble StreamerFAQHLSDVRRTMPnimble streamerhlsABRcachewmsauthNimbleAPItranscoderffmpegdvrapiVODSRTfailoverrtmpstreamingDASHwmspanelvodudprtsppaywallsubtitlessldpDispersaRTSPyoutubelivelivestreamingmp4MPEG-DASHWMSAuthgeopay-per-viewsrtdashstreamervideoedgeabrWindowsencryptionhttpsUDPwhite labelconfiguser agentsmilFFMPEGmulticastsslMPEG-TSaudiore-streamingmpeg-dashCORSchunksraspberry piandroidbandwidthcorsadvertizervlcWMSPanelS3DRMrules.confadvertisingipv6MPEGTSFastSpringRAMwms panelthumbnailFMLEVATcrossdomainupdateRecordingmpegtsplaylistSMILwowzaakamaiaespushserversm3u8TranscodeerrorSSLbalanceWowzaplaylist_dvrchromecastconfigurationIDreportingbugperformancedomainnimblestreamerIPloopchunkmobilerepublishingHttpsVidillionpublish controlcodecmpeg-tsAWSdownloadoriginawsraspiancloudfrontSLDPCDNnimble webcam html5UIroutesbitrateRegistration Issuedirect link32-bit Windowstwitchanalysecache_controlitworkmelive abr support mpeg-dashwmspanelapirtmp abrbeirutWWDCdubaideep statshls to multicast udplogcloudIIS Smooth StreamingmediaHot-linking protectionHTTPSAbrHDSvaddioalertsjwplayer websiteAuthentication in HLSbaselinewhmcsCentOS v6.4pricenginx rtmp nimblelimitOld logsAV BridgescreencastVaddioPI3 Ubuntuview timeattaching domainsinterfacesWMSCONFIG_HOMEmessageDVRRecordingrestreamcostloadbalancingmod_rewritemetadataprofileID3 tagsgbpsAxiswmsauthsignhighhls restreaminghds streamVLClocalciscoresumenibler.net hotlinkdecodertransocding republishingVideo Playergentoo install server nimbleAliaslost trafficPublic Iptranscoding using NvidiaPaywall AuthlocationlebanonmanifestofflinedocumentationMP4 not playedspaceTrancoderconcurrent-connectionsfileipseekingicecast urlruleServer-sidehot linkingtasks-controlchangePlayReadyamazon web servicelimuxamfstoppeddvr stream twicemainplayouthot-linkAXVVGconnectivitydvr streamunique visitorblocknvenconpay per viewHLS vod7brandingtrialpaywalapplicationanalyticsdvr_archivesmpeg dashMP4microsoft streamobsTCOerrorsopensslrocksoftlog traffic statsExpression Encoderdebianprogressive downloadABR DASHFFmpegmultiple originsnimblesessionidHLS Playerlive video on demandDASH Playerbandwithheaderserverlog nimble analysertmp playbackvideojsadaptiveAV1 codecscreen freezecan't registersourceNGINX-RTMPJWPLAYERSnapshotsprivate networkLarge DVR filesno WMSPanelPullvideo stopcrossdomain more then 1 domain4Klive videomac osx installwotermarkattachmenthelp errorvimeovod no soundconcurrent connectionAWS 3buttload balancefallbackamazonControl APIvsomcdnLive streamingTranscoderlive streamFairplaysecurityWidevineRemote StorageWowza Agentnot foundpullmpeg2tsServer-Side-Task-ControlAS3disk migrationicecastscreen capturestereo to monotwitch larix broadcaster androidDVRSettingsinstall players setup ready to goDelete recordsAppledrmresourceaes encryptionsubscriptionABR HLS Bitrateslive pull settingsvideo loopdvr streamsrtmp for YouTubeautomationnimble streamer web server php script pageNimble Streamer APIlivestreamstarttime duration seekpointrebootmonitorNimble CapacityABR DVR problemoutratenimble.confrtmp republishing transcodeIIS Media Servicsapi accessDeep statsLive Switcherinterleavingweb playernimble streamer vod hls transmuxingloggingLive Broadcastnot to steallearnerCross Domaincontent-dispositioninsert logoactionscript 3AVCaptureMovieFileOutputblock downloadNimble ServerbroadcasterOSXRTMP republishPost processingadd_chunk failedfake extensionMPEG DASHUbuntu artful 17.10Transcoder MPEG DASHPIDstatus:errorFFMPEG;RTMP;I/O errortranscodingHotlinking ProtectionStreaming routenimble on cloudprerolllarix broadcasterMPEG-Dashpremium featureThumbnailsserver incorrect timepaymentLiveLIVEstatsHow to do live stream with multiple audio trackreloadProgressivenimble aliasesrmtpno internetdemandraspberryavoid refreshreportsprogressiveSecureHLS Streamingcredentialsthumbnail dvr-thumbnailLoad-Balancingnimble streamer mpeg-ts multiple inputswmsAuthSignAndroiduser_agentdvr on wmspanelVideo cant be playedS3 AWSlatencyBroadcastLarixvbv-maxratetranscodeRepublishingadjustlivestream bitratedelaympeg4PORTDVR Settingtranscoder nimblebuildPacketizingABR bitratesFailoverVR-360.movalias routestoragedistributioncloudflareUsers limitoutputVOD HLS streaming on public IPdomain lockcontentRTMP Republishanalisyssctegoogle cloud storagepricingissuecpurtsp push androidartifactscache expiryvideo streamingQuickTimepublish streamtraffichd25AArch64incoming streamno soundInvalid frame headerspeedup my videoiOSDVR Setting limitssaibufferHTML5 playerGopvideo.jsitworkscdnqatartransocderlivestreaminCSSav1 codecNimbleStreamerdissapointmentpay-per-minuteSO_RCVBUFbuffering videoadvp9storage space availabledisk3.6.1-1gpuhelpFallbackrestartIOSsoundHLS Meta Tag editing.streamsnimble dvrdurationBandwidtha recordwirecasthttp serverSSL requestserver ip21webhookdvr to livemp2 audiofastspringdata slicesaliasplayer sldpPaywallvideo and audio not matchmanage_dvrhow-toError when installingrulesDVRStreamsaws amazonsha265ubuntu 18Teradek DecoderMPEG2 Videologo in streamUDP MulticastMax connectionViewer StatsNDIabr fallbackNimble connectionsmd5

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.