![]() The error code only happens on Alpine 3.10, so my guess is that it's some change between musl 1.1.20 and 1.1.22 (Alpine 3.9 and 3.10, respectively). And your links will looks like: /admin/sidekiqmonitorjob. Solution : Create /home/USERNAME/APPNAME/shared/delayedjob.monitrc Add the code for start and stop services in /home/USERNAME/APPNAME/shared/delayedjob.monitrc file. Offourse follow setup of sidekiqmonitor, and you will find link to Jobs on left menu panel in rails admin. I even tried monit 5.26 on my work distribution and the script runs fine and is correctly monitored. We use Capistrano to deploy our Ruby on Rails applications to the server. Monit does not have Rails and RVM environment variables so that cannot start delayedjob directly like as other services defined above. But it only fails when monit tries to start it. If I run this script manually inside the container it works fine and I can even monitor it with monit. Defined in: lib/appmonitrails.rb, lib/appmonit/rails/config.rb, lib/appmonit/rails/worker.rb, lib/appmonit/rails/railtie.rb, lib/appmonit/rails/version. The program is a simple shell script that runs database migrations and then starts the Rails server. ![]() Then monit takes charge of starting services. The container runs tini (a tiny init) as pid 1 and this runs monit. In another check, a program scheduled every 60 cycles also made monit crash, but changing it to every hour in cronjob syntax worked, though I haven’t debugged more on this since I was pressed to run the main program.įor context, I'm running a Ruby on Rails application on a Docker container and using monit as a supervisor. Running verbose monit doesn't help, since monit closes immediately after trying to run the program and it only logs it's trying to start it. The issue is that a process monitoring makes monit fail immediately with exit status 162 (couldn't find any reference to it). The issue dissapears on Alpine 3.9 with monit 5.23.2. ![]() Hi, I've been chasing this issue all day and I found out it only happens on Alpine 3.10, tested with monit 5.25.3 which is the current release, 5.26 which is "edge" and also built 5.25.2 just in case.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |