Native ESP8266 BrewPi Firmware - WiFi BrewPi, no Arduino needed!

Homebrew Talk - Beer, Wine, Mead, & Cider Brewing Discussion Forum

Help Support Homebrew Talk:

bluc

Active Member
Joined
Jun 8, 2017
Messages
26
Reaction score
6
I have been running fermentrack without issue for couple of years for use with ispindles within virtual box. Yesterday while trying to upgrade to current version as of 2021/09/05 something happened and the update failed. Fermentrack is no longer reachable. Is there any way to recover the system or do I need to reinstall fresh?
 

DeanP

New Member
Joined
Oct 4, 2021
Messages
1
Reaction score
1
Hello:

I know this thread is getting long in the tooth, but I need some guidance. Over the past week, I've read every post up through page 64. 24 more to go...... Today I finished my BrewPi Esp8266/Fermentrack build. As a test, I flashed and configured two nodemcu's. One serially tied to the Pi4 and the second as Wi-Fi. Everything seems great with both controllers. The fridge and beer sensors configured and work as expected and display properly on both the Fermentrack web page and the controller's LCD . But, regardless of what mode I try (and the temperatures I set), the system continues to Idle. It's probably something silly I've missed, but I can't figure it out. Both controllers act the same way. Always idling and I can't get the system to go into heating or cooling mode.


Any suggestions?
FermChamber.JPG




DUH.........Never mind. The system works much better if you configure the heating and cooling pins.

Sorry.
 
Last edited:

adrianoftyriel

Active Member
Joined
Jan 23, 2016
Messages
34
Reaction score
6
Well, this is interesting, apparently at 5:15PM local time every day my BrewPi loses all it's configuration, and I have to reset the pins and control modes. Anyone have any ideas?

1633436328039.png


EDIT: Here's a snippet of stderr:

Code:
 Oct 04 2021 23:15:35   Lost connection to controller on read. Attempting to reconnect.
Oct 04 2021 23:15:38   Unable to connect to BrewPi 172.16.88.31 on port 23. Exiting.
Oct 04 2021 23:15:40   Lost connection to controller on write. Attempting to reconnect.
Oct 04 2021 23:15:40   Serial Error: [Errno 9] Bad file descriptor)
Oct 04 2021 23:16:43   Error: controller is not responding to new data requests. Exiting.
Oct 04 2021 23:16:48   Refreshing dbConfig
Oct 04 2021 23:16:48   Connection type WiFi selected.  Trying TCP serial (WiFi)
Oct 04 2021 23:16:48   Connecting to BrewPi 172.16.88.31 (via 172.16.88.31) on port 23
Oct 04 2021 23:16:51   Successfully connected to controller.
Oct 04 2021 23:16:51   Notification: Script started for beer 'Gingerbread Porter Oct 2021'
Oct 04 2021 23:17:01   Checking software version on controller...
Oct 04 2021 23:17:01   Found BrewPi v0.2.4, running commit 00000000, running on an ESP8266 ESP8266 with a DIY shield on port 172.16.88.31:23

Oct 04 2021 23:17:01   BrewPi version received was 0.2.4 which this script supports in 'legacy' branch mode.
Oct 04 2021 23:17:01   Bound to TCP socket on port 2956, interface localhost
Oct 04 2021 23:17:02   Installed devices received: []
 
Joined
Jan 19, 2013
Messages
3,763
Reaction score
1,600
Location
Rural Kansas
Do you have a security product that might be scanning your network? Bitdefender or something like that? I’m having the same issue, I just haven’t had the time to trace it down. I believe something connects to the port and issues the command to erase the EEPROM
 

adrianoftyriel

Active Member
Joined
Jan 23, 2016
Messages
34
Reaction score
6
Do you have a security product that might be scanning your network? Bitdefender or something like that? I’m having the same issue, I just haven’t had the time to trace it down. I believe something connects to the port and issues the command to erase the EEPROM
Looks like that's the culprit. My UDM Pro is scanning it at 5:16pm every day.

1633444371400.png


Now to see if I can exempt it from the scan!
 
OP
OP
T

Thorrak

Supporting Member
HBT Supporter
Joined
Feb 7, 2016
Messages
3,160
Reaction score
2,081
Location
New York, NY
Looks like that's the culprit. My UDM Pro is scanning it at 5:16pm every day.

View attachment 744667

Now to see if I can exempt it from the scan!

Thank you for confirming this! As Lee said, it's something that we thought was happening, but had trouble confirming.

Oooh! It is so gnarly that a "security product" can wipe the eeprom of a network device :D

Yeeahhhhh. This is not OK. I've got a fix in the works, but I also have not been spending nearly as much time on brewing-related products/projects as I should.
 

DuncB

Well-Known Member
Joined
Jun 5, 2019
Messages
2,217
Reaction score
1,245
Location
Paremata New Zealand
I've just used my Brewpiless for first beer ferment and have reached the cold crash stage. What settings work best to get the temperature down quickest? Beer constant, Fridge constant or just turn it off and go flat out chill. I've found it's not that quick as the STC 1000 was when set to a low temp. Or is this me reading more into data I didn't have before?
Otherwise worked great.
 
