Login broken?

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
tom_e
Posts: 2
Joined: 26 Dec 2020 21:15

Login broken?

Post by tom_e »

Hi,

I have a problem logging in to my Z-Way server. I use it rarely but it looks like my homebridge <-> alexa gateway spammed zway with admin login attempts (disabled now, both servers restarted)

Both accounts (admin, local) result in "no such user".
I followed the password-reset instructions (stop server, edit /opt/z-way-server/automation/storage/config-*.json an start the server).
According to the server it was installed 08/2019 with whatever version was available there, zway server seems to have auto-upgraded to version 3.1.1
(A manual upgrade resulted in

Code: Select all

Unpacking z-way-server (3.1.1) over (3.1.1)
How can I get access to my system again?

Update 1:
1. I backed up my storage folder
2. stopped the server
3. deleted config-*.json
4. started the server again
and was presented the "create an admin account" screen. After setting nthe admin password and logging out I was not allowed to log in again

Update 2:
Safari is broken, Chrome works, Firefox works (all of them on macOS 10.15.x)
User avatar
PoltoS
Posts: 6073
Joined: 26 Jan 2011 19:36

Re: Login broken?

Post by PoltoS »

Please return your /opt/z-way-server/automation/storage/config-*.json back, stop Z-Way, edit it to set the password to something like "admin123" and remove ,"salt": "xxxxx". This will reset the password to "admin123" for that user. Start Z-Way and log in.

If that does not help, present the log of Z-Way and browser console log to see the error.
tom_e
Posts: 2
Joined: 26 Dec 2020 21:15

Re: Login broken?

Post by tom_e »

It worked short on Chrome, never on Safari.
The Safari console error log follows - notice the missing angular-websocket.min.js.map (http://192.168.178.10:8083/smarthome/ap ... min.js.map), I guess when websockets are broken the auth request will fail.

Code: Select all

[Error] Failed to load resource: the server responded with a status of 401 (Unauthorized) (active, line 0)
[Error] Failed to load resource: the server responded with a status of 401 (Unauthorized) (remote-id, line 0)
[Error] Failed to load resource: the server responded with a status of 401 (Unauthorized) (first-access, line 0)
[Error] Failed to load resource: the server responded with a status of 401 (Unauthorized) (ip-address, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (angular-websocket.min.js.map, line 0)
[Error] Failed to load resource: the server responded with a status of 401 (Unauthorized) (login, line 0)
in the zway-server log nothing appears (login attempt at 19:38):

Code: Select all

pi@raspberrypi:/opt/z-way-server $ tail -n 10 /var/log/z-way-server.log
[2021-01-05 19:35:00.845] [D] [zway] RECEIVED: ( 01 10 00 04 00 0E 0A 32 02 A1 4A 00 00 00 00 00 00 34 )
[2021-01-05 19:35:00.845] [D] [zway] SENT ACK
[2021-01-05 19:35:00.846] [D] [zway] SETDATA devices.14.data.lastReceived = 0 (0x00000000)
[2021-01-05 19:35:00.846] [D] [zway] SETDATA devices.14.instances.0.commandClasses.50.data.5.val = 0.000000
[2021-01-05 19:35:00.846] [D] [zway] SETDATA devices.14.instances.0.commandClasses.50.data.5.delta = 0 (0x00000000)
[2021-01-05 19:35:00.846] [D] [zway] SETDATA devices.14.instances.0.commandClasses.50.data.5.ratetype = 1 (0x00000001)
[2021-01-05 19:35:00.846] [D] [zway] SETDATA devices.14.instances.0.commandClasses.50.data.5 = Empty
[2021-01-05 19:35:02.776] [D] [zway] Job 0x13: deleted from queue
[2021-01-05 19:35:02.806] [D] [zway] Job 0x13: deleted from queue
[2021-01-05 19:35:02.908] [D] [zway] Job 0x13: deleted from queue
User avatar
PoltoS
Posts: 6073
Joined: 26 Jan 2011 19:36

Re: Login broken?

Post by PoltoS »

Make sure to clean browser cache and cookies in Safari
Post Reply