I'm running Ubuntu 12.04:
Code: Select all
uname -a
Linux filserver 3.2.0-44-generic-pae #69-Ubuntu SMP Thu May 16 18:50:07 UTC 2013 i686 athlon i386 GNU/Linux
1) First I had to manually point cmake at the location of my openssl / libssl-dev installation in order to enable SSL / TLS during compilation:
Code: Select all
sudo cmake -DOPENSSL_INCLUDE_DIR=/usr/include/openssl/ -DOPENSSL_LIBRARY=/usr/bin/openssl/ -DCMAKE_BUILD_TYPE=Release /home/domoticz/domoticz/
That did the trick for compiling the code.
I should also mention:
* I've created domoticz user for this service, domoticz is installed in this users home folder
* I've done chown on all files in domoticz folder
* I've specified the log file location in domoticz.sh (also in domoticz.sh in /etc/init.d), but no log is appearing there (all users can write to containing folder /tmp)
When trying to run domoticz, either as root, or as domoticz user I'm getting this error:
Code: Select all
$ sudo service domoticz.sh start
Segmentation fault
Thanks in advance for all help.
Edit: Tried reading in the syslog, and apparently the segmentation fault also happens when trying to start the daemon manually with or without any parameters:
Code: Select all
$ sudo ./domoticz -daemon
$ tail /var/log/syslog
Nov 20 23:22:13 filserver kernel: [97619.475694] domoticz[16152]: segfault at 80c0ee8 ip b7713bdb sp bfb11170 error 6 in ld-2.15.so[b7708000+20000]
Nov 20 23:22:15 filserver kernel: [97621.532635] domoticz[16159]: segfault at 80c0ee8 ip b774bbdb sp bfa7ca50 error 6 in ld-2.15.so[b7740000+20000]
Nov 20 23:25:57 filserver kernel: [97843.407045] domoticz[16177]: segfault at 80c0ee8 ip b7710bdb sp bfd59150 error 6 in ld-2.15.so[b7705000+20000]
Nov 20 23:27:50 filserver kernel: [97957.350093] domoticz[16479]: segfault at 80c0ee8 ip b7786bdb sp bfc58540 error 6 in ld-2.15.so[b777b000+20000]
Nov 20 23:30:35 filserver kernel: [98121.822551] domoticz[16491]: segfault at 80c0ee8 ip b76f1bdb sp bf870260 error 6 in ld-2.15.so[b76e6000+20000]
Nov 20 23:31:18 filserver kernel: [98164.766859] domoticz[16493]: segfault at 80c0ee8 ip b77e3bdb sp bf968770 error 6 in ld-2.15.so[b77d8000+20000]
Nov 20 23:31:42 filserver kernel: [98189.348367] domoticz[16495]: segfault at 80c0ee8 ip b771cbdb sp bfaa4e40 error 6 in ld-2.15.so[b7711000+20000]
Nov 20 23:33:24 filserver kernel: [98290.893489] domoticz[16559]: segfault at 80c0ee8 ip b7736bdb sp bfb5cff0 error 6 in ld-2.15.so[b772b000+20000]
Nov 20 23:33:40 filserver kernel: [98306.938879] domoticz[16569]: segfault at 80c0ee8 ip b7705bdb sp bf983880 error 6 in ld-2.15.so[b76fa000+20000]
Nov 20 23:38:43 filserver kernel: [98609.852131] domoticz[16623]: segfault at 80c0ee8 ip b77adbdb sp bf9f8b20 error 6 in ld-2.15.so[b77a2000+20000]