Z-Wave-Me / zwave-smarthome

Z-Way Smart Home UI
GNU General Public License v3.0
56 stars 38 forks source link

v2.1.1-rc6 Login problem after upgrade #95

Closed pz1 closed 8 years ago

pz1 commented 8 years ago

In some cases there is a login problem after upgrade to RC6. I experienced it on one machine, but another went OK. This morning someone else on the forum confimed this. See http://forum.z-wave.me/viewtopic.php?f=3422&t=22849

vades commented 8 years ago

Can you please provide more information about the problem? Browser name/version, screenshot, console log etc. I have read post in forum and tested in:

pz1 commented 8 years ago

My problem occurred with (almost) latest versions of Firefox, Chrome, Opera on RaspberyPi B which had v2.1.2-rc4. The ugrade did work on RaspberryPi 2. The failing installation was on Wheezy:

Linux raspberrypi 4.1.13+ #826 PREEMPT Fri Nov 13 20:13:22 GMT 2015 armv6l GNU/Linux Linux raspi2 4.1.13-v7+ #826 SMP PREEMPT Fri Nov 13 20:19:03 GMT 2015 armv7l GNU/Linux

Can't make a screenshot, because I only see a sub-second flash of the login screen.

I can send compressed log of yesterday by email. Problem occured around [2016-02-02 20:22:21.168] I did keep the failed z-way-server directory. Can make that available if you need it

pierre2302 commented 8 years ago

Impossible for me to connect me, I do not have time to become identified.

(Chrome, Firefox no work )

I have a raspi 2

Linux raspi2 4.1.16-v7+ #832 SMP Sun Jan 24 12:57:43 GMT 2016 armv7l

ronie-z-wave commented 8 years ago

Do you have tried to clean the browsers cache?

Are ther errors in the browsers devlopers console? F12 - Network / Console

And you both are using wheezy on the affecting system?

pz1 commented 8 years ago

And you both are using wheezy on the affecting system?

For me it is wheezy on the affected system, Jessie on the non problematic. I did explicitly clean the browers. Because I have reverted my machine to rc4 I can't test at the moment. (Where do you want me to send the log? And are you interested in a copy of the failing z-way-server directory as I mentioned?)

pierre2302 commented 8 years ago

Console:

---------- ERROR: ---------- Object {data: "", status: 0, config: Object, statusText: ""}(anonymous function) @ build.js:7574logError @ build.js:9562responseError @ build.js:8600w @ build.js:7583w @ build.js:7583w @ build.js:7583(anonymous function) @ build.js:7584h.$eval @ build.js:7595h.$digest @ build.js:7592h.$apply @ build.js:7595m @ build.js:7554w @ build.js:7559B.onreadystatechange @ build.js:7561 build.js:7574 ---------- ERROR: ---------- Object {data: "", status: 0, config: Object, statusText: ""}(anonymous function) @ build.js:7574logError @ build.js:9562responseError @ build.js:8600w @ build.js:7583w @ build.js:7583w @ build.js:7583(anonymous function) @ build.js:7584h.$eval @ build.js:7595h.$digest @ build.js:7592h.$apply @ build.js:7595m @ build.js:7554w @ build.js:7559B.onreadystatechange @ build.js:7561 Navigated to http://192.168.1.10:8083/smarthome/ build.js:7574

Network: sans titre

pz1 commented 8 years ago

Did an upgrade again this evening with v2.2.1-rc6 (not the one from yesterday but from this afternoon (foei!) Did not see much on the F12 console. Things were flashing away quickly. Could only catch this capture

As you can see the controller is nicely capturing updates from Fibaro FUS. Also in the network view I haven't seen anything happening until the login screen had disappeared.

ronie-z-wave commented 8 years ago

Could it be that you are accessing these boxes locally? Think thats the point, right?

The original intention was that if a user is accessing the box locally he will be logged in as a 'local' user with near the same rights like admin. This doesn't work automatically since rc4. So you need to login before.

If yes:

If not:

@pz1 please send it to nir@zwave.eu

We've added 'remember me' function to login (of course 'false' by default).

Seems that in your case it is triggered as 'true'. After that you are 'logged in' right?

pz1 commented 8 years ago

I have answered via email. (if appropriate I wil update status here and on the forum)

emilp333 commented 8 years ago

If seems to have something to do with the autologin. It first started for me after i pushed the logout button. Now I just see the loginscreen flashing by and then it gets me logged in but with no rights. The remember me button is not ticked. Can I manually turn off this feature?

pz1 commented 8 years ago

Can I manually turn off this feature?

Yes you can but than you have to remove all users of the type anonymous. I did post the work-around I got from Niels on the forum.

pz1 commented 8 years ago

With the release of v2.2.1-rc7 this problem has been solved