• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WebGUI emtpy since 8.0.8
#1
Hi,

I updated today from 8.0.1 to 8.0.8 (probably it is 8.0.9 - the update process says 8.0.9 and the WebGUI says 8.0.8). The config.json was resetted by the update, so I inserted my devices etc again in config.json, and kept the new entries (which are webserver-https-port and webserver certificate as far as I see).
Problem: the webgui is empty, nothing is shown (except for the version, the CPU value and the head line "pilight webgui"). Looks like a configuration issue, but I tried a lot of things and still nothing shown. What can I do?

BTW of course I stopped the service before editing config.json, I validated config.json with JSONLint, I started the daemon in debug mode - but still no clue...

At least I can pilight-receive the sensor data and I can pilight-send to switch the power plugs, so it is "only" a webgui issue.

This is my config.json with three power plugs and two temperature sensors - everything worked fine before the update:
Code:
{
    "devices": {
        "Dose1": {
            "protocol": [ "heitech" ],
            "id": [{
                "systemcode": 1234,
                "unitcode": 1
            }],
            "state": "off"
        },
        "Dose2": {
            "protocol": [ "heitech" ],
            "id": [{
                "systemcode": 1234,
                "unitcode": 2
            }],
            "state": "off"
        },
        "Dose3": {
            "protocol": [ "heitech" ],
            "id": [{
                "systemcode": 1234,
                "unitcode": 4
            }],
            "state": "off"
        },
        "temp1": {
            "protocol": [ "alecto_ws1700" ],
            "id": [{
                "id": 234
            }],
            "temperature": 23.2,
            "humidity": 18.0,
            "battery": 1
        },
        "temp2": {
            "protocol": [ "alecto_ws1700" ],
            "id": [{
                "id": 456
            }],
            "temperature": 23.1,
            "humidity": 18.0,
            "battery": 1
        }
    },
    "rules": {},
    "gui": {
        "Dose1": {
            "name": "Dose 1",
            "group": [ "Funksteckdosen" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "Dose2": {
            "name": "Dose 2",
            "group": [ "Funksteckdosen" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "Dose3": {
            "name": "Dose 3",
            "group": [ "Funksteckdosen" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "temp1": {
            "name": "aussen",
            "group": [ "Thermometer" ],
            "media": [ "all" ],
            "show-humidity": 0
        },
        "temp2": {
            "name": "innen",
            "group": [ "Thermometer" ],
            "media": [ "all" ],
            "show-humidity": 0
        }
    },
    "settings": {
        "log-level": 6,
        "pid-file": "/var/run/pilight.pid",
        "log-file": "/var/log/pilight.log",
        "webserver-enable": 1,
        "webserver-root": "/usr/local/share/pilight/webgui",
        "webserver-http-port": 5001,
        "webserver-https-port": 5002,
        "webserver-cache": 1,
        "gpio-platform": "raspberrypi2"
    },
    "hardware": {
        "433gpio": {
            "sender": 0,
            "receiver": 1
        }
    },
    "registry": {
        "webgui": {
            "tabs": 1
        },
        "webserver": {
            "ssl": {
                "certificate": {
                    "secure": 0,
                    "location": "/etc/pilight/pilight.pem"
                }
            }
        },
        "pilight": {
            "version": {
                "current": "8.0.8"
            }
        }
    }
}


Can someone help please?
 
Reply
#2
The webserver-root has changed to : "/usr/local/pilight/webgui"
 
Reply
#3
(02-19-2018, 10:55 PM)Niek Wrote: The webserver-root has changed to : "/usr/local/pilight/webgui"

Directory does not exist here... Are there additional steps in order to migrate?
And where to be seen such changes in general?
 
Reply
#4
Changes should be described in the pilight documentation.

So you say that the directory "/usr/local/pilight/webgui" doesn't exist. I think that directory should be created and populated during installation. But is there a directory  "/usr/local/lib/pilight/webgui" instead?
 
Reply
#5
(02-20-2018, 01:22 PM)Niek Wrote: Changes should be described in the pilight documentation.

So you say that the directory "/usr/local/pilight/webgui" doesn't exist. I think that directory should be created and populated during installation. But is there a directory  "/usr/local/lib/pilight/webgui" instead?

No, just /usr/local/share/pilight/webgui/ which actually is populated... Latest files there are dated 11/01/18.
No more other webgui directories!

Documentation seems to be deprecated? https://manual.pilight.org/configuration...erver-root
Changelog also does not mention anything https://manual.pilight.org/changelog.html

I have seen in /var/cache/apt/archives/ that these updates took place:
pilight_8.0.4_armhf.deb -> pilight_8.0.9_armhf.deb
pilight-webgui_8.0_armhf.deb -> pilight-webgui_8.3_armhf.deb
 
Reply
#6
I am sorry, made a mistake, I meant /usr/local/share...  instead of /usr/local/lib...

Apparently that directory is older than the date of the latest installation you did, so is probably a remainder  of a previous installation. Conclusion, apparently you are missing the ones belonging to your current installation.

So something went wrong with that installation. How did you install 8.09?

@curlymo, I thought that the webserver root in v8 was changed to /usr/local/pilight/webgui/ (as it is in development), but looking at the documentation, it seems I was wrong?
 
Reply
#7
I always try to keep the documentation up to date.

The root should be in:
/usr/local/share/pilight/webgui

If that's not the case, then we have a bug Smile
 
Reply
#8
Well, when you backported from rewrite to development last year, it was changed to /usr/local/pilight/webgui/ as you wrote in this blog:


Quote:03-09-2017
Various API protocols have been backported in this iteration and the new functionality which allows event operators to be written in Lua.
  • 433Mhz UUID
    It should now be possible to use the UUID value for 433.92Mhz devices to tell which node should or should not broadcast.
     
  • Lua operators
    Event operators are now written in Lua and therefor can be extended much easier. You can find them at /usr/local/pilight/operators. This adds a dependency on the liblua5.2-0 library.
     
  • New webserver location
    The webserver is now installed in /usr/local/pilight/webgui. If your config points to the old location either remove that setting or update it.


I am using v7 development and my webserver root is indeed /usr/local/pilight/webgui.
 
Reply
#9
You should follow the manual, not the blog.
 
Reply
#10
But the manual apparently does not apply to development Unsure
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  CONTACT devices | Webgui wupperpi 2 679 01-18-2018, 03:37 PM
Last Post: wupperpi
  [solved] Webgui 404-Error PT-Biker 2 936 11-11-2017, 09:49 AM
Last Post: PT-Biker
  pilight doesn't show the right status in webgui jurkla 8 2,467 11-17-2016, 09:41 AM
Last Post: gregnau
  pilight WebGui not working after reboot Frank_a 7 4,593 02-04-2016, 09:11 AM
Last Post: wo_rasp
  [pilight 7] Got no buttons on the WebGUI Nachtwind 2 2,388 07-29-2015, 08:16 PM
Last Post: Nachtwind
Question [nightly build] getting datetime in webgui questor 1 2,036 12-29-2014, 03:46 PM
Last Post: curlymo
  webgui/ssh very slow .. high cpu usage gneandr 1 2,429 10-01-2014, 06:43 PM
Last Post: creamers
  Help needed, webgui not loading -Solved- puuhapet 18 12,587 09-16-2014, 09:58 AM
Last Post: puuhapet
  Webgui: iPhone/iPad icons Nelus82 24 9,018 04-04-2014, 11:22 PM
Last Post: curlymo
  webGUI - setting to ON or OFF .. not Toogle gneandr 3 1,906 03-14-2014, 05:56 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)