Hi guys,
I have a problem with my scene that runs a backup. It contains only the following luup code:
luup.inet.wget “http://openluup.home.lan/cgi-bin/cmh/backup.sh”
This is what I see in the log of openluup:
2018-08-01 11:08:39.221 openLuup.server:: POST /data_request?id=lr_ALTUI_LuaRunHandler HTTP/1.1 tcp{client}: 0x215ba08
2018-08-01 11:08:39.221 luup_log:0: ALTUI: runLua(luup.inet.wget “http://openluup.home.lan/cgi-bin/cmh/backup.sh”)
2018-08-01 11:08:39.223 openLuup.server:: WGET status: closed, request: http://openluup.home.lan/cgi-bin/cmh/backup.sh
2018-08-01 11:08:39.223 luup_log:0: ALTUI: Evaluation of lua code returned: nil
2018-08-01 11:08:39.224 openLuup.server:: request completed (8 bytes, 1 chunks, 2 ms) tcp{client}: 0x215ba08
2018-08-01 11:08:39.224 openLuup.server:: socket closed: closed tcp{client}: 0x215ba08
2018-08-01 11:08:40.229 openLuup.server:: closing client connection: tcp{client}: 0x1955098
Nothing more.
When I just put the URL in my browser it works fine. Also doing a wget via command line in openluup works fine.
I don’t get it. Can you help me out?
Thanks.
ps. I’m on openluup version 18.3.23
Update
Running it from Vera doesn’t work either, so maybe it’s a network issue. I see this in the log Vera:
08 08/01/18 11:28:11.734 JobHandler_LuaUPnP::HandleActionRequest argument action=RunLua <0x72584520>
08 08/01/18 11:28:11.734 JobHandler_LuaUPnP::HandleActionRequest argument Code=luup.inet.wget “http://openluup.home.lan/cgi-bin/cmh/backup.sh” <0x72584520>
01 08/01/18 11:28:11.738 FileUtils::ReadURL 6/resp:0 user: pass: size 1 http://openluup.home.lan/cgi-bin/cmh/backup.sh response: <0x72584520>
06 08/01/18 11:28:13.670 Device_Variable::m_szValue_set device: 30 service: urn:micasaverde-com:serviceId:EnergyMetering1 variable: KWH_frac was: 4901.665 now: 4901.671 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x72784520>
I also tried the URL with the IP address in it, didn’t work either.