Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error! Unable to configure Docker image #78

Open
hornett20 opened this issue Apr 1, 2020 · 17 comments
Open

Error! Unable to configure Docker image #78

hornett20 opened this issue Apr 1, 2020 · 17 comments

Comments

@hornett20
Copy link

Trying to install program. Get Error! Unable to configure Docker images. I'm new to this and its stumped me.

@Mentias
Copy link

Mentias commented Apr 5, 2020

Me too, i'm blocked at this point!

@hornett20
Copy link
Author

Did you find a way around it yet? I have tried everything I could find on google.

@Mentias
Copy link

Mentias commented Apr 5, 2020

Not yet, tried everything and the older issues too. I'm trying now a clean installation again.

@dcaud
Copy link

dcaud commented Apr 5, 2020

An earlier commit worked... try this one:

https://github.com/fruxefarms/FruxePi/tree/07fe41c897399c2cdc948feefd2d018d049c9a0f

@hornett20
Copy link
Author

This is what i get on a log install.

FruxePi v0.3-BETA Install
version: frx-pi-v0.3-BETA
web: docs.fruxe.co

Getting Latest Updates...
Installing required packages..
Building Docker containers... This will take several minutes.
Deploying Raspberry Pi 3 (ARMv7) compatible containers...
Building php-apache
Step 1/12 : FROM balenalib/raspberrypi3-python:3.6-jessie-build
---> d6b4bd1761a0
Step 2/12 : LABEL maintainer="[email protected]"
---> Using cache
---> f165aeda50fb
Step 3/12 : RUN apt-get update && apt-get install -y apache2 libapache2-mod-php5 mysql-server php5-mysql pwgen php-apc php5-mcrypt cron nano git unzip && apt-get install -y python python-dev python-pip && pip install --upgrade pip setuptools wheel && pip install Adafruit_DHT pymysql RPi.GPIO
---> Running in ced980a8c7d6
Get:1 http://archive.raspberrypi.org jessie InRelease [22.9 kB]
Get:2 http://archive.raspbian.org jessie InRelease [15.0 kB]
Ign http://deb.debian.org jessie InRelease
Get:3 http://security.debian.org jessie/updates InRelease [44.9 kB]
Get:4 http://deb.debian.org jessie Release.gpg [1652 B]
Get:5 http://deb.debian.org jessie Release [77.3 kB]
Get:6 http://archive.raspberrypi.org jessie/main armhf Packages [170 kB]
Get:7 http://archive.raspberrypi.org jessie/ui armhf Packages [58.9 kB]
Get:8 http://security.debian.org jessie/updates/main armhf Packages [925 kB]
Get:9 http://archive.raspbian.org jessie/main armhf Packages [13.3 MB]
Get:10 http://deb.debian.org jessie/main armhf Packages [8898 kB]
Err http://deb.debian.org jessie/main armhf Packages

Err http://deb.debian.org jessie/main armhf Packages

Err http://deb.debian.org jessie/main armhf Packages
Bad header line
^CERROR: Aborting.
Configuring Docker containers...
Error! Unable to configure Docker images.

@jonnyparko
Copy link

Anybody have any luck?? I am having the same issue and have tried earlier versions to no avail. Am I doing something wrong?? It seems like that is the default message for the wrong architecture...

@jonnyparko
Copy link

jonnyparko commented Apr 20, 2020

An earlier commit worked... try this one:

https://github.com/fruxefarms/FruxePi/tree/07fe41c897399c2cdc948feefd2d018d049c9a0f

I tried this commit and it did not work for me...

@GJjoe
Copy link

GJjoe commented May 2, 2020

i got around this using python3, although my websever doesn't work on reboot i gotta load the containers each time.

sudo apt-get -y install python3-pip
sudo pip3 install docker-compose

@timyig
Copy link

timyig commented May 3, 2020

i got around this using python3, although my websever doesn't work on reboot i gotta load the containers each time.

sudo apt-get -y install python3-pip
sudo pip3 install docker-compose

Don't understand why but executing this before the install script worked for me.

@GJjoe
Copy link

GJjoe commented May 3, 2020

i got around this using python3, although my websever doesn't work on reboot i gotta load the containers each time.
sudo apt-get -y install python3-pip
sudo pip3 install docker-compose

Don't understand why but executing this before the install script worked for me.

Does your webserver load on reboot? Pi zero or 3?

@timyig
Copy link

timyig commented May 3, 2020

I am using a Pi3 B+, webserver starts after reboot takes almost one minute though.
Just downloaded the latest Raspbian yesterday

@jonnyparko
Copy link

Hey guys, take a look at this https://github.com/jonnyparko/rasp-pi-server and contribute if possibly. Just started. Thinking of going to react or angular for it to be a mern/mean stack.

@tassuapu
Copy link

Hi everyone!
I've been trying to install FruxePi for a couple of days: First of all, I had the "Error! Unable to configure Docker image" issue. I think it was because the script wasn't able to install docker-compose (I've made a research here in github and found the #44 issue).

Unfortunately, I had no patience on researching & waiting, and chose to go the "hard way": doing the install proceedure manually. I couldn't get it done and I really don't understand why: I followed the whole proceedure "as built", and in the end, when I access :80, I got an "Apache" with my 'Fruxepi root folder'.

Then, I decided to manually install docker, then using pip install docker-composer. I gave writing permission to docker, ran the "install.sh" and received the following error:

pi@raspberrypi:~/FruxePi $ sudo bash install.sh -log

FruxePi v0.3-BETA Install
version: frx-pi-v0.3-BETA
web: docs.fruxe.co

Getting Latest Updates...
Installing required packages..
Building Docker containers... This will take several minutes.
Deploying Raspberry Pi 3 (ARMv7) compatible containers...
frxpi-MYSQL is up-to-date
Starting 9a47004892d9_frxpi-APACHE ...
frxpi-PHPMYADMIN is up-to-date
Starting 9a47004892d9_frxpi-APACHE ... error

ERROR: for 9a47004892d9_frxpi-APACHE Cannot start service php-apache: driver failed programming external connectivity on endpoint 9a47004892d9_frxpi-APACHE (e7e4e9dbd650c454067750c872c18818407448fbe385b04567f6722e4daaf54c): Error starting userland proxy: listen tcp 0.0.0.0:80: bind: address already in use

ERROR: for php-apache Cannot start service php-apache: driver failed programming external connectivity on endpoint 9a47004892d9_frxpi-APACHE (e7e4e9dbd650c454067750c872c18818407448fbe385b04567f6722e4daaf54c): Error starting userland proxy: listen tcp 0.0.0.0:80: bind: address already in use
ERROR: Encountered errors while bringing up the project.
Configuring Docker containers...
Error! Unable to configure Docker images.

I've never used Apache before and my linux is knowlodge is basic, so I'm stuck here...
Does anyone had this issue? Or can give me a hint?

Thanx.

(I intend to use fruxepi to (besides auto-farming) reattach with linux and learn more about embedded systems, sorry if I made any confusion).

@jawnpeezy
Copy link

Does anyone know if this will work on pi4 b?

@MattHoy
Copy link

MattHoy commented May 29, 2020

Hi everyone!
I've been trying to install FruxePi for a couple of days: First of all, I had the "Error! Unable to configure Docker image" issue. I think it was because the script wasn't able to install docker-compose (I've made a research here in github and found the #44 issue).

Unfortunately, I had no patience on researching & waiting, and chose to go the "hard way": doing the install proceedure manually. I couldn't get it done and I really don't understand why: I followed the whole proceedure "as built", and in the end, when I access :80, I got an "Apache" with my 'Fruxepi root folder'.

Then, I decided to manually install docker, then using pip install docker-composer. I gave writing permission to docker, ran the "install.sh" and received the following error:

pi@raspberrypi:~/FruxePi $ sudo bash install.sh -log
FruxePi v0.3-BETA Install
version: frx-pi-v0.3-BETA
web: docs.fruxe.co
Getting Latest Updates...
Installing required packages..
Building Docker containers... This will take several minutes.
Deploying Raspberry Pi 3 (ARMv7) compatible containers...
frxpi-MYSQL is up-to-date
Starting 9a47004892d9_frxpi-APACHE ...
frxpi-PHPMYADMIN is up-to-date
Starting 9a47004892d9_frxpi-APACHE ... error
ERROR: for 9a47004892d9_frxpi-APACHE Cannot start service php-apache: driver failed programming external connectivity on endpoint 9a47004892d9_frxpi-APACHE (e7e4e9dbd650c454067750c872c18818407448fbe385b04567f6722e4daaf54c): Error starting userland proxy: listen tcp 0.0.0.0:80: bind: address already in use
ERROR: for php-apache Cannot start service php-apache: driver failed programming external connectivity on endpoint 9a47004892d9_frxpi-APACHE (e7e4e9dbd650c454067750c872c18818407448fbe385b04567f6722e4daaf54c): Error starting userland proxy: listen tcp 0.0.0.0:80: bind: address already in use
ERROR: Encountered errors while bringing up the project.
Configuring Docker containers...
Error! Unable to configure Docker images.

I've never used Apache before and my linux is knowlodge is basic, so I'm stuck here...
Does anyone had this issue? Or can give me a hint?

Thanx.

(I intend to use fruxepi to (besides auto-farming) reattach with linux and learn more about embedded systems, sorry if I made any confusion).

It's saying, something is already running a web server on that host, and it can't run because of it. Most likely when you installed apache it started it automatically for you. Just verify what is process is currently connected to port 80 and disable it.

@MattHoy
Copy link

MattHoy commented May 29, 2020

Run the install command with the -log flag, it will tell you what errors you're hitting, for me it required (Latest version of Raspbian on a Pi 4B)

sudo apt install python-backports.ssl-match-hostname
sudo python -m pip install backports.shutil_get_terminal_size

And replacing this line,
from backports.shutil_get_terminal_size import get_terminal_size as _get_terminal_size to
with this line,
from shutil_backports import get_terminal_size as _get_terminal_size
in this file:
/usr/local/lib/python2.7/dist-packages/compose/cli/formatter.py

@epetti
Copy link

epetti commented Jun 8, 2020

@MattHoy Thank you so much for this!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants