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

Invalid --autoplay / -A in librespot #673

Closed
7 tasks done
TupaNegreiros opened this issue Sep 18, 2024 · 8 comments · Fixed by #674
Closed
7 tasks done

Invalid --autoplay / -A in librespot #673

TupaNegreiros opened this issue Sep 18, 2024 · 8 comments · Fixed by #674

Comments

@TupaNegreiros
Copy link

Compatible Device

  • I'm running Raspotify on a compatible Device

Are you sure?

  • I'm not trying to run Raspotify on a ARMv6 device

Compatible OS

  • I'm running Raspotify on a compatible OS

Compatible Configuration

  • I'm running Raspotify on a compatible Configuration

Latest Version

  • I'm running the latest version of Raspotify

Are you sure?

  • I'm not running Raspotify 0.31.8.1 on a Pi v1 or Pi Zero

Due Diligence

  • I have done my due diligence

What happened?

Raspotify worked for years and stopped today.

service raspotify status shows:
set 18 09:38:08 raspberrypi systemd[1]: Started Raspotify (Spotify Connect Client).
set 18 09:38:08 raspberrypi librespot[7213]: [2024-09-18T12:38:08Z ERROR librespot] Invalid --autoplay / -A: ""
set 18 09:38:08 raspberrypi librespot[7213]: Valid --autoplay / -A values: on, off
set 18 09:38:08 raspberrypi systemd[1]: raspotify.service: Main process exited, code=exited, status=1/FAILURE
set 18 09:38:08 raspberrypi systemd[1]: raspotify.service: Failed with result 'exit-code'.
set 18 09:38:08 raspberrypi systemd[1]: raspotify.service: Triggering OnFailure= dependencies.

Relevant log output and/or the contents of /etc/raspotify/crash_report if any ( sudo journalctl -u raspotify -b and sudo cat /etc/raspotify/crash_report )

-- System Info --

Linux raspberrypi 6.1.21-v7+ #1642 SMP Mon Apr  3 17:20:52 BST 2023 armv7l GNU/Linux
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

-- Logs --

set 18 09:37:10 raspberrypi librespot[5420]: [2024-09-18T12:37:05Z ERROR librespot] Invalid `--autoplay` / `-A`: ""
set 18 09:37:10 raspberrypi librespot[5420]: Valid `--autoplay` / `-A` values: on, off
set 18 09:37:05 raspberrypi systemd[1]: raspotify.service: Main process exited, code=exited, status=1/FAILURE
set 18 09:37:05 raspberrypi systemd[1]: raspotify.service: Failed with result 'exit-code'.
set 18 09:37:05 raspberrypi systemd[1]: raspotify.service: Triggering OnFailure= dependencies.
set 18 09:37:21 raspberrypi systemd[1]: Started Raspotify (Spotify Connect Client).
set 18 09:37:21 raspberrypi librespot[5784]: [2024-09-18T12:37:21Z ERROR librespot] Invalid `--autoplay` / `-A`: ""
set 18 09:37:21 raspberrypi librespot[5784]: Valid `--autoplay` / `-A` values: on, off
set 18 09:37:21 raspberrypi systemd[1]: raspotify.service: Main process exited, code=exited, status=1/FAILURE
set 18 09:37:21 raspberrypi systemd[1]: raspotify.service: Failed with result 'exit-code'.
set 18 09:37:21 raspberrypi systemd[1]: raspotify.service: Triggering OnFailure= dependencies.
set 18 09:37:33 raspberrypi systemd[1]: Started Raspotify (Spotify Connect Client).
set 18 09:37:33 raspberrypi librespot[6142]: [2024-09-18T12:37:33Z ERROR librespot] Invalid `--autoplay` / `-A`: ""
set 18 09:37:33 raspberrypi librespot[6142]: Valid `--autoplay` / `-A` values: on, off
set 18 09:37:33 raspberrypi systemd[1]: raspotify.service: Main process exited, code=exited, status=1/FAILURE
set 18 09:37:33 raspberrypi systemd[1]: raspotify.service: Failed with result 'exit-code'.
set 18 09:37:33 raspberrypi systemd[1]: raspotify.service: Triggering OnFailure= dependencies.
set 18 09:37:44 raspberrypi systemd[1]: Started Raspotify (Spotify Connect Client).
set 18 09:37:44 raspberrypi librespot[6499]: [2024-09-18T12:37:44Z ERROR librespot] Invalid `--autoplay` / `-A`: ""
set 18 09:37:44 raspberrypi librespot[6499]: Valid `--autoplay` / `-A` values: on, off
set 18 09:37:44 raspberrypi systemd[1]: raspotify.service: Main process exited, code=exited, status=1/FAILURE
set 18 09:37:44 raspberrypi systemd[1]: raspotify.service: Failed with result 'exit-code'.
set 18 09:37:44 raspberrypi systemd[1]: raspotify.service: Triggering OnFailure= dependencies.
set 18 09:37:56 raspberrypi systemd[1]: Started Raspotify (Spotify Connect Client).
set 18 09:37:56 raspberrypi librespot[6856]: [2024-09-18T12:37:56Z ERROR librespot] Invalid `--autoplay` / `-A`: ""
set 18 09:37:56 raspberrypi librespot[6856]: Valid `--autoplay` / `-A` values: on, off
set 18 09:37:56 raspberrypi systemd[1]: raspotify.service: Main process exited, code=exited, status=1/FAILURE
set 18 09:37:56 raspberrypi systemd[1]: raspotify.service: Failed with result 'exit-code'.
set 18 09:37:56 raspberrypi systemd[1]: raspotify.service: Triggering OnFailure= dependencies.
set 18 09:38:08 raspberrypi systemd[1]: Started Raspotify (Spotify Connect Client).
set 18 09:38:08 raspberrypi librespot[7213]: [2024-09-18T12:38:08Z ERROR librespot] Invalid `--autoplay` / `-A`: ""
set 18 09:38:08 raspberrypi librespot[7213]: Valid `--autoplay` / `-A` values: on, off
set 18 09:38:08 raspberrypi systemd[1]: raspotify.service: Main process exited, code=exited, status=1/FAILURE
set 18 09:38:08 raspberrypi systemd[1]: raspotify.service: Failed with result 'exit-code'.
set 18 09:38:08 raspberrypi systemd[1]: raspotify.service: Triggering OnFailure= dependencies.

-- Config --

LIBRESPOT_QUIET=
LIBRESPOT_AUTOPLAY=
LIBRESPOT_DISABLE_AUDIO_CACHE=
LIBRESPOT_DISABLE_CREDENTIAL_CACHE=
LIBRESPOT_NAME="Raspotify (Boxe)"
LIBRESPOT_DEVICE="plughw:CARD=Headphones,DEV=0"
LIBRESPOT_INITIAL_VOLUME="100"

-- Ouput of aplay -l --

**** List of PLAYBACK Hardware Devices ****
card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 1: vc4hdmi [vc4-hdmi], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

-- Ouput of aplay -L --

null
    Discard all samples (playback) or generate zero samples (capture)
lavrate
    Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pulse
    PulseAudio Sound Server
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
hw:CARD=Headphones,DEV=0
    bcm2835 Headphones, bcm2835 Headphones
    Direct hardware device without any conversions
plughw:CARD=Headphones,DEV=0
    bcm2835 Headphones, bcm2835 Headphones
    Hardware device with all software conversions
default:CARD=Headphones
    bcm2835 Headphones, bcm2835 Headphones
    Default Audio Device
sysdefault:CARD=Headphones
    bcm2835 Headphones, bcm2835 Headphones
    Default Audio Device
dmix:CARD=Headphones,DEV=0
    bcm2835 Headphones, bcm2835 Headphones
    Direct sample mixing device
usbstream:CARD=Headphones
    bcm2835 Headphones
    USB Stream Output
hw:CARD=vc4hdmi,DEV=0
    vc4-hdmi, MAI PCM i2s-hifi-0
    Direct hardware device without any conversions
plughw:CARD=vc4hdmi,DEV=0
    vc4-hdmi, MAI PCM i2s-hifi-0
    Hardware device with all software conversions
default:CARD=vc4hdmi
    vc4-hdmi, MAI PCM i2s-hifi-0
    Default Audio Device
sysdefault:CARD=vc4hdmi
    vc4-hdmi, MAI PCM i2s-hifi-0
    Default Audio Device
hdmi:CARD=vc4hdmi,DEV=0
    vc4-hdmi, MAI PCM i2s-hifi-0
    HDMI Audio Output
dmix:CARD=vc4hdmi,DEV=0
    vc4-hdmi, MAI PCM i2s-hifi-0
    Direct sample mixing device
usbstream:CARD=vc4hdmi
    vc4-hdmi
    USB Stream Output

