Domoticz crashes (segfault) since upgrade (stable)

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!
Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
jmbjmbjmb
Posts: 54
Joined: Monday 25 January 2016 11:41
Target OS: -
Domoticz version:
Contact:

Domoticz crashes (segfault) since upgrade (stable)

Post by jmbjmbjmb » Sunday 08 July 2018 15:42

Hi,

Since I upgraded to latest stable a few days ago, my domoticz setup crashes with a segmentation fault error. I've tried using some combinations of -loglevel/-log / -verbose options but all I'm getting is :
2018-07-08 15:32:35.070 Status: Domoticz V4.9700 (c)2012-2018 GizMoCuz
2018-07-08 15:32:35.073 Status: Build Hash: a3a45906, Date: 2018-06-23 16:24:51
2018-07-08 15:32:35.078 Status: Startup Path: /home/pi/domoticz/
2018-07-08 15:32:35.253 Sunrise: 05:57:00 SunSet: 21:52:00
2018-07-08 15:32:35.256 Day length: 15:55:00 Sun at south: 13:05:00
2018-07-08 15:32:35.259 Civil twilight start: 05:16:00 Civil twilight end: 22:33:00
2018-07-08 15:32:35.262 Nautical twilight start: 04:20:00 Nautical twilight end: 23:29:00
2018-07-08 15:32:35.263 Astronomical twilight start: 02:50:00 Astronomical twilight end: 00:59:00
2018-07-08 15:32:35.266 Status: EventSystem: reset all events...
2018-07-08 15:32:35.870 Status: PluginSystem: Started, Python version '3.4.2'.
2018-07-08 15:32:35.919 Active notification Subsystems: gcm, http (2/13)
2018-07-08 15:32:35.926 Status: WebServer(HTTP) started on address: :: with port 8080
2018-07-08 15:32:35.992 Status: Proxymanager started.
2018-07-08 15:32:35.998 Status: Camera: settings (re)loaded
2018-07-08 15:32:36.009 Starting shared server on: :::6144
2018-07-08 15:32:36.014 Status: TCPServer: shared server started...
2018-07-08 15:32:36.016 Status: RxQueue: queue worker started...
2018-07-08 15:32:38.016 Status: EventSystem: reset all events...
2018-07-08 15:32:38.021 Status: EventSystem: reset all device statuses...
2018-07-08 15:32:38.023 Status: DarkSky: Started...
2018-07-08 15:32:38.277 Status: PluginSystem: Entering work loop.
2018-07-08 15:32:38.824 Status: Python EventSystem: Initalizing event module.
2018-07-08 15:32:38.829 Status: EventSystem: Queue thread started...
2018-07-08 15:32:38.833 Status: EventSystem: Started
2018-07-08 15:32:49.057 (DarkSky) Temp + Humidity + Baro (Temp REDACTED)
2018-07-08 15:32:49.086 (DarkSky) Wind (Wind)
2018-07-08 15:32:49.111 (DarkSky) UV (UV Index)
2018-07-08 15:32:49.147 (DarkSky) Rain (Rain)
2018-07-08 15:32:49.162 (DarkSky) General/Visibility (Visibility)
2018-07-08 15:32:49.191 (DarkSky) General/Custom Sensor (Solar)
Segmentation fault


Any idea what else I could try doing to help troubleshooting ?
Also, if I start with a fresh domoticz.db (i.e., I move mine somewhere) then domoticz works just fine (without any of my setup of course) so I am thinking that the new version does not like something currently stored in the DB.

thanks for your help

devros
Posts: 189
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: Domoticz crashes (segfault) since upgrade (stable)

Post by devros » Sunday 08 July 2018 17:10

Try disable events and python plugins... my crash was similar and because of broadlink python plugin

brain
Posts: 12
Joined: Saturday 03 March 2018 10:08
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoticz crashes (segfault) since upgrade (stable)

Post by brain » Sunday 08 July 2018 18:13

devros wrote:
Sunday 08 July 2018 17:10
Try disable events and python plugins... my crash was similar and because of broadlink python plugin
have you got the broadlink plugin working again?

devros
Posts: 189
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: Domoticz crashes (segfault) since upgrade (stable)

Post by devros » Sunday 08 July 2018 19:50

brain wrote:
Sunday 08 July 2018 18:13
devros wrote:
Sunday 08 July 2018 17:10
Try disable events and python plugins... my crash was similar and because of broadlink python plugin
have you got the broadlink plugin working again?
no i switched to python script with recorded commands, and works without problems :)

