• Please visit and share your knowledge at our sister communities:
  • If you have not, please join our official Homebrewing Facebook Group!

    Homebrewing Facebook Group

HOWTO - Make a BrewPi Fermentation Controller For Cheap

Homebrew Talk

Help Support Homebrew Talk:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
Status
Not open for further replies.
And all that looks fine, so it doesn't look like a device problem at least at this level.
Did you install apache2? If that's missing it would explain why you can't pull a web page off your 'Pi.

Cheers!
 
Yes I installed Apache2 and I had got around the PHP5 not available issue by changing a line in install .sh to "libapache2-mod-php php-cli php-common php-cgi php" instead of the one that had the php5 references in it.

I also dug into the failed boot item
"failed to start Raise network interfaces. See 'systemctl status netwok.services'"
So I ran this and am searching for clues as to the cause of my issues

pi@raspberrypi:~ $ sudo systemctl status networking.service
â networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor prese
Active: failed (Result: exit-code) since Mon 2018-12-17 16:30:03 EST; 5min ag
Docs: man:interfaces(5)
Process: 266 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1
Process: 248 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [
Main PID: 266 (code=exited, status=1/FAILURE)

Dec 17 16:30:02 raspberrypi systemd[1]: Starting Raise network interfaces...
Dec 17 16:30:02 raspberrypi sh[248]: ifquery: unknown interface wlan0
Dec 17 16:30:02 raspberrypi ifup[266]: ifup: unknown interface wlan0
Dec 17 16:30:03 raspberrypi systemd[1]: networking.service: Main process exited,
Dec 17 16:30:03 raspberrypi systemd[1]: Failed to start Raise network interfaces
Dec 17 16:30:03 raspberrypi systemd[1]: networking.service: Unit entered failed
Dec 17 16:30:03 raspberrypi systemd[1]: networking.service: Failed with result '
lines 1-15/15 (END)
â networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2018-12-17 16:30:03 EST; 5min ago
Docs: man:interfaces(5)
Process: 266 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
Process: 248 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-envi
Main PID: 266 (code=exited, status=1/FAILURE)

Dec 17 16:30:02 raspberrypi systemd[1]: Starting Raise network interfaces...
Dec 17 16:30:02 raspberrypi sh[248]: ifquery: unknown interface wlan0
Dec 17 16:30:02 raspberrypi ifup[266]: ifup: unknown interface wlan0
Dec 17 16:30:03 raspberrypi systemd[1]: networking.service: Main process exited, code=exited, status=1/FA
Dec 17 16:30:03 raspberrypi systemd[1]: Failed to start Raise network interfaces.
Dec 17 16:30:03 raspberrypi systemd[1]: networking.service: Unit entered failed state.
Dec 17 16:30:03 raspberrypi systemd[1]: networking.service: Failed with result 'exit-code'.
~
 
Ah, now, see, that is why I thought the article I linked earlier might apply.
You might give the first option listed after "I don't like this, how do I disable this?"

Cheers!
 
I feel like I'm making progress but I'm not there yet. I think some of my problem was that I tried to do the legacy build with the RPI3 and Arduino Uno headless using info from too many different sites. So I went back to square one and tried to use onlly the site by day trippr. But then doing the NOOBS copy files onto the reformatted SD didn't work. So I made a fresh flash of the full Raspian image using Etcher and it worked. I then borrowed a keyboard, mouse and screen borrowed from another computer to see if I can get to the dashboard but no luck. I can ssh in from other computers on my network but no access to the dashboard thru any computer or the RPI. I get this message from the browser "brewpi is currently unable to handle this request". Did I miss something crucial to seeing the dashboard by not using NOOBS to put the Raspian on the RPI?
 
Solved! I looked into my apache error.log and saw a uncaught error which led me to

https://stackoverflow.com/questions...convert-encoding-although-mbstring-is-enabled

Then from there I installed this leaving out the 7.2 in the article because the modified install.sh left out the "5" behind the php resulted in 7.0 being installed.

sudo apt-get install php-mbstring

then

sudo reboot

and ......Voila! I've now got a dashboard!!
 
I had my brewpi running flawlessly a few years ago but we moved and I'm just now getting it back up and running but I can't load up the dashboard.

I figured out what ip address the brewpi was assigned through my routers gui (which is 192.168.0.244) but that ip address just times out when loading it up in my browser. I can ping it just fine.

I can't remember if I had to set the ip address manually in the brewpi.

Please help
 
I'm not sure what putty or what that other thing is but I can hook up a monitor and a USB keyboard. I can't remember if I had set up the ip address in the brewpi.
 
Not much to go on. Can you connect a local console to the host? Or can you Putty (or WinSCP) into it?

Cheers!
When I hook up a monitor... What Will I have to do? Sorry it's been so so long since I originally built it
 
I don't think you'll need to do anything aside from plugging the monitor in and booting up the RPi. Unless you installed a Raspbian package that doesn't provide a desktop manager it should just work.

Putty is a popular terminal emulator supporting ssh logins. WinSCP is a remote file manager that also supports ssh connections. Along with a browser they are what I use to manage my fleet of machines big and tiny, but they do require a working network stack at each end to be of any use at all. With a local console one can have a shot at figuring out what ails the wee beastie...

Cheers!
 
I don't think you'll need to do anything aside from plugging the monitor in and booting up the RPi. Unless you installed a Raspbian package that doesn't provide a desktop manager it should just work.

Putty is a popular terminal emulator supporting ssh logins. WinSCP is a remote file manager that also supports ssh connections. Along with a browser they are what I use to manage my fleet of machines big and tiny, but they do require a working network stack at each end to be of any use at all. With a local console one can have a shot at figuring out what ails the wee beastie...

Cheers!
I hooked up a monitor and this log screen came up.

I had everything working before I moved not sure what to do. I am not very computer savvy but I just followed the instructions on this thread.

Do you think I need to rewrite the SD card?

Cheers [emoji482]
1219181913.jpeg
 
There are numerous possible ways, the most prevalent being power failure/removing power without having shut down the OS first. Then there's "bit rot", where cells in the flash card lose content over time.

I periodically live-clone the SD cards on my wee machine fleet, switching to the clone and saving the original for backup purposes. There have been times that an older cloned card has failed to boot, which is an unnerving reality of flash technology...

Cheers!
 
There are numerous possible ways, the most prevalent being power failure/removing power without having shut down the OS first. Then there's "bit rot", where cells in the flash card lose content over time.

I periodically live-clone the SD cards on my wee machine fleet, switching to the clone and saving the original for backup purposes. There have been times that an older cloned card has failed to boot, which is an unnerving reality of flash technology...

Cheers!

Since I need new image software should I stick with the "wheezy" or try the "stretch"?
 
Personally, I'd try for Jessie with LXDE and php-mysql5 if I had my druthers and knew how to do it cold.

If you go to the Raspbian.org page what you'll end up with is Stretch, apparently still with the LXDE desktop manager. And the package archive pointers won't have php-mysql5 by default, you'll have to find where it's hiding and add the archive path to the active package list file on your machine. Could be a bit of an adventure, but iirc someone either in this thread or near the end of the RaspberryPints thread has basically done it...

Cheers!
 
I'm beginning to believe that's the way to go from a standing start.
One of these days I'll put in on a testbed and see how it fits my hardware 'n' stuff...

Cheers!
 
At this point, the only reason I see not to go from the start using Stretch and Fermentrack is if you are going to run RaspberryPints on the same Pi. The Stretch 'pints installation seems to be close but not as standard as running it on Jessie. But even that implementation on Jessie is getting more fidgety by the day...
 
<sigh>
OK.
I have been avoiding changing as it's been tracking fine for years, and I've got the latptop-not-Rpi thing going against me too. But it does seem to be that Fermentrack is inevitable.
 
I’ve used one that drops onto the pins of the RPI which took some fiddling to get working, think I had to add some drivers but it worked. This one looks like it connects via HDMI so you shouldn’t have any problems with it displaying.

I also used kiosk which meant that whenever I turned on the RPI it went straight to the temp panel rather than me having to open the web browser and log onto Brewpi
 
Advanced Settings question -?
I have been using for years now, the BrewPi with great success. Only issue I have is my chilled water I use to cool, when the relay kicks on, the temperature crashes down too damn fast and cools too much. Eventually the under and overshoot dials in to keep the O/U close, but by then its 2-3 days into fermentation.
I looked at all the Advanced Settings and I am not sure which ones to adjust to turn off my chilled water pump sooner, and try to keep the Over/Under closer to my Beer Setting.
I don't use a fridge "Chamber". My Heat is from Flex Watt heating strips taped to the sides of the Conicals, used for keeping warm reptiles. My cooling is pumped from my barrel of cold water stored in my walk-in-cooler through the heat exchanger coils on my SsBrewTech Conicals. This 35 degree water is why it cools too quick - Its not a Fridge!
 
Long time no chat folks!

Looks like my "uber-simple install from scratch instructions" no longer work with Stretch and the new versions of PHP. By far the easiest method to get working now is via Fermentrack, but I'm stubborn so I'm going to see if I can make it work (simply) with the new Stretch images.
 
Long time no chat folks!

Looks like my "uber-simple install from scratch instructions" no longer work with Stretch and the new versions of PHP. By far the easiest method to get working now is via Fermentrack, but I'm stubborn so I'm going to see if I can make it work (simply) with the new Stretch images.
I just went the stretch fermtrack route myself after many failed attempts to install php5. Brewpi seemed more robust.
 
You need to set some package repository pointers to the last php-mysql5 archive to install it, but I do believe that should do the trick - I don't think there's more to it than that. As well I'm pretty sure someone documented the needed edits in the current R'Pints thread - somewhere...

Cheers!
 
Well, I was more thinking one could make BrewPi Legacy run on PHP 7.x and (somewhat) future-proof it.

Maybe.

Yes, Fermentrack is bound to be more robust, but this is a scholastic (and maybe nostalgic) endeavor. :)
 
I got Brewpi/Fermentrack legacy working with Stretch a few days ago. Got around the PHP5 not available by removing the 5 in each php5 instances in install.sh. And "libapache2-mod-php php-cli php-common php-cgi php" installed php 7.0. Then got around the apache error log issue with

sudo apt-get install php-mbstring

and a reboot.
 
Okay ... I spent WAY too much time on this but I've been having fun. I think some folks will get some use out of what I've (almost) put together. I've run into a Python issue I can't seem to figure out though. I thought one of you fine folks would be able to help. Here's how to recreate the issue:

Create a file named "test.sh:"
Code:
#!/bin/bash

python ./test.py

And a file named "test.py:"
Code:
#!/usr/bin/python

name = raw_input("What is your name? ")
print "Hello, %s." % name

If you call "test.sh" normally, it works as expected:
Code:
pi@raspberrypi:~ $ ./test.sh
What is your name? Lee
Hello, Lee.
pi@raspberrypi:~ $

However if you pipe "test.sh" through a bash shell (it would take forever to explain why I want to do this, just take for granted for a minute it has to be this way) it does not wait on the raw_input:
Code:
pi@raspberrypi:~ $ cat ./test.sh | sudo bash
What is your name? Hello, .
pi@raspberrypi:~ $

This one is driving me crazy ... anyone have any ideas? When I had a similar issue with a bash script calling a bash script I fixed it by redirecting /dev/tty to the read command like this:
Code:
read -p "What is your name? " name < /dev/tty
... but I'm at a loss to figure this out in Python.

I've even been contemplating scheduling the python job, and looping until I can read a semaphore from it in the bash script, but that seems awful heavy-duty for what I'm doing.

A (virtual) beer for the person who knows how to get past this!
 
Status
Not open for further replies.
Back
Top