Piped icon indicating copy to clipboard operation
Piped copied to clipboard

Piped tries to call /usr/share/nginx/html/.git/config even when I chose Caddy (may be user error)

Open SolninjaA opened this issue 3 years ago • 3 comments

Official Instance

Describe the bug

I chose Caddy as my reverse proxy but when I ran it through docker compose, I couldn't access the website for starters, it always gave errors on my browser but it also tried to call an NGINX file. piped-frontend | 2022/08/16 02:45:41 [error] 8#8: *1 open() "/usr/share/nginx/html/.git/config" failed (2: No such file or directory), client: *whereTheIpIs*, server: localhost, request: "GET /.git/config HTTP/1.1", host: "piped.domain.com" Note: I have replaced the IP that was showing with "whereTheIpIs*" and my domain to "domain.com".

To Reproduce

  1. Follow this guide for installation with Caddy https://piped-docs.kavin.rocks/docs/self-hosting/

  2. Run docker compose up

  3. Try to connect to that instance Note: it took a while for that error to show up

Expected behavior

I should be able to access Piped and see all the videos / no errors.

Logs/Errors

caddy            | {"level":"info","ts":1660617719.0183945,"logger":"admin","msg":"admin endpoint started","address":"tcp/localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//*whereTheIPIs*:2019"]}
caddy            | {"level":"info","ts":1660617719.0186381,"logger":"http","msg":"server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS","server_name":"srv0","https_port":443}
caddy            | {"level":"info","ts":1660617719.018654,"logger":"http","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
caddy            | {"level":"info","ts":1660617719.021281,"logger":"http","msg":"enabling experimental HTTP/3 listener","addr":":443"}
caddy            | {"level":"info","ts":1660617719.0213456,"msg":"failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details."}
caddy            | {"level":"info","ts":1660617719.021437,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["pipedproxy.solninjaa.com","pipedapi.solninjaa.com","piped.solninjaa.com"]}
caddy            | {"level":"info","ts":1660617719.0285537,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc00019d490"}
caddy            | {"level":"info","ts":1660617719.0286102,"logger":"tls","msg":"cleaning storage unit","description":"FileStorage:/data/caddy"}
caddy            | {"level":"info","ts":1660617719.0302522,"logger":"tls","msg":"finished cleaning storage units"}
caddy            | {"level":"info","ts":1660617719.0364335,"msg":"autosaved config (load with --resume flag)","file":"/config/caddy/autosave.json"}
caddy            | {"level":"info","ts":1660617719.0364525,"msg":"serving initial configuration"}
piped-backend    | ThrottlingCache: 0 entries
postgres         |
postgres         | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres         |
postgres         | 2022-08-16 02:41:59.071 UTC [1] LOG:  starting PostgreSQL 13.8 on x86_64-pc-linux-musl, compiled by gcc (Alpine 11.2.1_git20220219) 11.2.1 20220219, 64-bit
postgres         | 2022-08-16 02:41:59.071 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres         | 2022-08-16 02:41:59.071 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres         | 2022-08-16 02:41:59.072 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres         | 2022-08-16 02:41:59.074 UTC [20] LOG:  database system was shut down at 2022-08-16 02:41:19 UTC
postgres         | 2022-08-16 02:41:59.077 UTC [1] LOG:  database system is ready to accept connections
watchtower       | time="2022-08-16T02:41:59Z" level=info msg="Watchtower 1.4.0"
watchtower       | time="2022-08-16T02:41:59Z" level=info msg="Using no notifications"
watchtower       | time="2022-08-16T02:41:59Z" level=info msg="Only checking containers with name \"piped-frontend\" or \"piped-backend\" or \"ytproxy\" or \"varnish\" or \"caddy\" or \"postgres\" or \"watchtower\""
watchtower       | time="2022-08-16T02:41:59Z" level=info msg="Scheduling first run: TIME UTC"
watchtower       | time="2022-08-16T02:41:59Z" level=info msg="Note that the first check will be performed in 23 hours, 59 minutes, 59 seconds"
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.
varnish          | Debug: Version: varnish-7.0.3 revision 6a4c6a5c7e66a664b140278c209f0b18c544cab8
varnish          | Debug: Platform: OS,-junix,-smalloc,-sdefault,-hcritbit
varnish          | Debug: Child (16) Started
varnish          | Info: Child (16) said Child starts
piped-backend    | TIME org.hibernate.Version logVersion
piped-backend    | INFO: HHH000412: Hibernate ORM core version [WORKING]
piped-frontend   | TIME [notice] 1#1: using the "epoll" event method
piped-frontend   | TIME [notice] 1#1: nginx/1.23.1
piped-frontend   | TIME [notice] 1#1: built by gcc 11.2.1 20220219 (Alpine 11.2.1_git20220219)
piped-frontend   | TIME [notice] 1#1: OS: OS
piped-frontend   | TIME [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
piped-frontend   | TIME [notice] 1#1: start worker processes
piped-frontend   | TIME [notice] 1#1: start worker process 8
piped-backend    | TIME org.hibernate.engine.jdbc.connections.internal.ConnectionProviderInitiator initiateService
piped-backend    | INFO: HHH000130: Instantiating explicit connection provider: org.hibernate.hikaricp.internal.HikariCPConnectionProvider
piped-backend    | TIME org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl logSelectedDialect
piped-backend    | INFO: HHH000400: Using dialect: org.hibernate.dialect.PostgreSQLDialect
piped-backend    | TIME 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    | Database connection is ready!
piped-backend    | Cleanup: Removed 0 old videos
piped-frontend   | *whereTheIPIs* - - [TIME] "GET / HTTP/1.1" 200 2480 "-" "Browser/Version (OS (not correct one); WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Browser/Version Browser/Version" "*whereTheIPIs*7"
piped-frontend   | 172.18.0.4 - - [TIME] "GET / HTTP/1.1" 200 2480 "-" "Browser/Version (OS (not correct one)) AppleWebKit/537.36 (KHTML, like Gecko) Browser/Version Browser/Version" "*whereTheIPIs*"
piped-frontend   | *whereTheIPIs* - - [TIME] "GET /.git/config HTTP/1.1" 200 2480 "-" "Browser/Version (OS (not correct one)) AppleWebKit/537.36 (KHTML, like Gecko) Browser/Version Browser/Version Browser(I assume)/Version" "*whereTheIPIs*"
piped-frontend   | TIME [error] 8#8: *1 open() "/usr/share/nginx/html/.git/config" failed (2: No such file or directory), client: *whereTheIPIs*, server: localhost, request: "GET /.git/config HTTP/1.1", host: "piped.domain.com"
piped-frontend   | *whereTheIPIs* - - [TIME] "GET / HTTP/1.1" 200 2480 "-" "Browser/Version (operating-System; rv-number) Gecko/20100101 Firefox/45.0" "*whereTheIPIs*"

Browser, and OS with Version.

Firefox 103.0 on Arch Linux

Additional context

I created this on a cloud server (separate from another one I have). I tried on the one I already had but it never worked so I thought making a new one would work, but it didn't.

SolninjaA avatar Aug 16 '22 03:08 SolninjaA

This shouldn't be a problem, what errors are you facing in the browser?

FireMasterK avatar Aug 16 '22 06:08 FireMasterK

This shouldn't be a problem, what errors are you facing in the browser? I went to my server and started it via docker compose to get the error, but then for some reason it worked. I have absolutely no idea why. I changed nothing but it just decided to work for me. Hopefully it stays that way when I reinstall it on a new server!

It's strange since I stopped and started Piped with docker a couple of times but it never worked then.

I'm very sorry for wasting your time!

SolninjaA avatar Aug 16 '22 06:08 SolninjaA

This isn't related with the original issue (or at least I don't think) but when I change preferences no videos show anymore. Feel free to not help with this issue, after all it doesn't look related to the original issue.

Update: The issue may be whenever you change any preference setting, but I've seen that changing my country to something other than the United States will not show videos.

SolninjaA avatar Aug 16 '22 06:08 SolninjaA