RyanJ
RyanJ
EFPElfHosted / Funky Penguin
Created by RyanJ on 10/18/2023 in #🙋┆geek-support
dex deploy - array items must be unique?
Amazing! That fixed it, thank you for taking a look over this - I really appreciate it.
94 replies
EFPElfHosted / Funky Penguin
Created by RyanJ on 10/18/2023 in #🙋┆geek-support
dex deploy - array items must be unique?
version: "3.8"

services:
jellyfin:
image: jellyfin/jellyfin:latest
container_name: jellyfin
networks:
- traefik_public
- internal
volumes:
- /var/data/jellyfin/config:/config
- /var/data/jellyfin/data:/data
- /var/data/jellyfin/cache:/cache
# environment:
# - JELLYFIN_PublishedServerUrl=https://jellyfin.domain.tld
user: "root"
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik_public"
- "traefik.http.routers.jellyfin.rule=Host(`jellyfin.domain.tld`)"
- "traefik.http.routers.jellyfin.entrypoints=https"
- "traefik.http.routers.jellyfin.tls=true"
- "traefik.http.routers.jellyfin.service=jellyfin"
- "traefik.http.services.jellyfin.loadbalancer.server.port=8096"
- "traefik.http.routers.jellyfin.middlewares=authelia"
ports:
- "8096:8096"
networks:
traefik_public:
external: true
internal:
driver: overlay
ipam:
config:
- subnet: 172.16.42.0/24
version: "3.8"

services:
jellyfin:
image: jellyfin/jellyfin:latest
container_name: jellyfin
networks:
- traefik_public
- internal
volumes:
- /var/data/jellyfin/config:/config
- /var/data/jellyfin/data:/data
- /var/data/jellyfin/cache:/cache
# environment:
# - JELLYFIN_PublishedServerUrl=https://jellyfin.domain.tld
user: "root"
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik_public"
- "traefik.http.routers.jellyfin.rule=Host(`jellyfin.domain.tld`)"
- "traefik.http.routers.jellyfin.entrypoints=https"
- "traefik.http.routers.jellyfin.tls=true"
- "traefik.http.routers.jellyfin.service=jellyfin"
- "traefik.http.services.jellyfin.loadbalancer.server.port=8096"
- "traefik.http.routers.jellyfin.middlewares=authelia"
ports:
- "8096:8096"
networks:
traefik_public:
external: true
internal:
driver: overlay
ipam:
config:
- subnet: 172.16.42.0/24
94 replies
EFPElfHosted / Funky Penguin
Created by RyanJ on 10/18/2023 in #🙋┆geek-support
dex deploy - array items must be unique?
Updating the jellyfin docker-compose to the following allows things to run locally, but has no traefik rules? I can't understand why they wouldn't be applying
94 replies
EFPElfHosted / Funky Penguin
Created by RyanJ on 10/18/2023 in #🙋┆geek-support
dex deploy - array items must be unique?
Does anyone have any idea as to why this is happening, and how to fix it?
94 replies
EFPElfHosted / Funky Penguin
Created by RyanJ on 10/18/2023 in #🙋┆geek-support
dex deploy - array items must be unique?
I'm stuck at this point, and nothing I can find online explains why I'm encountering this error Trying to run this via Portainer gives the same error
94 replies
EFPElfHosted / Funky Penguin
Created by RyanJ on 10/18/2023 in #🙋┆geek-support
dex deploy - array items must be unique?
This seems to be caused by having
traefik.enable=true
traefik.enable=true
twice within the labels section? However, commenting out one or the other allows the stack to deploy but is unusable and no rules are applied in traefik
94 replies
EFPElfHosted / Funky Penguin
Created by RyanJ on 10/18/2023 in #🙋┆geek-support
dex deploy - array items must be unique?
The above gives the following error: services.jellyfin.deploy.labels array items[0,6] must be unique
94 replies
EFPElfHosted / Funky Penguin
Created by RyanJ on 10/18/2023 in #🙋┆geek-support
dex deploy - array items must be unique?
version: "3.0"

services:
jellyfin:
image: jellyfin/jellyfin
env_file: /var/data/config/jellyfin/jellyfin.env
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/data/jellyfin:/config
- /var/data/runtime/jellyfin:/cache
- /srv/data/:/data
deploy:
labels:
# traefik common
- traefik.enable=true
- traefik.docker.network=traefik_public

# traefikv1
- traefik.frontend.rule=Host:jellyfin.example.com
- traefik.port=8096

# traefikv2
- "traefik.http.routers.jellyfin.rule=Host(`jellyfin.example.com`)"
- "traefik.http.services.jellyfin.loadbalancer.server.port=8096"
- "traefik.enable=true"

networks:
- traefik_public
ports:
- 8096:8096

networks:
traefik_public:
external: true
version: "3.0"

services:
jellyfin:
image: jellyfin/jellyfin
env_file: /var/data/config/jellyfin/jellyfin.env
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/data/jellyfin:/config
- /var/data/runtime/jellyfin:/cache
- /srv/data/:/data
deploy:
labels:
# traefik common
- traefik.enable=true
- traefik.docker.network=traefik_public

# traefikv1
- traefik.frontend.rule=Host:jellyfin.example.com
- traefik.port=8096

# traefikv2
- "traefik.http.routers.jellyfin.rule=Host(`jellyfin.example.com`)"
- "traefik.http.services.jellyfin.loadbalancer.server.port=8096"
- "traefik.enable=true"

networks:
- traefik_public
ports:
- 8096:8096

networks:
traefik_public:
external: true
94 replies
EFPElfHosted / Funky Penguin
Created by RyanJ on 10/18/2023 in #🙋┆geek-support
dex deploy - array items must be unique?
With the above, the /config is defined twice causing an error, so removing that fixes
94 replies
EFPElfHosted / Funky Penguin
Created by RyanJ on 10/18/2023 in #🙋┆geek-support
dex deploy - array items must be unique?
Hey there! So I thought I'd managed to avoid this issue by using authelia, and all is working well with that so far. In trying to deploy Jellyfin, however, I've come across the same error and I can't avoid it this time: Using the following docker-compose.yml:
version: "3.0"

services:
jellyfin:
image: jellyfin/jellyfin
env_file: /var/data/config/jellyfin/jellyfin.env
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/data/jellyfin:/config
- /var/data/runtime/jellyfin:/cache
- /var/data/jellyfin/jellyfin:/config
- /srv/data/:/data
deploy:
labels:
# traefik common
- traefik.enable=true
- traefik.docker.network=traefik_public

# traefikv1
- traefik.frontend.rule=Host:jellyfin.example.com
- traefik.port=8096

# traefikv2
- "traefik.http.routers.jellyfin.rule=Host(`jellyfin.example.com`)"
- "traefik.http.services.jellyfin.loadbalancer.server.port=8096"
- "traefik.enable=true"

networks:
- traefik_public
ports:
- 8096:8096

networks:
traefik_public:
external: true
version: "3.0"

services:
jellyfin:
image: jellyfin/jellyfin
env_file: /var/data/config/jellyfin/jellyfin.env
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/data/jellyfin:/config
- /var/data/runtime/jellyfin:/cache
- /var/data/jellyfin/jellyfin:/config
- /srv/data/:/data
deploy:
labels:
# traefik common
- traefik.enable=true
- traefik.docker.network=traefik_public

# traefikv1
- traefik.frontend.rule=Host:jellyfin.example.com
- traefik.port=8096

# traefikv2
- "traefik.http.routers.jellyfin.rule=Host(`jellyfin.example.com`)"
- "traefik.http.services.jellyfin.loadbalancer.server.port=8096"
- "traefik.enable=true"

networks:
- traefik_public
ports:
- 8096:8096

networks:
traefik_public:
external: true
94 replies
EFPElfHosted / Funky Penguin
Created by RyanJ on 10/18/2023 in #🙋┆geek-support
dex deploy - array items must be unique?
root@olympus:/home/ryan# docker service logs traefik-forward-auth
no such task or service: traefik-forward-auth
root@olympus:/home/ryan# docker service logs traefik-forward-auth_traefik-forward-auth
traefik-forward-auth_traefik-forward-auth.1.28zcj16r8cmx@olympus | time="2023-10-18T13:27:27Z" level=fatal msg="404 Not Found: 404 page not found\n"
traefik-forward-auth_traefik-forward-auth.1.dcnz1cv7xewp@olympus | time="2023-10-18T13:27:21Z" level=fatal msg="404 Not Found: 404 page not found\n"
traefik-forward-auth_traefik-forward-auth.1.yqpk4upeap6k@olympus | time="2023-10-18T13:27:40Z" level=fatal msg="404 Not Found: 404 page not found\n"
traefik-forward-auth_traefik-forward-auth.1.h886ucugh6ye@olympus | time="2023-10-18T13:27:33Z" level=fatal msg="404 Not Found: 404 page not found\n"
root@olympus:/home/ryan# docker service logs traefik-forward-auth
no such task or service: traefik-forward-auth
root@olympus:/home/ryan# docker service logs traefik-forward-auth_traefik-forward-auth
traefik-forward-auth_traefik-forward-auth.1.28zcj16r8cmx@olympus | time="2023-10-18T13:27:27Z" level=fatal msg="404 Not Found: 404 page not found\n"
traefik-forward-auth_traefik-forward-auth.1.dcnz1cv7xewp@olympus | time="2023-10-18T13:27:21Z" level=fatal msg="404 Not Found: 404 page not found\n"
traefik-forward-auth_traefik-forward-auth.1.yqpk4upeap6k@olympus | time="2023-10-18T13:27:40Z" level=fatal msg="404 Not Found: 404 page not found\n"
traefik-forward-auth_traefik-forward-auth.1.h886ucugh6ye@olympus | time="2023-10-18T13:27:33Z" level=fatal msg="404 Not Found: 404 page not found\n"
94 replies
EFPElfHosted / Funky Penguin
Created by RyanJ on 10/18/2023 in #🙋┆geek-support
dex deploy - array items must be unique?
root@olympus:/home/ryan# docker service logs dex_dex
dex_dex.1.ukpfpg1wqx9v@olympus | error: cannot lookup path for command serve: exec: "serve": executable file not found in $PATH
dex_dex.1.c8u2m77c9kt1@olympus | error: cannot lookup path for command serve: exec: "serve": executable file not found in $PATH
dex_dex.1.i81z0ayq52jz@olympus | error: cannot lookup path for command serve: exec: "serve": executable file not found in $PATH
dex_dex.1.sayeuy0i3ten@olympus | error: cannot lookup path for command serve: exec: "serve": executable file not found in $PATH
dex_dex.1.31icur7fsig5@olympus | error: cannot lookup path for command serve: exec: "serve": executable file not found in $PATH
root@olympus:/home/ryan# docker service logs dex_dex
dex_dex.1.ukpfpg1wqx9v@olympus | error: cannot lookup path for command serve: exec: "serve": executable file not found in $PATH
dex_dex.1.c8u2m77c9kt1@olympus | error: cannot lookup path for command serve: exec: "serve": executable file not found in $PATH
dex_dex.1.i81z0ayq52jz@olympus | error: cannot lookup path for command serve: exec: "serve": executable file not found in $PATH
dex_dex.1.sayeuy0i3ten@olympus | error: cannot lookup path for command serve: exec: "serve": executable file not found in $PATH
dex_dex.1.31icur7fsig5@olympus | error: cannot lookup path for command serve: exec: "serve": executable file not found in $PATH
94 replies
EFPElfHosted / Funky Penguin
Created by RyanJ on 10/18/2023 in #🙋┆geek-support
dex deploy - array items must be unique?
# This simply validates that traefik forward authentication is working
whoami:
image: containous/whoami
networks:
- traefik_public
deploy:
labels:
# traefik
- "traefik.enable=true"
- "traefik.docker.network=traefik_public"

# traefikv1
# - "traefik.frontend.rule=Host:whoami.domain.tld"
# - "traefik.http.services.whoami.loadbalancer.server.port=80"
# - "traefik.frontend.auth.forward.address=http://traefik-forward-auth:4181"
# - "traefik.frontend.auth.forward.authResponseHeaders=X-Forwarded-User"
# - "traefik.frontend.auth.forward.trustForwardHeader=true"

# traefikv2
- "traefik.http.routers.whoami.rule=Host(`whoami.domain.tld`)"
- "traefik.http.routers.whoami.entrypoints=https"
- "traefik.http.services.whoami.loadbalancer.server.port=80"
- "traefik.http.routers.whoami.middlewares=forward-auth"

networks:
traefik_public:
external: true
# This simply validates that traefik forward authentication is working
whoami:
image: containous/whoami
networks:
- traefik_public
deploy:
labels:
# traefik
- "traefik.enable=true"
- "traefik.docker.network=traefik_public"

# traefikv1
# - "traefik.frontend.rule=Host:whoami.domain.tld"
# - "traefik.http.services.whoami.loadbalancer.server.port=80"
# - "traefik.frontend.auth.forward.address=http://traefik-forward-auth:4181"
# - "traefik.frontend.auth.forward.authResponseHeaders=X-Forwarded-User"
# - "traefik.frontend.auth.forward.trustForwardHeader=true"

# traefikv2
- "traefik.http.routers.whoami.rule=Host(`whoami.domain.tld`)"
- "traefik.http.routers.whoami.entrypoints=https"
- "traefik.http.services.whoami.loadbalancer.server.port=80"
- "traefik.http.routers.whoami.middlewares=forward-auth"

networks:
traefik_public:
external: true
94 replies
EFPElfHosted / Funky Penguin
Created by RyanJ on 10/18/2023 in #🙋┆geek-support
dex deploy - array items must be unique?
Apologies, when the kids call you must obey 😅 /var/data/dex/dex.yml is as follows:
version: "3.2"

services:

traefik-forward-auth:
image: thomseddon/traefik-forward-auth:2.2.0
env_file: /var/data/config/traefik-forward-auth/traefik-forward-auth.env
volumes:
- /var/data/config/traefik-forward-auth/config.ini:/config.ini:ro
networks:
- traefik_public
deploy:
labels:
# traefikv1
- "traefik.port=4181"
- "traefik.frontend.rule=Host:auth.domain.tld"
- "traefik.frontend.auth.forward.address=http://traefik-forward-auth:4181"
- "traefik.frontend.auth.forward.trustForwardHeader=true"

# traefikv2
- "traefik.docker.network=traefik_public"
- "traefik.http.routers.auth.rule=Host(`auth.domain.tld`)"
- "traefik.http.routers.auth.entrypoints=https"
- "traefik.http.routers.auth.tls=true"
- "traefik.http.routers.auth.tls.domains[0].main=domain.tld"
- "traefik.http.routers.auth.tls.domains[0].sans=*.domain.tld"
- "traefik.http.routers.auth.tls.certresolver=main"
- "traefik.http.routers.auth.service=auth@docker"
- "traefik.http.services.auth.loadbalancer.server.port=4181"
- "traefik.http.middlewares.forward-auth.forwardauth.address=http://traefik-forward-auth:4181"
- "traefik.http.middlewares.forward-auth.forwardauth.trustForwardHeader=true"
- "traefik.http.middlewares.forward-auth.forwardauth.authResponseHeaders=X-Forwarded-User"
- "traefik.http.routers.auth.middlewares=forward-auth"
version: "3.2"

services:

traefik-forward-auth:
image: thomseddon/traefik-forward-auth:2.2.0
env_file: /var/data/config/traefik-forward-auth/traefik-forward-auth.env
volumes:
- /var/data/config/traefik-forward-auth/config.ini:/config.ini:ro
networks:
- traefik_public
deploy:
labels:
# traefikv1
- "traefik.port=4181"
- "traefik.frontend.rule=Host:auth.domain.tld"
- "traefik.frontend.auth.forward.address=http://traefik-forward-auth:4181"
- "traefik.frontend.auth.forward.trustForwardHeader=true"

# traefikv2
- "traefik.docker.network=traefik_public"
- "traefik.http.routers.auth.rule=Host(`auth.domain.tld`)"
- "traefik.http.routers.auth.entrypoints=https"
- "traefik.http.routers.auth.tls=true"
- "traefik.http.routers.auth.tls.domains[0].main=domain.tld"
- "traefik.http.routers.auth.tls.domains[0].sans=*.domain.tld"
- "traefik.http.routers.auth.tls.certresolver=main"
- "traefik.http.routers.auth.service=auth@docker"
- "traefik.http.services.auth.loadbalancer.server.port=4181"
- "traefik.http.middlewares.forward-auth.forwardauth.address=http://traefik-forward-auth:4181"
- "traefik.http.middlewares.forward-auth.forwardauth.trustForwardHeader=true"
- "traefik.http.middlewares.forward-auth.forwardauth.authResponseHeaders=X-Forwarded-User"
- "traefik.http.routers.auth.middlewares=forward-auth"
94 replies
EFPElfHosted / Funky Penguin
Created by RyanJ on 10/18/2023 in #🙋┆geek-support
dex deploy - array items must be unique?
root@olympus:/home/ryan# docker stack ps dex
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
4mxre3b73u12 dex_traefik-forward-auth.1 thomseddon/traefik-forward-auth:2.2.0 olympus Running Starting less than a second ago
p60xm1901h8z \_ dex_traefik-forward-auth.1 thomseddon/traefik-forward-auth:2.2.0 olympus Shutdown Failed 5 seconds ago "task: non-zero exit (1)"
rx5dcucxe2rc \_ dex_traefik-forward-auth.1 thomseddon/traefik-forward-auth:2.2.0 olympus Shutdown Failed 11 seconds ago "task: non-zero exit (1)"
rwhwtiw47lds \_ dex_traefik-forward-auth.1 thomseddon/traefik-forward-auth:2.2.0 olympus Shutdown Failed 18 seconds ago "task: non-zero exit (1)"
3l2tx9nggdtj \_ dex_traefik-forward-auth.1 thomseddon/traefik-forward-auth:2.2.0 olympus Shutdown Failed 24 seconds ago "task: non-zero exit (1)"
hu57a0frj7fu dex_whoami.1 containous/whoami:latest olympus Running Running 8 hours ago
root@olympus:/home/ryan# docker stack ps dex
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
4mxre3b73u12 dex_traefik-forward-auth.1 thomseddon/traefik-forward-auth:2.2.0 olympus Running Starting less than a second ago
p60xm1901h8z \_ dex_traefik-forward-auth.1 thomseddon/traefik-forward-auth:2.2.0 olympus Shutdown Failed 5 seconds ago "task: non-zero exit (1)"
rx5dcucxe2rc \_ dex_traefik-forward-auth.1 thomseddon/traefik-forward-auth:2.2.0 olympus Shutdown Failed 11 seconds ago "task: non-zero exit (1)"
rwhwtiw47lds \_ dex_traefik-forward-auth.1 thomseddon/traefik-forward-auth:2.2.0 olympus Shutdown Failed 18 seconds ago "task: non-zero exit (1)"
3l2tx9nggdtj \_ dex_traefik-forward-auth.1 thomseddon/traefik-forward-auth:2.2.0 olympus Shutdown Failed 24 seconds ago "task: non-zero exit (1)"
hu57a0frj7fu dex_whoami.1 containous/whoami:latest olympus Running Running 8 hours ago
94 replies
EFPElfHosted / Funky Penguin
Created by RyanJ on 10/18/2023 in #🙋┆geek-support
dex deploy - array items must be unique?
There's no mention of dex at all
94 replies
EFPElfHosted / Funky Penguin
Created by RyanJ on 10/18/2023 in #🙋┆geek-support
dex deploy - array items must be unique?
No description
94 replies
EFPElfHosted / Funky Penguin
Created by RyanJ on 10/18/2023 in #🙋┆geek-support
dex deploy - array items must be unique?
No description
94 replies
EFPElfHosted / Funky Penguin
Created by RyanJ on 10/18/2023 in #🙋┆geek-support
dex deploy - array items must be unique?
94 replies
EFPElfHosted / Funky Penguin
Created by RyanJ on 10/18/2023 in #🙋┆geek-support
dex deploy - array items must be unique?
I get a
404 page not found
404 page not found
94 replies