GioF71 / tidal-connect

Simple script for configuring Tidal Connect with Docker (also on Volumio, moOde, OSMC)
MIT License
79 stars 6 forks source link

Invalid interpolation format for "tidal-connect" option in service "services": #160

Closed georgew21 closed 5 months ago

georgew21 commented 5 months ago

Hello,

I get this error:

pi@moode:~/tidal-connect $ docker-compose up -d                                                                                               
ERROR: Invalid interpolation format for "tidal-connect" option in service "services": "CARD_NAME=${CARD_NAME:-}"

I have tried ./configure.sh -f "Desktop" -m "Raspberry Pi" or ./configure.sh -i "2" -f "Desktop" -m "Raspberry Pi" but no solution.

pi@moode:~ $ cat /proc/asound/cards
 0 [b1             ]: bcm2835_hdmi - bcm2835 HDMI 1                                                                                           
                      bcm2835 HDMI 1                                                                                                          
 1 [Headphones     ]: bcm2835_headpho - bcm2835 Headphones                                                                                    
                      bcm2835 Headphones                                                                                                      
 2 [M4             ]: USB-Audio - M4                                                                                                          
                      MOTU M4 at usb-0000:01:00.0-1.2, high speed                                                                             
pi@moode:~ $

any idea about this?

GioF71 commented 5 months ago

Hello, can you post the contents of your .env file? You can do that by running this:

cd $HOME/tidal-connect
cat .env
georgew21 commented 5 months ago

This is the result:

pi@moode:~/tidal-connect $ cat .env                                                                                                           
FRIENDLY_NAME=Desktop                                                                                                                         
MODEL_NAME=Raspberry Pi                                                                                                                       
CARD_NAME=M4   
GioF71 commented 5 months ago

Hello, your .env file is OK. From what I see doing a quick google search, you might have an old version of docker-compose. We can verify it using this:

docker-compose -v

You can update your system with this:

sudo apt-get update && sudo apt-get upgrade

and respond "y" when prompted.

Also, what is your operating system?

georgew21 commented 5 months ago

I use moode and i updated system. but still the same :

pi@moode:~ $ docker-compose -v                                                                                                                
docker-compose version 1.25.0, build unknown                                                                                                  
pi@moode:~ $ cd $HOME/tidal-connect                                                                                                           
pi@moode:~/tidal-connect $ docker-compose -v                                                                                                  
docker-compose version 1.25.0, build unknown                                                                                                  
pi@moode:~/tidal-connect $ docker-compose up -d                                                                                               
ERROR: Invalid interpolation format for "tidal-connect" option in service "services": "CARD_NAME=${CARD_NAME:-}"

also i tried to install again:

pi@moode:~/tidal-connect $ sudo apt-get install docker.io docker-compose
Reading package lists... Done                                                                                                                 
Building dependency tree... Done                                                                                                              
Reading state information... Done                                                                                                             
docker-compose is already the newest version (1.25.0-1).                                                                                      
docker.io is already the newest version (20.10.5+dfsg1-1+deb11u2).                                                                            
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.                                                                               
pi@moode:~/tidal-connect $
GioF71 commented 5 months ago

Same version of docker and docker-compose on my pi4 with osmc. Didn't check the other one with moode but I have no reason to think that the problem is with the docker-compose version after your verifications.

Did you update the repository? Maybe a previous commit might have an issue. You can update and recreate the container using the following:

cd $HOME/tidal-connect
git config pull.rebase false
git pull
docker-compose up -d --force-recreate
GioF71 commented 5 months ago

Another thing, if I look at your previous post, there seem to be weird spaces after CARD_NAME=M4

image

So we might try rewriting the .env file and recreating the container:

cd $HOME/tidal-connect
echo "FRIENDLY_NAME=Desktop" > .env
echo "MODEL_NAME=Raspberry Pi" >> .env
echo "CARD_NAME=M4" >> .env
cat .env
docker-compose up -d --force-recreate
georgew21 commented 5 months ago

unfortunately, none of the above have worked.

as far as I understand the problem seems to be connected with the code. I have tried to hardcode the M4 variable directly to yaml file but then I got as error Invalid interpolation format for the next variable.

so it's about the syntax i think

GioF71 commented 5 months ago

Hello, I tried a new installation of moode and I got the same error. Let me work on it, I will possibly come back with a solution.

GioF71 commented 5 months ago

Found the issue, repeat this one more time to update the repo and recreate the container:

cd $HOME/tidal-connect
git config pull.rebase false
git pull
docker-compose up -d --force-recreate
georgew21 commented 5 months ago

yep now works fine

GioF71 commented 5 months ago

Thank you for your feedback. Please star the repo if you like the work. Thanks again