Tutorial: How to use the hub with openHAB 2.4


#41

I’ve messed up then installation.

Does anyone knows where the backup file is stored? Need to delete it “back-up mhub file for openhab exist. Switching to it”


#42

The backup mhub file is located at /opt/
The backup mhub.service file is located at /lib/systemd/system/

If you don’t have much setup on the hub, I recommend factory resetting the hub and start over.

Bac
Mixtile Team


#44

Tried everything again:

root@MixtileHub:/home/user# ls
ESHtoOH.sh OHtoESH.sh conf start.bat start_debug.bat userdata
LICENSE.TXT addons runtime start.sh start_debug.sh
root@MixtileHub:/home/user# chmod 775 ESHtoOH.sh
root@MixtileHub:/home/user# ./ESHtoOH.sh
Stopping mhub (ESH) service

Copying the appropriate files to openhab folder

./ESHtoOH.sh: line 36: cd: /home/user/openhab/userdata/: No such file or directo ry
./ESHtoOH.sh: line 42: cd: …/addons: No such file or directory
Making a backup for mhub (ESH) system (as ‘mhub-back’)

Creating a mhub (openHAB) system

cp: cannot stat ‘/home/user/openhab/’: No such file or directory
Giving ownership access to mhub (openHAB) system

chown: cannot access ‘mhub’: No such file or directory
chown: cannot access ‘mhub/userdata/openhabcloud’: No such file or directory
chown: cannot access ‘mhub/userdata/uuid’: No such file or directory
Making a backup for mhub service (for ESH)

Creating a mhub service (for openHAB)

Start up mhub (openHAB) system
Created symlink /etc/systemd/system/multi-user.target.wants/mhub.service → /lib/ systemd/system/mhub.service.
Wait 5-10 minutes for openHAB to start up. Once it is up and running. Select SIM PLE package during set up


#45

I tried second time. The hub got stucked at Creating a mhub (openHAB) system.
Had to factory reset again.


#46

new try: `
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

Password:
root@MixtileHub:~# cd /home/user
root@MixtileHub:/home/user# ls
ESHtoOH.sh OHtoESH.sh openhab
root@MixtileHub:/home/user# chmod 775 ESHtoOH.sh
root@MixtileHub:/home/user# ls -l
total 12
-rwxrwxr-x 1 user user 2697 Aug 11 2019 ESHtoOH.sh
-rw-r–r-- 1 user user 871 Aug 11 2019 OHtoESH.sh
drwxr-xr-x 6 user user 4096 Nov 1 21:17 openhab
root@MixtileHub:/home/user# ./ESHtoOH.sh
Stopping mhub (ESH) service

Copying the appropriate files to openhab folder

Making a backup for mhub (ESH) system (as ‘mhub-back’)

Creating a mhub (openHAB) system

Giving ownership access to mhub (openHAB) system

Making a backup for mhub service (for ESH)

Creating a mhub service (for openHAB)

Start up mhub (openHAB) system
Created symlink /etc/systemd/system/multi-user.target.wants/mhub.service → /lib/systemd/system/mhub.service.
Wait 5-10 minutes for openHAB to start up. Once it is up and running. Select SIMPLE package during set up

root@MixtileHub:/home/user# journalctl -u mhub -f
– Logs begin at Wed 2020-05-27 10:18:27 UTC. –
Nov 01 21:24:31 MixtileHub systemd[1]: mhub.service: Main process exited, code=exited, status=203/EXEC
Nov 01 21:24:31 MixtileHub systemd[1]: mhub.service: Control process exited, code=exited status=1
Nov 01 21:24:31 MixtileHub systemd[1]: mhub.service: Unit entered failed state.
Nov 01 21:24:31 MixtileHub systemd[1]: mhub.service: Failed with result ‘exit-code’.
Nov 01 21:24:31 MixtileHub systemd[1]: mhub.service: Service hold-off time over, scheduling restart.
Nov 01 21:24:31 MixtileHub systemd[1]: Stopped The openHAB 2 Home Automation Bus Solution.
Nov 01 21:24:31 MixtileHub systemd[1]: mhub.service: Start request repeated too quickly.
Nov 01 21:24:31 MixtileHub systemd[1]: Failed to start The openHAB 2 Home Automation Bus Solution.
Nov 01 21:24:31 MixtileHub systemd[1]: mhub.service: Unit entered failed state.
Nov 01 21:24:31 MixtileHub systemd[1]: mhub.service: Failed with result ‘start-limit-hit’.
^C
root@MixtileHub:/home/user# vi /lib/systemd/system/mhub.service
root@MixtileHub:/home/user# vi /lib/systemd/system/mhub.service
root@MixtileHub:/home/user# vi /lib/systemd/system/mhub.service
root@MixtileHub:/home/user# systemctl daemon-reload
root@MixtileHub:/home/user# systemctl enable mhub.service
root@MixtileHub:/home/user# systemctl start mhub.service
root@MixtileHub:/home/user# journalctl -u mhub -f
– Logs begin at Wed 2020-05-27 10:18:27 UTC. –
Nov 01 21:24:31 MixtileHub systemd[1]: mhub.service: Unit entered failed state.
Nov 01 21:24:31 MixtileHub systemd[1]: mhub.service: Failed with result ‘start-limit-hit’.
Nov 01 21:32:27 MixtileHub systemd[1]: [/lib/systemd/system/mhub.service:17] Unknown lvalue ‘restart’ in section ‘Service’
Nov 01 21:32:42 MixtileHub systemd[1]: [/lib/systemd/system/mhub.service:17] Unknown lvalue ‘restart’ in section ‘Service’
Nov 01 21:32:48 MixtileHub systemd[1]: Started The openHAB 2 Home Automation Bus Solution.
Nov 01 21:32:48 MixtileHub systemd[2591]: mhub.service: Failed at step EXEC spawning /opt/mhub/start.sh: Permission denied
Nov 01 21:32:48 MixtileHub systemd[1]: mhub.service: Main process exited, code=exited, status=203/EXEC
Nov 01 21:32:49 MixtileHub systemd[1]: mhub.service: Control process exited, code=exited status=1
Nov 01 21:32:49 MixtileHub systemd[1]: mhub.service: Unit entered failed state.
Nov 01 21:32:49 MixtileHub systemd[1]: mhub.service: Failed with result ‘exit-code’.
^C
root@MixtileHub:/home/user# cd /lib/systemd/system/
root@MixtileHub:/lib/systemd/system# cd /opt/mhub
root@MixtileHub:/opt/mhub# ls -l
total 44
-rw-r–r-- 1 mhub mhub 11232 Nov 1 21:24 LICENSE.TXT
drwxr-xr-x 2 mhub mhub 4096 Nov 1 21:24 addons
drwxr-xr-x 13 mhub mhub 4096 Nov 1 21:24 conf
drwxr-xr-x 6 mhub mhub 4096 Nov 1 21:24 runtime
-rw-r–r-- 1 mhub mhub 121 Nov 1 21:24 start.bat
-rw-r–r-- 1 mhub mhub 116 Nov 1 21:24 start.sh
-rw-r–r-- 1 mhub mhub 72 Nov 1 21:24 start_debug.bat
-rw-r–r-- 1 mhub mhub 73 Nov 1 21:24 start_debug.sh
drwxr-xr-x 5 mhub mhub 4096 Nov 1 21:24 userdata
root@MixtileHub:/opt/mhub# chmod 775 start.sh
root@MixtileHub:/opt/mhub# ls -l
total 44
-rw-r–r-- 1 mhub mhub 11232 Nov 1 21:24 LICENSE.TXT
drwxr-xr-x 2 mhub mhub 4096 Nov 1 21:24 addons
drwxr-xr-x 13 mhub mhub 4096 Nov 1 21:24 conf
drwxr-xr-x 6 mhub mhub 4096 Nov 1 21:24 runtime
-rw-r–r-- 1 mhub mhub 121 Nov 1 21:24 start.bat
-rwxrwxr-x 1 mhub mhub 116 Nov 1 21:24 start.sh
-rw-r–r-- 1 mhub mhub 72 Nov 1 21:24 start_debug.bat
-rw-r–r-- 1 mhub mhub 73 Nov 1 21:24 start_debug.sh
drwxr-xr-x 5 mhub mhub 4096 Nov 1 21:24 userdata
root@MixtileHub:/opt/mhub# systemctl daemon-reload
root@MixtileHub:/opt/mhub# systemctl enable mhub.service
root@MixtileHub:/opt/mhub# systemctl start mhub.service
root@MixtileHub:/opt/mhub# journalctl -u mhub -f
– Logs begin at Wed 2020-05-27 10:18:27 UTC. –
Nov 01 21:32:49 MixtileHub systemd[1]: mhub.service: Unit entered failed state.
Nov 01 21:32:49 MixtileHub systemd[1]: mhub.service: Failed with result ‘exit-code’.
Nov 01 21:35:16 MixtileHub systemd[1]: [/lib/systemd/system/mhub.service:17] Unknown lvalue ‘restart’ in section ‘Service’
Nov 01 21:35:22 MixtileHub systemd[1]: [/lib/systemd/system/mhub.service:17] Unknown lvalue ‘restart’ in section ‘Service’
Nov 01 21:35:27 MixtileHub systemd[1]: Started The openHAB 2 Home Automation Bus Solution.
Nov 01 21:35:27 MixtileHub start.sh[2689]: Launching the openHAB runtime…
Nov 01 21:35:27 MixtileHub systemd[1]: mhub.service: Main process exited, code=exited, status=126/n/a
Nov 01 21:35:28 MixtileHub systemd[1]: mhub.service: Control process exited, code=exited status=1
Nov 01 21:35:28 MixtileHub systemd[1]: mhub.service: Unit entered failed state.
Nov 01 21:35:28 MixtileHub systemd[1]: mhub.service: Failed with result ‘exit-code’.
`


#47

and continue in a error loop here: root@MixtileHub:/opt/mhub# systemctl daemon-reload root@MixtileHub:/opt/mhub# systemctl enable mhub.service root@MixtileHub:/opt/mhub# systemctl start mhub.service root@MixtileHub:/opt/mhub# journalctl -u mhub -f -- Logs begin at Wed 2020-05-27 10:18:27 UTC. -- Nov 01 21:32:49 MixtileHub systemd[1]: mhub.service: Unit entered failed state. Nov 01 21:32:49 MixtileHub systemd[1]: mhub.service: Failed with result 'exit-code'. Nov 01 21:35:16 MixtileHub systemd[1]: [/lib/systemd/system/mhub.service:17] Unknown lvalue 'restart' in section 'Service' Nov 01 21:35:22 MixtileHub systemd[1]: [/lib/systemd/system/mhub.service:17] Unknown lvalue 'restart' in section 'Service' Nov 01 21:35:27 MixtileHub systemd[1]: Started The openHAB 2 Home Automation Bus Solution. Nov 01 21:35:27 MixtileHub start.sh[2689]: Launching the openHAB runtime... Nov 01 21:35:27 MixtileHub systemd[1]: mhub.service: Main process exited, code=exited, status=126/n/a Nov 01 21:35:28 MixtileHub systemd[1]: mhub.service: Control process exited, code=exited status=1 Nov 01 21:35:28 MixtileHub systemd[1]: mhub.service: Unit entered failed state. Nov 01 21:35:28 MixtileHub systemd[1]: mhub.service: Failed with result 'exit-code'. ^A^C root@MixtileHub:/opt/mhub# vi /lib/systemd/system/mhub.service root@MixtileHub:/opt/mhub# vi /lib/systemd/system/mhub.service root@MixtileHub:/opt/mhub# systemctl daemon-reload root@MixtileHub:/opt/mhub# systemctl enable mhub.service root@MixtileHub:/opt/mhub# systemctl start mhub.service root@MixtileHub:/opt/mhub# journalctl -u mhub -f -- Logs begin at Wed 2020-05-27 10:18:27 UTC. -- Nov 01 21:38:14 MixtileHub systemd[1]: mhub.service: Main process exited, code=exited, status=126/n/a Nov 01 21:38:14 MixtileHub systemd[1]: mhub.service: Control process exited, code=exited status=1 Nov 01 21:38:15 MixtileHub systemd[1]: mhub.service: Unit entered failed state. Nov 01 21:38:15 MixtileHub systemd[1]: mhub.service: Failed with result 'exit-code'. Nov 01 21:38:15 MixtileHub systemd[1]: mhub.service: Service hold-off time over, scheduling restart. Nov 01 21:38:15 MixtileHub systemd[1]: Stopped The openHAB 2 Home Automation Bus Solution. Nov 01 21:38:15 MixtileHub systemd[1]: mhub.service: Start request repeated too quickly. Nov 01 21:38:15 MixtileHub systemd[1]: Failed to start The openHAB 2 Home Automation Bus Solution. Nov 01 21:38:15 MixtileHub systemd[1]: mhub.service: Unit entered failed state. Nov 01 21:38:15 MixtileHub systemd[1]: mhub.service: Failed with result 'start-limit-hit'.


#48

trying to debug:

total 44
-rwxrwxr-x 1 root mhub 11232 Nov 1 21:24 LICENSE.TXT
drwxrwxr-x 2 root mhub 4096 Nov 1 21:24 addons
drwxrwxr-x 13 root mhub 4096 Nov 1 21:24 conf
drwxrwxr-x 6 root mhub 4096 Nov 1 21:24 runtime
-rwxrwxr-x 1 root mhub 121 Nov 1 21:24 start.bat
-rwxrwxr-x 1 root mhub 116 Nov 1 21:24 start.sh
-rwxrwxr-x 1 root mhub 72 Nov 1 21:24 start_debug.bat
-rwxrwxr-x 1 root mhub 73 Nov 1 21:24 start_debug.sh
drwxrwxr-x 5 root mhub 4096 Nov 1 21:24 userdata
root@MixtileHub:/opt/mhub# ./start_debug.sh
Launching the openHAB runtime…
/opt/mhub/start.sh: line 6: /opt/mhub/runtime/bin/karaf: Permission denied
/opt/mhub/start.sh: line 6: exec: /opt/mhub/runtime/bin/karaf: cannot execute: Permission denied
root@MixtileHub:/opt/mhub# vi /runtime/bin/karaf
root@MixtileHub:/opt/mhub#


#49

Damn it! I tried everything.
This is just total scam.
I bought worthless piece of junk.
ESH is in comparison useless, after booting up I dont see any way to add zigbee, Google assistant nor zwave.

just scam!
Sorry guys - this is over the line. really.


#50

Hi,

Sorry you couldn’t get it to work. We had a couple of users that had the same issue. But they were able fix it with the following

Please try it to see if it fixes the issue. ESH has been retired, and we working on a new system for our Mixtile series.


#51

Hi, I tried this many times a did go through all the topics here.
this doesnt work for me. :confused:

More ideas please how to debug?

all aproaches - skript, manual are not working for me. I think, that there could be some differencies in my case - for example I dont have usr/share/ nothing from mhub.


#52

Hi,

They should be the same. Why would you need the usr/share directory? If you haven’t done so, I recommend that you factory reset the hub then start over.

Best,

Bac

Mixtile Team


#53

I tried every advice here in community forum without luck. Then I tried to investigate myself.

Can you help me with further step and trouble shooting?