Unable to resolve "can't find network. is the prefix in the label?"

hello,

I'm trying to start up my frontend stack and I'm getting the error

"Could not find network named 'proxyPanel_Stack_traefik_ProxyNetwork' for container '/qbittorrent'! Maybe you're missing the project's prefix
in the label? Defaulting to first available network." providerName=docker container=qbittorrent-proxypanel-stack-serviceName=qbittorrent-svc"

I found

where they suggested to make a variable named compose for the project name. My label is

  • "traefik.docker.network=${COMPOSE_PROJECT_NAME}_traefik_ProxyNetwork" and I have this variable set to the name of my file proxyPanel_Stack. Instead of resolving i just get a longer error :frowning: and this was the only thing close to the issue i could find =/

I tried posting on my vpns container issue page but not seen a response.

I've seen a few guides but nothing in the end lets me to have qbt behind a vpn then hit its webgui with traefik :frowning:

im really confused. I had things working per my comment on reddit:

This seems to be the fix for at least the haugene image i found:[Solved] Forward Auth in Traefik / Docker environment not working · Issue #2180 · goauthentik/authentik · GitHub

I had to addtraefik.http.routers.auth.priority: 1 and it spun right up.

I'm assuming this was just a general issue I hadn't run into with traefik so far since I'm super new into my stack setup. I am still new to the architecture but it seems like an issue with how traefik handles rule priority and the forward auth not getting priority over the vpn container.

EDIT: I however remain unable to get gluetun + qbittorrent to work correctly. I would like to be able to proxy multiple containers without needing to spin up a dedicated image + vpn container each time. This is what my code is right now:#########################################################MULLVAD################ - Pastebin.com

I can get to the gui and login but when I add an ip checker i see "Could not find network named" error again :frowning:

EDIT2: I'm not sure why but im still getting that error in the logs but it's working fine

But i restarted the container and now it doesn't work. I can hit the webUI but nothing will download i still get the error of not knowing the traefik network (it's in my traefik compose) now my traefik logs show

"GET /api/v2/sync/maindata?rid=123&l9wdueye HTTP/2.0" 403 9 "-" "-" 1596 "qbittorrent@docker"

I made sure that the volumes are owned and even 777 the directories for qbt and it still fails.

I can get the qbt webUI just find through traefik but trying to download the magnet ip checker or any isos from ubuntu nothing happens. I'm so confused how a restart broke things.

I have never seen this, but it seems to be valid. Are you using Docker or Docker Swarm?

    network_mode: container:mediaRequests_VPN

You tell Traefik to route via traefik_ProxyNetwork, but the container qbittorrent is not connected to the network.

    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=traefik_ProxyNetwork"

swarm and was trying to force qbt to use the vpn container while also still in traefik.