The app shows 500 Internal server error on client, the log looks like this:
Error: fetch failed
at context.fetch (/app/apps/webapp/.next/standalone/node_modules/.pnpm/next@14.0.2_@babel+core@7.23.2_react-dom@18.2.0_react@18.2.0_sass@1.66.1/node_modules/next/dist/server/web/sandbox/context.js:272:38)
at Object.middleware_middleware [as handler] (/app/apps/webapp/.next/standalone/apps/webapp/.next/server/src/middleware.js:2253:15)
at /app/apps/webapp/.next/standalone/apps/webapp/.next/server/src/middleware.js:1426:23
at AsyncLocalStorage.run (node:async_hooks:346:14)
at Object.wrap (/app/apps/webapp/.next/standalone/apps/webapp/.next/server/src/middleware.js:1238:24)
at adapter (/app/apps/webapp/.next/standalone/apps/webapp/.next/server/src/middleware.js:1413:53)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
cause: [Error: D07B0FDCAAAA0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
] {
library: 'SSL routines',
reason: 'wrong version number',
code: 'ERR_SSL_WRONG_VERSION_NUMBER'
}
}
The next app is built with option output: standalone;
and run using node server.js
command.
We use Next.js v13.
- Docker compose file, that is used to run the app: docker_compose.yaml - Pastebin.com
traefik.yaml
: traefik.yaml - Pastebin.com- Dockerfile: Dockerfile - Pastebin.com
- note: app is built in CI pipeline, then the build output is copied into the image
- app is using pnpm with turborepo monorepo
- other containers that run on this VPS under traefik have no issues
- traefik has no error logs