question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spotify Plugin cannot start, due to an argument error

See original GitHub issue

Describe the problem The spotify plugin is unable to start due to the following error:

error: Unrecognized option: 'linear-volume'

To Reproduce I cannot assure that this error is reproducable, but I deployed the currently latest commit (31d2ab1) to balenaCloud. balenaCloud is showing the release as 37c9432abe4d0d1305ddc8723f94fa2a however.

Expected behavior The service should start, shouldn’t it? 😄

Logs The following log is presented:

 spotify  Starting Spotify plugin...
 spotify  Device name: XXXXXXXXXXX
 spotify  Volume normalization enabled.
 spotify  error: Unrecognized option: 'linear-volume'
 spotify  Usage: /usr/bin/librespot [options]
 spotify  
 spotify  Options:
 spotify      -c, --cache CACHE   Path to a directory where files will be cached.
 spotify          --disable-audio-cache 
 spotify                          Disable caching of the audio data.
 spotify      -n, --name NAME     Device name
 spotify          --device-type DEVICE_TYPE
 spotify                          Displayed device type
 spotify      -b, --bitrate BITRATE
 spotify                          Bitrate (96, 160 or 320). Defaults to 160
 spotify          --onevent PROGRAM
 spotify                          Run PROGRAM when playback is about to begin.
 spotify          --emit-sink-events 
 spotify                          Run program set by --onevent before sink is opened and
 spotify                          after it is closed.
 spotify      -v, --verbose       Enable verbose output
 spotify      -u, --username USERNAME
 spotify                          Username to sign in with
 spotify      -p, --password PASSWORD
 spotify                          Password
 spotify          --proxy PROXY   HTTP proxy to use when connecting
 spotify          --ap-port AP_PORT
 spotify                          Connect to AP with specified port. If no AP with that
 spotify                          port are present fallback AP will be used. Available
 spotify                          ports are usually 80, 443 and 4070
 spotify          --disable-discovery 
 spotify                          Disable discovery mode
 spotify          --backend BACKEND
 spotify                          Audio backend to use. Use '?' to list options
 spotify          --device DEVICE Audio device to use. Use '?' to list options if using
 spotify                          portaudio or alsa
 spotify          --mixer MIXER   Mixer to use (alsa or softvol)
 spotify      -m, --mixer-name MIXER_NAME
 spotify                          Alsa mixer name, e.g "PCM" or "Master". Defaults to
 spotify                          'PCM'
 spotify          --mixer-card MIXER_CARD
 spotify                          Alsa mixer card, e.g "hw:0" or similar from `aplay
 spotify                          -l`. Defaults to 'default'
 spotify          --mixer-index MIXER_INDEX
 spotify                          Alsa mixer index, Index of the cards mixer. Defaults
 spotify                          to 0
 spotify          --mixer-linear-volume 
 spotify                          Disable alsa's mapped volume scale (cubic). Default
 spotify                          false
 spotify          --initial-volume VOLUME
 spotify                          Initial volume in %, once connected (must be from 0 to
 spotify                          100)
 spotify          --zeroconf-port ZEROCONF_PORT
 spotify                          The port the internal server advertised over zeroconf
 spotify                          uses.
 spotify          --enable-volume-normalisation 
 spotify                          Play all tracks at the same volume
 spotify          --normalisation-pregain PREGAIN
 spotify                          Pregain (dB) applied by volume normalisation
 spotify          --volume-ctrl VOLUME_CTRL
 spotify                          Volume control type - [linear, log, fixed]. Default is
 spotify                          logarithmic
 spotify          --autoplay      autoplay similar songs when your music ends.
 spotify          --disable-gapless 
 spotify                          disable gapless playback.
 spotify  

Device information

  • Board (hardware info):Raspberry Pi 3B+ and Raspberry Pi 4B 4GB
  • Device type (as seen in balenaCloud): Raspberry Pi 3 and Raspberry Pi 4
  • balenaOS version: balenaOS v2.60.1+rev1 and balenaOS v2.65.0+rev1

Additional context Ok, so from the logs there are two possible options as replacement for --linear-volume:

  1. --mixer-linear-volume and
  2. --volume-ctrl linear

The first option does not seem to be documented in the libresport wiki, so I would guess option two may be preferable. But as a new user to this project, I am not sure, what the old option was targeting.

I hope I could help.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
wusala01commented, Dec 31, 2020
0reactions
shawajcommented, Dec 31, 2020

thanks to you @eiddor and @wusala01 for testing and reporting.

For reference this also relates to this forum thread - https://forums.balena.io/t/spotify-error-error-unrecognized-option-linear-volume/230187

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spotify Plugin cannot start, due to an argument error #386
Describe the problem The spotify plugin is unable to start due to the following error: error: Unrecognized option: 'linear-volume' To ...
Read more >
Failed to execute goal com.spotify:dockerfile-maven-plugin ...
Solved: In my case it was wrong version of dockerfile-maven-plugin . I used 1.3. 6 , and 1.4.
Read more >
New Volumio Spotify Plugin Open Beta-Testing
Problem to play album, i can't play a full album, I have to launch a particular song then skipping doesn't work with strange...
Read more >
Spotify error running with Lastify plugin - Techyv.com
Hello, I am getting the following error message using Spotify as its showing Spotify has not been tested with the plugin Lastify.
Read more >
Bug listing with status CONFIRMED as at 2022/12/26 10:46:31
trapdoor2 (new ebuild)" status:CONFIRMED resolution: severity:enhancement · Bug:56360 - "app-misc/shunt-1.6.3 - restart processes in a pipe without breaking ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found