Mantis - Resin
Viewing Issue Advanced Details
5635 minor always 01-20-14 07:29 11-03-14 18:07
cowan  
ferg  
normal  
closed 4.0.38  
fixed  
none    
none 4.0.42  
0005635: RPM upgrade leaves watchdog running under old version
If rpm -Uvh is used to upgrade Resin from 4.0.37 to 4.0.38, without first stopping Resin, the 4.0.37 watchdog is left running pointing to the now deleted 4.0.37 resin root. As a result, resinctl always fails with the error "Unexpected resin.home mismatch". There is no way fix other than killing the watchdog.

[root@new-host-2 ~]# rpm -Uvh resin-pro-4.0.38-1.x86_64.rpm
warning: resin-pro-4.0.38-1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 6ef6d565: NOKEY
Preparing... ########################################### [100%]
resin:x:498:
resin:x:498:498::/home/resin:/bin/false
   1:resin-pro ########################################### [100%]
Resin/4.0.38 can't start -server 'app-0' for watchdog at 127.0.0.1:6600.
  Unexpected resin.home mismatch:
  CLI resin.home: /usr/local/share/resin-4.0.38/
  watchdog resin.home: /usr/local/share/resin-4.0.37/
warning: %post(resin-pro-4.0.38-1.x86_64) scriptlet failed, exit status 1

[root@new-host-2 ~]# resinctl restart
Resin/4.0.38 can't restart -server 'app-0'.
com.caucho.config.ConfigException: Unexpected resin.home mismatch:
  CLI resin.home: /usr/local/share/resin-4.0.38/
  watchdog resin.home: /usr/local/share/resin-4.0.37/
Rep by S. Gillespie

Notes
(0006534)
ttakaura   
10-13-14 10:59   
please type command.

# resinctl stop --resin-home /usr/local/share/resin-4.0.37/