Stream to Toniebox not working - No route to host

Hello,

I am out of ideas. Can someone help me please? What am I doing wrong? I tried my best to search the forum and read the documentation.

I have teddycloud (docker) on my raspberry pi running for some time now. It is awesome! I now want to stream content with Owntone. I added a Library and was able to successful stream to my laptop to VLC by opening this url:

http://x.x.x.x:3689/stream.mp3

Also streamig to browser is possible by opening this URL. My conclusion is now that I set up the streaming server correctly.

But toniebox/teddycloud does not accept it. This is how the .json file for the tag looks like:

        "live": true,
        "nocloud":      true,
        "source":       "http://x.x.x.x:3689/stream.mp3",
        "skip_seconds": 0,
        "cache":        false,
        "cloud_ruid":   "",
        "cloud_auth":   "",
        "cloud_override":       false,
        "tonie_model":  "",
        "hide": false,
        "claimed":      true,
        "_version":     5
}

Docker logs say:

INFO |toniefile.c:0568:ffmpeg_decode_audio_start_skip| FFmpeg command: ffmpeg -i "http://x.x.x.x:3689/stream.mp3" -f s16le -acodec pcm_s16le -ar 48000 -ac 2 -ss 0 -
INFO |toniefile.c:0139:toniefile_create| Create TAF: /teddycloud/data/content/default/x/x.stream
INFO |toniefile.c:0389:toniefile_new_chapter| new chapter at 0x00000000
ffmpeg version 6.1.1-3ubuntu5 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 13 (Ubuntu 13.2.0-23ubuntu3)
  configuration: --prefix=/usr --extra-version=3ubuntu5 --toolchain=hardened ... ... ... ... 
  libavutil      58. 29.100 / 58. 29.100
  libavcodec     60. 31.102 / 60. 31.102
  libavformat    60. 16.100 / 60. 16.100
  libavdevice    60.  3.100 / 60.  3.100
  libavfilter     9. 12.100 /  9. 12.100
  libswscale      7.  5.100 /  7.  5.100
  libswresample   4. 12.100 /  4. 12.100
  libpostproc    57.  3.100 / 57.  3.100
INFO |handler_cloud.c:0620:handleCloudContent| Serve streaming content from http://x.x.x.x:3689/stream.mp3, delay 2000ms
[tcp @ 0x55ba250b20] Connection to tcp://x.x.x.x:3689 failed: No route to host
[in#0 @ 0x55ba24daa0] Error opening input: No route to host
Error opening input file http://x.x.x.x:3689/stream.mp3.
Error opening input files: No route to host
INFO |toniefile.c:0762:ffmpeg_stream| Encoded all sources
INFO |toniefile.c:0622:ffmpeg_decode_audio_end| Stopped ffmpeg with code=36608...

I am running teddycloud 0.6.2 in docker. Normal custom tonies where I upload mp3s are working. Owntone is running on the same machine.

The box is blinking blue for some time but never starts playing.

Greetings,
Martin

First Update to latest Version please.

Are you sure owntone uses tcp and no other Protocol?

Are teddycloud and owntone have the same ip? Maybe try localhost:Port instead of ip:port

Hello Henryk!

Sorry for the late response, and thank you very much for the hint. They do not have the same IP; they run on the same Pi4, but with different IPs. Teddycloud runs on a macvlan in Docker because the ports are already in use. Owntone runs directly on the host. I ran into the same issue (with another thing I was working on) six months ago but completely forgot about it. :face_with_symbols_over_mouth: The macvlan bit me again.

When using macvlan, there is no communication possible between the host and the container, which results in the “no route to host” error.

As soon as I moved Owntone onto another VM, everything worked out of the box. I love Teddycloud!

Thanks again!

Greetings,
Martin