-- Ouput of librespot -d ? --


        Compatible alsa device(s):

        ------------------------------------------------------

        Device:

                hw:CARD=Headphones,DEV=0

        Description:

                bcm2835 Headphones, bcm2835 Headphones
                Direct hardware device without any conversions

        Supported Format(s):

                S16

        ------------------------------------------------------

        Device:

                plughw:CARD=Headphones,DEV=0

        Description:

                bcm2835 Headphones, bcm2835 Headphones
                Hardware device with all software conversions

        Supported Format(s):

                S16 S24 S24_3 S32 F32 F64

        ------------------------------------------------------

        Device:

                default:CARD=Headphones

        Description:

                bcm2835 Headphones, bcm2835 Headphones
                Default Audio Device

        Supported Format(s):

                S16 S24 S24_3 S32 F32 F64

        ------------------------------------------------------

        Device:

                sysdefault:CARD=Headphones

        Description:

                bcm2835 Headphones, bcm2835 Headphones
                Default Audio Device

        Supported Format(s):

                S16 S24 S24_3 S32 F32 F64

        ------------------------------------------------------

        Device:

                default:CARD=vc4hdmi

        Description:

                vc4-hdmi, MAI PCM i2s-hifi-0
                Default Audio Device

        Supported Format(s):

                S16 S24 S24_3 S32 F32 F64

        ------------------------------------------------------

        Device:

                sysdefault:CARD=vc4hdmi

        Description:

                vc4-hdmi, MAI PCM i2s-hifi-0
                Default Audio Device

        Supported Format(s):

                S16 S24 S24_3 S32 F32 F64

        ------------------------------------------------------

        Device:

                hdmi:CARD=vc4hdmi,DEV=0

        Description:

                vc4-hdmi, MAI PCM i2s-hifi-0
                HDMI Audio Output

        Supported Format(s):

                S16 S24 S24_3 S32

        ------------------------------------------------------
@codydubat
Copy link

codydubat commented Sep 18, 2024

Having the same issue on RPi 3b+ after the 0.44 update.

Sep 18 16:06:01 raspberrypi systemd[1]: raspotify-crash-report-generator.service: Consumed 1.562s CPU time.
Sep 18 16:06:01 raspberrypi librespot[9095]: [2024-09-18T13:06:01Z ERROR librespot] Invalid --autoplay / -A: ""
Sep 18 16:06:01 raspberrypi librespot[9095]: Valid --autoplay / -A values: on, off
Sep 18 16:06:01 raspberrypi systemd[1]: raspotify.service: Main process exited, code=exited, status=1/FAILURE
Sep 18 16:06:01 raspberrypi systemd[1]: raspotify.service: Failed with result 'exit-code'.
Sep 18 16:06:01 raspberrypi systemd[1]: raspotify.service: Triggering OnFailure= dependencies.
Sep 18 16:06:01 raspberrypi systemd[1]: Starting Raspotify Crash Report Generator...

@bvdf0251
Copy link

bvdf0251 commented Sep 18, 2024

I can confirm I've got the same issue. Commenting out the row in config doesn't seem to help.
Also huge thanks for the effort non the less.

@codydubat
Copy link

codydubat commented Sep 18, 2024

If you want a quick fix for your local environment open /etc/raspotify/conf and just set LIBRESPORT_AUTOPLAY to on or off:
LIBRESPOT_AUTOPLAY=on

@TupaNegreiros
Copy link
Author

TupaNegreiros commented Sep 18, 2024

LIBRESPORT_AUTOPLAY

I confirm adding LIBRESPOT_AUTOPLAY="on" at the end of /etc/raspotify/conf fixed.

Thanks a lot @codydubat !

@codydubat
Copy link

@bvdf0251 For me commenting it also works, you just need to run sudo systemctl restart raspotify in order for the config to be re-applied

@bvdf0251
Copy link

With this addition it's showing me an error 'failed to register ipv6 receiver' and I can't connect from my phone.

@XuluWarrior
Copy link

I'm assuming that this is an issue with 0.44.0 after #672
As everything was working for me before upgrading from 0.43.x (can't remember the exact version)

If so, can we include this a requirement in the release notes.

@bvdf0251
Copy link

With this addition it's showing me an error 'failed to register ipv6 receiver' and I can't connect from my phone.

Fixed by enabling ipv6

Still not working though. It's starting but unable to connect from phone.

Downgrade to latest 0.43 still working.

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

Successfully merging a pull request may close this issue.

4 participants