TeamPiped / Piped-Docker

MIT License
47 stars 35 forks source link

Problem with Varnish container not being able to read default.vcl #12

Closed xthursdayx closed 2 years ago

xthursdayx commented 2 years ago

I previously had Piped working but just moved to a new VPS and am running into a problem when I try to start up the containers with docker-compose. When I run docker-compose up I see the following error associated with the varnish container and that container keeps restarting.

varnish          | Error: Cannot read -f file '/etc/varnish/default.vcl' (Permission denied)
varnish          | (-? gives usage)

I've tried a variety of permissions for the ./config directory within my Piped-docker directory, including root:root, as well as making sure that the permissions are readable, but nothing seems to make any difference. Any idea what might be causing this? Thanks for the help!

FireMasterK commented 2 years ago

I think you can just delete the config folder and run ./configure-instance.sh again

xthursdayx commented 2 years ago

I tried that as well with no luck, unfortunately.

For what it's worth, here is the full log with I run docker-compose up. Nothing has been changed in the docker-compose.yml.

Creating volume "piped-docker_ytproxy" with default driver
Creating watchtower    ... done
Creating postgres   ... done
Creating ytproxy       ... done
Creating piped-backend ... done
Creating varnish        ... done
Creating piped-frontend ... done
Creating nginx          ... done
Attaching to postgres, watchtower, ytproxy, piped-backend, varnish, piped-frontend, nginx
nginx            | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
nginx            | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
nginx            | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
piped-frontend   | 2021/12/06 20:47:15 [notice] 1#1: using the "epoll" event method
piped-frontend   | 2021/12/06 20:47:15 [notice] 1#1: nginx/1.21.4
piped-frontend   | 2021/12/06 20:47:15 [notice] 1#1: built by gcc 10.3.1 20210424 (Alpine 10.3.1_git20210424)
piped-frontend   | 2021/12/06 20:47:15 [notice] 1#1: OS: Linux 5.4.0-91-generic
piped-frontend   | 2021/12/06 20:47:15 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
piped-frontend   | 2021/12/06 20:47:15 [notice] 1#1: start worker processes
piped-frontend   | 2021/12/06 20:47:15 [notice] 1#1: start worker process 8
piped-frontend   | 2021/12/06 20:47:15 [notice] 1#1: start worker process 9
piped-frontend   | 2021/12/06 20:47:15 [notice] 1#1: start worker process 10
piped-backend    | SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
piped-backend    | SLF4J: Defaulting to no-operation (NOP) logger implementation
piped-backend    | SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
postgres         |
postgres         | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres         |
postgres         | 2021-12-06 20:47:13.738 UTC [1] LOG:  starting PostgreSQL 13.5 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.3.1_git20211027) 10.3.1 20211027, 64-bit
postgres         | 2021-12-06 20:47:13.738 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres         | 2021-12-06 20:47:13.739 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres         | 2021-12-06 20:47:13.744 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
varnish          | Error: Cannot read -f file '/etc/varnish/default.vcl' (Permission denied)
varnish          | (-? gives usage)
postgres         | 2021-12-06 20:47:13.747 UTC [23] LOG:  database system was shut down at 2021-12-06 20:45:25 UTC
postgres         | 2021-12-06 20:47:13.750 UTC [1] LOG:  database system is ready to accept connections
watchtower       | time="2021-12-06T20:47:14Z" level=info msg="Watchtower 1.3.0\nUsing no notifications\nOnly checking containers with name \"piped-frontend\" or \"piped-backend\" or \"ytproxy\" or \"varnish\" or \"nginx\" or \"postgres\" or \"watchtower\"\nScheduling first run: 2021-12-07 20:47:14 +0000 UTC\nNote that the first check will be performed in 23 hours, 59 minutes, 59 seconds"
nginx            | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
nginx            | 10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
nginx            | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
nginx            | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
nginx            | /docker-entrypoint.sh: Configuration complete; ready for start up
nginx            | 2021/12/06 20:47:16 [notice] 1#1: using the "epoll" event method
nginx            | 2021/12/06 20:47:16 [notice] 1#1: nginx/1.21.4
nginx            | 2021/12/06 20:47:16 [notice] 1#1: built by gcc 10.3.1 20210424 (Alpine 10.3.1_git20210424)
nginx            | 2021/12/06 20:47:16 [notice] 1#1: OS: Linux 5.4.0-91-generic
nginx            | 2021/12/06 20:47:16 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
nginx            | 2021/12/06 20:47:16 [notice] 1#1: start worker processes
nginx            | 2021/12/06 20:47:16 [notice] 1#1: start worker process 32
nginx            | 2021/12/06 20:47:16 [notice] 1#1: start worker process 33
nginx            | 2021/12/06 20:47:16 [notice] 1#1: start worker process 34
varnish exited with code 2
piped-backend    | Dec 06, 2021 8:47:17 PM org.hibernate.Version logVersion
piped-backend    | INFO: HHH000412: Hibernate ORM core version [WORKING]
varnish exited with code 2
varnish          | Error: Cannot read -f file '/etc/varnish/default.vcl' (Permission denied)
varnish          | (-? gives usage)
varnish exited with code 2
piped-backend    | Dec 06, 2021 8:47:20 PM org.hibernate.annotations.common.reflection.java.JavaReflectionManager <clinit>
piped-backend    | INFO: HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
piped-backend    | Dec 06, 2021 8:47:21 PM org.hibernate.dialect.Dialect <init>
piped-backend    | INFO: HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL10Dialect
varnish          | Error: Cannot read -f file '/etc/varnish/default.vcl' (Permission denied)
varnish          | (-? gives usage)
varnish exited with code 2
piped-backend    | Dec 06, 2021 8:47:23 PM org.hibernate.engine.jdbc.connections.internal.ConnectionProviderInitiator initiateService
piped-backend    | INFO: HHH000130: Instantiating explicit connection provider: org.hibernate.hikaricp.internal.HikariCPConnectionProvider
piped-backend    | Dec 06, 2021 8:47:23 PM org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator initiateService
piped-backend    | INFO: HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
piped-backend    | Cleanup: Removed 0 old videos
varnish exited with code 2
FireMasterK commented 2 years ago

Varnish is no longer used with the nginx option since https://github.com/TeamPiped/Piped-Docker/commit/2480d0dffbe2be69c51faf023332f4b00c92fd7d. :)