Comments (16)
I was about to remove docker support (see branch features/audio-sync).
I will merge your PR, thanks for the effort
from goplay2.
sorry for reopening this but from my low docker knowledge it seems related. when I try to build I get this error:
docker build --platform=linux/arm/v7 -t you/goplay2 . Sending build context to Docker daemon 464.7MB Step 1/22 : FROM --platform=$BUILDPLATFORM golang:1.16 as fetcher failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument
from goplay2.
In transit right now.
Will look into this asap.
from goplay2.
@beagleboys From a cursory look, my guess is that your version of docker is ancient (are you using an old distro package?).
Can we start by confirming that? (You can copy the output of 'docker info' here)
from goplay2.
I update docker veriosn to newest.
docker version
Client: Docker Engine - Community
Version: 20.10.8
API version: 1.41
Go version: go1.16.6
Git commit: 3967b7d
Built: Fri Jul 30 19:54:27 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.8
API version: 1.41 (minimum version 1.12)
Go version: go1.16.6
Git commit: 75249d8
Built: Fri Jul 30 19:52:33 2021
OS/Arch: linux/amd64
Experimental: true
containerd:
Version: 1.4.9
GitCommit: e25210fe30a0a703442421b0f60afac609f950a3
runc:
Version: 1.0.1
GitCommit: v1.0.1-0-g4144b63
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Same problem as @beagleboys
I direct set the platorm on docker file such as:
FROM --platform=linux/amd64 golang:1.16 as fetcher
...
build still failed:
Step 12/22 : RUN sed -Ei 's/main$/main non-free/g' /etc/apt/sources.list; DEB_TARGET_ARCH="$(echo "$TARGETARCH$TARGETVARIANT" | sed -e "s/^armv6$/armel/" -e "s/^armv7$/armhf/" -e "s/^ppc64le$/ppc64el/" -e "s/^386$/i386/")"; dpkg --add-architecture "$DEB_TARGET_ARCH"; apt-get update; apt-get install -qq --no-install-recommends autoconf libtool crossbuild-essential-"$DEB_TARGET_ARCH" libfdk-aac1:"$DEB_TARGET_ARCH" libfdk-aac-dev:"$DEB_TARGET_ARCH" portaudio19-dev:"$DEB_TARGET_ARCH"
---> Running in 91600bdb11d2
dpkg: error: architecture '' is reserved and cannot be added
Get:1 http://deb.debian.org/debian bullseye InRelease [113 kB]
Get:2 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [36.8 kB]
Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [25.8 kB]
Get:5 http://deb.debian.org/debian bullseye/main amd64 Packages [8178 kB]
Get:6 http://deb.debian.org/debian bullseye/non-free amd64 Packages [93.8 kB]
Fetched 8491 kB in 6s (1370 kB/s)
Reading package lists...
E: Unable to locate package crossbuild-essential
E: Unable to locate package libfdk-aac1:
The command '/bin/sh -c sed -Ei 's/main$/main non-free/g' /etc/apt/sources.list; DEB_TARGET_ARCH="$(echo "$TARGETARCH$TARGETVARIANT" | sed -e "s/^armv6$/armel/" -e "s/^armv7$/armhf/" -e "s/^ppc64le$/ppc64el/" -e "s/^386$/i386/")"; dpkg --add-architecture "$DEB_TARGET_ARCH"; apt-get update; apt-get install -qq --no-install-recommends autoconf libtool crossbuild-essential-"$DEB_TARGET_ARCH" libfdk-aac1:"$DEB_TARGET_ARCH" libfdk-aac-dev:"$DEB_TARGET_ARCH" portaudio19-dev:"$DEB_TARGET_ARCH"' returned a non-zero code: 100
from goplay2.
Same problem as @beagleboys
I do not think so. Their problem is that they run an old docker version.
I direct set the platorm on docker file such as:
FROM --platform=linux/amd64 golang:1.16 as fetcher ...
Do not do that.
You are just changing the host platform, not the target platform.
You are apparently on linux. For docker on linux, just:
docker buildx build -t whatever .
And do NOT modify the Dockerfile (you should revert your changes).
@AlbanSeurat I will send another PR with more documentation about how to use Docker for people who are not used to it and/or a bullet-proof helper script that checks version.
from goplay2.
Also, the maintainers of the golang official image changed it from buster to bullseye, effectively breaking our build.
PR also fix that.
@chenyg0911 use the dockerfile from the last PR, or manually replace golang:1.16
with golang:1.16-buster
in the Dockerfile.
from goplay2.
@dubo-dubon-duponey I have merged the PR.
let me know if this fix your issues
from goplay2.
Thanks Alban
@chenyg0911 as stated above, you just have to:
docker buildx build -t you/goplay2 .
With the latest main branch and a recent enough docker (19.03 or more recent).
from goplay2.
@beagleboys From a cursory look, my guess is that your version of docker is ancient (are you using an old distro package?).
Can we start by confirming that? (You can copy the output of 'docker info' here)
sorry for the delay(forgot I deactivated the email GitHub notifications).
I literally installed docker on a fresh copy of the rbp os using the instructions from the docker website...
pi@raspberrypi:~ $ docker -v Docker version 20.10.8, build 3967b7d
`Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Build with BuildKit (Docker Inc., v0.6.1-docker)
Server:
Containers: 4
Running: 2
Paused: 0
Stopped: 2
Images: 15
Server Version: 20.10.8
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: e25210fe30a0a703442421b0f60afac609f950a3
runc version: v1.0.1-0-g4144b63
init version: de40ad0
Security Options:
seccomp
Profile: default
Kernel Version: 5.10.52-v7+
Operating System: Raspbian GNU/Linux 10 (buster)
OSType: linux
Architecture: armv7l
CPUs: 4
Total Memory: 923.2MiB
Name: raspberrypi
ID: OH4E:LKA6:4XJZ:433W:U2XC:KVSI:VPCL:CKPK:DATW:QOIF:GHJE:56GE
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No memory limit support
WARNING: No swap limit support
WARNING: No kernel memory TCP limit support
WARNING: No oom kill disable support
WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support`
from goplay2.
@beagleboys try the provided instructions above:
docker buildx build -t you/goplay2 .
from goplay2.
@beagleboys try the provided instructions above:
docker buildx build -t you/goplay2 .
it started, then ends like this:
=> ERROR [builder 1/2] RUN sed -Ei 's/main$/main non-free/g' /etc/apt/sources.list; DEB_TARGET_ARCH="$(echo "armv7" | sed -e "s/^armv6$/armel/" -e "s/^armv7$/armhf/" -e "s/^ppc64le 3.5s
[builder 1/2] RUN sed -Ei 's/main$/main non-free/g' /etc/apt/sources.list; DEB_TARGET_ARCH="$(echo "armv7" | sed -e "s/^armv6$/armel/" -e "s/^armv7$/armhf/" -e "s/^ppc64le$/ppc64el/" -e "s/^386$/i386/")"; dpkg --add-architecture "$DEB_TARGET_ARCH"; apt-get update; apt-get install -qq --no-install-recommends autoconf libtool crossbuild-essential-"$DEB_TARGET_ARCH" libfdk-aac1:"$DEB_TARGET_ARCH" libfdk-aac-dev:"$DEB_TARGET_ARCH" portaudio19-dev:"$DEB_TARGET_ARCH":
#15 2.052 Get:1 http://deb.debian.org/debian bullseye InRelease [113 kB]
#15 2.052 Get:2 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
#15 2.127 Get:3 http://deb.debian.org/debian bullseye-updates InRelease [36.8 kB]
#15 2.437 Err:2 http://security.debian.org/debian-security bullseye-security InRelease
#15 2.437 At least one invalid signature was encountered.
#15 2.695 Err:1 http://deb.debian.org/debian bullseye InRelease
#15 2.695 At least one invalid signature was encountered.
#15 2.978 Err:3 http://deb.debian.org/debian bullseye-updates InRelease
#15 2.978 At least one invalid signature was encountered.
#15 3.006 Reading package lists...
#15 3.099 W: GPG error: http://security.debian.org/debian-security bullseye-security InRelease: At least one invalid signature was encountered.
#15 3.099 E: The repository 'http://security.debian.org/debian-security bullseye-security InRelease' is not signed.
#15 3.099 W: GPG error: http://deb.debian.org/debian bullseye InRelease: At least one invalid signature was encountered.
#15 3.099 E: The repository 'http://deb.debian.org/debian bullseye InRelease' is not signed.
#15 3.099 W: GPG error: http://deb.debian.org/debian bullseye-updates InRelease: At least one invalid signature was encountered.
#15 3.099 E: The repository 'http://deb.debian.org/debian bullseye-updates InRelease' is not signed.
#15 3.209 E: Package 'autoconf' has no installation candidate
#15 3.209 E: Package 'libtool' has no installation candidate
#15 3.209 E: Unable to locate package crossbuild-essential-armhf
#15 3.209 E: Unable to locate package libfdk-aac1:armhf
#15 3.209 E: Unable to locate package libfdk-aac-dev:armhf
#15 3.209 E: Unable to locate package portaudio19-dev:armhf
error: failed to solve: executor failed running [/bin/sh -c sed -Ei 's/main$/main non-free/g' /etc/apt/sources.list; DEB_TARGET_ARCH="$(echo "$TARGETARCH$TARGETVARIANT" | sed -e "s/^armv6$/armel/" -e "s/^armv7$/armhf/" -e "s/^ppc64le$/ppc64el/" -e "s/^386$/i386/")"; dpkg --add-architecture "$DEB_TARGET_ARCH"; apt-get update; apt-get install -qq --no-install-recommends autoconf libtool crossbuild-essential-"$DEB_TARGET_ARCH" libfdk-aac1:"$DEB_TARGET_ARCH" libfdk-aac-dev:"$DEB_TARGET_ARCH" portaudio19-dev:"$DEB_TARGET_ARCH"]: exit code: 100
please note: it runs only with sudo
from goplay2.
@beagleboys can you copy the relevant part of the logs please? This does not show the error.
Also did you update to the latest commit?
from goplay2.
@beagleboys
Also did you update to the latest commit?
^ it does not seem like you did
Also, are you in China?
from goplay2.
@beagleboys can you copy the relevant part of the logs please? This does not show the error.
this is the output of the command with all the errors. where do I find the log?
Also did you update to the latest commit?
I think I did. but I'll re download it to be sure.
from goplay2.
@beagleboys can you copy the relevant part of the logs please? This does not show the error.
this is the output of the command with all the errors. where do I find the log?
Also did you update to the latest commit?
I think I did. but I'll re download it to be sure.
ok, after I deleted and redownloaded the last commit it worked. it has issues with pulse audio but I got it working
from goplay2.
Related Issues (19)
- Thanks for making this a reality! Requests: Multiple instances, Audio output routing, Volume Control HOT 13
- After some seconds or song change, sound is gone HOT 12
- build failure on Raspberry Pi B+ HOT 4
- Audio delay with HomePod Mini HOT 1
- Failed building docker image on Raspi 4 HOT 2
- Feature request: ability to have configuration in a user specified directory
- Issues with CFLAGS and LDFLAGS HOT 4
- Best way to run GoPlay on RPi at boot up? HOT 2
- "Error parsing RSTP request close tcp4" when playing to two GoPlay2 devices at once HOT 3
- Don't run. HOT 3
- Error after several minutes HOT 1
- Unable to Pair on iOS 15 beta 6 HOT 16
- ALSA output HOT 17
- SIGSEGV when switching songs fast HOT 4
- Can't control goplay2 accessory on iOS/iPadOS 15 with HomeKit HOT 3
- Build fails on Mac OS HOT 5
- Stopped working with iOS version 15.1 HOT 3
- AirPlay 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goplay2.