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

Error after Docker upgrade #52

Open
vanosg opened this issue Feb 19, 2023 · 6 comments
Open

Error after Docker upgrade #52

vanosg opened this issue Feb 19, 2023 · 6 comments

Comments

@vanosg
Copy link
Contributor

vanosg commented Feb 19, 2023

Logging into web ui for the first time (more traceback is present if you want the full readout):

<div id="summary">
  <h1>OperationalError
       at /</h1>
  <pre class="exception_value">no such column: gravity_gravitysensor.log_gravity</pre>
  

Request Method: | GET
-- | --
http://192.168.1.162/
3.0.14
OperationalError
no such column: gravity_gravitysensor.log_gravity
/home/fermentrack/venv/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py in execute, line 396
/home/fermentrack/venv/bin/python3.7
3.7.7
['/home/fermentrack/venv/bin',  '/home/fermentrack/venv/lib/python3.7/site-packages/git/ext/gitdb',  '/home/fermentrack/fermentrack',  '/home/fermentrack/venv/lib/python3.7/site-packages',  '/usr/local/lib/python37.zip',  '/usr/local/lib/python3.7',  '/usr/local/lib/python3.7/lib-dynload',  '.',  '/home/fermentrack/venv/lib/python3.7/site-packages/gitdb/ext/smmap']
Sun, 19 Feb 2023 16:37:20 +0000

</div>

No GUI interface, just that error page. Unable to access any of the web UI functions

@vanosg
Copy link
Contributor Author

vanosg commented Feb 19, 2023

It looks like the old non-docker scripts are still running; how do I stop them? I didn't see a section in the docs for that

@thorrak
Copy link
Owner

thorrak commented Feb 19, 2023

Easiest/fastest method is probably to sudo apt-get remove nginx and then re-run docker-compose down / docker-compose up -d -- Doesn't really remove it, but should get you to a more usable state.

@vanosg
Copy link
Contributor Author

vanosg commented Feb 19, 2023

Thanks- and last question (hopefully), where are the old db files located? I found data and logs, but there is no 'db' folder in /home/fermentrack/fermentrack. I'm desperately trying to avoid having to re-setup the esp device again

@vanosg
Copy link
Contributor Author

vanosg commented Feb 19, 2023

and the brewpi pi scripts are still running on the host, i guess because of circus? I can't figure out how to remove circus from the host, either.

@vanosg
Copy link
Contributor Author

vanosg commented Feb 26, 2023

So I think the suggestion for action from this issue- document how to do an upgrade from the old install. The specific issues:

  • How to port over old data
  • How to turn off nginx from running at startup
  • How to turn off the circus supervisor
  • How to stop the brewpi python scripts from running (may or may not be related to circus)

FWW- I still haven't been able to to do #1 and #3 out of those options, so would love to know how to stop it properly. Thanks

(Also- I see a video TODO in there, do you want me to create something for that? Let me know the requirements)

@thorrak
Copy link
Owner

thorrak commented Feb 26, 2023

For #3, you need to remove the cron entries. Take a look at this file for some background.

Definitely some documentation required on the back of this issue. I think I still have your email -- let me shoot you a note and fill you in on what I'm thinking.

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