Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deCONZ logs #55

Closed
neonal opened this issue Jul 18, 2017 · 9 comments
Closed

deCONZ logs #55

neonal opened this issue Jul 18, 2017 · 9 comments

Comments

@neonal
Copy link

neonal commented Jul 18, 2017

Hi,

I couldn't find where deCONZ writes log files. Can they only be seen from UI or are they written to the disk somwhere?

Thanks

@manup
Copy link
Member

manup commented Jul 22, 2017

deCONZ doesn't write log files to not pollute the sd-cards in long running setups.

But you can print and redirect logs to files via commandline.
For example a very noisy output can be generated as follows:

$ deCONZ --dbg-info=2 --dbg-zdp=1 --dbg-zcl=1 --db-aps=1 --dbg-http=1

Customize to your needs, for REST-API debugging the info and http options should be sufficient.

@neonal
Copy link
Author

neonal commented Jul 28, 2017

Oh great! That helped a lot, thanks :)

@neonal neonal closed this as completed Jul 28, 2017
@bramschats
Copy link

bramschats commented Aug 26, 2019

I have Deconz in Hassio running on ubuntu but I cannot seem to enter the logs using this command.

ubuntu_docker:~$ deCONZ --dbg-info=2 --dbg-zdp=1 --dbg-zcl=1 --db-aps=1 --dbg-http=1
deCONZ: command not found
ubuntu_docker:~$ 

Hope someone can tell me what to do!

@bortim
Copy link

bortim commented Jun 14, 2020

If deCONZ is used with Ubuntu and as a service you can do the following:

$ sudo nano /lib/systemd/system/deconz.service

ExecStart=/usr/bin/deCONZ \
        #--dbg-info=2 --dbg-zdp=1 --dbg-zcl=1 --db-aps=1 --dbg-http=1 \
        -platform minimal \
        --http-port=80
#StandardOutput=file:/home/ubuntu/deCONZ-error.log
#StandardError=file:/home/ubuntu/deCONZ-error.log

If you delete the hashtag-comment, deconz is started with higher loglevel.

You can view the logifle during running the system with:

tail -f /home/ubuntu/deCONZ-error.log

@bramschats : As you see, decont is not usable everywhere and you neet the path: /usr/bin/deCONZ

@clipse2004
Copy link

Hello,
i tried to view log too but when i use the command above i got this error:

QCoreApplication::arguments: Please instantiate the QApplication object first
qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.

what should i do to instantiate the QApplication?

@Smanar
Copy link
Collaborator

Smanar commented Nov 25, 2020

You are using headless or desktop version ?
You need "-platform minimal" for headless

@clipse2004
Copy link

well, depending on whether I want the sensors to be displayed :)

@wkearney99
Copy link

if I'm running deconz on windows, where is the log?

@Smanar
Copy link
Collaborator

Smanar commented Mar 29, 2021

On deconz / help / log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants