flask - python-rq worker works when not under supervisor -
when run worker.py file , run actual task process works. when put worker.py under supervisor task shows loads fine in supervisor of depencies functions inside fail because missing depencies.
that worker config file
[program:worker] directory=/home/www/yout environment=path=/home/www/env/bin command=python worker.py high normal low process_name=%(program_name)s numprocs=1 autostart=true autorestart=true stopsignal=term user=root stopsignal=term
this output on /rq
traceback (most recent call last): file "/home/www/env/local/lib/python2.7/site-packages/rq/worker.py", line 557, in perform_job rv = job.perform() file "/home/www/env/local/lib/python2.7/site-packages/rq/job.py", line 492, in perform self._result = self.func(*self.args, **self.kwargs) file "/home/www/yout/worker.py", line 100, in extract_audio extraction_result = start_extraction(url, audio_filename) file "/home/www/yout/worker.py", line 131, in start_extraction result = ydl.download([url]) file "/home/www/env/local/lib/python2.7/site-packages/youtube_dl/youtubedl.py", line 1446, in download res = self.extract_info(url) file "/home/www/env/local/lib/python2.7/site-packages/youtube_dl/youtubedl.py", line 662, in extract_info return self.process_ie_result(ie_result, download, extra_info) file "/home/www/env/local/lib/python2.7/site-packages/youtube_dl/youtubedl.py", line 708, in process_ie_result return self.process_video_result(ie_result, download=download) file "/home/www/env/local/lib/python2.7/site-packages/youtube_dl/youtubedl.py", line 1150, in process_video_result self.process_info(new_info) file "/home/www/env/local/lib/python2.7/site-packages/youtube_dl/youtubedl.py", line 1429, in process_info self.post_process(filename, info_dict) file "/home/www/env/local/lib/python2.7/site-packages/youtube_dl/youtubedl.py", line 1495, in post_process self.report_error(e.msg) file "/home/www/env/local/lib/python2.7/site-packages/youtube_dl/youtubedl.py", line 529, in report_error self.trouble(error_message, tb) file "/home/www/env/local/lib/python2.7/site-packages/youtube_dl/youtubedl.py", line 499, in trouble raise downloaderror(message, exc_info) downloaderror: error: ffprobe or avprobe not found. please install one.
Comments
Post a Comment