Author Topic: "Waiting Initial Data" - port 3480  (Read 420 times)

Offline a-lurker

  • Hero Member
  • *****
  • Posts: 860
  • Karma: +63/-8
"Waiting Initial Data" - port 3480
« on: April 14, 2018, 11:22:33 pm »
Quote
What is your version number ( check inside J_ALTUI_uimgr.js file and inside L_ALTUI.lua file) to report both version numbers?

Code: [Select]
Browser footer:
     AltUI v2.18.2331
     
J_ALTUI_uimgr.js:
    var ALTUI_revision = "$Revision: 2331 $";
   
L_ALTUI.lua:
    local version = "v2.18"
    local SWVERSION = "3.3.1" -- "2.2.4"

Using the above AltUI versions on a Vera 3 and using Firefox.

With the ':3480' style URL everything works, except the icons stored on Vera are not accessible.

Code: [Select]
-- using this URL
http://<my_ip_address>:3480/data_request?id=lr_ALTUI_Handler&command=home

-- AltUI trys to source the icons with this style of URL:
-- Putting the same URL into the Firefox browser returns "Connection reset"
http://<my_ip_address>:3480/cmh/skins/default/img/devices/device_states/window_covering_80.png

With the 'port_3480' style URL "Waiting Initial Data" is shown but the icons stored on Vera can now be retrieved successfully.

Code: [Select]
-- using this URL
http://<my_ip_address>/port_3480/data_request?id=lr_ALTUI_Handler&command=home

-- AltUI sources the icons with this style of URL:
-- Putting the same URL into the Firefox browser returns the icon OK
http://<my_ip_address>/cmh/skins/default/img/devices/device_states/window_covering_80.png

However the console sometimes shows this:

Code: [Select]
2018-04-15T01:34:42.530Z: ALTUI v2.18:_getFileContent( D_ZWaveNetwork.xml ) ==> asking content to Vera J_ALTUI_utils.js:2238:4

TypeError: scene is null[Learn More]   Line number:   J_ALTUI_uimgr.js:14872:15

The console mostly shows this:

Code: [Select]
Line number:   jquery.min.js:2:30920

jQuery.Deferred exception: scene is null updateFavoriteScene/map<@http://<my_ip_address>/port_3480/J_ALTUI_uimgr.js:14872:15
map@http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:3218
updateFavoriteScene@http://<my_ip_address>/port_3480/J_ALTUI_uimgr.js:14869:15
signal@http://<my_ip_address>/port_3480/J_ALTUI_uimgr.js:14391:5
_publishEvent/<@J_ALTUI_utils.js:2461:7
each@http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:2571
_publishEvent@J_ALTUI_utils.js:2459:4
_onInitLocalization2/</<@http://<my_ip_address>/port_3480/J_ALTUI_uimgr.js:14571:5
l@http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:29373
a/</c<@http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:29677
 undefined
 

Note that I have one only "Favorite scene".

Note that in Chrome everything works OK

Now on openLuup: this URL all works OK and the local icons all show:

http://<my_ip_address>:3480/data_request?id=lr_ALTUI_Handler&command=home#

With this URL you get unable to connect:

http://<my_ip_address>/port_3480/data_request?id=lr_ALTUI_Handler&command=home#

With openLuup I guess it doesn't have a  /port_3480/  redirect and that  :3480  is always used.

With Vera - I'm unsure what is meant to be used these days:  /port_3480/  or :3480.  I suspect the former.

Offline akbooer

  • Beta Testers
  • Master Member
  • *****
  • Posts: 6203
  • Karma: +276/-70
  • "Less is more"
Re: "Waiting Initial Data" - port 3480
« Reply #1 on: April 15, 2018, 01:19:50 am »
I know this was directed at @amg0, and I"m unsure of the context of your query, but for openLuup, I do know this:

Now on openLuup: this URL all works OK and the local icons all show:

http://<my_ip_address>:3480/data_request?id=lr_ALTUI_Handler&command=home#

With this URL you get unable to connect:

http://<my_ip_address>/port_3480/data_request?id=lr_ALTUI_Handler&command=home#

With openLuup I guess it doesn't have a  /port_3480/  redirect and that  :3480  is always used.

Absolutely correct.  The best design decision I ever made (and also the most difficult one) was that openLuup should have its own server for port 3480.  The system it runs on doesn't even need an HTTP server.  This has caused a bit of grief for @amg0, because its is different from Vera, and I really, really appreciate the trouble he has gone to to make it work.

With the recent proposed 'security' changes, Vera has, curiously, slightly converged with openLuup, abandoning the outdated high-numbered port 49451 and SOAP-style requests, and now plans to use only one HTTP port, actually port 80, but with the /port_3480 prefix .

So in this...

Quote
With Vera - I'm unsure what is meant to be used these days:  /port_3480/  or :3480.  I suspect the former.

...you are quite correct.

HTH, but I leave the AltUI discussion to @amg0!
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline a-lurker

  • Hero Member
  • *****
  • Posts: 860
  • Karma: +63/-8
Re: "Waiting Initial Data" - port 3480
« Reply #2 on: April 15, 2018, 03:00:55 am »
@akbooer  thanks for the further info. I imagine, given the number of platforms openLuup could run on, it could get very difficult having to work with different servers and their configurations. Self contained is best.

Further to my problem. I tried the the two port variations   /port_3480  and   :3480   on another Vera. It had the same icon accessibility problems but the  "Waiting Initial Data"  is not showing. This second Vera is very lightly loaded and also has no favorite scenes.

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3090
  • Karma: +206/-8
Re: "Waiting Initial Data" - port 3480
« Reply #3 on: April 15, 2018, 05:30:01 am »
Vera must use the /port notation. Do not use or report issues with the other that would lead to effort working on non issues.

Can you please open chrome console, then do a full browser page refresh and give me the screen outlook and the console log.

Offline a-lurker

  • Hero Member
  • *****
  • Posts: 860
  • Karma: +63/-8
Re: "Waiting Initial Data" - port 3480
« Reply #4 on: April 15, 2018, 07:52:08 pm »
Quote
Vera must use the /port notation

Now that this is clear to me, does it make sense to modify AltUI, so it won't function at all with a URL containing :3480?

As stated above AltUI works OK with chrome but Firefox fails with /port_3480 URL but noting it works (minus Vera icons) with a :3480 URL. The Firefox console shows this:

Code: [Select]
2018-04-15T01:34:42.530Z: ALTUI v2.18:_getFileContent( D_ZWaveNetwork.xml ) ==> asking content to Vera J_ALTUI_utils.js:2238:4

TypeError: scene is null[Learn More]   Line number:   J_ALTUI_uimgr.js:14872:15

Code: [Select]
Line number:   jquery.min.js:2:30920

jQuery.Deferred exception: scene is null updateFavoriteScene/map<@http://<my_ip_address>/port_3480/J_ALTUI_uimgr.js:14872:15
map@http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:3218
updateFavoriteScene@http://<my_ip_address>/port_3480/J_ALTUI_uimgr.js:14869:15
signal@http://<my_ip_address>/port_3480/J_ALTUI_uimgr.js:14391:5
_publishEvent/<@J_ALTUI_utils.js:2461:7
each@http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:2571
_publishEvent@J_ALTUI_utils.js:2459:4
_onInitLocalization2/</<@http://<my_ip_address>/port_3480/J_ALTUI_uimgr.js:14571:5
l@http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:29373
a/</c<@http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:29677
 undefined

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3090
  • Karma: +206/-8
Re: "Waiting Initial Data" - port 3480
« Reply #5 on: April 16, 2018, 06:43:43 am »
Quote
Vera must use the /port notation

Now that this is clear to me, does it make sense to modify AltUI, so it won't function at all with a URL containing :3480?

As stated above AltUI works OK with chrome but Firefox fails with /port_3480 URL but noting it works (minus Vera icons) with a :3480 URL. The Firefox console shows this:

Code: [Select]
2018-04-15T01:34:42.530Z: ALTUI v2.18:_getFileContent( D_ZWaveNetwork.xml ) ==> asking content to Vera J_ALTUI_utils.js:2238:4

TypeError: scene is null[Learn More]   Line number:   J_ALTUI_uimgr.js:14872:15

Code: [Select]
Line number:   jquery.min.js:2:30920

jQuery.Deferred exception: scene is null updateFavoriteScene/map<@http://<my_ip_address>/port_3480/J_ALTUI_uimgr.js:14872:15
map@http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:3218
updateFavoriteScene@http://<my_ip_address>/port_3480/J_ALTUI_uimgr.js:14869:15
signal@http://<my_ip_address>/port_3480/J_ALTUI_uimgr.js:14391:5
_publishEvent/<@J_ALTUI_utils.js:2461:7
each@http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:2571
_publishEvent@J_ALTUI_utils.js:2459:4
_onInitLocalization2/</<@http://<my_ip_address>/port_3480/J_ALTUI_uimgr.js:14571:5
l@http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:29373
a/</c<@http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js:2:29677
 undefined

you can try the version on github
or you can delete your localstorage,  what happens here is that you have a favorite declared for a scene which has disappeared. it is not a brower specific issue but local storage being by browser you have the issue with one and not the other. I believe clearing local storage will solve it

Offline a-lurker

  • Hero Member
  • *****
  • Posts: 860
  • Karma: +63/-8
Re: "Waiting Initial Data" - port 3480
« Reply #6 on: April 16, 2018, 08:16:49 am »
Quote
you can try the version on github
Has this some change that may address this issue?

Quote
delete your local storage
Can you please explain what needs to be done to do this?

Quote
you have a favorite declared for a scene which has disappeared
This scene is used every day but I will double check it.

Offline amg0

  • Moderator
  • Master Member
  • *****
  • Posts: 3090
  • Karma: +206/-8
Re: "Waiting Initial Data" - port 3480
« Reply #7 on: April 16, 2018, 08:25:02 am »
Quote
you can try the version on github
Has this some change that may address this issue?

Quote
delete your local storage
Can you please explain what needs to be done to do this?

Quote
you have a favorite declared for a scene which has disappeared
This scene is used every day but I will double check it.


1/ possibly, at least we would get the latest line numbers in trace to allow me to debug
2/ any JS console, or from ALTUI javascript code :  use the command "localStorage.clear()"
3/ maybe my analysis is wrong, we can look at the JS trace again once you have the latest version