"fop2_server dead but subsys locked" after backup restore
I have a second FreePBX server that we will either put in High Availability, or just have on hand to switch out. I know I will need a second license for this server, but I'm fine with having limited buttons for now. What I'm trying to nail down is the exact steps required to get FOP2 up and running after a restore.
I'll tell you what I did so far:
I did a full backup of the original server and used that to restore to the second PBX. This included:
/usr/local/fop2/fop2.cfg
/etc/sysconfig/fop2
/etc/rc.d/init.d/fop2
/usr/local/fop2/fop2settings.db
(And all the other default directories and MySQL tables)
After restore, I am able to get into the https://second_PBX_ip_address/fop2/admin, but it says the "fop2 server is not responding".
On SSH, I ran "service fop2 status" and got "fop2_server dead but subsys locked". If I stop and start the service, I get the same thing.
I reinstalled fop2 by wget'ing the latest tgz, unpacking and the "make install", but still get the same error. I rebooted and got the same error.
I saw your post about running "netstat -lnp | grep 444" to see if any other service is taking the 4443 port, and got no listing.
What else could be the issue?
I'll tell you what I did so far:
I did a full backup of the original server and used that to restore to the second PBX. This included:
/usr/local/fop2/fop2.cfg
/etc/sysconfig/fop2
/etc/rc.d/init.d/fop2
/usr/local/fop2/fop2settings.db
(And all the other default directories and MySQL tables)
After restore, I am able to get into the https://second_PBX_ip_address/fop2/admin, but it says the "fop2 server is not responding".
On SSH, I ran "service fop2 status" and got "fop2_server dead but subsys locked". If I stop and start the service, I get the same thing.
I reinstalled fop2 by wget'ing the latest tgz, unpacking and the "make install", but still get the same error. I rebooted and got the same error.
I saw your post about running "netstat -lnp | grep 444" to see if any other service is taking the 4443 port, and got no listing.
What else could be the issue?
Comments
/usr/local/fop2/fop2_server -X 15
Run that, what is the output ?
Perhaps you need to also restore the file /etc/sysconfig/fop2 that is used by the init script to take command line options...
FOP2 was unable to find an eth0 interface to bind the license to.
Please specify a valid NIC name with the -i command line parameter, for example:
/usr/local/fop2/fop2_server -X 15 -i eth1
And if I run the --reactivate:
I don't want to steal the license from my production server right now, but if that server did fail and I switched to this secondary server, what commands would I want to run to switch it over? Do I HAVE to unload the license from the primary? (what if it is totally dead?)