BrewPi / brewpi-tools

Various tools to setup/update/configure BrewPi
GNU General Public License v3.0
39 stars 46 forks source link

install script doesn't work #39

Closed dotps1 closed 6 years ago

dotps1 commented 7 years ago

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

vanosg commented 7 years ago

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!

dotps1 commented 6 years ago

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

dotps1 commented 6 years ago

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?

dotps1 commented 6 years ago

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.

dotps1 commented 6 years ago

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.

dotps1 commented 6 years ago

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
dotps1 commented 6 years ago

missing dependency.

sudo apt-get install php7.0-mbstring && sudo service apache2 restart
dotps1 commented 6 years ago

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

RacerEvan55 commented 6 years ago

still getting this exact problem on a fresh install

dotps1 commented 6 years ago

Just use my fork.

Get Outlook for Androidhttps://aka.ms/ghei36


From: RacerEvan55 notifications@github.com Sent: Saturday, December 30, 2017 4:22:39 PM To: BrewPi/brewpi-tools Cc: Thomas Malkewitz; State change Subject: Re: [BrewPi/brewpi-tools] install script doesn't work (#39)

still getting this exact problem on a fresh install

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHubhttps://github.com/BrewPi/brewpi-tools/issues/39#issuecomment-354569073, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AA-EpOF4zUlsE-k7_LgD91wFn5-kdCdGks5tFqmfgaJpZM4QjGy6.