linuxserver / docker-domoticz

GNU General Public License v3.0
43 stars 27 forks source link

Domoticz doesn't start in unraid #103

Closed Reinvented0 closed 1 year ago

Reinvented0 commented 1 year ago

linuxserver.io

Expected Behavior

Just normal startup

Current Behavior

Doesn't start

Steps to Reproduce

1.clean install from Apps/Unraid 2.setting up /dev/ttyUSB0 3.change default port from 8080 to 8082 4.

Environment

OS: Unraid CPU architecture: x86_64 How docker service was installed: From Apps/Unraid

Command used to create docker container (run/create/compose/screenshot)

Just standard unraid

Docker logs

2022-10-15 10:07:58.724 Status: Domoticz V2022.1 (c)2012-2022 GizMoCuz 2022-10-15 10:07:58.724 Status: Build Hash: c9526851b, Date: 2022-01-31 09:34:32 2022-10-15 10:07:58.724 Status: Startup Path: /usr/share/domoticz/ 2022-10-15 10:07:58.725 Error: Error opening SQLite3 database: unable to open database file 2022-10-15 10:07:58.725 Error: Domoticz(pid:129, tid:129('domoticz')) received fatal signal 6 (Aborted) 2022-10-15 10:07:58.725 Error: siginfo address=0x6300000081, address=0x7efe3a25f00b 2022-10-15 10:07:58.728 Error: Failed to start gdb, will use backtrace() for printing stack frame

2022-10-15 10:07:58.731 Error: #0 /usr/bin/domoticz : + 0x3d3143 [0x55b793a1d143] 2022-10-15 10:07:58.731 Error: #1 /usr/bin/domoticz : signal_handler(int, siginfo_t, void) + 0x205 [0x55b793a1dba5] 2022-10-15 10:07:58.731 Error: #2 /lib/x86_64-linux-gnu/libpthread.so.0 : + 0x14420 [0x7efe3a59d420] 2022-10-15 10:07:58.731 Error: #3 /lib/x86_64-linux-gnu/libc.so.6 : gsignal + 0xcb [0x7efe3a25f00b] 2022-10-15 10:07:58.731 Error: #4 /lib/x86_64-linux-gnu/libc.so.6 : abort + 0x12b [0x7efe3a23e859] 2022-10-15 10:07:58.731 Error: #5 /usr/bin/domoticz : + 0x2ecf68 [0x55b793936f68] 2022-10-15 10:07:58.731 Error: #6 /usr/bin/domoticz : cxxabiv1::terminate(void (*)()) + 0x6 [0x55b79402afb6] 2022-10-15 10:07:58.731 Error: #7 /usr/bin/domoticz : + 0x9e0ff1 [0x55b79402aff1] 2022-10-15 10:07:58.732 Error: #8 /usr/bin/domoticz : main + 0x6ac [0x55b79393815c] 2022-10-15 10:07:58.732 Error: #9 /lib/x86_64-linux-gnu/libc.so.6 : __libc_start_main + 0xf3 [0x7efe3a240083] 2022-10-15 10:07:58.732 Error: #10 /usr/bin/domoticz : _start + 0x2a [0x55b79395ed9a]

github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

j0nnymoe commented 1 year ago

Please provide the docker run command from unraid.

Reinvented0 commented 1 year ago

docker run -d --name='domoticz' --net='bridge' -e TZ="Europe/Berlin" -e HOST_OS="Unraid" -e HOST_HOSTNAME="Brein" -e HOST_CONTAINERNAME="domoticz" -e 'WEBROOT'='domoticz' -e 'DBASE'='path to database' -e 'PUID'='99' -e 'PGID'='100' -e 'UMASK'='022' -l net.unraid.docker.managed=dockerman -l net.unraid.docker.webui='http://[IP]:[PORT:8080]' -l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/domoticz-logo.png' -p '8082:8080/tcp' -p '6144:6144/tcp' -p '1443:1443/tcp' -v '/mnt/user/appdata/domoticz':'/config':'rw' --device='/dev/ttyUSB0' 'lscr.io/linuxserver/domoticz' 116e44961d47b796d4158561b84f60984ed530664caa2b5641872d49958cf150

The command finished successfully!

j0nnymoe commented 1 year ago

Remove the -e 'WEBROOT'='domoticz' -e 'DBASE'='path to database' lines, they're optional.

Reinvented0 commented 1 year ago

Check, that works! Strange that the docker app uses it as default and states that you won't have to change it.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.