tiagocoutinho / multivisor

Centralized supervisor WebUI and CLI
GNU General Public License v3.0
184 stars 37 forks source link

Multivisor support dependencies #52

Closed mdsajid786 closed 5 years ago

mdsajid786 commented 5 years ago

Dear All,

I have tried to install multivisour as per the release notes (README.md) file. I have below versions of pip/nodejs/npm/supervisourd.

image

Could anyone help me, which version of PIP, NodeJs, NPM, SupervisourD has to be installed in my servers?

guy881 commented 5 years ago

Hello @mdsajid786, Are you facing any troubles? Everything seems okay except your npm / node which are very old. Personally I have npm 6.5 which comes with node 11.9.

mdsajid786 commented 5 years ago

Hello @guy881 ,

Yes am facing trouble while installing. while installing pip install . with the previous version, getting below error and asking to upgrade pip version. after upgrade also getting errors. attached logs FYR. console_logs.txt

mdsajid786 commented 5 years ago

Hello Guys,

can anyone help on this ??

guy881 commented 5 years ago

Hey, thanks for a bump. The warning about old version of pip shows always if you have old version of pip, but it's definitely not the reason of the problem.

The real problem is here:

building 'regex._regex' extension
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/regex_2
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c regex_2/_regex.c -o build/temp.linux-x86_64-2.7/regex_2/_regex.o
    unable to execute gcc: No such file or directory
    error: command 'gcc' failed with exit status 1

It seems that you don't have gcc compiler? Are you running some kind of "slim" version of Linux?

mdsajid786 commented 5 years ago

Thanks for your response.

I have installed gcc now and got some diff error. attached logs and snapshots.

I'm not aware on "slim" version of Linux and as i verified its now running on my machine.

console_logs2.txt

image image

guy881 commented 5 years ago

Well, you don't have python development files. The procedure for installing those is dependent on your operating system / distribution. To give some reference https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory

mdsajid786 commented 5 years ago

Thanks for your support @guy881 . Now I have successfully installed multivisour on my machine.

And I tried to start/stop/restart a simple tomcat application through supervisord and multivisour. below one is the config file which is defined.

(From README.md file i have added all these configs.)

[root@instance-1 full_example]# cat /etc/supervisord.d/apache.conf [global] name=ACME [rpcinterface:multivisor] supervisor.rpcinterface_factory = multivisor.rpc:make_rpc_interface bind=*:9002 [program:apache] process_name=%(program_name)s directory=/root/apache-tomcat-7.0.94/bin/ command=sh startup.sh autorestart=true autostart=true startsecs=40 priority=4 startretries=3 stopasgroup=false user=root redirect_stderr=true stderr_logfile=/root/%(program_name)s_stderr.log stdout_logfile=/root/%(program_name)s_stdout.log stdout_logfile_maxbytes=5MB stdout_logfile_backups=10 stopsignal=QUIT [root@instance-1 full_example]#

Tried to start tomcat through multivisor it's not giving any success response. below is the snapshot.

image

Then I restarted in backend and verified through multivisor-cli but nothing is showing here in status. below snapshot FYR.

image

Could you please share me one sample file to start multiple applications.

guy881 commented 5 years ago

The configuration you posted is for supervisor, multivisor has separate config file. Please read README once again.

mdsajid786 commented 5 years ago

Yeah...!!!

I got it and saw the example files and configured on Tomcat application. below is the configuration but it's not showing in WEB and CLI as well. can you help me to find out the issue?

image

Still its showing old program files only in the multivosour process even after restarting multivisour.

image

guy881 commented 5 years ago

Multivisor is still running with config file called multivisor.conf which is the one from example I believe, that's why you've got all those processes here. image

mdsajid786 commented 5 years ago

Yes, that example file only I'm using. In those config files, I have added tomcat application config which I shared you the snapshot above. it's showing in web and CLI list but not showing as running, but at the backend, its started and running successfully with one PID. PFB snapshot.

am getting few error logs in the console. below logs FYR.

please suggest here.

image

image

image

mdsajid786 commented 5 years ago

Hello @guy881,

I got it and issue resolved now. Thanks for your support.

I have one question here, with this multivisor can we configure mail alerts if any application goes down or shown in exited/stopped state. ?

guy881 commented 5 years ago

Hey @mdsajid786, I am glad you got it running. There is no such feature right now, you can open another issue if you're interested in such feature.