Balena Sound Master for Raspberry Pi 3

I am trying to get my old hifi to be wifi. My application on the balenaCloud is named Starter.

I’m running Windows 10, I go to command prompt and make sure I am in the balena-sound-master folder, and I type “balena push Starter”.

I get this error:

[Error] Could not detect project type: Service main: Could not find a Dockerfile for this service

I checked out the forum and found this :[Error] Could not detect project type - when pushing

version: ‘2’
services:
bluetooth-audio:
network_mode: host
restart: always
build: ./bluetooth-audio
privileged: true
labels:
io.balena.features.dbus: 1
io.balena.features.supervisor-api: 1
airplay:
build: ./airplay
restart: always
network_mode: host
privileged: true
labels:
io.balena.features.dbus: 1
spotify:
build: ./spotify
restart: always
network_mode: host
privileged: true
labels:
io.balena.features.dbus: 1

What am I doing wrong?

Hi,

I’ve just had a quick look, and this appears to be working correctly for me. Just to clarify, you cloned the repository, didn’t make any changes, and carried out balena push Starter?

Although the error message suggests it can’t find a Dockerfile, if you’re in the root of the repository it should be picking up the docker-compose.yml file instead. If you’re using the Windows command line, can you let us know what dir /s displays in the same directory as you’re carrying out balena push Starter?

Also, if you could run the command with DEBUG=1 prepended (eg. DEBUG=1 balena push Starter), and paste the entire output, that would also help us track down what may be going on.

Best regards,

Heds

I’m getting the exact same error message.
[edit] this is on a Pi 4B 1Gb RAM, fyi [/edit]

