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

Offline #38

Closed
AndrejM73 opened this issue Oct 29, 2017 · 7 comments
Closed

Offline #38

AndrejM73 opened this issue Oct 29, 2017 · 7 comments

Comments

@AndrejM73
Copy link

Hi,
i installed TerrariumPi few days ago. Everything worked perfect, but after several restarts i recieved offline status and cant switch to online. Can you help me pls? thank you
image

@theyosh
Copy link
Owner

theyosh commented Oct 29, 2017

Ok, this is explained in the release notes. Here are the needed steps:

Login in to your PI and stop the software.
screen -r and then press two times Ctrl+C
First update the dependencies:
cd ~/TerrariumPI
git pull
sudo ./install.sh
Now clear the old switch data:
sqlite3 history.db "drop table switch_data;VACUUM"
sudo ./start.sh

Clear your browser cache to get the latest version.

@AndrejM73
Copy link
Author

Thank you for hint, but it is still offline. I tried it wit chrome, edge and IE. Any idea whats wrong pls? Here is my log.
LOG.txt

@theyosh
Copy link
Owner

theyosh commented Oct 30, 2017

Could you try: https://github.com/theyosh/TerrariumPI/wiki/FAQ#how-to-debug-terrariumpi

If something is not working, it will be shown there. Also, make sure you have the latest version using git pull

The log file is only from the installation. That does not show the problem

@AndrejM73
Copy link
Author

here is log, but i dont know what can i do with it.

pi@raspberrypi:~/TerrariumPI $ screen -r
rv = callback(*a, **ka)
File "/home/pi/TerrariumPI/terrariumWebserver.py", line 40, in webserver_headers
return fn(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/bottle_websocket/plugin.py", line 5, in wrapper
callback(request.environ.get('wsgi.websocket'), *args, **kwargs)
File "/home/pi/TerrariumPI/terrariumWebserver.py", line 296, in handle_websocket
terrariumWebserver.app.terrarium.get_environment(socket=True)
File "/home/pi/TerrariumPI/terrariumEngine.py", line 595, in get_environment
data = self.environment.get_average()
File "/home/pi/TerrariumPI/terrariumEnvironment.py", line 374, in get_average
sensor = self.sensors[sensorid]
KeyError: 'c58072c38341700885f66ce8898498be'

@theyosh
Copy link
Owner

theyosh commented Oct 30, 2017

Hmmm, sounds like some issues with the configuration.

Could you rename the file settings.cfg to settings.cfg.temp and restart the software? You will have an empty system again, but that is the only way now to get it running again. If that does work, then edit the old settings.cfg.temp file in such a way that all configs regarding sensors is deleted.

These settings should start with [sensor_ID] and remove all the lines below it till the next [] part.

@theyosh
Copy link
Owner

theyosh commented Oct 30, 2017

Do another git pull and restart with original config. It should now work, and give an error message which sensors is causing the problem. But the software will continue to run

@theyosh
Copy link
Owner

theyosh commented Nov 1, 2017

No response, expect to be fixed now

@theyosh theyosh closed this as completed Nov 1, 2017
@JoshGr33n JoshGr33n mentioned this issue Nov 2, 2017
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

2 participants