ruby - How do I kill the chef process on the chef server? -


i got myself bit of pickle.

i got 1-core, 1gb memory vps digital ocean , took shot @ installing chef server on box, though the guide had few warnings chef requires @ least 4 cores , more memory.

during chef-server-ctl reconfigure step, ran postgresql errors (if you're curious, more here) , mistakenly hit ctrl-c kill process. noticed several chef processes running , restarted server try , kill them, still persisted.

root@hal:~# ps aux | grep chef root       597  0.0  0.0   4212    72 ?        ss   07:39   0:00 runsv opscode-erchef opscode    611  0.0  0.0   4356    88 ?        s    07:39   0:00 svlogd -tt /var/log/opscode/opscode-erchef opscode    612  0.7  3.7 534704 38400 ?        ssl  07:39   0:09 /opt/opscode/embedded/service/opscode-erchef/erts-5.10.4/bin/beam.smp -k true -a 5 -- -root /opt/opscode/embedded/service/opscode-erchef -progname oc_erchef -- -home /var/opt/opscode/opscode-erchef -- -noshell -boot /opt/opscode/embedded/service/opscode-erchef/releases/1.5.0/oc_erchef -embedded -config /opt/opscode/embedded/service/opscode-erchef/etc/app.config -name erchef@127.0.0.1 -setcookie erchef -smp enable -pa lib/patches -- runit opscode+  1473  0.0  0.4 314352  4520 ?        ss   07:39   0:00 postgres: opscode_chef opscode_chef 127.0.0.1(52205) idle                  opscode+  1475  0.0  0.3 313928  3964 ?        ss   07:40   0:00 postgres: opscode_chef opscode_chef 127.0.0.1(56254) idle                  opscode+  1477  0.0  0.3 313928  3972 ?        ss   07:40   0:00 postgres: opscode_chef opscode_chef 127.0.0.1(56509) idle                  opscode+  1479  0.0  0.4 313928  4152 ?        ss   07:40   0:00 postgres: opscode_chef opscode_chef 127.0.0.1(56740) idle                  opscode+  1546  0.0  0.4 313928  4148 ?        ss   07:40   0:00 postgres: opscode_chef opscode_chef 127.0.0.1(41027) idle                  opscode+  1563  0.0  0.4 313928  4144 ?        ss   07:40   0:00 postgres: opscode_chef opscode_chef 127.0.0.1(56678) idle   .... .... 

this hogging memory can't run other basic processes. tried uninstalling chef-server-ctl uninstall failed

/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.1/lib/omnibus-ctl.rb:295:in `run_sv_command_for_service': undefined method `exitstatus' nil:nilclass (nomethoderror)     /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.1/lib/omnibus-ctl.rb:285:in `block in run_sv_command'     /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.1/lib/omnibus-ctl.rb:284:in `each'     /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.1/lib/omnibus-ctl.rb:284:in `run_sv_command'     /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.1/lib/omnibus-ctl.rb:219:in `cleanup_procs_and_nuke'     /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.1/lib/omnibus-ctl.rb:256:in `uninstall'     /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.1/lib/omnibus-ctl.rb:555:in `run'     /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.3.1/bin/omnibus-ctl:31:in `<top (required)>'     /opt/opscode/embedded/bin/omnibus-ctl:23:in `load'     /opt/opscode/embedded/bin/omnibus-ctl:23:in `<main>' 

any thoughts on how around this?

thank you!

stop private-chef-runsvdir 

or:

/usr/bin/private-chef-ctl stop pkill -hup -p 1 runsv$ 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -