BrewPi/brewpi-tools

install script doesn't work

Closed this issue · 10 comments

following instructions per this article: http://docs.brewpi.com/en/latest/automated-brewpi-install/automated-brewpi-install.html and I get this:

pi@raspberrypi:~ $ git clone https://github.com/BrewPi/brewpi-tools.git ~/brewpi-tools
Cloning into '/home/pi/brewpi-tools'...
remote: Counting objects: 479, done.
remote: Total 479 (delta 0), reused 0 (delta 0), pack-reused 479
Receiving objects: 100% (479/479), 138.44 KiB | 0 bytes/s, done.
Resolving deltas: 100% (288/288), done.
pi@raspberrypi:~ $ sudo ~/brewpi-tools/install.sh

Checking for Internet connection...
Success!


Checking whether this script is up to date...

/home/pi/brewpi-tools is up-to-date.

***** Installing/updating required packages... *****

Reading package lists...
Building dependency tree...
Reading state information...
Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libapache2-mod-php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-common is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php5-cgi is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libapache2-mod-php5' has no installation candidate
E: Package 'php5-cli' has no installation candidate
E: Package 'php5-common' has no installation candidate
E: Package 'php5-cgi' has no installation candidate
E: Package 'php5' has no installation candidate



*** ERROR ERROR ERROR ERROR ERROR ***
----------------------------------
See above lines for error message
Setup NOT completed

bummer.......

In install.sh, change the line containing "libapache2-mod-php5 php5-cli php5-common php5-cgi php5 " to "libapache2-mod-php php-cli php-common php-cgi php"

That should work until this repo is updated. Good luck!

thanks much, I'm trying now, I totally screwed up my installs yesterday, so I'm starting from scratch, ill let you know.

well, the script now completes, but I noticed it puts the files in /var/www/html. and the manual install instructions show /var/www. perhaps that's the issue?

So, if I re run the installer, and change the install path to /var/www I get this:
image
but if I let it go to /var/www/html I get a 500 error. I'm really not sure what the issue is.

i just tried to manually run /home/brewpi/brewpi.py and i get this:

pi@brewpi:~ $ /home/brewpi/brewpi.py
Conflict: same config file as another BrewPi instance already running.
 Nov 19 2017 12:40:11   Another instance of BrewPi is already running, which will conflict with this instance. This instance will exit

so its running, but the web server just seems to the issue.

maybe this will help, from /var/log/apache2/error.log

[Sun Nov 19 12:28:23.230539 2017] [:error] [pid 464] [client 10.0.0.182:51053] PHP Fatal error:  Uncaught Error: Call to undefined function mb_convert_encoding() in /var/www/html/index.php:53\nStack trace:\n#0 /var/www/html/index.php(24): prepareJSON('{"beerName": "S...')\n#1 {main}\n  thrown in /var/www/html/index.php on line 53

missing dependency.

sudo apt-get install php7.0-mbstring && sudo service apache2 restart

fixes have been applied to PR #40. Closing this issue.

still getting this exact problem on a fresh install