The OpenLuup log shows I’m getting a 401 error when trying to retrieve devices using VeraBridge (I currently cannot migrate any devices). When I pasted the Http Wget command from the log into a browser, I’m prompted for my Vera credentials. Once I enter the credentials I get a valid response. If I don’t enter credentials, I get a 401 error.
I don’t see a username/password variable in AltUi to address this, or is there something I missed here…
I have two Vera lites. One is slaved to the other. Both are running the latest firmware-- 1.7.1017.
openLuup (18.2.8)
[8246] Alternate UI (GitHub.master)
[VeraBridge] VeraBridge (18.2.5)
The odd thing about the credential prompt is that only one of my Veras prompts me for a login and password when going directly into UI7 from the browser. So I don’t think it’s a firmware issue as this has been the case for years now, through many firmware upgrades. I’ve looked in the UI7 interface for any differences between the two veras and I don’t see any settings that could effect credentials–except for the “lock down your vera” switch. I have this setting off, though, like most settings, I played with it in the past.
Only the main vera requires a password. The secondary slaved vera does not prompt for credentials. I have no idea why the devices behave this way.
In a browser, the main vera shows all my zwave devices from both veras. The secondary vera shows only its own native devices.
I just tried to bridge to my slave vera and it works just fine… All of the secondary vera devices loaded into Altui. The master-slave connection between the two veras is one way only.
I still get an error on a reload, though the bridge plugin is working fine (for the vera that does not require credentials) and there are no errors in the log when changing a given device state. The response of a device to a change is instantaneous, which is very impressive.
Here are the log entries for the reload error as well as some console screenshots:
2018-02-10 14:35:37.641 luup.register_handler:5: global_function_name=HTTP_VeraBridgeMirror_10.17.XX.XX, request=HTTP_VeraBridgeMirror_10.17.XX.XX
2018-02-10 14:35:37.642 luup.call_action:5: 3.?.RegisterDataProvider
2018-02-10 14:35:37.642 openLuup.scheduler:: [5] VeraBridge device startup completed: status=true, msg=OK, name=VeraBridge
2018-02-10 14:35:37.642 openLuup.server:: new client connection from 10.17.XX.XX: tcp{client}: 0x2072d398
2018-02-10 14:35:37.642 openLuup.server:: GET /data_request?id=lr_ALTUI_Handler&command=oscommand&oscommand=top%20-n%201&=1518301641175 HTTP/1.1 tcp{client}: 0x2072d398
2018-02-10 14:35:37.643 openLuup.servlet:: No handler for data_request?id=lr_ALTUI_Handler
2018-02-10 14:35:37.643 openLuup.server:: request completed (153 bytes, 0 chunks, 0 ms) tcp{client}: 0x2072d398
2018-02-10 14:35:38.018 openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=302014295&Timeout=60&MinimumDelay=1500&=1518301641176 HTTP/1.1 tcp{client}: 0x2072d398
2018-02-10 14:35:38.520 luup_log:3: ALTUI: startupDeferred, called on behalf of device:3
2018-02-10 14:35:38.539 luup.variable_set:3: 3.urn:upnp-org:serviceId:altui1.Version was: v2.14 now: v2.14 #hooks:0
Yes, this one was my fault: a typo not caught by the syntax checker or testing. In fact, it would have stopped mirroring of variables back to the Vera working, but if you’re not using that, then you wouldn’t have noticed.
The response of a device to a change is instantaneous, which is very impressive.
Good news… that’s what we aim for!
Thanks and karma for such excellent diagnostic reporting to help me find and fix this: in latest development branch 2018.02.11.
I’m still getting an error with the latest development branch. The Verabridge device label lights up red, and an OS error message appears, on a manual luup reload. From digging through the stack, it looks like it comes back to the way altui is handling images. But I could be completely wrong as execution is fairly complicated. But if so, it could be the fault of the hardcoded url in “J_ALTUI_uimgr.js” for “https://raw.githubusercontent.com/FortAwesome/Font-Awesome/master/less/” which currently doesn’t point to anything.
I tried going through the FortAwesome github repository, but without knowing what was intended for fonts, I can’t make a call on the new url naming conventions that appear to be in place for the Font-Awesome repo (directory structure is now very different.)
Also, there is an “intro.png” missing from the cmh-ludl/icons directory–which is throwing an exception-- file not found.
This looks like an AltUI issue, which is way out of my understanding. It might be caused by a missing file, but I couldn’t say. @amg0 is needed here, but probably isn’t looking with a thread topic like this.
Suggest you start a topic in the AltUI Board with a more explicit title, or PM him, pointing to this thread.
I contacted Vera about the credential issue and found out that the setting to enable local credentials is in the /etc/lighttpd/lighttpd.conf file and the /etc/lighttpd.conf file.
Basically you comment out the “mod_auth” option in the server.modules section and this cancels local login required.
After disabling credentials, I imported my main vera in verabridge and all my devices imported properly.
Thx a bunch. I’m looking forward to all of things I can do with my Orange Pi that I could not do with my Veras…
Old post but I cant find any other hits on this. Probably not to many folks use Vera as slave and those that do probably dont access the slave directly enough to realize it doesnt require a password to access
"The odd thing about the credential prompt is that only one of my Veras prompts me for a login and password when going directly into UI7 from the browser. "
This was mentioned within this post but I dont see it answered. I have this issue. Master requires password, slave does not.
that the setting to enable local credentials is in the /etc/lighttpd/lighttpd.conf file and the /etc/lighttpd.conf file. Basically you comment out the “mod_auth” option in the server.modules section
That’s all you need to do to disable authentication.