jmbjmbjmb
Posts: 54
Joined: Monday 25 January 2016 11:41
Target OS: -
Domoticz version:
Contact:

Re: Domoticz crashes (segfault) since upgrade (stable)

Post by jmbjmbjmb » Sunday 08 July 2018 19:53

I've reinstalled the current stable from scratch which works fine until I upload a backup of my database. The new install has all events disabled by default (or at least that's what it looked like) so that does not seem to be making any difference. If someine could help me figure the proper parameters to have a thorough debugging level in my logs maybe I could come up with more hints. thanks

devros
Posts: 189
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: Domoticz crashes (segfault) since upgrade (stable)

Post by devros » Sunday 08 July 2018 20:20

jmbjmbjmb wrote:
Sunday 08 July 2018 19:53
I've reinstalled the current stable from scratch which works fine until I upload a backup of my database. The new install has all events disabled by default (or at least that's what it looked like) so that does not seem to be making any difference. If someine could help me figure the proper parameters to have a thorough debugging level in my logs maybe I could come up with more hints. thanks
in your first log is python plugin system enabled, maybe try to disable darksky too...

jmbjmbjmb
Posts: 54
Joined: Monday 25 January 2016 11:41
Target OS: -
Domoticz version:
Contact:

Re: Domoticz crashes (segfault) since upgrade (stable)

Post by jmbjmbjmb » Sunday 08 July 2018 20:26

I just did a reinstall + database backup upload on a rpi3 and it seems stable. My original domoticz was running on an old rpi I bought in 2014 (cant remember which revision it is, one with only 512MB of RAM).
I would very much like to keep domoticz running on that old rpi. What do you recommend ?

User avatar
Bernd
Posts: 67
Joined: Tuesday 04 February 2014 9:44
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: The Netherlands, De Wijk
Contact:

Re: Domoticz crashes (segfault) since upgrade (stable)

Post by Bernd » Friday 13 July 2018 16:13

jmbjmbjmb wrote:
Sunday 08 July 2018 20:26
I would very much like to keep domoticz running on that old rpi. What do you recommend?
Say bye bye to the old one and safe yourself wasted hours.
Raspberry Pi B3 (Stretch) with boot from USB stick - no SD-card inserted
RFXCOM RFXtrx433E, firmware version = 1022

jvandenbroek
Posts: 177
Joined: Wednesday 12 March 2014 17:37
Target OS: Raspberry Pi
Domoticz version: beta
Location: The Netherlands
Contact:

Re: Domoticz crashes (segfault) since upgrade (stable)

Post by jvandenbroek » Tuesday 17 July 2018 14:03

jmbjmbjmb wrote:I just did a reinstall + database backup upload on a rpi3 and it seems stable. My original domoticz was running on an old rpi I bought in 2014 (cant remember which revision it is, one with only 512MB of RAM).
I would very much like to keep domoticz running on that old rpi. What do you recommend ?
Just put the latest Raspbian stretch image on it and you should be fine.

jmbjmbjmb
Posts: 54
Joined: Monday 25 January 2016 11:41
Target OS: -
Domoticz version:
Contact:

Re: Domoticz crashes (segfault) since upgrade (stable)

Post by jmbjmbjmb » Wednesday 18 July 2018 14:19

I do run apt-get upgrade/dist-upgrade on a regular basis so that should be the same shouldn't it ?

jvandenbroek
Posts: 177
Joined: Wednesday 12 March 2014 17:37
Target OS: Raspberry Pi
Domoticz version: beta
Location: The Netherlands
Contact:

Re: Domoticz crashes (segfault) since upgrade (stable)

Post by jvandenbroek » Sunday 22 July 2018 11:32

jmbjmbjmb wrote:I do run apt-get upgrade/dist-upgrade on a regular basis so that should be the same shouldn't it ?
Theoretically yes (the dist-upgrade part), but when encountering issues like this it's better to just take a backup of your running config and put a clean image on it. That way you know for sure there is no old stuff left behind which potentially conflicts.

tontze
Posts: 335
Joined: Thursday 12 January 2017 16:30
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoticz crashes (segfault) since upgrade (stable)

Post by tontze » Saturday 06 October 2018 14:28

Can you tell what exactly to backup ? and how to restore ?
-----------------------------------------
Rpi 3 / Razberry 2
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
ESP82xx

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests