philippe44 / AirConnect

Use AirPlay to stream to UPnP/Sonos & Chromecast devices
Other
3.6k stars 219 forks source link

Running in Proxmox (LXC containers): connection stops randomly, unable to reconnect without reloading the service #448

Closed Tratosca closed 1 year ago

Tratosca commented 1 year ago

Hello, I'm using the latest x86_64 Linux release of AirUPNP using a Debian 11 container on Proxmox VE (LXC) to connect to a Sonos Connect 1st gen receiver. I'm using a sample of the service file of the repo, such as:

[Unit]
Description=AirUPnP bridge
After=network-online.target
Wants=network-online.target

[Service]
ExecStart=/usr/bin/airupnp -l 1000:2000 -Z -x /airupnp.xml
Restart=on-failure
RestartSec=30

[Install]
WantedBy=multi-user.target

My config file is as below:

<?xml version="1.0"?>
<airupnp>
    <common>
        <protocolInfo>
            <pcm>http-get:*:audio/L16;rate=44100;channels=2:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=0d500000000000000000000000000000</pcm>
            <wav>http-get:*:audio/wav:DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=0d500000000000000000000000000000</wav>
            <flac>http-get:*:audio/flac:DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=0d500000000000000000000000000000</flac>
            <mp3>http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=0d500000000000000000000000000000</mp3>
        </protocolInfo>
        <enabled>1</enabled>
        <max_volume>100</max_volume>
        <http_length>-1</http_length>
        <upnp_max>1</upnp_max>
        <codec>wav</codec>
        <metadata>1</metadata>
        <flush>1</flush>
        <artwork></artwork>
        <latency>2000:2000:f</latency>
        <drift>0</drift>
    </common>
    <main_log>info</main_log>
    <upnp_log>info</upnp_log>
    <util_log>warn</util_log>
    <raop_log>info</raop_log>
    <log_limit>-1</log_limit>
    <max_players>32</max_players>
    <binding>?</binding>
    <ports>0:0</ports>
    <device>
        <udn>uuid:RINCON_redacted</udn>
        <name>Sonos</name>
        <mac>redacted</mac>
        <enabled>1</enabled>
    </device>
</airupnp>

Sometimes, after about 2-3 minutes of undiscontinued listening, the audio is interrupted, iPhone says "Unable to connect to 'Sonos'" and it's impossible to reconnect again: it loads for a ton lot of time. If I restart the service, I can connect again directly but it will last only 2 to 3 minutes again.

I know my setup is weird, but do you have any clue ? I used to use AirUPNP in Docker on a Debian VM without any issue.

Thanks

Tratosca commented 1 year ago

IP misconfiguration on my own (can happen to anyone :D sorry for the inconvenience)