H
Homarr6mo ago
Mint

Audiobookshelf

Hello, I'm a bit new at this but I got everything setup except Audiobookshelf. For some reason the ping is giving ECONNREFUSED, is there a something I missed in the settings for Audiobookshelf? Log: https://pastebin.com/m2LZjU2m edit: It might be a websocket issue? I'm not really sure what I'm doing.
Pastebin
ERROR Unexpected response: connect ECONNREFUSED 172.18.0.12:13378...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
No description
18 Replies
Manicraft1001
Manicraft10016mo ago
Hi, the error means that Homarr is unable to connect to it or the connection is dropped. Can you post your docker run / compose? Do you run Audioshelf on a different server? Is it behind a VPN / firewall?
Mint
Mint6mo ago
Hello, I run audiobookshelf on the same server but different container. Here's the docker compose file for the ABS
version: "3.7"
services:
audiobookshelf:
image: ghcr.io/advplyr/audiobookshelf:latest
container_name: audiobookshelf
ports:
- 13378:80
volumes:
- /srv/share_media/media/audiobooks:/audiobooks
- /srv/share_media/media/podcasts:/podcasts
- /srv/Config/Audiobookshelf:/config
- /srv/share_media/media/absmetadata:/metadata
networks:
- MediaNetwork
restart: unless-stopped

networks:
MediaNetwork:
external: true
version: "3.7"
services:
audiobookshelf:
image: ghcr.io/advplyr/audiobookshelf:latest
container_name: audiobookshelf
ports:
- 13378:80
volumes:
- /srv/share_media/media/audiobooks:/audiobooks
- /srv/share_media/media/podcasts:/podcasts
- /srv/Config/Audiobookshelf:/config
- /srv/share_media/media/absmetadata:/metadata
networks:
- MediaNetwork
restart: unless-stopped

networks:
MediaNetwork:
external: true
And Here's the compose file for homarr
version: '3'

services:
homarr:
container_name: homarr
image: ghcr.io/ajnart/homarr:latest
ports:
- '7575:7575'
networks:
- MediaNetwork
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
- /srv/Config/Homarr/configs:/app/data/configs
- /srv/Config/Homarr/icons:/app/public/icons
- /srv/Config/Homarr/data:/data
restart: unless-stopped

networks:
MediaNetwork:
external: true
version: '3'

services:
homarr:
container_name: homarr
image: ghcr.io/ajnart/homarr:latest
ports:
- '7575:7575'
networks:
- MediaNetwork
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
- /srv/Config/Homarr/configs:/app/data/configs
- /srv/Config/Homarr/icons:/app/public/icons
- /srv/Config/Homarr/data:/data
restart: unless-stopped

networks:
MediaNetwork:
external: true
Manicraft1001
Manicraft10016mo ago
Can you open the container terminal of Homarr and try to reach the Audioshelf container? (eg. curl, wget, ping, tracert, ...)
Mint
Mint6mo ago
--2023-12-20 17:13:51-- http://audiobookshelf:13378/
Resolving audiobookshelf (audiobookshelf)... 172.18.0.12
Connecting to audiobookshelf (audiobookshelf)|172.18.0.12|:13378... failed: Connection refused.
--2023-12-20 17:13:51-- http://audiobookshelf:13378/
Resolving audiobookshelf (audiobookshelf)... 172.18.0.12
Connecting to audiobookshelf (audiobookshelf)|172.18.0.12|:13378... failed: Connection refused.
This is the result I get when trying
Manicraft1001
Manicraft10016mo ago
Ok, so your network setup is to blame Homarr cannot do anything when the container itself cannot reach Audiobookshelf Can you also try IP? Sometimes DNS resolve doesn't work properly
Mint
Mint6mo ago
Ah, yeah so ip works. I guess I should use that for now. Do you have any tips for having the DNS work properly? It noticed it only has an issue with Audiobookshelf and Mylar. I went through the same container setup for all of the apps so I'm not too sure what type of issue it might be. Even the containers routing through glueten is fine.
Manicraft1001
Manicraft10016mo ago
You should ensure that your hostmachine has the correct DNS resolver IP Is audiobookshelf just the container name?
Mint
Mint6mo ago
yeah
Manicraft1001
Manicraft10016mo ago
Ah... Is Homarr in the same network?
Mint
Mint6mo ago
Yes.
Manicraft1001
Manicraft10016mo ago
Really? I don't mean the actual LAN, but rather the virtual docker network For this, Homarr also would have to be behind Gluetun
Mint
Mint6mo ago
Yeah, I made a custom network called medianetwork for that. the gluetun is on the same network. the torrent and other downloading stuff is behind gluetun everything else is on the same network not behind gluetun
Manicraft1001
Manicraft10016mo ago
But is Homarr also "behind" Gluetun?
Mint
Mint6mo ago
So, everything should be sitting on the same "MediaNetwork" network. Ah, no.
Manicraft1001
Manicraft10016mo ago
If not, using the container name won't work Container name is only a valid hostname within the same virtual network (eg. the one you're using for Gluetun).
Mint
Mint6mo ago
I think I'm misunderstanding the question. One sec. Let me type it out. MediaNetwork: Jellyfin, Jellyseer, Sonarr, Radarr, Readarr, Gluetun, Audiobookshelf, Homarr Gluetun: qBittorrent, SABnzbd So that's how its setup right now.
Manicraft1001
Manicraft10016mo ago
Ah okay.... Then the container name should work But I don't use networks myself that often. So I might be wrong here
Mint
Mint6mo ago
I think it works in that it does ping it. the connection gets refused instead of saying that its missing. But IP works fine, so now I'm confused on why. the IP is the LAN ip instead of the internal ip that it assigns on the docker network.