Moving installation from WIndows to Linux on ARM device

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
pdegeus
Posts: 3
Joined: Friday 22 November 2019 13:52
Target OS: -
Domoticz version:
Contact:

Moving installation from WIndows to Linux on ARM device

Post by pdegeus »

Im currently running my Domoticz installation on a Inte nuc.
I don't want to have this Nuc powered on for 24x7 anymore so i decided to move the installation to an ARM device running linux.

The device is an Pine64 with 1GByte of ram with Armbian on it.
I have installed docker on it so i can have also my Unifi netwerk controller running on it.

I have Domoticz running on docker and added my Aeotec Zwave Gen5 stick to it.
I see my Zwave nodes are visible.
I restore the database from my windows installarion to the domoticz installation on my Arm device.

But i don't see the configuration is being restored.
Al of my sensorts being used are now unused, the names i gave it are not restored, my variables used in blockly etc..
I did read somewhere here on the forum that scripts needs to be resoted manually.

Do i need to restore more configuration?
Is it even supported to restore complete configuration from windows to linux installation?

Any help is appreciated, thanks!

Update:
I checked the logs, the following entry gives an error regarding the restore process:
2019-11-24 13:47:56.989 Error: Restore Database: Could not open backup file for writing!

I checked the linux permissions, even with 777 the error occurs.

Version running windows device:
V4.10717
Build Hash: b38b49e5
Build Date: 2019-05-09 13:04:08

Version running linux device:
V4.10726
Build Hash: be79a17d8
Build Date: 2019-05-10 09:37:55
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Moving installation from WIndows to Linux on ARM device

Post by waaren »

pdegeus wrote: Sunday 24 November 2019 14:31 I restore the database from my windows installation to the domoticz installation on my Arm device.
Can you just try to copy your database from the windows system to your linux box. Domoticz should be able to open it without the need to backup / restore.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
pdegeus
Posts: 3
Joined: Friday 22 November 2019 13:52
Target OS: -
Domoticz version:
Contact:

Re: Moving installation from WIndows to Linux on ARM device

Post by pdegeus »

waaren wrote: Sunday 24 November 2019 15:10
pdegeus wrote: Sunday 24 November 2019 14:31 I restore the database from my windows installation to the domoticz installation on my Arm device.
Can you just try to copy your database from the windows system to your linux box. Domoticz should be able to open it without the need to backup / restore.
I copied the database over en restarted the container.
It does start but domoticz doesn show my devices and doesn't show my zwave stick.
ALso doesn't let me allow to add the zwave stick.

Maybe that the difference in version is scewing up my installation/trying to restore database?
I'll check if ik can find an docker container with the same domoticz version and try it again.
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Moving installation from WIndows to Linux on ARM device

Post by DewGew »

pdegeus wrote: Sunday 24 November 2019 17:38
waaren wrote: Sunday 24 November 2019 15:10
pdegeus wrote: Sunday 24 November 2019 14:31 I restore the database from my windows installation to the domoticz installation on my Arm device.
Can you just try to copy your database from the windows system to your linux box. Domoticz should be able to open it without the need to backup / restore.
I copied the database over en restarted the container.
It does start but domoticz doesn show my devices and doesn't show my zwave stick.
ALso doesn't let me allow to add the zwave stick.

Maybe that the difference in version is scewing up my installation/trying to restore database?
I'll check if ik can find an docker container with the same domoticz version and try it again.
Check the settings for your zwave in hardware. You probobly need to change usb serial port settings.
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Moving installation from WIndows to Linux on ARM device

Post by waaren »

pdegeus wrote: Sunday 24 November 2019 17:38 I copied the database over en restarted the container.
It does start but domoticz doesn show my devices and doesn't show my zwave stick.
If the domoticz version is higher then the one last used with this database you should be good to go.
Also make sure you modify the ports for your hardware in the hardware tab. Linux uses different port(name)s than Windows
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
basmeyer
Posts: 9
Joined: Monday 31 July 2017 12:53
Target OS: NAS (Synology & others)
Domoticz version: 2020.2
Location: SE
Contact:

Re: Moving installation from WIndows to Linux on ARM device

Post by basmeyer »

pdegeus wrote: Sunday 24 November 2019 14:31 ...
I have Domoticz running on docker and added my Aeotec Zwave Gen5 stick to it.
...
Could you please share how to so this. I also need this stick to "pass through".
I am pulling my last single hair out how... It seems like a mystery.
By default Domoticz on a Docker does not appear to work with Z-wave devices.

I had a look at Portainer as a tool but without some help I am still in the dark.

Thanks.
pdegeus
Posts: 3
Joined: Friday 22 November 2019 13:52
Target OS: -
Domoticz version:
Contact:

Re: Moving installation from WIndows to Linux on ARM device

Post by pdegeus »

basmeyer wrote: Monday 23 December 2019 19:48
pdegeus wrote: Sunday 24 November 2019 14:31 ...
I have Domoticz running on docker and added my Aeotec Zwave Gen5 stick to it.
...
Could you please share how to so this. I also need this stick to "pass through".
I am pulling my last single hair out how... It seems like a mystery.
By default Domoticz on a Docker does not appear to work with Z-wave devices.

I had a look at Portainer as a tool but without some help I am still in the dark.

Thanks.
I've been using the image and followed the guide on the following page: https://hub.docker.com/r/linuxserver/domoticz.

You need to check on which interface your stick appears. You need to add that interface to your container config.
At first I used the docker cli, now I also use the portainer tool.
But with the portainer tool you still need to know what you are doing ;).

I hope the link get you further with getting your stick to work.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest