[Supervisor-users] Problems with Supervisord and Snorby.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Supervisor-users] Problems with Supervisord and Snorby.

Mónica Boto
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
--
Mónica Boto Morán
Departamento de Sistemas
[hidden email]
915377500

NOS VEMOS EN

Foro de innovación y tecnología


think before printing


_______________________________________________
Supervisor-users mailing list
[hidden email]
https://lists.supervisord.org/mailman/listinfo/supervisor-users
rod
Reply | Threaded
Open this post in threaded view
|

Re: [Supervisor-users] Problems with Supervisord and Snorby.

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)


On 5 August 2014 09:51, Mónica Boto <[hidden email]> wrote:
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
--
Mónica Boto Morán
Departamento de Sistemas
[hidden email]
915377500

NOS VEMOS EN

Foro de innovación y tecnología


think before printing


_______________________________________________
Supervisor-users mailing list
[hidden email]
https://lists.supervisord.org/mailman/listinfo/supervisor-users



_______________________________________________
Supervisor-users mailing list
[hidden email]
https://lists.supervisord.org/mailman/listinfo/supervisor-users
Reply | Threaded
Open this post in threaded view
|

Re: [Supervisor-users] Problems with Supervisord and Snorby.

Mónica Boto
Thanks!! I added the PATH complete to "enviroment" configuration and works fine!!

:D


2014-08-05 10:57 GMT+02:00 rod <[hidden email]>:
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)


On 5 August 2014 09:51, Mónica Boto <[hidden email]> wrote:
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
--
Mónica Boto Morán
Departamento de Sistemas
[hidden email]
915377500

NOS VEMOS EN

Foro de innovación y tecnología


think before printing


_______________________________________________
Supervisor-users mailing list
[hidden email]
https://lists.supervisord.org/mailman/listinfo/supervisor-users





--
Mónica Boto Morán
Departamento de Sistemas
[hidden email]
915377500

NOS VEMOS EN

Foro de innovación y tecnología


think before printing


_______________________________________________
Supervisor-users mailing list
[hidden email]
https://lists.supervisord.org/mailman/listinfo/supervisor-users