How to debug

Hi,

Just repaired my AltHue, and after that I can’t get in to my openLuup

Tail on the out.log shows:

lua5.1: ./openLuup/scheduler.lua:506: bad argument #1 to ‘format’ (string expected, got nil)
stack traceback:
[C]: in function ‘format’
./openLuup/scheduler.lua:506: in function ‘device_start’
./openLuup/chdev.lua:169: in function ‘create’
./openLuup/userdata.lua:541: in function ‘load’
openLuup/init.lua:235: in main chunk
[C]: ?

How to debug?

Fund the bug.

device_file":“D_ALTHUE.xml”,
“device_json”:“D_ALTHUE_UI7.json”,
“device_type”:“urn:schemas-upnp-org:device:althue:1”,
“disabled”:0,
“id”:28,
“id_parent”:0,
“impl_file”:“I_ALTHUE.xml”,
“invisible”:“0”,
“ip”:“127.0.0.1”,
“local_udn”:“uuid:d764c8cc-e932-55c4-478d-7aa05d83f3ea”,
“mac”:“”,
“manufacturer”:“”,
“model”:“”,
“name”:“”,

name must not be empty

"name":"AltHue",

Fixed it

1 Like

Glad you fixed it!

I’ll put in a fix for empty names, so much appreciate your efforts.

Sorry for the inconvenience.

Just glad that you can use this issue to make a fix.

Is there a way to check for errors in the user_data.json, as after my crash, I can’t create new scenes ?

pressing “create scene” i just get a empty page

Which version of openLuup are you running?

The openLuup Console pages are good for troubleshooting… openLuupIP:3480/console

Depending on your version, there are various menu options which can help to analyze the state of the system. This may not be a user_data issue, though. You’ve refreshed you brower page just in case??

openLuup: 19.8.20
AltUI v2.44.2526

Browser refresh, yes, and tried incognito also, same issue. But im running AltUI, as my frontend.

When trying to create a new scene in the console it works, and I can edit it via AltUI.

Hmmm… perhaps more of an AltUI issue that an openLuup one?

What did you do to break your system in the first place?

Hmm, Power outage. :slight_smile:

After that my DiyHue did not work (running on same RPI3b+), so I reinstalled it. (Fresh, no old config)
Then AltHue did not see the lamps (new CA), so I had to repair that with DiyHue, and when the lua reloaded after that command in the AltHue app, well se first post. :slight_smile:

but I learned how to setup a daily backup of my openluup now :smiley:

I may have to take that back. I can reproduce this on a RPi running that version of the system, but not on a BeagleBone Black… weird!

I look further tomorrow.

Thanks. hope you find that bug tomorrow then. :wink:

This is definitely an AltUI issue, because I’ve just updated a Vera system with the latest and it has the same issue.

I note from the AltUI version log…

V 2.44.2526

  • ‘update zw device DB’,
  • ‘display Mode icon for scenes that are restricted to some modes’,
  • ‘fix option screen for tag name edit and room background changes’,
  • ‘migrate to jquery 3.4.1’,
  • ‘change for CDN’,
  • ‘migrate ace to 1.4.4’,
  • ‘migrate bootstrap to 4.3.1’,
  • ‘water valve support (rafale77)’

…that some extensive work was done, including a change to scene displays.

@amg0. … Help!

the version in GitHub should include a fix - thx for reporting

2 Likes