500 but no logs - Docker
Describe the bug
My castopod instance has a 500 error. Time when it happened: 28th June 2024 17:17 Europe/London time
URL:
Steps to reproduce
Unclear but I visit the website again and it is still there.
Expected behavior
I would see something in the logs that tells me what is going on.
Actual behavior
This is it, nothing more:
$ docker compose logs castopod-app | tail -n 20
castopod-app | time="2024-06-29T15:30:00Z" level=info msg="job succeeded" iteration=1349 job.command="/usr/local/bin/php /var/www/castopod/spark tasks:run >> /dev/null 2>&1" job.position=0 job.schedule="* * * * *"
castopod-app | 172.18.0.10 - - [29/Jun/2024:15:30:22 +0000] "GET /@ceremony/posts/a0810714-4a4f-409a-bd8b-ee4fcd9cff95/remote/favourite HTTP/1.1" 500 14 "-" "Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)"
castopod-app | 172.18.0.10 - - [29/Jun/2024:15:30:41 +0000] "GET /@hippy HTTP/1.1" 500 23053 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0"
castopod-app | 172.18.0.10 - - [29/Jun/2024:15:30:42 +0000] "GET /themes/colors HTTP/1.1" 200 3432 "https://pod.foss.wales/@hippy" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0"
castopod-app | 172.18.0.10 - - [29/Jun/2024:15:30:42 +0000] "GET /assets/kumbh-sans-700-PEmpjCPC.woff2 HTTP/1.1" 404 14 "https://pod.foss.wales/assets/styles/index-RE682tGG.css" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0"
castopod-app | 172.18.0.10 - - [29/Jun/2024:15:30:42 +0000] "GET /assets/inter-regular-ig6fRNws.woff2 HTTP/1.1" 404 14 "https://pod.foss.wales/assets/styles/index-RE682tGG.css" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0"
castopod-app | 172.18.0.10 - - [29/Jun/2024:15:30:42 +0000] "GET /sw.js HTTP/1.1" 200 2460 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0"
castopod-app | time="2024-06-29T15:31:00Z" level=info msg=starting iteration=1350 job.command="/usr/local/bin/php /var/www/castopod/spark tasks:run >> /dev/null 2>&1" job.position=0 job.schedule="* * * * *"
castopod-app | time="2024-06-29T15:31:00Z" level=info msg="job succeeded" iteration=1350 job.command="/usr/local/bin/php /var/www/castopod/spark tasks:run >> /dev/null 2>&1" job.position=0 job.schedule="* * * * *"
castopod-app | time="2024-06-29T15:32:00Z" level=info msg=starting iteration=1351 job.command="/usr/local/bin/php /var/www/castopod/spark tasks:run >> /dev/null 2>&1" job.position=0 job.schedule="* * * * *"
castopod-app | time="2024-06-29T15:32:00Z" level=info msg="job succeeded" iteration=1351 job.command="/usr/local/bin/php /var/www/castopod/spark tasks:run >> /dev/null 2>&1" job.position=0 job.schedule="* * * * *"
castopod-app | time="2024-06-29T15:33:00Z" level=info msg=starting iteration=1352 job.command="/usr/local/bin/php /var/www/castopod/spark tasks:run >> /dev/null 2>&1" job.position=0 job.schedule="* * * * *"
castopod-app | time="2024-06-29T15:33:00Z" level=info msg="job succeeded" iteration=1352 job.command="/usr/local/bin/php /var/www/castopod/spark tasks:run >> /dev/null 2>&1" job.position=0 job.schedule="* * * * *"
castopod-app | 172.18.0.10 - - [29/Jun/2024:15:33:47 +0000] "GET /@hippy HTTP/1.1" 500 23053 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0"
castopod-app | 172.18.0.10 - - [29/Jun/2024:15:33:47 +0000] "GET /themes/colors HTTP/1.1" 200 3432 "https://pod.foss.wales/@hippy" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0"
castopod-app | 172.18.0.10 - - [29/Jun/2024:15:33:47 +0000] "GET /assets/kumbh-sans-700-PEmpjCPC.woff2 HTTP/1.1" 404 14 "https://pod.foss.wales/assets/styles/index-RE682tGG.css" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0"
castopod-app | 172.18.0.10 - - [29/Jun/2024:15:33:47 +0000] "GET /assets/inter-regular-ig6fRNws.woff2 HTTP/1.1" 404 14 "https://pod.foss.wales/assets/styles/index-RE682tGG.css" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0"
castopod-app | 172.18.0.10 - - [29/Jun/2024:15:33:47 +0000] "GET /sw.js HTTP/1.1" 200 2460 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0"
castopod-app | time="2024-06-29T15:34:00Z" level=info msg=starting iteration=1353 job.command="/usr/local/bin/php /var/www/castopod/spark tasks:run >> /dev/null 2>&1" job.position=0 job.schedule="* * * * *"
castopod-app | time="2024-06-29T15:34:00Z" level=info msg="job succeeded" iteration=1353 job.command="/usr/local/bin/php /var/www/castopod/spark tasks:run >> /dev/null 2>&1" job.position=0 job.schedule="* * * * *"
Docker:
castopod-app:
image: castopod/castopod:latest
container_name: "castopod-app"
volumes:
- castopod-media:/var/www/castopod/public/media
environment:
MYSQL_DATABASE: castopod
MYSQL_USER: castopod
MYSQL_PASSWORD: ****
CP_BASEURL: "https://pod.foss.wales"
CP_ANALYTICS_SALT: ****
CP_CACHE_HANDLER: redis
CP_REDIS_HOST: castopod-redis
CP_REDIS_PASSWORD: ****
CP_DATABASE_HOSTNAME: castopod-mariadb
CP_EMAIL_SMTP_HOST: in-v3.mailjet.com
CP_EMAIL_FROM: pod@foss.wales
# CP_EMAIL_SMTP_USERNAME: pod@foss.wales
# additional key
# CP_EMAIL_SMTP_USERNAME: ****
# CP_EMAIL_SMTP_PASSWORD: ****
CP_EMAIL_SMTP_USERNAME: ****
CP_EMAIL_SMTP_PASSWORD: ****
CP_EMAIL_SMTP_PORT: 465
CP_EMAIL_SMTP_CRYPTO: ssl #tls
networks:
- castopod-app
- castopod-db
- default
# ports:
# - 8000:8000
restart: unless-stopped
Relevant logs and/or screenshots
Context
- Castopod: Unsure, the 500 page does not show anything.
- OS: Ubuntu/Docker
- Browser: Firefox
- Web server: nginx reverse proxy
Possible fixes
I see that tag 1.12.0 was pushed at that time. https://hub.docker.com/r/castopod/castopod/tags?page=&page_size=&ordering=&name=
When I revert back to 1.11.0, then I still get a 500 on the podcast but the front page loads.
castopod-app | 172.18.0.10 - - [29/Jun/2024:15:45:02 +0000] "GET /@hippy HTTP/1.1" 500 23053 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0"
castopod-app | 172.18.0.10 - - [29/Jun/2024:15:45:03 +0000] "GET /sw.js HTTP/1.1" 200 2460 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0"
castopod-app | 172.18.0.10 - - [29/Jun/2024:15:45:03 +0000] "GET /themes/colors HTTP/1.1" 200 3432 "https://pod.foss.wales/@hippy" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0"
castopod-app | 172.18.0.10 - - [29/Jun/2024:15:45:04 +0000] "GET /@hippy HTTP/1.1" 500 23053 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0"
castopod-app | 172.18.0.10 - - [29/Jun/2024:15:45:04 +0000] "GET /@hippy HTTP/1.1" 500 23053 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0"
castopod-app | 172.18.0.10 - - [29/Jun/2024:15:45:04 +0000] "GET /sw.js HTTP/1.1" 200 2460 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0"
castopod-app | 172.18.0.10 - - [29/Jun/2024:15:45:05 +0000] "GET /@hippy HTTP/1.1" 500 23053 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0"
castopod-app | 172.18.0.10 - - [29/Jun/2024:15:45:05 +0000] "GET /themes/colors HTTP/1.1" 200 3432 "https://pod.foss.wales/@hippy" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0"
castopod-app | 172.18.0.10 - - [29/Jun/2024:15:45:06 +0000] "GET /sw.js HTTP/1.1" 200 2460 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0"
Edited by Nicco Kunzmann