ConciergeServer.lua not being created

Hi all,

I’m having trouble getting the ConciergeServer.lua created on my VeraPlus with the latest build of UI7. I can authenticate using my Vera’s credentials, the device gets added, the Startup does get the require(“ConciergeServer”) entry put in, my Home/Cast devices all show up and I linked via the Google Home app on my phone.

Testing connectivity on my Concierge Server fails with “Connected to Vera but secure connection returned, No Handler”.

I ran through the debug thread and saw that the ConciergeServer.lua was not present. I restarted the server (Win2012R2), created FW rules, restarted again, tested connectivity from another machine to 8989 and 8998 no problem and still no luck.

Going through the logs, I did notice a 401 auth fail against the internal IP of my Vera. Could this be the cause?

I tried deleting the Vera out of the ConciergeServer web UI and readding it using both UI6+ or UI6+ case sensitive and had no luck either way (same results).

I:VeraConnect.VeraGateway:URLConnection:https://vera-us-oem-device11.mios.com/device/device/device/******* Dec 10, 2017 7:54:45 PM I:VeraConnect.VeraGateway:URLConnection:http://192.168.45.91/port_3480/data_request?output_format=json&id=user_data2 Dec 10, 2017 7:54:45 PM E:VeraConnect.VeraGateway:URLConnection:BadResponse:401 Dec 10, 2017 7:54:45 PM E:VeraConnect.VeraGateway:URLRequest: Exception:java.io.IOException: Server returned HTTP response code: 401 for URL: http://192.168.45.91/port_3480/data_request?output_format=json&id=user_data2 Dec 10, 2017 7:54:45 PM I:VeraConnect.LocalRemoteManager:URLRequest: Failed for Choice:-1

Try the “Update and Restart”
That should try to re-initialize your Vera.
If that fails you can manually add the file.
To obtain the file … make a copy of the ConciergeServer.jar as ConciergeServer.zip
Then open the zip file and extract the ConciergeServer.lua file.
Then on Vera Apps → Develop Apps → Luup Files → Upload file (check the Restart LUA BEFORE you select the lua file).

Thanks for the pointers. I tried using the Update and Restart, but still saw the HTTP/401 Auth errors when the VC server tried to access across the LAN. I extracted the .lua file out of the JAR and uploaded them via the VeraPlus’ web console and connectivity now test successful with bi-directional connectivity!

What Version of Vera software ? What type of Vera ?

Vera Plus running the latest 1.7.3232 build.

That’s what I have for my home system … I am surprised the update is not working.

How does the controller auth? Is it a token from the external URL? If I browse to the same URL in the log, http://192.168.45.91/port_3480/data_request?output_format=json&id=user_data2 I’m prompted with what looks like a basic auth dialog box.

Screenshot at https://imgur.com/a/yBZca

Its a complicated process … if you want to see the steps do the following:

  1. Turn on Logging in the Local Concierge Server.
  2. Then when your are ready … unplug the ethernet from your Vera.
  3. Do an update and restart.
    You will see many Requests to the server to get authentication credentials …
    Ignore where it tries to access the local ethernet address (that’s why I had you unplug it)
    When it fails that it continues to the remote address.
    But all of the requests before it are needed … each of them passes things in the HTTP headers that you do not see in the log … but are part of the Remote Access protocol.
  4. For details … search the forum for a post I made with as title like: “My notes”