Spotify not login / (-0600) <spotify> error: Unrecognized option: 'username

Hello

This is my first project with raspberry, I already did the steps in the guide for the balena Sound, I already added the system variables and I found that the following are not working:

Environment variable
SOUND_SPOTIFY_USERNAME
SOUND_SPOTIFY_PASSWORD

since I found in the log that it did not recognize the username and password option.

They know what has to be corrected so that it can connect to spotify
Here is part of the log of the spotify service

27.10.20 22:55:43 (-0600) Device name: PHEONIX-SOUND
27.10.20 22:55:43 (-0600) Using provided credentials for Spotify login.

27.10.20 22:55:43 (-0600) error: Unrecognized option: 'username “xxxx” --password “xxxx”'

27.10.20 22:55:43 (-0600) Usage: /usr/bin/librespot [options]
27.10.20 22:55:43 (-0600)
27.10.20 22:55:43 (-0600) Options:
27.10.20 22:55:43 (-0600) -c, --cache CACHE Path to a directory where files will be cached.
27.10.20 22:55:43 (-0600) --disable-audio-cache
27.10.20 22:55:43 (-0600) Disable caching of the audio data.
27.10.20 22:55:43 (-0600) -n, --name NAME Device name
27.10.20 22:55:43 (-0600) --device-type DEVICE_TYPE
27.10.20 22:55:43 (-0600) Displayed device type
27.10.20 22:55:43 (-0600) -b, --bitrate BITRATE
27.10.20 22:55:43 (-0600) Bitrate (96, 160 or 320). Defaults to 160
27.10.20 22:55:43 (-0600) --onevent PROGRAM
27.10.20 22:55:43 (-0600) Run PROGRAM when playback is about to begin.
27.10.20 22:55:43 (-0600) -v, --verbose Enable verbose output
27.10.20 22:55:43 (-0600) -u, --username USERNAME
27.10.20 22:55:43 (-0600) Username to sign in with
27.10.20 22:55:43 (-0600) -p, --password PASSWORD
27.10.20 22:55:43 (-0600) Password
27.10.20 22:55:43 (-0600) --proxy PROXY HTTP proxy to use when connecting
27.10.20 22:55:43 (-0600) --ap-port AP_PORT
27.10.20 22:55:43 (-0600) Connect to AP with specified port. If no AP with that
27.10.20 22:55:43 (-0600) port are present fallback AP will be used. Available
27.10.20 22:55:43 (-0600) ports are usually 80, 443 and 4070
27.10.20 22:55:43 (-0600) --disable-discovery
27.10.20 22:55:43 (-0600) Disable discovery mode
27.10.20 22:55:43 (-0600) --backend BACKEND
27.10.20 22:55:43 (-0600) Audio backend to use. Use ‘?’ to list options
27.10.20 22:55:43 (-0600) --device DEVICE Audio device to use. Use ‘?’ to list options if using
27.10.20 22:55:43 (-0600) portaudio or alsa
27.10.20 22:55:43 (-0600) --mixer MIXER Mixer to use (alsa or softvol)
27.10.20 22:55:43 (-0600) -m, --mixer-name MIXER_NAME
27.10.20 22:55:43 (-0600) Alsa mixer name, e.g “PCM” or “Master”. Defaults to
27.10.20 22:55:43 (-0600) ‘PCM’
27.10.20 22:55:43 (-0600) --mixer-card MIXER_CARD
27.10.20 22:55:43 (-0600) Alsa mixer card, e.g “hw:0” or similar from aplay 27.10.20 22:55:43 (-0600) <spotify> -l. Defaults to ‘default’
27.10.20 22:55:43 (-0600) --mixer-index MIXER_INDEX
27.10.20 22:55:43 (-0600) Alsa mixer index, Index of the cards mixer. Defaults
27.10.20 22:55:43 (-0600) to 0
27.10.20 22:55:43 (-0600) --initial-volume VOLUME
27.10.20 22:55:43 (-0600) Initial volume in %, once connected (must be from 0 to
27.10.20 22:55:43 (-0600) 100)
27.10.20 22:55:43 (-0600) --zeroconf-port ZEROCONF_PORT
27.10.20 22:55:43 (-0600) The port the internal server advertised over zeroconf
27.10.20 22:55:43 (-0600) uses.
27.10.20 22:55:43 (-0600) --enable-volume-normalisation
27.10.20 22:55:43 (-0600) Play all tracks at the same volume
27.10.20 22:55:43 (-0600) --normalisation-pregain PREGAIN
27.10.20 22:55:43 (-0600) Pregain (dB) applied by volume normalisation
27.10.20 22:55:43 (-0600) --linear-volume
27.10.20 22:55:43 (-0600) increase volume linear instead of logarithmic.
27.10.20 22:55:43 (-0600) --autoplay autoplay similar songs when your music ends.
27.10.20 22:55:43 (-0600) --disable-gapless
27.10.20 22:55:43 (-0600) disable gapless playback.
27.10.20 22:55:43 (-0600)

Thanks for you help

Regards

Hey @luisfvan

welcome to the forums.
Can you confirm that you do not have double quotes(") for the values of SOUND_SPOTIFY_USERNAME and SOUND_SPOTIFY_PASSWORD ?

Also, are you using the latest balenaSound version?

Hello

I add the variables and values in the portal, example image

Regards

Hello

I have this version balenaOS 2.54.2+rev1 and Supervisor Version 11.12.4

I think that error could be that the parameter for user is incorrectly defined, if you see it does not have two hyphens and that is why option not recognized

27.10.20 22:55:43 (-0600) error: Unrecognized option: 'username “luisxxx@mail” --password “xxxxx”’

27.10.20 22:55:43 (-0600) -u, --username USERNAME
27.10.20 22:55:43 (-0600) Username to sign in with
27.10.20 22:55:43 (-0600) -p, --password PASSWORD
27.10.20 22:55:43 (-0600) Password

Regards

Hi Luis, balenaSound maintainer here. Thanks for bringing this to my attention. This is indeed a bug in balenaSound. I’ve created this PR to fix it, it should be merged into master in the next few minutes and available as of v3.1.11.

In order to get the update you should re-deploy balenaSound following the steps outlined in the guide you followed initially.

Hi Tom

Thanks to you, for your help so fast.

My best regards