Discussion:
[Supervisor-users] Problems with Supervisord and Snorby.
Mónica Boto
2014-08-05 08:51:32 UTC
Permalink
Hi!

I am new with the supervisord use, and i have a problem when i try to
configure Snorby with Supervisord.

My configuration's files:

*supervisord.conf*

[unix_http_server]
file=/var/tmp/supervisor.sock

[supervisord]
logfile=/var/log/supervisor/supervisord.log
logfile_maxbytes=50MB
logfile_backups=10
loglevel=debug
pidfile=/var/run/supervisord.pid
nodaemon=false
minfds=1024
minprocs=200

[rpcinterface:supervisor]
supervisor.rpcinterface_factory =
supervisor.rpcinterface:make_main_rpcinterface

[supervisorctl]
serverurl=unix:///var/tmp/supervisor.sock

[include]
files = supervisord.d/*


*supervisord.d/snorby*

[program:snorby]
directory=/var/www/snorby/
command=/usr/local/bin/ruby /var/www/snorby/script/rails server -e
production
autostart=true
autorestart=true
startsecs=1
startretries=999
stderr_logfile=/var/log/supervisor/snorby_err.log
stdout_logfile=/var/log/supervisor/snorby_out.log


The supervisord, starts the app fine, but when i try to startup the Snorby
Worker, in the error log, i can saw

*/usr/bin/env: ruby: No such file or directory*

This executable is in this path, and the enviroment path.

*snorby]# which ruby*
*/usr/local/bin/ruby*
* snorby]# which env*
*/bin/env*
*#ls -la /usr/bin/env*
* /usr/bin/env -> ../../bin/env*


Can someone help me or give me an idea?

And sorry, my english is bad and sad :D
--
<http://www.beeva.com>

www.beeva.com

- <https://twitter.com/beeva_es>
- <https://www.linkedin.com/company/beeva>
- <https://www.youtube.com/channel/UC0bERjplMo6-biH2kRHV9MQ>
- <https://es-es.facebook.com/somosBEEVA>
- <http://www.slideshare.net/BEEVA_es>
- <https://plus.google.com/u/0/113795163649785914137/posts>

*Mónica Boto Morán*
Departamento de Sistemas
***@beeva.com
915377500

NOS VEMOS EN
<http://www.beeva.com>

Foro de innovación y tecnología <http://www.beeva.com>


[image: think before printing]
rod
2014-08-05 08:57:25 UTC
Permalink
Do you know what exactly is throwing that error? You can set environment
variables using the 'environment' key in the program section, maybe try
adding /usr/local/bin/ to the PATH there? (that could be ignoring what the
real problem is though of course)
Post by Mónica Boto
Hi!
I am new with the supervisord use, and i have a problem when i try to
configure Snorby with Supervisord.
*supervisord.conf*
[unix_http_server]
file=/var/tmp/supervisor.sock
[supervisord]
logfile=/var/log/supervisor/supervisord.log
logfile_maxbytes=50MB
logfile_backups=10
loglevel=debug
pidfile=/var/run/supervisord.pid
nodaemon=false
minfds=1024
minprocs=200
[rpcinterface:supervisor]
supervisor.rpcinterface_factory =
supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/tmp/supervisor.sock
[include]
files = supervisord.d/*
*supervisord.d/snorby*
[program:snorby]
directory=/var/www/snorby/
command=/usr/local/bin/ruby /var/www/snorby/script/rails server -e
production
autostart=true
autorestart=true
startsecs=1
startretries=999
stderr_logfile=/var/log/supervisor/snorby_err.log
stdout_logfile=/var/log/supervisor/snorby_out.log
The supervisord, starts the app fine, but when i try to startup the Snorby
Worker, in the error log, i can saw
*/usr/bin/env: ruby: No such file or directory*
This executable is in this path, and the enviroment path.
*snorby]# which ruby*
*/usr/local/bin/ruby*
* snorby]# which env*
*/bin/env*
*#ls -la /usr/bin/env*
* /usr/bin/env -> ../../bin/env*
Can someone help me or give me an idea?
And sorry, my english is bad and sad :D
--
<http://www.beeva.com>
www.beeva.com
- <https://twitter.com/beeva_es>
- <https://www.linkedin.com/company/beeva>
- <https://www.youtube.com/channel/UC0bERjplMo6-biH2kRHV9MQ>
- <https://es-es.facebook.com/somosBEEVA>
- <http://www.slideshare.net/BEEVA_es>
- <https://plus.google.com/u/0/113795163649785914137/posts>
*Mónica Boto Morán*
Departamento de Sistemas
915377500
NOS VEMOS EN
<http://www.beeva.com>
Foro de innovación y tecnología <http://www.beeva.com>
[image: think before printing]
_______________________________________________
Supervisor-users mailing list
https://lists.supervisord.org/mailman/listinfo/supervisor-users
Mónica Boto
2014-08-05 09:58:24 UTC
Permalink
Thanks!! I added the PATH complete to "enviroment" configuration and works
fine!!

:D
Post by rod
Do you know what exactly is throwing that error? You can set environment
variables using the 'environment' key in the program section, maybe try
adding /usr/local/bin/ to the PATH there? (that could be ignoring what the
real problem is though of course)
Post by Mónica Boto
Hi!
I am new with the supervisord use, and i have a problem when i try to
configure Snorby with Supervisord.
*supervisord.conf*
[unix_http_server]
file=/var/tmp/supervisor.sock
[supervisord]
logfile=/var/log/supervisor/supervisord.log
logfile_maxbytes=50MB
logfile_backups=10
loglevel=debug
pidfile=/var/run/supervisord.pid
nodaemon=false
minfds=1024
minprocs=200
[rpcinterface:supervisor]
supervisor.rpcinterface_factory =
supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/tmp/supervisor.sock
[include]
files = supervisord.d/*
*supervisord.d/snorby*
[program:snorby]
directory=/var/www/snorby/
command=/usr/local/bin/ruby /var/www/snorby/script/rails server -e
production
autostart=true
autorestart=true
startsecs=1
startretries=999
stderr_logfile=/var/log/supervisor/snorby_err.log
stdout_logfile=/var/log/supervisor/snorby_out.log
The supervisord, starts the app fine, but when i try to startup the
Snorby Worker, in the error log, i can saw
*/usr/bin/env: ruby: No such file or directory*
This executable is in this path, and the enviroment path.
*snorby]# which ruby*
*/usr/local/bin/ruby*
* snorby]# which env*
*/bin/env*
*#ls -la /usr/bin/env*
* /usr/bin/env -> ../../bin/env*
Can someone help me or give me an idea?
And sorry, my english is bad and sad :D
--
<http://www.beeva.com>
www.beeva.com
- <https://twitter.com/beeva_es>
- <https://www.linkedin.com/company/beeva>
- <https://www.youtube.com/channel/UC0bERjplMo6-biH2kRHV9MQ>
- <https://es-es.facebook.com/somosBEEVA>
- <http://www.slideshare.net/BEEVA_es>
- <https://plus.google.com/u/0/113795163649785914137/posts>
*Mónica Boto Morán*
Departamento de Sistemas
915377500
NOS VEMOS EN
<http://www.beeva.com>
Foro de innovación y tecnología <http://www.beeva.com>
[image: think before printing]
_______________________________________________
Supervisor-users mailing list
https://lists.supervisord.org/mailman/listinfo/supervisor-users
--
<http://www.beeva.com>

www.beeva.com

- <https://twitter.com/beeva_es>
- <https://www.linkedin.com/company/beeva>
- <https://www.youtube.com/channel/UC0bERjplMo6-biH2kRHV9MQ>
- <https://es-es.facebook.com/somosBEEVA>
- <http://www.slideshare.net/BEEVA_es>
- <https://plus.google.com/u/0/113795163649785914137/posts>

*Mónica Boto Morán*
Departamento de Sistemas
***@beeva.com
915377500

NOS VEMOS EN
<http://www.beeva.com>

Foro de innovación y tecnología <http://www.beeva.com>


[image: think before printing]
Loading...