OpenClovis / SAFplus-Availability-Scalability-Platform

Middleware that provides libraries, GUI, and code generator to design multi-node (clustered) applications that are highly available, redundant, and scalable. Provides sub-second node and application fault detection and failover, and useful application libraries including distributed hash tables (checkpoint), event, logging, and communications. Implements SA-Forum APIs where applicable. Used anywhere reliability is a must -- like telecom, wireless, defense and enterprise computing. Download stable release with installer from: ftp.openclovis.com
www.openclovis.com
GNU General Public License v2.0
19 stars 13 forks source link

SAFPlus restart not working #160

Open davidmat50 opened 9 years ago

davidmat50 commented 9 years ago

When I tried restarting the SAFplus ( # etc/init.d/asp restart) , It just stopped. It didn’t restart. All the safplus related processes were killed and not restarted.

hoangle commented 9 years ago

Hi, Please attach amf_watchdog.log at /var/log? Q: Were you waiting long enough (since Watchdog will check and start SAFplus after 30 sec )?

Regards, Hoang

davidmat50 commented 9 years ago

Yes i have waited long enough.

Please find the log file contents towards the end of the amf_watchdog.log file pasted below.

INFO Killed [/root/asp/bin/asp_console] with command [killall -KILL /root/asp/bin/asp_console 2> /dev/null] INFO Killed [/root/asp/bin/safplus_event] with command [killall -KILL /root/asp/bin/safplus_event 2> /dev/null] INFO Killed [/root/asp/bin/asp_run] with command [killall -KILL /root/asp/bin/asp_run 2> /dev/null] INFO Killed [/root/asp/bin/safplus_console] with command [killall -KILL /root/asp/bin/safplus_console 2> /dev/null] DEBUG Cleanup SAFplus DEBUG Save Previous Logs INFO Starting AMF (/root/asp/bin/safplus_amf)... INFO Stop file exists: SAFplus is stopping DEBUG Exception [Errno 2] No such file or directory: '/root/asp/var/run/safplus_reboot' while removing /root/asp/var/run/safplus_reboot INFO Stop file not found: Starting AMF from watchdog INFO Killed [/root/asp/bin/safplus_amf] with command [killall -KILL /root/asp/bin/safplus_amf 2> /dev/null] INFO Killed [/root/asp/bin/safplus_name] with command [killall -KILL /root/asp/bin/safplus_name 2> /dev/null] INFO Killed [/root/asp/bin/net-snmp-config] with command [killall -KILL /root/asp/bin/net-snmp-config 2> /dev/null] INFO Killed [/root/asp/bin/safplus_ckpt] with command [killall -KILL /root/asp/bin/safplus_ckpt 2> /dev/null] INFO Killed [/root/asp/bin/safplus_debug] with command [killall -KILL /root/asp/bin/safplus_debug 2> /dev/null] INFO Killed [/root/asp/bin/safplus_logd] with command [killall -KILL /root/asp/bin/safplus_logd 2> /dev/null] INFO Killed [/root/asp/bin/csa102] with command [killall -KILL /root/asp/bin/csa102 2> /dev/null] INFO Killed [/root/asp/bin/asp_binlogviewer] with command [killall -KILL /root/asp/bin/asp_binlogviewer 2> /dev/null] INFO Killed [/root/asp/bin/safplus_run] with command [killall -KILL /root/asp/bin/safplus_run 2> /dev/null] INFO Killed [/root/asp/bin/safplus_gms] with command [killall -KILL /root/asp/bin/safplus_gms 2> /dev/null] INFO Killed [/root/asp/bin/safplus_msg] with command [killall -KILL /root/asp/bin/safplus_msg 2> /dev/null] INFO Killed [/root/asp/bin/safplus_info] with command [killall -KILL /root/asp/bin/safplus_info 2> /dev/null] INFO Killed [/root/asp/bin/safplus_binlogviewer] with command [killall -KILL /root/asp/bin/safplus_binlogviewer 2> /dev/null] INFO Killed [/root/asp/bin/virtualIp] with command [killall -KILL /root/asp/bin/virtualIp 2> /dev/null] INFO Killed [/root/asp/bin/aspinfo] with command [killall -KILL /root/asp/bin/aspinfo 2> /dev/null] INFO Killed [/root/asp/bin/nodeinfo] with command [killall -KILL /root/asp/bin/nodeinfo 2> /dev/null] INFO Killed [/root/asp/bin/asp_console] with command [killall -KILL /root/asp/bin/asp_console 2> /dev/null] INFO Killed [/root/asp/bin/safplus_event] with command [killall -KILL /root/asp/bin/safplus_event 2> /dev/null] INFO Killed [/root/asp/bin/asp_run] with command [killall -KILL /root/asp/bin/asp_run 2> /dev/null] INFO Killed [/root/asp/bin/safplus_console] with command [killall -KILL /root/asp/bin/safplus_console 2> /dev/null] DEBUG Cleanup SAFplus DEBUG Save Previous Logs INFO Starting AMF (/root/asp/bin/safplus_amf)... INFO Stop file exists: SAFplus is stopping

hoangle commented 9 years ago

I'm able to reproduce this issue on Master. I will give a fixed soon. Thanks for reporting! You can combine 2 commands as work around: ./etc/init.d/safplus stop && ./etc/init.d/safplus start