michaelmob / docker-funkwhale

All-in-one funkwhale docker image.
92 stars 18 forks source link

Issue with image build : "One or more build-args [armv7l] were not consumed." #34

Open madrumo opened 4 years ago

madrumo commented 4 years ago

First of all, I'm new with GitHub so feel free to correct me if I'm not using the issue section properly.

Describe the bug I'm trying to install and run the funkwhale container on a RaspberryPi 4 and therefore to build the image since the cpu don't have a amd64 architecture. After defining the arguments, the build seems to be achieved but with the mention :

[Warning] One or more build-args [armv7l] were not consumed

appearing in the terminal.

When I run the obtained image into a container, I get an error in the logs and the container exit right away unless I configure it on "unless stopped" (and in that case it restarts indefinitely).

Logs Please submit relevant logs between three backticks.

# Stdout
standard_init_linux.go:211: exec user process caused "exec format error"

I assumed that maybe I didn't declare my [arch] variable properly, so I tried with the architecture "arm", "ARM", "armv7" and "armv7l" and I got the same results.

Options I assumed that maybe I didn't declare my [arch] variable properly, so I tried with the architecture "arm", "ARM", "armv7" and "armv7l" and I got the same results.

System information

Thank you for your help (and obviously your work), I hope I wrote this issue properly.

arg274 commented 4 years ago

Same standard_init_linux.go:211: exec user process caused "exec format error" for me as well. And the image was built using arch="ARM".

Not sure if issues are maintained anymore. There's barely any activity in this repo.

madrumo commented 4 years ago

I resolved the problem by using this procedure with version 0.20.1 : https://simonlefort.be/wiki/doku.php?id=funkwhale

I still have this error when trying to upgrading postgres 10 to 11 to update funkwhale to 0.21, but for a clean install of 0.21 there might not be a problem.

I'm currently searching how to update postgresql from 10 to 11, because the image to do it with docker is for intel architecture and I've not found how to build it for arm.

arg274 commented 4 years ago

I just got it running (0.21-rc1+git.0a26fceb). The issue was that the arch was hard-coded into the Dockerfile and so it was compiling for amd64 all along. I edited the dockerfile and set the arch to armhf so that it could get the proper version of this.