Joined
Jan 19, 2013
Messages
3,763
Reaction score
1,600
Location
Rural Kansas
A PID will not cool as fast as a system controlled via hysteresis. You can set fridge constant which would be the closest to "leave it on," and since at cold crash the brew is not generating heat, it should be close enough.
 

DuncB

Well-Known Member
Joined
Jun 5, 2019
Messages
2,217
Reaction score
1,245
Location
Paremata New Zealand
Thank you @LBussy I'll give that approach a try next time. I think I also need to position the fridge sensor a bit better as it's getting a blast of freezing air from the freezer ducting into the fridge which might also be confusing the algorithm.
 

wd16261

Well-Known Member
Joined
Aug 5, 2019
Messages
130
Reaction score
28
Location
Belgium
I have been running fermentrack without issue for couple of years for use with ispindles within virtual box. Yesterday while trying to upgrade to current version as of 2021/09/05 something happened and the update failed. Fermentrack is no longer reachable. Is there any way to recover the system or do I need to reinstall fresh?
I'm having the same issue I tried to upgrade my fermentrack from Github yesterday and now I'm having erro '502 Bad Gateway nginx/1.18.0' when I try to open the Fermentrack webpage.
Can someone tell we what I can try to do to fix is?
It is the Docker version and I don't have any experience with Docker.
 
OP
OP
T

Thorrak

Supporting Member
HBT Supporter
Joined
Feb 7, 2016
Messages
3,160
Reaction score
2,081
Location
New York, NY
I'm having the same issue I tried to upgrade my fermentrack from Github yesterday and now I'm having erro '502 Bad Gateway nginx/1.18.0' when I try to open the Fermentrack webpage.
Can someone tell we what I can try to do to fix is?
It is the Docker version and I don't have any experience with Docker.
The install script now also fixes issues like this. Just run
curl -L install.fermentrack.com | bash

From the same directory that contains your Fermentrack-tools directory. (Not from the Fermentrack-tools directory itself)
 

wd16261

Well-Known Member
Joined
Aug 5, 2019
Messages
130
Reaction score
28
Location
Belgium
The install script now also fixes issues like this. Just run
curl -L install.fermentrack.com | bash

From the same directory that contains your Fermentrack-tools directory. (Not from the Fermentrack-tools directory itself)

OK thanks @Thorrak this solved the problem but now I've got the following message:

1640018995187.png


Is it OK to update to the master code Branch? Can't remember that I've changed it to the dev branch?
 

wd16261

Well-Known Member
Joined
Aug 5, 2019
Messages
130
Reaction score
28
Location
Belgium
I remember seeing that on my install. I clicked on the link to go back to the master branch and have not seen that message since.
You should be fine doing that also, I believe.
Thanks it worked! :thumbsup:
 

mcinnes01

Member
Joined
Dec 12, 2020
Messages
18
Reaction score
0
I also just bumped in to this issue when updating from the UI, however using: curl -L install.fermentrack.com | bash
still required me to use this before it would work: sudo apt-get update --allow-releaseinfo-change

I also got an error on the redis install, which I assume is because redis is already running?
*** ERROR: Port 6379 is required by Redis, but is currently in use. Installation cannot continue.

Seems the script doesn't stop the docker containers when it tries to run the update, so it was erroring. I manually stopped all containers and it allowed me to run the script: docker stop $(docker ps -a -q)

Also as the script progresses after stopping the docker containers to allow it to install, it then seems to get stuck on:
Waiting for PostgreSQL to become available...

It could just be me being impatient but it's perhaps been doing that for at least 10 minutes

Looking at docker it seems* to be running but I'm not sure what the readiness probe is testing for:

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3f4fcee59ed2 jdbeeler/fermentrack:latest "/entrypoint python …" 16 minutes ago Up 16 minutes fermentrack-tools_django_run_1
4f638f73035b fermentrack_postgres "docker-entrypoint.s…" 16 minutes ago Up 16 minutes fermentrack-tools_postgres_1
61f35551caac fermentrack_redis "docker-entrypoint.s…" 16 minutes ago Up 16 minutes fermentrack-tools_redis_1

Exec'ing in I can see postgrsql is running:
[email protected]:~ $ docker exec fermentrack-tools_postgres_1 pg_isready
/var/run/postgresql:5432 - accepting connections

I updated the os with apt-get update, did a reboot and then re-ran the install script, it seems to get further now but I get this error:

::: 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

Weirdly the application seems to be running despite the error :s
 
Last edited:

Nateb

Member
Joined
May 20, 2017
Messages
23
Reaction score
1
I also made the mistake of updating last night.. I tried some of the updating commands in recent pages, but no luck. I have also reloaded the os and fermentrack, still no communication with the browser.
 

mcinnes01

Member
Joined
Dec 12, 2020
Messages
18
Reaction score
0
yeah mine worked eventually using the script even though the script said it failed.

What I did was:

apt-get update --allow-releaseinfo-change
apt-get upgrade
sudo reboot
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
curl -L install.fermentrack.com | bash

It said it failed, I tried again and then it was actually working when I went to the ui.
 

Nateb

Member
Joined
May 20, 2017
Messages
23
Reaction score
1
yeah mine worked eventually using the script even though the script said it failed.

What I did was:

apt-get update --allow-releaseinfo-change
apt-get upgrade
sudo reboot
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
curl -L install.fermentrack.com | bash

It said it failed, I tried again and then it was actually working when I went to the ui.
This worked after I reinstalled everything. Thanks
 
OP
OP
T

Thorrak

Supporting Member
HBT Supporter
Joined
Feb 7, 2016
Messages
3,160
Reaction score
2,081
Location
New York, NY
I just released my latest project - BrewFlasher Web Edition! Flash BrewPi-ESP8266 (amongst other projects!) to your controller, straight from your web browser.

This project took all the magic of BrewFlasher, and stuck it in a web app. Flash any ESP8266/ESP32 firmware supported by BrewFlasher, straight from your web browser. No downloads needed.

BrewFlasher Web Edition is available at: BrewFlasher Web Edition

The code is open source, and is available at GitHub.

Note - Due to the APIs required, BrewFlasher Web Edition only works in recent desktop versions of Google Chrome, Microsoft Edge, and Opera. If you don't use one of those browsers, try BrewFlasher desktop edition instead.
 

wd16261

Well-Known Member
Joined
Aug 5, 2019
Messages
130
Reaction score
28
Location
Belgium
I just released my latest project - BrewFlasher Web Edition! Flash BrewPi-ESP8266 (amongst other projects!) to your controller, straight from your web browser.

This project took all the magic of BrewFlasher, and stuck it in a web app. Flash any ESP8266/ESP32 firmware supported by BrewFlasher, straight from your web browser. No downloads needed.

BrewFlasher Web Edition is available at: BrewFlasher Web Edition

The code is open source, and is available at GitHub.

Note - Due to the APIs required, BrewFlasher Web Edition only works in recent desktop versions of Google Chrome, Microsoft Edge, and Opera. If you don't use one of those browsers, try BrewFlasher desktop edition instead.

I just tested the new webversion and it works great! :thumbsup:
The option to see the logs&console is also very nice to have.:ban:

Maybe just a small remark: the button to start the flash is not overall active, only the upperpart of this button works, you have to make sure that the mouse cursor changes from pointer to a hand before you can click the button.

20220119_103127_small.jpg
20220119_103143_small.jpg


But for me its a Big 👍👏
 
OP
OP
T

Thorrak

Supporting Member
HBT Supporter
Joined
Feb 7, 2016
Messages
3,160
Reaction score
2,081
Location
New York, NY
I just tested the new webversion and it works great! :thumbsup:
The option to see the logs&console is also very nice to have.:ban:

Maybe just a small remark: the button to start the flash is not overall active, only the upperpart of this button works, you have to make sure that the mouse cursor changes from pointer to a hand before you can click the button.

View attachment 756243 View attachment 756244

But for me its a Big 👍👏
Heeeey, guess who made a last minute change and didn't notice that it made half the button non-responsive.

Thanks for catching that - should now be fixed!
 

adrianoftyriel

Active Member
Joined
Jan 23, 2016
Messages
34
Reaction score
6
Hey everyone, I'm having difficulty with my iSpindel. I've added it can get the readings, have added gravity points to calibrate, and updated the coefficients. However, it's not calculating the gravity correctly (even when it's exactly one of the calibration points)

1642773084377.png
1642773102949.png
1642773119725.png



Any great ideas?
 
OP
OP
T

Thorrak

Supporting Member
HBT Supporter
Joined
Feb 7, 2016
Messages
3,160
Reaction score
2,081
Location
New York, NY

Nixta

Member
Joined
Oct 10, 2019
Messages
6
Reaction score
0
Hi
i'm also getting
502 Bad Gateway
nginx/1.10.3
When trying to upgrade.

Tried this after my upgrade:
apt-get update --allow-releaseinfo-change
apt-get upgrade
sudo reboot
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
curl -L install.fermentrack.com | bash

but only gets command dosen't exist..

Help appreciated!!
 
OP
OP
T

Thorrak

Supporting Member
HBT Supporter
Joined
Feb 7, 2016
Messages
3,160
Reaction score
2,081
Location
New York, NY
Hi
i'm also getting
502 Bad Gateway
nginx/1.10.3
When trying to upgrade.

Tried this after my upgrade:
apt-get update --allow-releaseinfo-change
apt-get upgrade
sudo reboot
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
curl -L install.fermentrack.com | bash

but only gets command dosen't exist..

Help appreciated!!

Did you have the docker or non-docker version?
 
Top