To answer your questions posed to the OP:

  • I did not clone it, but downloaded (and extracted) the zip. Then I started cmd (Win 10) and carried out balena push Sound_for_Bauers (as my app is called).

  • dir /s shows the docker-compose.yml present. It looks like this:
    Verzeichnis von C:\Users\micha\Downloads\balena-sound-master

    17.12.2019 21:05 .
    17.12.2019 21:05 …
    17.12.2019 21:05 balena-sound-master
    0 Datei(en), 0 Bytes

    Verzeichnis von C:\Users\micha\Downloads\balena-sound-master\balena-sound-master

    17.12.2019 21:05 .
    17.12.2019 21:05 …
    17.12.2019 21:05 .github
    17.12.2019 21:05 10 .gitignore
    17.12.2019 21:05 airplay
    17.12.2019 21:05 bluetooth-audio
    17.12.2019 21:05 3.707 CHANGELOG.md
    17.12.2019 21:05 509 CONTRIBUTING.md
    17.12.2019 21:05 572 docker-compose.yml
    17.12.2019 21:05 images
    17.12.2019 21:05 11.356 LICENSE
    17.12.2019 21:05 4.513 README.md
    17.12.2019 21:05 14 repo.yml
    17.12.2019 21:05 spotify
    17.12.2019 21:05 6 VERSION
    8 Datei(en), 20.687 Bytes

    Verzeichnis von C:\Users\micha\Downloads\balena-sound-master\balena-sound-master.github

    17.12.2019 21:05 .
    17.12.2019 21:05 …
    17.12.2019 21:05 43 CODEOWNERS
    17.12.2019 21:05 331 PULL_REQUEST_TEMPLATE.md
    2 Datei(en), 374 Bytes

    Verzeichnis von C:\Users\micha\Downloads\balena-sound-master\balena-sound-master\airplay

    17.12.2019 21:05 .
    17.12.2019 21:05 …
    17.12.2019 21:05 221 Dockerfile.template
    17.12.2019 21:05 191 start.sh
    2 Datei(en), 412 Bytes

    Verzeichnis von C:\Users\micha\Downloads\balena-sound-master\balena-sound-master\bluetooth-audio

    17.12.2019 21:05 .
    17.12.2019 21:05 …
    17.12.2019 21:05 3.369 bluetooth-agent
    17.12.2019 21:05 1.022 bluetooth-udev
    17.12.2019 21:05 722 Dockerfile.aarch64
    17.12.2019 21:05 732 Dockerfile.template
    17.12.2019 21:05 sounds
    17.12.2019 21:05 2.344 start.sh
    17.12.2019 21:05 udev-rules
    5 Datei(en), 8.189 Bytes

    Verzeichnis von C:\Users\micha\Downloads\balena-sound-master\balena-sound-master\bluetooth-audio\sounds

    17.12.2019 21:05 .
    17.12.2019 21:05 …
    17.12.2019 21:05 102.399 connect.mp3
    17.12.2019 21:05 79.411 disconnect.mp3
    2 Datei(en), 181.810 Bytes

    Verzeichnis von C:\Users\micha\Downloads\balena-sound-master\balena-sound-master\bluetooth-audio\udev-rules

    17.12.2019 21:05 .
    17.12.2019 21:05 …
    17.12.2019 21:05 74 99-bluetooth-udev.rules
    1 Datei(en), 74 Bytes

    Verzeichnis von C:\Users\micha\Downloads\balena-sound-master\balena-sound-master\images

    17.12.2019 21:05 .
    17.12.2019 21:05 …
    17.12.2019 21:05 68.984 balenaSound-logo.png
    17.12.2019 21:05 314.348 device-name-config.png
    2 Datei(en), 383.332 Bytes

    Verzeichnis von C:\Users\micha\Downloads\balena-sound-master\balena-sound-master\spotify

    17.12.2019 21:05 .
    17.12.2019 21:05 …
    17.12.2019 21:05 327 Dockerfile.aarch64
    17.12.2019 21:05 338 Dockerfile.template
    17.12.2019 21:05 443 start.sh
    3 Datei(en), 1.108 Bytes

       Anzahl der angezeigten Dateien:
                25 Datei(en),        595.986 Bytes
                26 Verzeichnis(se), 315.878.645.760 Bytes frei
    
  • the push command with debug set to true returns this:
    C:\Users\micha\Downloads\balena-sound-master>balena push Sound_for_Bauers
    [debug] original argv0=“d:\Program Files\balena-cli\bin\…\client\bin\node.exe” argv=[d:\Program Files\balena-cli\client\bin\node.exe,d:\Program Files\balena-cli\client\bin\run,push,Sound_for_Bauers] length=4
    [debug] Using . as build source
    [debug] Connecting to builder at https://builder.balena-cloud.com/v3/build?owner=bauer_newsletter&app=Sound_for_Bauers&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”:1190067}
    [debug] handling message: {“message”:"\u001b[36m[Info]\u001b[39m Starting build for Sound_for_Bauers, user bauer_newsletter"}
    [Info] Starting build for Sound_for_Bauers, user bauer_newsletter
    [debug] handling message: {“message”:"\u001b[36m[Info]\u001b[39m Dashboard link: https://dashboard.balena-cloud.com/apps/1560593/devices"}
    [Info] Dashboard link: https://dashboard.balena-cloud.com/apps/1560593/devices
    [debug] handling message: {“message”:"\u001b[31m[Error]\u001b[39m Could not detect project type: Service main: Could not find a Dockerfile for this service",“isError”:true}
    [Error] Could not detect project type: Service main: Could not find a Dockerfile for this service
    [debug] handling message: {“message”:"\u001b[31m[Error]\u001b[39m Not deploying release.",“isError”:true}
    [Error] Not deploying release.
    Remote build failed
    RemoteBuildFailedError: Remote build failed
    at Bluebird.then (d:\Program Files\balena-cli\client\build\utils\remote-build.js:56:23)
    at runCallback (timers.js:810:20)
    at tryOnImmediate (timers.js:768:5)
    at processImmediate [as _immediateCallback] (timers.js:745:5)
    From previous event:
    at Object.startRemoteBuild (d:\Program Files\balena-cli\client\build\utils\remote-build.js:54:12)
    at
    at process._tickDomainCallback (internal/process/next_tick.js:229:7)

So… what to do now?

Hi Merion,

When you extracted the downloaded project, it appears to have created yet another folder named “balena-sound-master”, and then placed all of the source code in that folder. Thus, if you navigate to the “C:\Users\micha\Downloads\balena-sound-master\balena-sound-master” folder and try again, you may be successful.

Let us know if that works, thanks!
David

slaps forehead

Of course! Win 10 does that all the time. I should have known.

Well, this happens if you start these things when already tired. Sorry for wasting your time.

No problem at all, happens to everyone - thanks for letting us know it worked!