Error : Lua Startup can only be modified on controller 0

Wanted to report a possible bug: Running AltUI v0.100.930 and FW 1.7.690 (7.11 for veralite), on local lan, with only one vera and getting this error when I try to save a new lua start up code.

I checked the controller drop down list and it only shows one entry (local IP of my vera box)

I ended up using the MCV UI7 GUI to update my start up script and it worked fine.

Thanks

[quote=“LV999, post:1, topic:189884”]Wanted to report a possible bug: Running AltUI v0.100.930 and FW 1.7.690 (7.11 for veralite), on local lan, with only one vera and getting this error when I try to save a new lua start up code.

I checked the controller drop down list and it only shows one entry (local IP of my vera box)

I ended up using the MCV UI7 GUI to update my start up script and it worked fine.

Thanks[/quote]

just tested and works for me, so we need more information :

  • exact lua startup code ( could be a lenght or character issue )
  • enabling ALTUI in debug mode
  • capturing the network traffic ( using chrome & dev tools, network page ) so we see the exchange between ALTUI & VERA box

thanks amg0 for the prompt response (as usual…).

I attach the startup lua code (pretty simple and anyway was accepted by the MCV UI and works)…

Not sure what to run in debug mode in AltUI but the Java console in Google only gives the following:

If remote:

jquery.js:9664 POST https://vera-us-oem-relay41.mios.com/port_49451/upnp/control/hag 404 (NOT FOUND)

if local:

jquery.js:9664 OPTIONS http://192.168.1.51/port_49451/upnp/control/hag

data_request?id=lr_ALTUI_Handler&command=home&lang=en:1
XMLHttpRequest cannot load http://192.168.1.51/port_49451/upnp/control/hag. Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
Origin ‘http://192.168.1.51:3480’ is therefore not allowed access. The response had HTTP status code 501.

[quote=“LV999, post:3, topic:189884”]thanks amg0 for the prompt response (as usual…).

I attach the startup lua code (pretty simple and anyway was accepted by the MCV UI and works)…

Not sure what to run in debug mode in AltUI but the Java console in Google only gives the following:

If remote:

jquery.js:9664 POST https://vera-us-oem-relay41.mios.com/port_49451/upnp/control/hag 404 (NOT FOUND)

if local:

jquery.js:9664 OPTIONS http://192.168.1.51/port_49451/upnp/control/hag

data_request?id=lr_ALTUI_Handler&command=home&lang=en:1
XMLHttpRequest cannot load http://192.168.1.51/port_49451/upnp/control/hag. Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
Origin ‘http://192.168.1.51:3480’ is therefore not allowed access. The response had HTTP status code 501.

[/quote]

I do confirm the issue on remote mode.

but in local mode, to me this is a CORS problem. meaning you are probably using a url like that to access ALTUI

http://192.168.1.16:3480/xx

but you should use

http://192.168.1.16/port_3480/xx

looks the same, but in fact it is not for the browser, as the HAG api ( which is needed to change lua startup ) is on a different port. we will have the issue until VERA accepts CORS request

Thanks for pointing the proper URL construction… Got it… and it works in local mode indeed

and I have the fix for the remote mode one in v >= 935

I’m receiving the same error on an OpenLuup install. The alternate URL mentioned above does not work in a browser.

Version mismatch with AltUI. Update to the latest openLuup in the development branch.

See this previous thread on the topic:
http://forum.micasaverde.com/index.php/topic,55598.0.html

You managed to resurrect a very old thread here!

Ha! ;D