upgrade to 2.3.8 failed / transformation script failed

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
kovi44
Posts: 10
Joined: 09 Nov 2015 15:02

upgrade to 2.3.8 failed / transformation script failed

Post by kovi44 » 04 Nov 2018 12:18

Dear all,

I tried to upgrade from 2.3.7 to 2.3.8. I'm running it using RPI3 and Raspbian jassie.
After the upgrade it failed with following error

/var/log/z-way-server.log
[2018-11-04 10:14:03.276] [core] Executing script: /*** Z-Way Home Automation Engine main executable ***************************** ...
[2018-11-04 10:14:03.279] [core] Executing script: // Comon utilities and functions ...
[2018-11-04 10:14:03.290] [core] Executing script: // This script transforms old formats to new ...
[2018-11-04 10:14:03.758] [E] [core] result: Error: SyntaxError: Unexpected end of input
at automation/main.js:31:11
at Array.filter (native)
at automation/main.js:30:37

If I start it manually using /opt/z-way-server/z-way-server, it hangs
root@z-way-server:/opt/z-way-server# ./z-way-server
Z-Way version v2.3.8 from 2018-10-10 00:47:52 +0300 (build 854d8c466afa676694043ff7a9d17febb3bb01d6)
Looking for modules in ./modules
Module modhttp.so loaded
Module modinstaller.so loaded
Module modiconinstaller.so loaded
Module modws.so loaded
Module modhomekit.so loaded
Module modnotification2ext.so loaded
Module modskininstaller.so loaded
Module modzbw.so loaded
Module modenocean.so loaded
Module modzwave.so loaded
Module modsockets.so loaded
Module moddhs.so loaded
Module modcrypto.so loaded
Using default configuration file config.xml
Error: 'debug-port' number is out of range. Skipping it.

Any help is more then welcome

User avatar
PoltoS
Posts: 4302
Joined: 26 Jan 2011 19:36

Re: upgrade to 2.3.8 failed / transformation script failed

Post by PoltoS » 05 Nov 2018 01:00

Looks like config.json is corrupted. Copy it from your original installation

kovi44
Posts: 10
Joined: 09 Nov 2015 15:02

Re: upgrade to 2.3.8 failed / transformation script failed

Post by kovi44 » 05 Nov 2018 15:18

Hi,

I just found config.xml, and there is no difference between 2.3.7. and 2.3.8 (I replaced with the same result.)
I was unable to find config.json. There exist a several files in config folder.
<config>
<automation-dir>automation</automation-dir>
<log-file>/var/log/z-way-server.log</log-file>
<log-level>0</log-level>
<debug-port></debug-port>
</config>

kovi44
Posts: 10
Joined: 09 Nov 2015 15:02

Re: upgrade to 2.3.8 failed / transformation script failed

Post by kovi44 » 05 Nov 2018 15:34

Hi,

or maybe you were refering to configjson file which is stored to z-way-server\automation\storage
It's a really huge file. I also replaced the 2.3.7 one to 2.3.8 folder with the same result. Is there a way how to find an issue in such huge file with such limited information like it's in log file

E] [core] result: Error: SyntaxError: Unexpected end of input
at automation/main.js:31:11
at Array.filter (native)
at automation/main.js:30:37

User avatar
ronie
Posts: 55
Joined: 29 Jun 2015 09:50

Re: upgrade to 2.3.8 failed / transformation script failed

Post by ronie » 07 Nov 2018 17:12

Hi kovi44,

yes PoltoS is referring to the configjson in storage directory.
To search for the problem in the configjson you need to parse it with a JSON parser e.g. https://jsonlint.com/ to see what's wrong.

kovi44
Posts: 10
Joined: 09 Nov 2015 15:02

Re: upgrade to 2.3.8 failed / transformation script failed

Post by kovi44 » 07 Nov 2018 21:50

Hi Ronie,

I did the json validation using jsonlint.com with positive response - means that the json file is valid without any issue.

However the transformation script always fail and I am unable to upgrade to 2.3.8.
The biggest issue is that I got no clue what cause the issue. If yes I will disable such configuration part and do it manually after upgrade to 2.3.8 The error out put is useless without any useful information. My json file got 418kb and to be honest it was an nightmare to configure z-way-server to work ok, with all logic, virtual devices, http devices, triggers, ... There're 311 ids in configjson, which represent some rule, module, event, device,...

Is there someone who can provide me a support and help to manage it?
Can you help me to identify using error output what cause the issue?
E] [core] result: Error: SyntaxError: Unexpected end of input
at automation/main.js:31:11
at Array.filter (native)
at automation/main.js:30:37

Thanks a lot

kovi44
Posts: 10
Joined: 09 Nov 2015 15:02

Re: upgrade to 2.3.8 failed / transformation script failed

Post by kovi44 » 13 Nov 2018 01:36

Dear all,

I am really start to think to get of rid with z-way-server, not really due to product itself but more cause of lack of support or community which is ready to help.

Maybe I am not the expert , but I am using it on daily basis for more then 3 years. To find a relent support here is like a nightmare. Sorry to say that.

If you can recommend any another useable soft, please let me know.

Thanks, appriciate any recommendations


Post Reply