Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variables list empty after refreshing/leaving page #47

Open
skitterrusty opened this issue Oct 31, 2020 · 7 comments
Open

Variables list empty after refreshing/leaving page #47

skitterrusty opened this issue Oct 31, 2020 · 7 comments

Comments

@skitterrusty
Copy link

After adding a variable and saving it, then navigating away or refreshing the page, the variables list will be empty upon return.
The saved variables can still be found if the variable name is used in a template.
NodeMCU32-S

@skitterrusty
Copy link
Author

Fixed after reflash - weird

@skitterrusty
Copy link
Author

Re-occurred. Not sure what triggered it. Variables still function properly, just don't show on the variables page.

@skitterrusty skitterrusty reopened this Nov 2, 2020
@skitterrusty
Copy link
Author

skitterrusty commented Nov 2, 2020

Appears to be issue with pagination logic. Browser network log shows that the script creates an infinite number of empty 'pages' of variables. Causes additional power usage by ESP chip and can eventually crash it.

@sidoh
Copy link
Owner

sidoh commented Nov 2, 2020

Thanks for opening -- I'm seeing this too. Will try to look when I have more time.

@appi1
Copy link

appi1 commented Nov 13, 2020

Hello great app thanks
even in my installation the variables are not visible in the Variables tab. Unfortunately I cannot send any values via Mqtt to e.g. Send the variable Outside_temperature, although the value arrives as subscriber in MQTT.fx. the subscriber function doesn't seem to work with version v2.5.1

@sidoh
Copy link
Owner

sidoh commented Nov 13, 2020

Hi @appi1, I'm guessing that's a separate problem. Please open another issue with the output of http://<you_epaper_ip_address>/api/v1/settings (make sure to sensor any passwords that appear here).

@sidoh
Copy link
Owner

sidoh commented Dec 24, 2020

Hi @skitterrusty, an update on this --

I think the issue is some kind of corruption of the variables database file. I haven't been able to reproduce it, unfortunately, but it made my display mostly unusable until it was resolved.

The easiest fix for me was to clear the database. The DELETE /api/v1/variables route does this (example command: curl -X DELETE http://epaper-display/api/v1/variables), but it wasn't aggressive enough. The 2.6.0-rc.1 release has a more aggressive delete which worked for me.

Obviously not ideal, and definitely need to fix the underlying issue, but hopefully this offers a temporary workaround.

My guess is the issue is some kind of race condition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants