thorrak/fermentrack-tools

Unable to find an initialized, responsive instance of Fermentrack

Ap0ph1s-W4ite opened this issue · 11 comments

The second time trying to install the Fermentrack but there are some errors that crash my installation.
Problem start after the verification if PostgreSQL is available.

PostgreSQL is available

Traceback (most recent call last):
File "manage.py", line 25, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/site-packages/django/core/management/init.py", line 401, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/site-packages/django/core/management/init.py", line 377, in execute
django.setup()
File "/usr/local/lib/python3.8/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python3.8/site-packages/django/apps/registry.py", line 114, in populate
app_config.import_models()
File "/usr/local/lib/python3.8/site-packages/django/apps/config.py", line 211, in import_models
self.models_module = import_module(models_module_name)
File "/usr/local/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 843, in exec_module
File "", line 219, in _call_with_frames_removed
File "/app/app/models.py", line 21, in
from lib.ftcircus.client import CircusMgr, CircusException
File "/app/lib/ftcircus/client.py", line 4, in
from circus.client import CircusClient
File "/usr/local/lib/python3.8/site-packages/circus/client.py", line 6, in
import zmq
File "/usr/local/lib/python3.8/site-packages/zmq/init.py", line 50, in
from zmq import backend
File "/usr/local/lib/python3.8/site-packages/zmq/backend/init.py", line 40, in
reraise(*exc_info)
File "/usr/local/lib/python3.8/site-packages/zmq/utils/sixcerpt.py", line 34, in reraise
raise value
File "/usr/local/lib/python3.8/site-packages/zmq/backend/init.py", line 27, in
_ns = select_backend(first)
File "/usr/local/lib/python3.8/site-packages/zmq/backend/select.py", line 28, in select_backend
mod = import(name, fromlist=public_api)
File "/usr/local/lib/python3.8/site-packages/zmq/backend/cython/init.py", line 6, in
from . import (constants, error, message, context,
ImportError: /usr/local/lib/python3.8/site-packages/zmq/backend/cython/error.cpython-38-arm-linux-gnueabihf.so: undefined symbol: zmq_strerror

Sentry is attempting to send 2 pending error messages
Waiting up to 2 seconds
Press Ctrl-C to quit
fermentrack-tools_postgres_1 is up-to-date
fermentrack-tools_redis_1 is up-to-date
Creating fermentrack-tools_django_1 ... done
Creating fermentrack-tools_nginx_1 ... done
::: Waiting for Fermentrack install to initialize and become responsive.
::: Fermentrack may take up to 3 minutes to first boot as the database is being initialized.
..........................................................................................missing.
*** ERROR: Unable to find an initialized, responsive instance of Fermentrack

What version of Raspberry Pi OS are you using? And what Raspberry Pi?

Raspberry Pi OS: Raspbian GNU/Linux 11 (bullseye)
Raspberry Pi Board: 3 B

Is this new? I can try with the Legacy Version 10 (Buster).

Raspberry Pi OS: Raspbian GNU/Linux 11 (bullseye) Raspberry Pi Board: 3 B

Is this new? I can try with the Legacy Version 10 (Buster).

It is, but I actually spent the past weekend rebuilding my RPi cluster and updating to bullseye. I’m pretty sure I know what is happening - let me poke at this!

Great! Until there I will try with the Legacy.

Let me know if that works — my current hypothesis would point at legacy failing as well.

As part of the work I did this past weekend, I built a new release of Fermentrack. Looking through the build logs it appears that one of the libraries Fermentrack uses updated itself (despite supposedly being locked to a specific, working version). If this is in fact the cause of the error it should persist regardless of the Raspberry Pi OS version and will require a rebuild on my end.

I’m waiting on a part (being delivered today!) necessary to support performing this rebuild - I should be able to get this out tonight, assuming this is the actual issue.

Huh. Mine works. :)

Huh. Mine works. :)

When did you last install the docker containers?

Docker is for suckers.

Hi again.

First, I tried to install it on legacy but the problem is still the same.
Second, I tried to install the version without Docker and it was a success. When I tried to access the web page it seems a little broken and I was not able to add devices. I tried the pinned issue thorrak/fermentrack#463 but is the same.

image

I just pushed updated images to Docker hub - Try running that now and let me know if it works for you.

It is perfect! Tried with Bullseye and it seems to be working well. Later I will try to flash ESP8266 and if anything fails I open a new issue.
Thank you, you saved my beer 🍻