Cant connect to Domoticz after error in script Topic is solved

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
DutchTrickle
Posts: 3
Joined: Friday 30 December 2016 22:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Cant connect to Domoticz after error in script

Post by DutchTrickle »

I've made a lua script that hangs on my Pi. The log told me it took more than 10 seconds to complete and now i cant connet to domoticz at all. Iver tried rebooting, but this still happens. Is there a way for me to boot domoticz with the scripts disabled? Or can i edit the scripts externally on a windows pc? (the script was made using the webinterface -> events -> lua).
Currently i cant logon to domoticz and json requests result in a timeout :(
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Cant connect to Domoticz after error in script

Post by Egregius »

Disable the script in the database using a SQL3lite tool like Adminer, SQLite explorer,...
DutchTrickle
Posts: 3
Joined: Friday 30 December 2016 22:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Cant connect to Domoticz after error in script

Post by DutchTrickle »

So, how do i do this?
I can loging using ssh. Can i copy the database fromt here an place it back? Or do i take the sdcard from my pi and put it in a different machine? What variable do i look for? I need a bit more explanation i'm afraid.
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Cant connect to Domoticz after error in script

Post by Egregius »

Use a sftp client like cyberduck, winscp, ...
stop domoticz
copy the database file
open it in a sqlite explorer
set Status = 0 in Eventmaster table
copy the database back
start domoticz
DutchTrickle
Posts: 3
Joined: Friday 30 December 2016 22:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Cant connect to Domoticz after error in script

Post by DutchTrickle »

thanks a lot. Worked perfectly.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest