service died after update?

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
rexy666
Posts: 16
Joined: 28 Mar 2013 02:46

service died after update?

Post by rexy666 »

Hello, everything was working fine until unsurprisingly I managed to fu**ed things up.

- This is what I did, update the z-way-server
- Unplug the USB power cable
- Unplug every peripheral attached to the rPi including the RaZberry (don't ask me why, I'm an idiot)
- Plug everything back on

And now it's dead.

I opened the log and seemed strange, but I don't have an original as to compare to
http://i.imgur.com/Oz1SLfn.png

Starting the service seems OK, but stopping the service throws this error
http://i.imgur.com/3Za4ERP.png

Since I updated, the config.xml went back default on port 8083, but seems to be dead
http://i.imgur.com/LLFMscx.png

What have I done? Did I physically damaged the little RaZberry board somehow? I tried swapping the Raspberry Pi for another one, and I get the same result.
Pitt13
Posts: 41
Joined: 13 Apr 2013 23:52

hello,

Post by Pitt13 »

hello,
you have verified the IP address on your box? or router?
Restarting the RPi can be a change of IP address if DHCP
rexy666
Posts: 16
Joined: 28 Mar 2013 02:46

IP is the same

Post by rexy666 »

Thanks Pitt13, the IP is still the same. I can SSH into it and my secondary apache server is still working.
Tiptop
Posts: 56
Joined: 01 Mar 2013 13:50

Try this...

Post by Tiptop »

Hi,

try to do the following:


sudo bash
killall z-way-server
cd /opt/z-way-server/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/z-way-server/libs
./z-way-server


Now look at the output. What do you see? Does the server crash?
If not, try to connect in this mode.
Note: As soon as you close your SSH connection, z-way-server will be terminated if it was started this way.

Greets,
Stefan
User avatar
PoltoS
Posts: 7571
Joined: 26 Jan 2011 19:36

Have you done how Tiptop

Post by PoltoS »

Have you done how Tiptop recommnded? Please post the log.

HAve you unplugged RPi before unplugging RaZberry board? Note that you can damage it by plugging/unpluggin on a running RPi (RPi can be damaged too).
rexy666
Posts: 16
Joined: 28 Mar 2013 02:46

dead

Post by rexy666 »

killall z-way-server
z-way-server: no process found

./z-way-server
Z-Way release 2013-03-29 02:09:39 +0400 5d3085259a6f9c9a3305d383d535be645c04bc5e
Using default configuration file config.xml
Starting Z-Way for device /dev/ttyAMA0...
[2013-05-17 13:21:28.037] SETDATA controller.data = Empty
[2013-05-17 13:21:28.041] SETDATA controller.data.nodeId = Empty
[2013-05-17 13:21:28.044] SETDATA controller.data.homeId = Empty
[2013-05-17 13:21:28.046] SETDATA controller.data.SUCNodeId = Empty
[2013-05-17 13:21:28.047] SETDATA controller.data.isPrimary = Empty
[2013-05-17 13:21:28.049] SETDATA controller.data.isInOthersNetwork = Empty
[2013-05-17 13:21:28.049] SETDATA controller.data.isRealPrimary = Empty
[2013-05-17 13:21:28.050] SETDATA controller.data.isSUC = Empty
[2013-05-17 13:21:28.050] SETDATA controller.data.SISPresent = Empty
[2013-05-17 13:21:28.052] SETDATA controller.data.libType = Empty
[2013-05-17 13:21:28.053] SETDATA controller.data.SDK = Empty
[2013-05-17 13:21:28.054] SETDATA controller.data.ZWlibMajor = Empty
[2013-05-17 13:21:28.055] SETDATA controller.data.ZWlibMinor = Empty
[2013-05-17 13:21:28.056] SETDATA controller.data.ZWVersion = Empty
[2013-05-17 13:21:28.057] SETDATA controller.data.ZWaveChip = Empty
[2013-05-17 13:21:28.057] SETDATA controller.data.APIVersion = Empty
[2013-05-17 13:21:28.059] SETDATA controller.data.manufacturerId = Empty
[2013-05-17 13:21:28.059] SETDATA controller.data.vendor = Empty
[2013-05-17 13:21:28.060] SETDATA controller.data.manufacturerProductType = Empty
[2013-05-17 13:21:28.061] SETDATA controller.data.manufacturerProductId = Empty
[2013-05-17 13:21:28.062] SETDATA controller.data.capabilities = Empty
[2013-05-17 13:21:28.063] SETDATA controller.data.controllerState = Empty
[2013-05-17 13:21:28.065] SETDATA controller.data.nonManagmentJobs = Empty
[2013-05-17 13:21:28.066] SETDATA controller.data.lastIncludedDevice = Empty
[2013-05-17 13:21:28.068] SETDATA controller.data.lastExcludedDevice = Empty
[2013-05-17 13:21:28.068] SETDATA controller.data.oldSerialAPIAckTimeout10ms = Empty
[2013-05-17 13:21:28.069] SETDATA controller.data.oldSerialAPIByteTimeout10ms = Empty
[2013-05-17 13:21:28.070] SETDATA controller.data.curSerialAPIAckTimeout10ms = Empty
[2013-05-17 13:21:28.071] SETDATA controller.data.curSerialAPIByteTimeout10ms = Empty
[2013-05-17 13:21:28.073] SETDATA controller.data.libVersionId = Empty
[2013-05-17 13:21:28.073] SETDATA controller.data.countJobs = Empty
[2013-05-17 13:21:28.075] SETDATA controller.data.memoryGetAddress = Empty
[2013-05-17 13:21:28.076] SETDATA controller.data.memoryGetData = Empty
[2013-05-17 13:21:28.077] SETDATA controller.data.functionClasses = Empty
[2013-05-17 13:21:28.078] SETDATA controller.data.functionClassesNames = Empty
[2013-05-17 13:21:28.079] SETDATA controller.data.nodeId = 0 (0x00000000)
[2013-05-17 13:21:28.080] SETDATA controller.data.homeId = 0 (0x00000000)
[2013-05-17 13:21:28.082] SETDATA controller.data.SUCNodeId = 0 (0x00000000)
[2013-05-17 13:21:28.082] SETDATA controller.data.isPrimary = False
[2013-05-17 13:21:28.083] SETDATA controller.data.isInOthersNetwork = False
[2013-05-17 13:21:28.084] SETDATA controller.data.isRealPrimary = False
[2013-05-17 13:21:28.085] SETDATA controller.data.isSUC = False
[2013-05-17 13:21:28.087] SETDATA controller.data.SISPresent = False
[2013-05-17 13:21:28.087] SETDATA controller.data.libType = 0 (0x00000000)
[2013-05-17 13:21:28.088] SETDATA controller.data.ZWlibMajor = 0 (0x00000000)
[2013-05-17 13:21:28.090] SETDATA controller.data.ZWlibMinor = 0 (0x00000000)
[2013-05-17 13:21:28.090] SETDATA controller.data.ZWVersion = 0 (0x00000000)
[2013-05-17 13:21:28.090] SETDATA controller.data.manufacturerId = 0 (0x00000000)
[2013-05-17 13:21:28.091] SETDATA controller.data.manufacturerProductType = 0 (0x00000000)
[2013-05-17 13:21:28.093] SETDATA controller.data.manufacturerProductId = 0 (0x00000000)
[2013-05-17 13:21:28.094] SETDATA controller.data.controllerState = 0 (0x00000000)
[2013-05-17 13:21:28.095] SETDATA controller.data.nonManagmentJobs = 0 (0x00000000)
[2013-05-17 13:21:28.095] SETDATA controller.data.oldSerialAPIAckTimeout10ms = 0 (0x00000000)
[2013-05-17 13:21:28.096] SETDATA controller.data.oldSerialAPIByteTimeout10ms = 0 (0x00000000)
[2013-05-17 13:21:28.097] SETDATA controller.data.curSerialAPIAckTimeout10ms = 0 (0x00000000)
[2013-05-17 13:21:28.098] SETDATA controller.data.curSerialAPIByteTimeout10ms = 0 (0x00000000)
[2013-05-17 13:21:28.099] SETDATA controller.data.libVersionId = 1 (0x00000001)
[2013-05-17 13:21:28.100] SETDATA controller.data.countJobs = False
[2013-05-17 13:21:28.102] SETDATA controller.data.functionClasses = int[42]
[2013-05-17 13:21:28.104] [00] 2
[2013-05-17 13:21:28.105] [01] 3
[2013-05-17 13:21:28.105] [02] 4
[2013-05-17 13:21:28.107] [03] 5
[2013-05-17 13:21:28.108] [04] 6
[2013-05-17 13:21:28.108] [05] 7
[2013-05-17 13:21:28.109] [06] 8
[2013-05-17 13:21:28.110] [07] 18
[2013-05-17 13:21:28.110] [08] 19
[2013-05-17 13:21:28.111] [09] 21
[2013-05-17 13:21:28.112] [10] 22
[2013-05-17 13:21:28.113] [11] 32
[2013-05-17 13:21:28.115] [12] 33
[2013-05-17 13:21:28.115] [13] 34
[2013-05-17 13:21:28.116] [14] 35
[2013-05-17 13:21:28.117] [15] 36
[2013-05-17 13:21:28.118] [16] 65
[2013-05-17 13:21:28.120] [17] 66
[2013-05-17 13:21:28.120] [18] 70
[2013-05-17 13:21:28.121] [19] 71
[2013-05-17 13:21:28.122] [20] 72
[2013-05-17 13:21:28.122] [21] 73
[2013-05-17 13:21:28.124] [22] 74
[2013-05-17 13:21:28.125] [23] 75
[2013-05-17 13:21:28.125] [24] 76
[2013-05-17 13:21:28.126] [25] 77
[2013-05-17 13:21:28.127] [26] 80
[2013-05-17 13:21:28.128] [27] 81
[2013-05-17 13:21:28.130] [28] 82
[2013-05-17 13:21:28.130] [29] 83
[2013-05-17 13:21:28.131] [30] 84
[2013-05-17 13:21:28.131] [31] 85
[2013-05-17 13:21:28.133] [32] 86
[2013-05-17 13:21:28.133] [33] 87
[2013-05-17 13:21:28.134] [34] 96
[2013-05-17 13:21:28.135] [35] 97
[2013-05-17 13:21:28.136] [36] 98
[2013-05-17 13:21:28.136] [37] 99
[2013-05-17 13:21:28.138] [38] 128
[2013-05-17 13:21:28.138] [39] 210
[2013-05-17 13:21:28.138] [40] 211
[2013-05-17 13:21:28.138] [41] 242
[2013-05-17 13:21:28.140] SETDATA controller.data.functionClassesNames = string[42]
[2013-05-17 13:21:28.142] [00] "SerialAPIGetInitData"
[2013-05-17 13:21:28.143] [01] "SerialAPIApplicationNodeInformation"
[2013-05-17 13:21:28.144] [02] "ApplicationCommandHandler"
[2013-05-17 13:21:28.145] [03] "GetControllerCapabilities"
[2013-05-17 13:21:28.145] [04] "SerialAPISetTimeouts"
[2013-05-17 13:21:28.147] [05] "GetSerialAPICapabilities"
[2013-05-17 13:21:28.148] [06] "SerialAPISoftReset"
[2013-05-17 13:21:28.148] [07] "SendNodeInformation"
[2013-05-17 13:21:28.150] [08] "SendData"
[2013-05-17 13:21:28.151] [09] "GetVersion"
[2013-05-17 13:21:28.151] [10] "SendDataAbort"
[2013-05-17 13:21:28.152] [11] "GetHomeId"
[2013-05-17 13:21:28.153] [12] "MemoryGetByte"
[2013-05-17 13:21:28.154] [13] "MemoryPutByte"
[2013-05-17 13:21:28.154] [14] "MemoryGetBuffer"
[2013-05-17 13:21:28.155] [15] "MemoryPutBuffer"
[2013-05-17 13:21:28.156] [16] "GetNodeProtocolInformation"
[2013-05-17 13:21:28.156] [17] "SetDefault"
[2013-05-17 13:21:28.158] [18] "AssignReturnRoute"
[2013-05-17 13:21:28.159] [19] "DeleteReturnRoute"
[2013-05-17 13:21:28.160] [20] "RequestNodeNeighbourUpdate"
[2013-05-17 13:21:28.162] [21] "ApplicationNodeUpdate"
[2013-05-17 13:21:28.162] [22] "AddNodeToNetwork"
[2013-05-17 13:21:28.164] [23] "RemoveNodeFromNetwork"
[2013-05-17 13:21:28.165] [24] "CreateNewPrimary"
[2013-05-17 13:21:28.166] [25] "ControllerChange"
[2013-05-17 13:21:28.167] [26] "SetLearnMode"
[2013-05-17 13:21:28.167] [27] "AssignSUCReturnRoute"
[2013-05-17 13:21:28.169] [28] "EnableSUC"
[2013-05-17 13:21:28.169] [29] "RequestNetworkUpdate"
[2013-05-17 13:21:28.171] [30] "SetSUCNodeId"
[2013-05-17 13:21:28.171] [31] "DeleteSUCReturnRoute"
[2013-05-17 13:21:28.172] [32] "GetSUCNodeId"
[2013-05-17 13:21:28.174] [33] "SendSUCNodeId"
[2013-05-17 13:21:28.174] [34] "RequestNodeInformation"
[2013-05-17 13:21:28.174] [35] "RemoveFailedNode"
[2013-05-17 13:21:28.175] [36] "IsFailedNode"
[2013-05-17 13:21:28.175] [37] "ReplaceFailedNode"
[2013-05-17 13:21:28.177] [38] "GetRoutingTableLine"
[2013-05-17 13:21:28.179] [39] "WatchDogStart"
[2013-05-17 13:21:28.179] [40] "WatchDogStop"
[2013-05-17 13:21:28.179] [41] "ZMEFreqChange"
[2013-05-17 13:21:28.181] Opened device: /dev/ttyAMA0
[2013-05-17 13:21:28.185] Worker thread successfully created
[2013-05-17 13:21:28.190] Worker thread entry point
[2013-05-17 13:21:28.200] Adding job: Get controller info and supported function classes
[2013-05-17 13:21:28.205] SENDING (cb 0x07): ( 01 03 00 07 FB )
[2013-05-17 13:21:28.387] Job 0x07 (Get controller info and supported function classes): No ACK received before timeout
[2013-05-17 13:21:28.402] SENDING (cb 0x07): ( 01 03 00 07 FB )
[2013-05-17 13:21:28.589] Job 0x07 (Get controller info and supported function classes): No ACK received before timeout
[2013-05-17 13:21:28.604] SENDING (cb 0x07): ( 01 03 00 07 FB )
[2013-05-17 13:21:28.791] Job 0x07 (Get controller info and supported function classes): No ACK received before timeout
[2013-05-17 13:21:28.795] Job 0x07 (Get controller info and supported function classes) dropped: too many resends
[2013-05-17 13:21:28.799] Job 0x07 (Get controller info and supported function classes): fail
[2013-05-17 13:21:28.802] Get Serial API Capabilities returned zero.
[2013-05-17 13:21:28.804] Removing job: Get controller info and supported function classes
failed to discover ZWay: -9
User avatar
PoltoS
Posts: 7571
Joined: 26 Jan 2011 19:36

This means your RaZberry

Post by PoltoS »

This means your RaZberry board do not reply anymore. The most probably reasons are: damaged RX/TX on RPi or damaged RaZberry USB chip. Both might occur when you plug or unplug RaZberry while RPi is powered. It is very important to turn off power before touching computer components. Static electricuty can damage them.

Also make sure you have AMA0 configured properly (not as console - this is the default for Raspbian and RaZberry installer change this)
Post Reply