Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem uninstalling openHAB2 #148

Open
Curio84 opened this issue Feb 5, 2019 · 9 comments
Open

problem uninstalling openHAB2 #148

Curio84 opened this issue Feb 5, 2019 · 9 comments

Comments

@Curio84
Copy link

Curio84 commented Feb 5, 2019

Hello,

i use openHAB-2.4.0.001-syno-noarch-0.001.spk.
I have a problem uninstalling Openhab2.
I get the following error message:
"The package was successfully uninstalled.
Stop TMPFS was Failed, check TMPFS log in '/var/services/homes/openhab '. "
The user "openhab" and the folder /homes/openhab were not deleted.
How can I solve the problem?

Thanks for your help,
Curio

@cniweb
Copy link
Member

cniweb commented Feb 6, 2019

Can you look here: /var/services/homes/openhab the TMPFS log file?
And can you delete the openhab user manually (in the WebGUI)?

@Dennis1108
Copy link

Dennis1108 commented Mar 21, 2019

I had same problem. After googleling for about 2hours i found this one ...
Best thing is you enter the synology with putty.
Enalble SSH login in the synology first.
Login via putty (take care that you have correct port. Standart is 2811
Enter as admin with you synology password
sudo -i
then again you password and you are logged in as root.

Do df -h
Then you will get a

thereafter you will get a list

root@Hypothalamus:/volume1/homes# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md0 2.4G 994M 1.3G 44% /
none 348M 0 348M 0% /dev
/tmp 350M 1.2M 349M 1% /tmp
/run 350M 3.1M 347M 1% /run
/dev/shm 350M 4.0K 350M 1% /dev/shm
/dev/vg1000/lv 913G 1.2G 912G 1% /volume1
none 20M 0 20M 0% /volume1/homes/test/tmpfs

then you can see last entry is what you looking for.....

umount /volume1/homes/test/tmpfs

then again df -h

I think you have to do it for three archives ....
rm: cannot remove ‘openhab/tmpfs’: Device or resource busy
rm: cannot remove ‘openhab/userdata/logs’: Device or resource busy
rm: cannot remove ‘openhab/userdata/persistence’: Device or resource busy
and thereafter you can delete all archive with rm

thats it...
Regards Dennis

@petermorlion
Copy link
Contributor

I had to

  • remove the user in the Synology web UI
  • restart the server
  • use @Dennis1108 's solution to unmount the folders in the openhab user's home (even if df -h no longer listed them)

@cniweb
Copy link
Member

cniweb commented Apr 4, 2019

@petermorlion can you build a script for this procedure? Then I can integrate it on the uninstall mechanism for the synology uninstall process. Thanks!

@petermorlion
Copy link
Contributor

@cniweb tricky, I'm not sure my knowledge reaches this far. What would be the preferred way of executing a script after rebooting? A cron job (that then also removes the cron job after it has executed)?

@cniweb
Copy link
Member

cniweb commented Apr 8, 2019

@petermorlion The question is, why a reboot is necessary? Maybe a kill of the process is enough?

@petermorlion
Copy link
Contributor

Hm, possibly. Though I have no way of knowing, as I have now already updated to 2.4.0. :(

@beinaendi
Copy link

This does the job, your path may differ:

1 stop package
2 open putty and logon to server
3 umount /volume1/homes/openhab/tmpfs
4 rm -r /volume1/homes/openhab/tmpfs
5 umount /volume1/homes/openhab/userdata/logs
6 rm -r /volume1/homes/openhab/userdata/logs
7 umount /volume1/homes/openhab/userdata/persistence
8 rm -r /volume1/homes/openhab/userdata/persistence

@sreuter
Copy link

sreuter commented Nov 30, 2020

Also make sure to delete those startup scripts left behind:

/usr/local/etc/rc.d/openHAB-*.sh

And there's more...

./sys/fs/cgroup/memory/pkgctl-openHAB
./sys/fs/cgroup/cpuacct/pkgctl-openHAB
./usr/syno/etc/packages/openHAB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants