{"id":2142,"date":"2022-08-30T15:22:24","date_gmt":"2022-08-30T15:22:24","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/02\/problem-about-supervisord-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:22:24","modified_gmt":"2022-08-30T15:22:24","slug":"problem-about-supervisord-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-supervisord-collection-of-common-programming-errors\/","title":{"rendered":"problem about supervisord-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/69644c650898674b56a8b17a46c9ee4d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMoses Liao Gangzheng<br \/>\nubuntu supervisord<br \/>\nI have a server with supervisor running an eventlistener, on the event when the process crashes, I managed to get crashmail to send an email to me. But the email content only states &#8220;Process adnode04 in group adnode04 exited unexpectedly (pid 1255) from state RUNNING&#8221;.I want crashmail to be able to take content from the last 10-20 lines of the log file and email me the contents. Is it able to do that?<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0fecb1352ba484a1a4eceaa17f538d70?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nPeroli Sivaprakasam<br \/>\nphp cli ziparchive supervisord<br \/>\nWe have a php (Version 5.3.10) cli application doing some heavy work on a ubuntu 12.04 64 bit machine. This script can run for a long time depending on the dataset it receives. These datasets are zip files with a lot of XML, image and MS doc files.Earlier this script used few system commands (shell, perl, java) to complete its task. We did not have problems then. Recently, we upgraded these scripts to use RabbitMQ for multiple concurrent invocations, moved from cron based working to supervisord<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6d73afdb3398bc101e028273454ac29a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJosh Nankin<br \/>\nntp supervisord<br \/>\nI&#8217;m running supervisord on one of my servers. I have a cronjob that updates the clock using ntpdate every few hours, because on EC2 clocks tend to frequently lag.I&#8217;ve noticed that when the ntpdate command runs, supervisord will frequently crash and have to be restarted.I&#8217;ve checked the supervisord logs, and I don&#8217;t see anything. I have the INFO level turned on.Any ideas?<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/4edcb9ce34ee9830769556a5feea94aa?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nYarin<br \/>\nsupervisord<br \/>\nI&#8217;m running supervisord on my CentOS 6 box like so, \/usr\/bin\/supervisord -c \/etc\/supervisord.confand when I launch supervisorctl all process status are fine, but if I try the reload command in supervisorctl, and then do anything, I get unix:\/\/\/tmp\/supervisor.sock no such filebut the reload command should take care of recreating the .sock?I&#8217;m using the same config file I&#8217;ve used successfully on other boxes, and im running everything as root. I can&#8217;t undesrtand what the problem is&#8230;Config file:;<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f14aa54b59902773114167896a8fba89?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAndrew Ellis<br \/>\nsupervisord<br \/>\nI am running supervisord to keep Redis and other pieces of software up and running. However, I can not, for the life of me, get resque-web to work.This is the .ini that I&#8217;m including:[program:resque] command=\/usr\/local\/rvm\/gems\/ruby-2.0.0-p195\/bin\/resque-web autostart=true autorestart=true user=root stdout_logfile=\/var\/lib\/resque\/stdout.log stderr_logfile=\/var\/lib\/resque\/stderr.logUnfortunately, when I run service supervisor restart I get the following in the supervisord log:INFO exited: resque<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/00230144dde248225dc0a2e228a85131?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\njoshholat<br \/>\nphp bash process supervisor supervisord<br \/>\nPerhaps I&#8217;m misunderstanding with Supervisor does, but perhaps me asking this question will help clear that up. Basically, I have a Supervisor program in my \/etc\/supervisord.conf file that executes a bash script which simply executes a PHP script. I&#8217;ve been able to successfully get that bash script to run from supervisor only upon launch of supervisor. However, isn&#8217;t the point of something like supervisor that it runs that tasks in the background at set intervals or something so that I can know<\/li>\n<li>\n<img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/64f21abf2e8958975aa0fd3c14792200?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmanu<br \/>\ndjango deployment environment-variables supervisord<br \/>\nI&#8217;ve setup supervisor to run celeryd, celerycam and gunicorn as per this blogpost. Everything ran smoothly at first. After the first restart, nothing started up. The logs I can see are of the form.Unknown command: &#8216;run_gunicorn&#8217; Type &#8216;manage.py help&#8217; for usage.I&#8217;m guessing this is because supervisor doesn&#8217;t &#8216;see&#8217; my environment variables like DJANGO_SETTINGS_MODULE, DB_HOST, etc. I put all of them in \/etc\/environment but it&#8217;s of no use. Again, I tried putting them against environment tag in \/etc<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2014-01-02 12:09:37. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Moses Liao Gangzheng ubuntu supervisord I have a server with supervisor running an eventlistener, on the event when the process crashes, I managed to get crashmail to send an email to me. But the email content only states &#8220;Process adnode04 in group adnode04 exited unexpectedly (pid 1255) from state RUNNING&#8221;.I want crashmail to be able [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2142","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2142"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2142\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}