Hello,
I recently made modifications to my app, and redeployed it, but when I started it and opended it in the browser, a server-side error occured:
Waiting for logs...
2023-08-27T20:54:50.248 runner[d89124eb666058] cdg [info] Successfully prepared image registry.fly.io/slashwriter:deployment-01H8WC5G5DB6S3Z5YENW55RJZM (9.685648417s)
2023-08-27T20:54:51.869 runner[d89124eb666058] cdg [info] Configuring firecracker
2023-08-27T20:54:51.973 app[d89124eb666058] cdg [info] INFO Sending signal SIGINT to main child process w/ PID 231
2023-08-27T20:54:52.422 app[d89124eb666058] cdg [info] INFO Main child exited with signal (with signal 'SIGINT', core dumped? false)
2023-08-27T20:54:52.423 app[d89124eb666058] cdg [info] INFO Starting clean up.
2023-08-27T20:54:52.433 app[d89124eb666058] cdg [info] WARN hallpass exited, pid: 232, status: signal: 15 (SIGTERM)
2023-08-27T20:54:52.436 app[d89124eb666058] cdg [info] 2023/08/27 20:54:52 listening on [fdaa:0:c6d8:a7b:169:a9d5:c562:2]:22 (DNS: [fdaa::3]:53)
2023-08-27T20:54:53.430 app[d89124eb666058] cdg [info] [65438.912074] reboot: Restarting system
2023-08-27T20:54:53.802 app[d89124eb666058] cdg [info] [ 0.034866] PCI: Fatal: No config space access function found
2023-08-27T20:54:54.005 app[d89124eb666058] cdg [info] INFO Starting init (commit: b437b5b)...
2023-08-27T20:54:54.022 app[d89124eb666058] cdg [info] INFO Preparing to run: `docker-entrypoint.sh yarn start` as nextjs
2023-08-27T20:54:54.029 app[d89124eb666058] cdg [info] INFO [fly api proxy] listening at /.fly/api
2023-08-27T20:54:54.033 app[d89124eb666058] cdg [info] 2023/08/27 20:54:54 listening on [fdaa:0:c6d8:a7b:169:a9d5:c562:2]:22 (DNS: [fdaa::3]:53)
2023-08-27T20:54:54.463 app[d89124eb666058] cdg [info] yarn run v1.22.19
2023-08-27T20:54:54.490 app[d89124eb666058] cdg [info] $ cross-env NODE_ENV=production node dist/server/index.js
2023-08-27T20:54:54.859 app[d89124eb666058] cdg [info] - info Loaded env from /app/.env.production
2023-08-27T20:54:55.088 app[d89124eb666058] cdg [info] Server listening on port 8080
2023-08-27T20:55:58.742 app[d89124eb666058] cdg [info] [ 64.969686] Out of memory: Killed process 311 (node) total-vm:31785732kB, anon-rss:41924kB, file-rss:0kB, shmem-rss:0kB, UID:1001 pgtables:1056kB oom_score_adj:0
2023-08-27T20:55:58.765 app[d89124eb666058] cdg [info] Error: read ECONNRESET
2023-08-27T20:55:58.765 app[d89124eb666058] cdg [info] at TCP.onStreamRead (node:internal/stream_base_commons:217:20) {
2023-08-27T20:55:58.765 app[d89124eb666058] cdg [info] errno: -104,
2023-08-27T20:55:58.765 app[d89124eb666058] cdg [info] code: 'ECONNRESET',
2023-08-27T20:55:58.765 app[d89124eb666058] cdg [info] syscall: 'read'
2023-08-27T20:55:58.765 app[d89124eb666058] cdg [info] }
2023-08-27T20:57:04.256 proxy[d89124eb666058] cdg [error] could not make HTTP request to instance: connection error: timed out
2023-08-27T20:57:39.012 app[d89124eb666058] cdg [info] INFO Sending signal SIGINT to main child process w/ PID 255
2023-08-27T20:57:39.235 app[d89124eb666058] cdg [info] INFO Main child exited with signal (with signal 'SIGINT', core dumped? false)
2023-08-27T20:57:39.236 app[d89124eb666058] cdg [info] INFO Starting clean up.
2023-08-27T20:57:39.248 app[d89124eb666058] cdg [info] WARN hallpass exited, pid: 256, status: signal: 15 (SIGTERM)
2023-08-27T20:57:39.254 app[d89124eb666058] cdg [info] 2023/08/27 20:57:39 listening on [fdaa:0:c6d8:a7b:169:a9d5:c562:2]:22 (DNS: [fdaa::3]:53)
2023-08-27T20:57:40.245 app[d89124eb666058] cdg [info] [ 166.471907] reboot: Restarting system
2023-08-27T20:57:40.898 app[d89124eb666058] cdg [info] [ 0.036246] PCI: Fatal: No config space access function found
2023-08-27T20:57:41.109 app[d89124eb666058] cdg [info] INFO Starting init (commit: b437b5b)...
2023-08-27T20:57:41.126 app[d89124eb666058] cdg [info] INFO Preparing to run: `docker-entrypoint.sh yarn start` as nextjs
2023-08-27T20:57:41.133 app[d89124eb666058] cdg [info] INFO [fly api proxy] listening at /.fly/api
2023-08-27T20:57:41.136 app[d89124eb666058] cdg [info] 2023/08/27 20:57:41 listening on [fdaa:0:c6d8:a7b:169:a9d5:c562:2]:22 (DNS: [fdaa::3]:53)
2023-08-27T20:57:41.401 health[d89124eb666058] cdg [error] Health check on port 8080 has failed. Your app is not responding properly. Services exposed on ports [80, 443] will have intermittent failures until the health check passes.
2023-08-27T20:57:41.544 app[d89124eb666058] cdg [info] yarn run v1.22.19
2023-08-27T20:57:41.570 app[d89124eb666058] cdg [info] $ cross-env NODE_ENV=production node dist/server/index.js
2023-08-27T20:57:41.928 app[d89124eb666058] cdg [info] - info Loaded env from /app/.env.production
2023-08-27T20:57:42.148 app[d89124eb666058] cdg [info] Server listening on port 8080
2023-08-27T20:57:56.401 health[d89124eb666058] cdg [info] Health check on port 8080 is now passing.
2023-08-27T20:58:20.693 app[d89124eb666058] cdg [info] [ 39.826548] Out of memory: Killed process 311 (node) total-vm:31783480kB, anon-rss:41268kB, file-rss:0kB, shmem-rss:0kB, UID:1001 pgtables:1064kB oom_score_adj:0
2023-08-27T20:58:20.723 app[d89124eb666058] cdg [info] Error: socket hang up
2023-08-27T20:58:20.723 app[d89124eb666058] cdg [info] at connResetException (node:internal/errors:705:14)
2023-08-27T20:58:20.723 app[d89124eb666058] cdg [info] at Socket.socketOnEnd (node:_http_client:518:23)
2023-08-27T20:58:20.723 app[d89124eb666058] cdg [info] at Socket.emit (node:events:525:35)
2023-08-27T20:58:20.723 app[d89124eb666058] cdg [info] at endReadableNT (node:internal/streams/readable:1358:12)
2023-08-27T20:58:20.723 app[d89124eb666058] cdg [info] at processTicksAndRejections (node:internal/process/task_queues:83:21) {
2023-08-27T20:58:20.723 app[d89124eb666058] cdg [info] code: 'ECONNRESET'
2023-08-27T20:58:20.723 app[d89124eb666058] cdg [info] }
2023-08-27T20:59:38.457 proxy[d89124eb666058] cdg [error] could not make HTTP request to instance: connection error: timed out
2023-08-27T21:02:17.056 proxy[d89124eb666058] cdg [error] could not make HTTP request to instance: connection error: timed out
2023-08-27T21:05:14.625 app[d89124eb666058] cdg [info] INFO Sending signal SIGINT to main child process w/ PID 255
2023-08-27T21:05:14.672 app[d89124eb666058] cdg [info] INFO Main child exited with signal (with signal 'SIGINT', core dumped? false)
2023-08-27T21:05:14.673 app[d89124eb666058] cdg [info] INFO Starting clean up.
2023-08-27T21:05:14.690 app[d89124eb666058] cdg [info] WARN hallpass exited, pid: 256, status: signal: 15 (SIGTERM)
2023-08-27T21:05:14.695 app[d89124eb666058] cdg [info] 2023/08/27 21:05:14 listening on [fdaa:0:c6d8:a7b:169:a9d5:c562:2]:22 (DNS: [fdaa::3]:53)
2023-08-27T21:05:15.683 app[d89124eb666058] cdg [info] [ 454.811382] reboot: Restarting system
2023-08-27T21:05:16.204 app[d89124eb666058] cdg [info] [ 0.034343] PCI: Fatal: No config space access function found
2023-08-27T21:05:16.411 app[d89124eb666058] cdg [info] INFO Starting init (commit: b437b5b)...
2023-08-27T21:05:16.428 app[d89124eb666058] cdg [info] INFO Preparing to run: `docker-entrypoint.sh yarn start` as nextjs
2023-08-27T21:05:16.436 app[d89124eb666058] cdg [info] INFO [fly api proxy] listening at /.fly/api
2023-08-27T21:05:16.439 app[d89124eb666058] cdg [info] 2023/08/27 21:05:16 listening on [fdaa:0:c6d8:a7b:169:a9d5:c562:2]:22 (DNS: [fdaa::3]:53)
2023-08-27T21:05:16.847 app[d89124eb666058] cdg [info] yarn run v1.22.19
2023-08-27T21:05:16.875 app[d89124eb666058] cdg [info] $ cross-env NODE_ENV=production node dist/server/index.js
2023-08-27T21:05:17.247 app[d89124eb666058] cdg [info] - info Loaded env from /app/.env.production
2023-08-27T21:05:17.485 app[d89124eb666058] cdg [info] Server listening on port 8080
2023-08-27T21:06:23.795 app[d89124eb666058] cdg [info] [ 67.620573] Out of memory: Killed process 311 (node) total-vm:31786764kB, anon-rss:42424kB, file-rss:0kB, shmem-rss:0kB, UID:1001 pgtables:1056kB oom_score_adj:0
2023-08-27T21:06:23.846 app[d89124eb666058] cdg [info] Error: read ECONNRESET
2023-08-27T21:06:23.846 app[d89124eb666058] cdg [info] at TCP.onStreamRead (node:internal/stream_base_commons:217:20) {
2023-08-27T21:06:23.846 app[d89124eb666058] cdg [info] errno: -104,
2023-08-27T21:06:23.846 app[d89124eb666058] cdg [info] code: 'ECONNRESET',
2023-08-27T21:06:23.846 app[d89124eb666058] cdg [info] syscall: 'read'
2023-08-27T21:06:23.846 app[d89124eb666058] cdg [info] }
2023-08-27T21:07:03.009 app[d89124eb666058] cdg [info] INFO Sending signal SIGINT to main child process w/ PID 255
2023-08-27T21:07:03.559 app[d89124eb666058] cdg [info] INFO Main child exited with signal (with signal 'SIGINT', core dumped? false)
2023-08-27T21:07:03.559 app[d89124eb666058] cdg [info] INFO Starting clean up.
2023-08-27T21:07:03.571 app[d89124eb666058] cdg [info] WARN hallpass exited, pid: 256, status: signal: 15 (SIGTERM)
2023-08-27T21:07:03.576 app[d89124eb666058] cdg [info] 2023/08/27 21:07:03 listening on [fdaa:0:c6d8:a7b:169:a9d5:c562:2]:22 (DNS: [fdaa::3]:53)
2023-08-27T21:07:04.568 app[d89124eb666058] cdg [info] [ 108.394091] reboot: Restarting system
2023-08-27T21:07:11.075 app[d89124eb666058] cdg [info] [ 0.035035] PCI: Fatal: No config space access function found
2023-08-27T21:07:11.286 app[d89124eb666058] cdg [info] INFO Starting init (commit: b437b5b)...
2023-08-27T21:07:11.302 app[d89124eb666058] cdg [info] INFO Preparing to run: `docker-entrypoint.sh yarn start` as nextjs
2023-08-27T21:07:11.310 app[d89124eb666058] cdg [info] INFO [fly api proxy] listening at /.fly/api
2023-08-27T21:07:11.313 app[d89124eb666058] cdg [info] 2023/08/27 21:07:11 listening on [fdaa:0:c6d8:a7b:169:a9d5:c562:2]:22 (DNS: [fdaa::3]:53)
2023-08-27T21:07:11.733 app[d89124eb666058] cdg [info] yarn run v1.22.19
2023-08-27T21:07:11.761 app[d89124eb666058] cdg [info] $ cross-env NODE_ENV=production node dist/server/index.js
2023-08-27T21:07:12.121 app[d89124eb666058] cdg [info] - info Loaded env from /app/.env.production
2023-08-27T21:07:12.355 app[d89124eb666058] cdg [info] Server listening on port 8080
2023-08-27T21:07:44.090 app[d89124eb666058] cdg [info] [ 33.045709] Out of memory: Killed process 311 (node) total-vm:31785672kB, anon-rss:41828kB, file-rss:0kB, shmem-rss:0kB, UID:1001 pgtables:1044kB oom_score_adj:0
2023-08-27T21:07:44.136 app[d89124eb666058] cdg [info] Error: socket hang up
2023-08-27T21:07:44.136 app[d89124eb666058] cdg [info] at connResetException (node:internal/errors:705:14)
2023-08-27T21:07:44.136 app[d89124eb666058] cdg [info] at Socket.socketOnEnd (node:_http_client:518:23)
2023-08-27T21:07:44.136 app[d89124eb666058] cdg [info] at Socket.emit (node:events:525:35)
2023-08-27T21:07:44.136 app[d89124eb666058] cdg [info] at endReadableNT (node:internal/streams/readable:1358:12)
2023-08-27T21:07:44.136 app[d89124eb666058] cdg [info] at processTicksAndRejections (node:internal/process/task_queues:83:21) {
2023-08-27T21:07:44.136 app[d89124eb666058] cdg [info] code: 'ECONNRESET'
2023-08-27T21:07:44.136 app[d89124eb666058] cdg [info] }
2023-08-27T21:09:23.208 proxy[d89124eb666058] cdg [error] could not make HTTP request to instance: connection error: timed out
Here is the fly.toml file:
# fly.toml file generated for slashwriter on 2023-01-21T03:14:45+01:00
app = "slashwriter"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[env]
PORT = "8080"
[experimental]
allowed_public_ports = []
auto_rollback = true
[[services]]
http_checks = []
internal_port = 8080
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"
The last deployment was 2 months ago, but there wasn’t any issue. What can I do?
Thanks in advance for the help!