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

Unable to locate package bluealsa #19

Closed
danielsteiner opened this issue Aug 8, 2019 · 19 comments
Closed

Unable to locate package bluealsa #19

danielsteiner opened this issue Aug 8, 2019 · 19 comments

Comments

@danielsteiner
Copy link

I just tried to push this project to my raspberry but I get an error when it tries to download bluealsa.

[Info]             Dashboard link: https://dashboard.balena-cloud.com/apps/1499654/devices
[Info]             Building on arm01
[Info]             Pulling previous images for caching purposes...
[Success]          Successfully pulled cache images
[bluetooth-audio]  Step 1/13 : FROM balenalib/raspberrypi3-64:stretch
[bluetooth-audio]   ---> 2c6daafcf5bf
[bluetooth-audio]  Step 2/13 : ENV DBUS_SYSTEM_BUS_ADDRESS unix:path=/host/run/dbus/system_bus_socket
[bluetooth-audio]  Using cache
[bluetooth-audio]   ---> c9e969ef66c9
[bluetooth-audio]  Step 3/13 : ENV UDEV 1
[bluetooth-audio]  Using cache
[bluetooth-audio]   ---> c3176c9feb77
[bluetooth-audio]  Step 4/13 : RUN install_packages   alsa-utils   bluealsa   bluez   python-gobject   python-dbus   mplayer
[bluetooth-audio]   ---> Running in 60fe2abc1a76
[bluetooth-audio]  Reading package lists...
[bluetooth-audio]  Building dependency tree...
[bluetooth-audio]  Reading state information...
[bluetooth-audio]  E: Unable to locate package bluealsa
[bluetooth-audio]
[bluetooth-audio]  apt failed, retrying
[bluetooth-audio]  Reading package lists...
[bluetooth-audio]  Building dependency tree...
[bluetooth-audio]  Reading state information...
[bluetooth-audio]  E: Unable to locate package bluealsa
[bluetooth-audio]
[bluetooth-audio]  apt failed, retrying
[bluetooth-audio]  Reading package lists...
[bluetooth-audio]  Building dependency tree...
[bluetooth-audio]  Reading state information...
[bluetooth-audio]  E: Unable to locate package bluealsa
[bluetooth-audio]
[bluetooth-audio]  Removing intermediate container 60fe2abc1a76
[Info]             Uploading images
[bluetooth-audio]  The command '/bin/sh -c install_packages   alsa-utils   bluealsa   bluez   python-gobject   python-dbus   mplayer' returned a non-zero code: 100
[Success]          Successfully uploaded images
[Error]            Some services failed to build:
[Error]              Service: bluetooth-audio
[Error]                Error: The command '/bin/sh -c install_packages   alsa-utils   bluealsa   bluez   python-gobject   python-dbus   mplayer' returned a non-zero code: 100
[Error]            Not deploying release.
@chrisys
Copy link
Member

chrisys commented Aug 15, 2019

@danielsteiner I see you're using the 64-bit Raspberry Pi 3 image, could you try with the regular Raspberry Pi 3 image?

@Jamdoog
Copy link

Jamdoog commented Aug 25, 2019

Where do I find the regular Raspberry Pi 3 image? I cannot find it on Balena dashboard...

@chrisys
Copy link
Member

chrisys commented Aug 26, 2019

@Jamdoog I replied to your forum post but in case anybody else sees this... You can’t (currently) mix 32 and 64bit Raspberry Pi devices within the same application, so the fact you’ve set the application default as 64bit Raspberry Pi means that this is the only one of the two devices that you can select on the add new device screen. If you create a new application using Raspberry Pi 3 as the default then you’ll be able to add one.

@chrisys chrisys closed this as completed Aug 29, 2019
@xginn8
Copy link
Contributor

xginn8 commented Sep 2, 2019

@chrisys maybe worth noting this in the blog post/README?

@danawoodman
Copy link

danawoodman commented Oct 1, 2019

There are no options for RPi 4 non-64bit in the new application modal:

@chrisys
Copy link
Member

chrisys commented Oct 1, 2019

@danawoodman Raspberry Pi 4 is 64-bit only.

@danawoodman
Copy link

danawoodman commented Oct 1, 2019

@chrisys well the above error occurs when I follow the tutorial and run balena push <project> on a RPi4 with:

E: Unable to locate package bluealsa

Full dump:

balena push stereo
[Info]             Starting build for stereo, user REDACTED
[Info]             Dashboard link: REDACTED
[Info]             Building on arm01
[Info]             Pulling previous images for caching purposes...
[Success]          Successfully pulled cache images
[bluetooth-audio]  Step 1/13 : FROM balenalib/raspberrypi4-64:stretch
[bluetooth-audio]   ---> c5a031ecafaa
[bluetooth-audio]  Step 2/13 : ENV DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket
[bluetooth-audio]   ---> Running in fddd82745758
[bluetooth-audio]  Removing intermediate container fddd82745758
[bluetooth-audio]   ---> e68be5e9d77e
[bluetooth-audio]  Step 3/13 : ENV UDEV=1
[bluetooth-audio]   ---> Running in 4510632f8d9f
[bluetooth-audio]  Removing intermediate container 4510632f8d9f
[bluetooth-audio]   ---> 20b3d2c3d191
[bluetooth-audio]  Step 4/13 : RUN install_packages   alsa-utils   bluealsa   bluez   python-gobject   python-dbus   mplayer
[bluetooth-audio]   ---> Running in 4bacea083b2f
[bluetooth-audio]  Reading package lists...
[bluetooth-audio]  Building dependency tree...
[bluetooth-audio]  Reading state information...
[bluetooth-audio]  E: Unable to locate package bluealsa
[bluetooth-audio]
[bluetooth-audio]  apt failed, retrying
[bluetooth-audio]  Reading package lists...
[bluetooth-audio]  Building dependency tree...
[bluetooth-audio]  Reading state information...
[bluetooth-audio]  E: Unable to locate package bluealsa
[bluetooth-audio]
[bluetooth-audio]  apt failed, retrying
[bluetooth-audio]  Reading package lists...
[bluetooth-audio]  Building dependency tree...
[bluetooth-audio]  Reading state information...
[bluetooth-audio]  E: Unable to locate package bluealsa
[bluetooth-audio]
[bluetooth-audio]  Removing intermediate container 4bacea083b2f
[bluetooth-audio]  The command '/bin/sh -c install_packages   alsa-utils   bluealsa   bluez   python-gobject   python-dbus   mplayer' returned a non-zero code: 100
[Info]             Uploading images
[Success]          Successfully uploaded images
[Error]            Some services failed to build:
[Error]              Service: bluetooth-audio
[Error]                Error: The command '/bin/sh -c install_packages   alsa-utils   bluealsa   bluez   python-gobject   python-dbus   mplayer' returned a non-zero code: 100
[Info]             Built on arm01
[Error]            Not deploying release.
Remote build failed

Additional information may be available by setting a DEBUG=1 environment
variable: "set DEBUG=1" on a Windows command prompt, or "export DEBUG=1"
on Linux or macOS.

If you need help, don't hesitate in contacting our support forums at
https://forums.balena.io

For bug reports or feature requests, have a look at the GitHub issues or
create a new one at: https://github.com/balena-io/balena-cli/issues/

With DEBUG=1:

DEBUG=1 balena push stereo
[debug] original argv0="/usr/local/lib/balena-cli/bin/node" argv=[/usr/local/lib/balena-cli/bin/node,/usr/local/lib/balena-cli/bin/run,push,stereo] length=4
[debug] Using . as build source
[debug] Connecting to builder at https://builder.balena-cloud.com/v3/build?owner=gh_danawoodman&app=stereo&dockerfilePath=&emulated=false&nocache=false&headless=false
/ Uploading source package to balena cloud[debug] received HTTP 200 OK
[debug] handling message: {"type":"metadata","resource":"buildLogId","value":1087045}
[debug] handling message: {"message":"\u001b[36m[Info]\u001b[39m             Starting build for stereo, user REDACTED"}
[Info]             Starting build for stereo, user REDACTED
[debug] handling message: {"message":"\u001b[36m[Info]\u001b[39m             Dashboard link: REDACTED"}
[Info]             Dashboard link: REDACTED
[debug] handling message: {"message":"\u001b[36m[Info]\u001b[39m             Building on arm03"}
[Info]             Building on arm03
[debug] handling message: {"message":"\u001b[36m[Info]\u001b[39m             Pulling previous images for caching purposes..."}
[Info]             Pulling previous images for caching purposes...
[debug] handling message: {"type":"metadata","resource":"cursor","value":"erase"}
[debug] handling message: {"message":"\u001b[32m[Success]\u001b[39m          Successfully pulled cache images"}
[Success]          Successfully pulled cache images
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  Step 1/13 : FROM balenalib/raspberrypi4-64:stretch"}
[bluetooth-audio]  Step 1/13 : FROM balenalib/raspberrypi4-64:stretch
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m   ---> c5a031ecafaa"}
[bluetooth-audio]   ---> c5a031ecafaa
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  Step 2/13 : ENV DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket"}
[bluetooth-audio]  Step 2/13 : ENV DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  \u001b[42m\u001b[30mUsing cache\u001b[39m\u001b[49m"}
[bluetooth-audio]  Using cache
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m   ---> 7b3476a9f023"}
[bluetooth-audio]   ---> 7b3476a9f023
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  Step 3/13 : ENV UDEV=1"}
[bluetooth-audio]  Step 3/13 : ENV UDEV=1
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  \u001b[42m\u001b[30mUsing cache\u001b[39m\u001b[49m"}
[bluetooth-audio]  Using cache
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m   ---> 20b3d2c3d191"}
[bluetooth-audio]   ---> 20b3d2c3d191
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  Step 4/13 : RUN install_packages   alsa-utils   bluealsa   bluez   python-gobject   python-dbus   mplayer"}
[bluetooth-audio]  Step 4/13 : RUN install_packages   alsa-utils   bluealsa   bluez   python-gobject   python-dbus   mplayer
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m   ---> Running in 1ed6b5caf41b"}
[bluetooth-audio]   ---> Running in 1ed6b5caf41b
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  Reading package lists..."}
[bluetooth-audio]  Reading package lists...
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  Building dependency tree..."}
[bluetooth-audio]  Building dependency tree...
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  Reading state information..."}
[bluetooth-audio]  Reading state information...
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  \u001b[91mE: Unable to locate package bluealsa"}
[bluetooth-audio]  E: Unable to locate package bluealsa
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  \u001b[0m"}
[bluetooth-audio]
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  apt failed, retrying"}
[bluetooth-audio]  apt failed, retrying
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  Reading package lists..."}
[bluetooth-audio]  Reading package lists...
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  Building dependency tree..."}
[bluetooth-audio]  Building dependency tree...
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  Reading state information..."}
[bluetooth-audio]  Reading state information...
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  \u001b[91mE: Unable to locate package bluealsa"}
[bluetooth-audio]  E: Unable to locate package bluealsa
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  \u001b[0m"}
[bluetooth-audio]
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  apt failed, retrying"}
[bluetooth-audio]  apt failed, retrying
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  Reading package lists..."}
[bluetooth-audio]  Reading package lists...
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  Building dependency tree..."}
[bluetooth-audio]  Building dependency tree...
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  Reading state information..."}
[bluetooth-audio]  Reading state information...
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  \u001b[91mE: Unable to locate package bluealsa"}
[bluetooth-audio]  E: Unable to locate package bluealsa
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  \u001b[0m"}
[bluetooth-audio]
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  Removing intermediate container 1ed6b5caf41b"}
[bluetooth-audio]  Removing intermediate container 1ed6b5caf41b
[debug] handling message: {"message":"\u001b[34m[bluetooth-audio]\u001b[39m  \u001b[31mThe command '/bin/sh -c install_packages   alsa-utils   bluealsa   bluez   python-gobject   python-dbus   mplayer' returned a non-zero code: 100\u001b[39m"}
[bluetooth-audio]  The command '/bin/sh -c install_packages   alsa-utils   bluealsa   bluez   python-gobject   python-dbus   mplayer' returned a non-zero code: 100
[debug] handling message: {"message":"\u001b[36m[Info]\u001b[39m             Uploading images"}
[Info]             Uploading images
[debug] handling message: {"message":"[==================================================>] 100%","replace":true}
[==================================================>] 100%[debug] handling message: {"message":"[==================================================>] 100%","replace":true}
[==================================================>] 100%[debug] handling message: {"type":"metadata","resource":"cursor","value":"erase"}
[debug] handling message: {"message":"\u001b[32m[Success]\u001b[39m          Successfully uploaded images"}
[Success]          Successfully uploaded images
[debug] handling message: {"message":"\u001b[31m[Error]\u001b[39m            Some services failed to build:","isError":true}
[Error]            Some services failed to build:
[debug] handling message: {"message":"\u001b[31m[Error]\u001b[39m              Service: bluetooth-audio","isError":true}
[Error]              Service: bluetooth-audio
[debug] handling message: {"message":"\u001b[31m[Error]\u001b[39m                Error: The command '/bin/sh -c install_packages   alsa-utils   bluealsa   bluez   python-gobject   python-dbus   mplayer' returned a non-zero code: 100","isError":true}
[Error]                Error: The command '/bin/sh -c install_packages   alsa-utils   bluealsa   bluez   python-gobject   python-dbus   mplayer' returned a non-zero code: 100
[debug] handling message: {"message":"\u001b[36m[Info]\u001b[39m             Built on arm03"}
[Info]             Built on arm03
[debug] handling message: {"message":"\u001b[31m[Error]\u001b[39m            Not deploying release.","isError":true}
[Error]            Not deploying release.
RemoteBuildFailedError: Remote build failed
    at Bluebird.then (/usr/local/lib/balena-cli/build/utils/remote-build.js:56:23)
    at tryCatcher (/usr/local/lib/balena-cli/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/balena-cli/node_modules/bluebird/js/release/promise.js:517:31)
    at Promise._settlePromise (/usr/local/lib/balena-cli/node_modules/bluebird/js/release/promise.js:574:18)
    at Promise._settlePromise0 (/usr/local/lib/balena-cli/node_modules/bluebird/js/release/promise.js:619:10)
    at Promise._settlePromises (/usr/local/lib/balena-cli/node_modules/bluebird/js/release/promise.js:699:18)
    at _drainQueueStep (/usr/local/lib/balena-cli/node_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/usr/local/lib/balena-cli/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/usr/local/lib/balena-cli/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/usr/local/lib/balena-cli/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
    at process.topLevelDomainCallback (domain.js:126:23)

If you need help, don't hesitate in contacting our support forums at
https://forums.balena.io

For bug reports or feature requests, have a look at the GitHub issues or
create a new one at: https://github.com/balena-io/balena-cli/issues/

@chrisys
Copy link
Member

chrisys commented Oct 1, 2019

@danawoodman this project doesn't support 64-bit OS (and hence Raspberry Pi 4)... yet. There's an issue open here: #25

@danawoodman
Copy link

Ah damn, ok, wish I would have know that before I started 😢 I'll try with a Pi 3

@chrisys
Copy link
Member

chrisys commented Oct 1, 2019

@danawoodman I'm taking a look at running it on a Pi 4 right now, but yeah if you try a Pi 3 (not 64-bit), you should be set!

@chrisys
Copy link
Member

chrisys commented Oct 1, 2019

@danawoodman if you edit the first line of bluetooth-audio/Dockerfile.template to read FROM balenalib/raspberrypi3:stretch, it might work on your Pi 4.

@chrisys
Copy link
Member

chrisys commented Oct 1, 2019

@danawoodman sorry for the multiple mentions but wanted to let you know incase you were still working on it, I just opened a PR with a simple fix to get it running on Pi 4 (essentially forcing a 32-bit image). It likely won't be merged until tomorrow but the branch is here if you wanted to try it: https://github.com/balena-io-projects/balena-sound/tree/support-pi4

@danawoodman
Copy link

@chrisys thanks for the fast action! I will give the new Pi 4 support a test!

I tried on a Pi 3 and could never pair my devices, so hopefully the Pi 4 support does the trick!

@chrisys
Copy link
Member

chrisys commented Oct 3, 2019

@danawoodman that's unusual, the Pi 3 is usually pretty solid. If you still have trouble with the Pi 4 open an issue and let me know what devices you're trying and I'll take a look.

@danawoodman
Copy link

@chrisys when I get some free time again I will dive back in and try it. Before it would just boot me out via SSH even after making sure the item was not in known_hosts

@danawoodman
Copy link

I was able to get RPi 4 working on the latest branch! At first it was acting strange but I rebooted and it seems to work pretty well! I'll report back if I find any issues

@chrisys
Copy link
Member

chrisys commented Oct 8, 2019

@danawoodman great stuff, thanks for the feedback!

@danawoodman
Copy link

So far the Pi 4 has been working solidly 👍

@chrisys
Copy link
Member

chrisys commented Oct 12, 2019

@danawoodman great to hear, cheers!

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

5 participants