logging problem

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

Moderator: leecollings

Post Reply
heistje
Posts: 23
Joined: Saturday 21 January 2017 13:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Belgium
Contact:

logging problem

Post by heistje »

Hi
could use some help with enabling/finding the logfile.
Running Domoticz on a Qnap (Ubuntu 16.04)

Enabled the Domoticz.sh file (removing the # before DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt")
restarted Domoticz
but no succes, can't find the domoticz.txt-file...

thx for any suggestion!
Bullseye on RPI 4
Aeotec Z-Wave Plus Z-Stick Gen5
Zwave-JS-UI
RFXtrx433E
Eth8020
P1 USB
Shellys
ESP8266
SweetPants

Re: logging problem

Post by SweetPants »

If you start Domoticz as a service this /home/pi/domoticz/domotcz.sh is not used. You should change /etc/init.d/domoticz.sh
heistje
Posts: 23
Joined: Saturday 21 January 2017 13:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Belgium
Contact:

Re: logging problem

Post by heistje »

Thx for your reply!

I'm browsing/searching with WinSCP and I can browse the whole Ubuntu system but
The problem is that I can't find an other domoticz.sh file.
Not even in /etc/init.d/domoticz.sh
The only domoticz.sh I've found is the one in /home/'my name'/domoticz/

Thx for your help!
Bullseye on RPI 4
Aeotec Z-Wave Plus Z-Stick Gen5
Zwave-JS-UI
RFXtrx433E
Eth8020
P1 USB
Shellys
ESP8266
SweetPants

Re: logging problem

Post by SweetPants »

heistje wrote:I'm browsing/searching with WinSCP and I can browse the whole Ubuntu system but
The problem is that I can't find an other domoticz.sh file.
Are you sure you can browse the whole system? /etc/init.d/domoticz.sh is owned by root, I don't think you can sudo in WinSCP!!!
Try logging in with ssh and your username and excute ls -lia /etc/init.d/domoticz.sh. I get this on my Ubuntu system:

<yourname>@nuc:/$ ls -lia /etc/init.d/domoticz.sh
525065 -rwxr-xr-x 1 root root 3986 Mar 6 16:01 /etc/init.d/domoticz.sh
heistje
Posts: 23
Joined: Saturday 21 January 2017 13:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Belgium
Contact:

Re: logging problem

Post by heistje »

Sorry for my late reaction (long holiday :D )
Thx for your reply!
Tried your suggestion (with Putty) and got this:
Capture.JPG
Capture.JPG (17.04 KiB) Viewed 1211 times
??
Bullseye on RPI 4
Aeotec Z-Wave Plus Z-Stick Gen5
Zwave-JS-UI
RFXtrx433E
Eth8020
P1 USB
Shellys
ESP8266
heistje
Posts: 23
Joined: Saturday 21 January 2017 13:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Belgium
Contact:

Re: logging problem

Post by heistje »

took a little lesson on Putty and this are all files that I can find in the directory:
Capture2.JPG
Capture2.JPG (56.23 KiB) Viewed 1206 times
no trace of domoticz.sh ....
Bullseye on RPI 4
Aeotec Z-Wave Plus Z-Stick Gen5
Zwave-JS-UI
RFXtrx433E
Eth8020
P1 USB
Shellys
ESP8266
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest