crash, now not working

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
Mirar
Posts: 113
Joined: 19 Oct 2014 16:54
Location: Stockholm

crash, now not working

Post by Mirar »

Code: Select all

[2015-02-20 00:59:14.058] [I] [core] Executing script: /*** Z-Way Home Automation Engine main executable ***************************** ...
[2015-02-20 00:59:14.137] [I] [core] Executing script: // This script transforms old formats to new ...
[2015-02-20 00:59:14.153] [I] [core] Executing script: /*! ...
[2015-02-20 00:59:14.302] [I] [core] Executing script: //     Underscore.js 1.7.0 ...
[2015-02-20 00:59:14.422] [I] [core] Executing script: /* System Start */ ...
[2015-02-20 00:59:14.431] [I] [core] Executing script: /* Start Core */ ...
[2015-02-20 00:59:14.462] [I] [core] Executing script: /* Start Core/Helpers */ ...
[2015-02-20 00:59:14.468] [I] [core] Executing script: /* Start Core/Namespace */ ...
[2015-02-20 00:59:14.471] [I] [core] Executing script: /* Start Core/Storage */ ...
[2015-02-20 00:59:14.484] [I] [core] Executing script: /* Start Core/Base */ ...
[2015-02-20 00:59:14.498] [I] [core] Executing script: /* Start Core/Model */ ...
[2015-02-20 00:59:14.616] [I] [core] Executing script: /* Start Core/Base */ ...
[2015-02-20 00:59:14.642] [I] [core] Executing script: /* Start Core/Collection */ ...
[2015-02-20 00:59:14.674] [I] [core] System: Loading Config
[2015-02-20 00:59:14.678] [I] [core] System: Loading Boot Scripts
[2015-02-20 00:59:14.700] [I] [core] System: Boot folder is empty
[2015-02-20 00:59:14.706] [I] [core] System: Registering Models
[2015-02-20 00:59:14.725] [I] [core] Executing script: /* System: User Model */ ...
[2015-02-20 00:59:14.737] [I] [core] Executing script: /* System: Users Collections */ ...
[2015-02-20 00:59:14.758] [I] [core] {"dataSource":"memory","public":false}
[2015-02-20 00:59:14.764] [I] [core] Executing script: /* System: User Model */ ...
[2015-02-20 00:59:14.770] [I] [core] Executing script: /* System: Users Collections */ ...
[2015-02-20 00:59:14.801] [I] [core] {"dataSource":"filesystem","file":"users","public":true}
[2015-02-20 00:59:14.802] [I] [core] System: Registering Handlers
[2015-02-20 00:59:14.806] [I] [core] Executing script: /* System: Loaded Cors Handler */ ...
[2015-02-20 00:59:14.810] [I] [core] Executing script: /* System: Loaded Cors Handler */ ...
[2015-02-20 00:59:14.815] [I] [core] Executing script: /* System: Loaded Rest Handler */ ...
[2015-02-20 00:59:14.819] [I] [core] Executing script: /* System: Loaded Cors Handler */ ...
[2015-02-20 00:59:14.822] [I] [core] Executing script: /* System: Loaded Cors Handler */ ...
[2015-02-20 00:59:14.833] [I] [core] Executing script: /*** Z-Way HA Virtual Device base class *************************************** ...
[2015-02-20 00:59:14.847] [I] [core] Executing script: /*** Z-Way DevicesCollection class ************************************ ...
[2015-02-20 00:59:14.884] [I] [core] Executing script: /*** Z-Way HA Controller class module ***************************************** ...
[2015-02-20 00:59:14.895] [I] [core] Executing script: /*** Z-Way HA Controller class module ***************************************** ...
[2015-02-20 00:59:14.902] [I] [core] Executing script: /*** Z-Way HA Automation module base class ************************************ ...
[2015-02-20 00:59:14.911] [I] [core] Executing script: /*** Main Automation storage module ***************************************** ...
[2015-02-20 00:59:14.931] [I] [core] Executing script: /*** Main Automation webserver module ***************************************** ...
[2015-02-20 00:59:14.937] [I] [core] Executing script: // Make this testable by pulling in underscore from the parent module ...
[2015-02-20 00:59:14.949] [I] [core] Executing script: /*** Main Automation storage module ***************************************** ...
[2015-02-20 00:59:15.001] [I] [core] --- Loading ZAutomation classes
[2015-02-20 00:59:15.181] [I] [core] Starting ZWay Automation webserver
[2015-02-20 00:59:15.265] [I] [core] Loading modules...
[2015-02-20 00:59:15.287] [I] [core] Loading module GroupDevices from modules/GroupDevices
[2015-02-20 00:59:15.299] [I] [core] Executing script: /*** GroupDevices Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.321] [I] [core] Loading module LightScene from modules/LightScene
[2015-02-20 00:59:15.330] [I] [core] Executing script: /*** LightScene Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.337] [I] [core] Loading module CustomUserCode from modules/CustomUserCode
[2015-02-20 00:59:15.341] [I] [core] Executing script:   /*** CustomUserCode ZAutomation module **************************************** ...
[2015-02-20 00:59:15.345] [I] [core] Loading module NotificationSMSru from modules/NotificationSMSru
[2015-02-20 00:59:15.350] [I] [core] Executing script: /*** NotificationSMSru Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.353] [I] [core] Loading module OpenRemoteHelpers from modules/OpenRemoteHelpers
[2015-02-20 00:59:15.360] [I] [core] Executing script: /* RaZOR ...
[2015-02-20 00:59:15.363] [I] [core] Loading module DelayedScene from modules/DelayedScene
[2015-02-20 00:59:15.368] [I] [core] Executing script: /*** DelayedScene Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.371] [I] [core] Loading module AutoOff from modules/AutoOff
[2015-02-20 00:59:15.376] [I] [core] Executing script: /*** AutoOff Z-Way Home Automation module ************************************* ...
[2015-02-20 00:59:15.379] [I] [core] Loading module SensorValueLogging from modules/SensorValueLogging
[2015-02-20 00:59:15.384] [I] [core] Executing script: /*** SensorValueLogging Z-Way Home Automation module ************************************* ...
[2015-02-20 00:59:15.387] [I] [core] Loading module FosCam9826 from modules/FosCam9826
[2015-02-20 00:59:15.392] [I] [core] Executing script: /*** FosCam9826 Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.412] [I] [core] Loading module OpenWeather from modules/OpenWeather
[2015-02-20 00:59:15.417] [I] [core] Executing script: /*** OpenWeather Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.421] [I] [core] Loading module CustomUserCodeLoader from modules/CustomUserCodeLoader
[2015-02-20 00:59:15.424] [I] [core] Executing script:   /*** CustomUserCodeLoader ZAutomation module **************************************** ...
[2015-02-20 00:59:15.428] [I] [core] Loading module RGB from modules/RGB
[2015-02-20 00:59:15.433] [I] [core] Executing script: /*** RGB Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.437] [I] [core] Loading module Cron from modules/Cron
[2015-02-20 00:59:15.444] [I] [core] Executing script: /*** Cron ZAutomation module ************************************************** ...
[2015-02-20 00:59:15.538] [I] [core] Notification: error (core): Failed to load module because dependency was not instanciated: [MODULE]::[DEP] = Cron :: SensorsPolling
[2015-02-20 00:59:15.540] [I] [core] Loading module Notification from modules/Notification
[2015-02-20 00:59:15.545] [I] [core] Executing script: /*** Notification Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.549] [I] [core] Loading module SmartLight from modules/SmartLight
[2015-02-20 00:59:15.555] [I] [core] Executing script: /*** SmartLight Z-Way Home Automation module ************************************* ...
[2015-02-20 00:59:15.559] [I] [core] Loading module YandexProbki from modules/YandexProbki
[2015-02-20 00:59:15.565] [I] [core] Executing script: /*** YandexProbki Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.569] [I] [core] Loading module TagOnOff from modules/TagOnOff
[2015-02-20 00:59:15.573] [I] [core] Executing script: /*** TagOnOff Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.577] [I] [core] Loading module RoundRobinScenes from modules/RoundRobinScenes
[2015-02-20 00:59:15.581] [I] [core] Executing script: /*** RoundRobinScenes Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.584] [I] [core] Loading module ThermostatDevice from modules/ThermostatDevice
[2015-02-20 00:59:15.589] [I] [core] Executing script: /*** ThermostatDevice Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.595] [I] [core] Loading module Cron from modules/Cron
[2015-02-20 00:59:15.598] [I] [core] Executing script: /*** Cron ZAutomation module ************************************************** ...
[2015-02-20 00:59:15.658] [I] [core] Notification: error (core): Failed to load module because dependency was not instanciated: [MODULE]::[DEP] = Cron :: SwitchPolling
[2015-02-20 00:59:15.660] [I] [core] Loading module LogicalRules from modules/LogicalRules
[2015-02-20 00:59:15.669] [I] [core] Executing script: /*** LogicalRules Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.673] [I] [core] Loading module ScheduledScene from modules/ScheduledScene
[2015-02-20 00:59:15.677] [I] [core] Executing script: /*** ScheduledScene Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.681] [I] [core] Loading module Cron from modules/Cron
[2015-02-20 00:59:15.683] [I] [core] Executing script: /*** Cron ZAutomation module ************************************************** ...
[2015-02-20 00:59:15.686] [I] [core] Loading module DummyDevice from modules/DummyDevice
[2015-02-20 00:59:15.690] [I] [core] Executing script: /*** DummyDevice Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.694] [I] [core] Loading module ImportRemoteHA from modules/ImportRemoteHA
[2015-02-20 00:59:15.701] [I] [core] Executing script: /*** ImportRemoteHA Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.705] [I] [core] Loading module HTTPDevice from modules/HTTPDevice
[2015-02-20 00:59:15.712] [I] [core] Executing script: /*** HTTPDevice Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.717] [I] [core] Loading module SensorsPollingLogging from modules/SensorsPollingLogging
[2015-02-20 00:59:15.722] [I] [core] Executing script: /*** SensorsPollingLogging Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.726] [I] [core] Loading module FosCam9805 from modules/FosCam9805
[2015-02-20 00:59:15.731] [I] [core] Executing script: /*** FosCam9805 Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.740] [I] [core] Loading module AutoLock from modules/AutoLock
[2015-02-20 00:59:15.744] [I] [core] Executing script: /*** AutoLock Z-Way Home Automation module ************************************* ...
[2015-02-20 00:59:15.748] [I] [core] Loading module Camera from modules/Camera
[2015-02-20 00:59:15.753] [I] [core] Executing script: /*** Camera Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.758] [I] [core] Loading module FosCam9821 from modules/FosCam9821
[2015-02-20 00:59:15.764] [I] [core] Executing script: /*** FosCam9821 Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.769] [I] [core] Loading module SwitchControlGenerator from modules/SwitchControlGenerator
[2015-02-20 00:59:15.776] [I] [core] Executing script: /*** SwitchControlGenerator Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.780] [I] [core] Loading module OpenWeatherExtended from modules/OpenWeatherExtended
[2015-02-20 00:59:15.787] [I] [core] Executing script: /*** OpenWeather Extended Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.790] [I] [core] Loading module ZWave from modules/ZWave
[2015-02-20 00:59:15.841] [I] [core] Executing script: /*** Z-Wave Binding module ******************************************************** ...
[2015-02-20 00:59:15.853] [I] [core] Loading module BindDevices from modules/BindDevices
[2015-02-20 00:59:15.858] [I] [core] Executing script: /*** BindDevices Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.861] [I] [core] Loading module HomeKitGate from modules/HomeKitGate
[2015-02-20 00:59:15.868] [I] [core] Executing script: /* ...
[2015-02-20 00:59:15.871] [I] [core] Loading module FosCam9828 from modules/FosCam9828
[2015-02-20 00:59:15.877] [I] [core] Executing script: /*** FosCam9828 Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.882] [I] [core] Loading module DeviceMonitor from modules/DeviceMonitor
[2015-02-20 00:59:15.887] [I] [core] Executing script: /*** DeviceMonitor Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.891] [I] [core] Loading module PoppCam from modules/PoppCam
[2015-02-20 00:59:15.897] [I] [core] Executing script: /*** PoppCam Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.901] [I] [core] Loading module VistaCam from modules/VistaCam
[2015-02-20 00:59:15.907] [I] [core] Executing script: /*** VistaCam Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.911] [I] [core] Loading module CodeDevice from modules/CodeDevice
[2015-02-20 00:59:15.917] [I] [core] Executing script: /*** CodeDevice Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.921] [I] [core] Loading module SecurityMode from modules/SecurityMode
[2015-02-20 00:59:15.928] [I] [core] Executing script: /*** SecurityMode Z-Way HA module ******************************************* ...
[2015-02-20 00:59:15.933] [I] [core] Loading module Cron from modules/Cron
[2015-02-20 00:59:15.935] [I] [core] Executing script: /*** Cron ZAutomation module ************************************************** ...
[2015-02-20 00:59:15.984] [I] [core] Notification: error (core): Failed to load module because dependency was not instanciated: [MODULE]::[DEP] = Cron :: BatteryPolling
[2015-02-20 00:59:15.987] [I] [core] Starting automation...
[2015-02-20 00:59:16.080] [I] [core] Starting storage...
[2015-02-20 00:59:16.085] [I] [core] ZWay Automation started
Interface only reports "Error handling data from server".

There's no zwaveapi running.

Code: Select all

$ wget  -O - http://127.0.0.1:8083/ZWaveAPI/InspectQueue 
--2015-02-20 01:09:42--  http://127.0.0.1:8083/ZWaveAPI/InspectQueue
Connecting to 127.0.0.1:8083... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-02-20 01:09:42 ERROR 404: Not Found.
How do I get this running again? Reinstalling/downloading it again with the bash script didn't work.
The log isn't very helpful in pointing out what is missing.
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: crash, now not working

Post by pofs »

Is there an error notification in the automation UI? Like "undefined is not a function" or whatever.

This might happen if Z-Wave native module was not loaded for some reason.
Try stopping z-way-server service and running it from console:

Code: Select all

cd /opt/z-way-server
LD_LIBRARY_PATH=libs ./z-way-server
and see if there are errors printed when loading modules.
Probably some dependency was accidentally removed from your system.
Mirar
Posts: 113
Joined: 19 Oct 2014 16:54
Location: Stockholm

Re: crash, now not working

Post by Mirar »

A lot of files were messed up, like the dkpg package list (!). Not sure what my filesystem were doing; it came out clean when mounting it in a laptop. I think I'll go for a new stick and start over...

I managed to restore it by replacing z-way-server with one of the upgrade directory backups in /opt.

edit: also this:

Code: Select all


100%[=================================================================>] 13,353,087  1.72M/s   in 6.5s    

2015-02-20 08:55:28 (1.95 MB/s) - `/tmp/z-way-server-RaspberryPiXTools-v2.0.1-rc14.tgz' saved [13353087/13353087]
Extracting new z-way-server
Previous z-way-server installation found
bash: line 179: 10801 Segmentation fault      /etc/init.d/z-way-server stop
(And it crashed again. I think this sdcard is dying.)
Post Reply