tmorgan497
Explore posts from serversSudden uptick of 503 errors on Cloudflare pages for exceeded cpu time
For the last 24hrs, I've been getting 503 errors on my Nuxt app deployed to cloudflare pages. The app is a very small blog app with only 2 articles. I'm on the free tier and my worker usages are nowhere near the free tier limits. The last update that I made to my app was in September of this year, so I haven't changed anything and it's been working fine since then. Any suggestions on where to look? There's no suspicious traffic that I can tell. I have a WAF rule for US-only traffic and banning all other. I don't really see much of a traffic spike in the analytics. DDoS protection is on too. I'm averaging like less than 1400 visitors a day, so that should be well within the limits. My nuxt app is set to SSR, but it's extremely minimal (it's a nuxt-content app) and only has 2 articles. I use NuxtImg, but my images are using cloudflare image transforms to optimize them. I have not tried to just use the <img> tag by itself instead of <NuxtImg>, but I will try that later
5 replies
CDCloudflare Developers
•Created by tmorgan497 on 12/21/2024 in #workers-help
Suddenly getting 503 errors due to exceededCpu
For the last 24hrs, I've been getting 503 errors on my Nuxt app deployed to cloudflare pages. The app is a very small blog app with only 2 articles. I'm on the free tier and my worker usages are nowhere near the free tier limits. The last update that I made to my app was in September of this year, so I haven't changed anything and it's been working fine since then. Any suggestions on where to look? There's no suspicious traffic that I can tell. I have a WAF rule for US-only traffic and banning all other. I don't really see much of a traffic spike in the analytics. DDoS protection is on too. I'm averaging like less than 1400 visitors a day, so that should be well within the limits. My nuxt app is set to SSR, but it's extremely minimal (it's a nuxt-content app) and only has 2 articles. I use NuxtImg, but my images are using cloudflare image transforms to optimize them. I have not tried to just use the <img> tag by itself instead of <NuxtImg>, but I will try that later
1 replies
High CPU Usage in Docker when running Nuxt in dev
When I run nuxt with
yarn run dev
in my docker container, the CPU usage of the container is high. Also, every few seconds, the logs output this:
I don't know if that is expected behavior, but when I run yarn run dev
outside of the container, the CPU usage is a lot lower and the nitro-runtime logs don't occur.
Here's my Dockerfile:
and my compose file for the frontend container:
6 replies
IImmich
•Created by tmorgan497 on 9/16/2023 in #help-desk-support
CORS help for API requests
I'm trying to get the API to work from another webapp, but I keep getting CORS errors. In the immich-proxy container, I tried mapping an nginx.conf file to /etc/nginx/conf.d/default.conf to add the CORS setting, but I keep getting read/write errors in the container. What's the correct way to configure CORS? The webapp that's trying to access the API is a Quasar + Django app using Axios for the API call.
docker-compose.yml (just the immich-proxy container) (running via Portainer on an Unraid server):
immich-proxy:
container_name: immich_proxy
image: ghcr.io/immich-app/immich-proxy:${IMMICH_VERSION:-release}
environment:
- IMMICH_SERVER_URL
- IMMICH_WEB_URL
ports:
- 2283:8080
depends_on:
- immich-server
- immich-web
restart: always
volumes:
- /mnt/user/appdata/immich-app/nginx.conf:/etc/nginx/conf.d/default.conf:rw
- immich-proxy-conf:/etc/nginx/conf.d
volumes:
immich-proxy-conf:
Log output from the immich-proxy container:
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: can not modify /etc/nginx/conf.d/default.conf (read-only file system?)
/docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-set-env-variables.envsh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
20-envsubst-on-templates.sh: Running envsubst on /etc/nginx/templates/default.conf.template to /etc/nginx/conf.d/default.conf
/docker-entrypoint.d/20-envsubst-on-templates.sh: line 53: can't create /etc/nginx/conf.d/default.conf: Permission denied
32 replies