Trying to get this running, but when I visit port 8008 I just get a "500 Internal Error" page. Are you able to help?
[root@box serge]# docker compose up
[+] Running 5/5
β Ώ Network serge_default Created 0.1s
β Ώ Container serge-web-1 Created 1.2s
β Ώ Container serge-nginx-1 Created 0.1s
β Ώ Container serge-mongodb-1 Created 0.1s
β Ώ Container serge-api-1 Created 0.0s
Attaching to serge-api-1, serge-mongodb-1, serge-nginx-1, serge-web-1
serge-nginx-1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
serge-nginx-1 | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
serge-nginx-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
serge-nginx-1 | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
serge-nginx-1 | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
serge-nginx-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
serge-nginx-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
serge-nginx-1 | /docker-entrypoint.sh: Configuration complete; ready for start up
serge-nginx-1 | 2023/03/23 13:23:34 [notice] 1#1: using the "epoll" event method
serge-nginx-1 | 2023/03/23 13:23:34 [notice] 1#1: nginx/1.23.3
serge-nginx-1 | 2023/03/23 13:23:34 [notice] 1#1: built by gcc 12.2.1 20220924 (Alpine 12.2.1_git20220924-r4)
serge-nginx-1 | 2023/03/23 13:23:34 [notice] 1#1: OS: Linux 6.2.2-1.el8.elrepo.x86_64
serge-nginx-1 | 2023/03/23 13:23:34 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
serge-nginx-1 | 2023/03/23 13:23:34 [notice] 1#1: start worker processes
serge-nginx-1 | 2023/03/23 13:23:34 [notice] 1#1: start worker process 29
serge-nginx-1 | 2023/03/23 13:23:34 [notice] 1#1: start worker process 30
serge-nginx-1 | 2023/03/23 13:23:34 [notice] 1#1: start worker process 31
serge-nginx-1 | 2023/03/23 13:23:34 [notice] 1#1: start worker process 32
serge-nginx-1 | 2023/03/23 13:23:34 [notice] 1#1: start worker process 33
serge-nginx-1 | 2023/03/23 13:23:34 [notice] 1#1: start worker process 34
serge-nginx-1 | 2023/03/23 13:23:34 [notice] 1#1: start worker process 35
serge-nginx-1 | 2023/03/23 13:23:34 [notice] 1#1: start worker process 36
serge-nginx-1 | 2023/03/23 13:23:34 [notice] 1#1: start worker process 37
serge-nginx-1 | 2023/03/23 13:23:34 [notice] 1#1: start worker process 38
serge-nginx-1 | 2023/03/23 13:23:34 [notice] 1#1: start worker process 39
serge-nginx-1 | 2023/03/23 13:23:34 [notice] 1#1: start worker process 40
serge-nginx-1 | 2023/03/23 13:23:34 [notice] 1#1: start worker process 41
serge-nginx-1 | 2023/03/23 13:23:34 [notice] 1#1: start worker process 42
serge-nginx-1 | 2023/03/23 13:23:34 [notice] 1#1: start worker process 43
serge-nginx-1 | 2023/03/23 13:23:34 [notice] 1#1: start worker process 44
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:34.927+00:00"},"s":"I", "c":"NETWORK", "id":4915701, "ctx":"-","msg":"Initialized wire specification","attr":{"spec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":17},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":17},"outgoing":{"minWireVersion":6,"maxWireVersion":17},"isInternalClient":true}}}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:34.928+00:00"},"s":"I", "c":"CONTROL", "id":23285, "ctx":"-","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:34.928+00:00"},"s":"I", "c":"NETWORK", "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize."}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:34.928+00:00"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationDonorService","namespace":"config.tenantMigrationDonors"}}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:34.928+00:00"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationRecipientService","namespace":"config.tenantMigrationRecipients"}}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:34.928+00:00"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"ShardSplitDonorService","namespace":"config.tenantSplitDonors"}}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:34.928+00:00"},"s":"I", "c":"CONTROL", "id":5945603, "ctx":"main","msg":"Multi threading initialized"}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:34.929+00:00"},"s":"I", "c":"CONTROL", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":1,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"600d9ce93974"}}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:34.929+00:00"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"6.0.4","gitVersion":"44ff59461c1353638a71e710f385a566bcd2f547","openSSLVersion":"OpenSSL 3.0.2 15 Mar 2022","modules":[],"allocator":"tcmalloc","environment":{"distmod":"ubuntu2204","distarch":"x86_64","target_arch":"x86_64"}}}}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:34.929+00:00"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Ubuntu","version":"22.04"}}}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:34.929+00:00"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"net":{"bindIp":"*"}}}}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:34.929+00:00"},"s":"I", "c":"STORAGE", "id":22270, "ctx":"initandlisten","msg":"Storage engine to use detected by data files","attr":{"dbpath":"/data/db","storageEngine":"wiredTiger"}}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:34.929+00:00"},"s":"I", "c":"STORAGE", "id":22297, "ctx":"initandlisten","msg":"Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem","tags":["startupWarnings"]}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:34.929+00:00"},"s":"I", "c":"STORAGE", "id":22315, "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=6935M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,remove=true,path=journal,compressor=snappy),builtin_extension_config=(zstd=(compression_level=6)),file_manager=(close_idle_time=600,close_scan_interval=10,close_handle_minimum=2000),statistics_log=(wait=0),json_output=(error,message),verbose=[recovery_progress:1,checkpoint_progress:1,compact_progress:1,backup:0,checkpoint:0,compact:0,evict:0,history_store:0,recovery:0,rts:0,salvage:0,tiered:0,timestamp:0,transaction:0,verify:0,log:0],"}}
serge-api-1 | INFO: Will watch for changes in these directories: ['/usr/src/app']
serge-api-1 | INFO: Uvicorn running on http://0.0.0.0:9124 (Press CTRL+C to quit)
serge-api-1 | INFO: Started reloader process [1] using WatchFiles
serge-web-1 |
serge-web-1 | > [email protected] dev
serge-web-1 | > vite dev --host 0.0.0.0 --port 9123
serge-web-1 |
serge-api-1 | Process SpawnProcess-1:
serge-api-1 | Traceback (most recent call last):
serge-api-1 | File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
serge-api-1 | self.run()
serge-api-1 | File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
serge-api-1 | self._target(*self._args, **self._kwargs)
serge-api-1 | File "/usr/local/lib/python3.8/dist-packages/uvicorn/_subprocess.py", line 76, in subprocess_started
serge-api-1 | target(sockets=sockets)
serge-api-1 | File "/usr/local/lib/python3.8/dist-packages/uvicorn/server.py", line 59, in run
serge-api-1 | return asyncio.run(self.serve(sockets=sockets))
serge-api-1 | File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
serge-api-1 | return loop.run_until_complete(main)
serge-api-1 | File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
serge-api-1 | File "/usr/local/lib/python3.8/dist-packages/uvicorn/server.py", line 66, in serve
serge-api-1 | config.load()
serge-api-1 | File "/usr/local/lib/python3.8/dist-packages/uvicorn/config.py", line 471, in load
serge-api-1 | self.loaded_app = import_from_string(self.app)
serge-api-1 | File "/usr/local/lib/python3.8/dist-packages/uvicorn/importer.py", line 24, in import_from_string
serge-api-1 | raise exc from None
serge-api-1 | File "/usr/local/lib/python3.8/dist-packages/uvicorn/importer.py", line 21, in import_from_string
serge-api-1 | module = importlib.import_module(module_str)
serge-api-1 | File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
serge-api-1 | return _bootstrap._gcd_import(name[level:], package, level)
serge-api-1 | File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
serge-api-1 | File "<frozen importlib._bootstrap>", line 991, in _find_and_load
serge-api-1 | File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
serge-api-1 | File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
serge-api-1 | File "<frozen importlib._bootstrap_external>", line 848, in exec_module
serge-api-1 | File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
serge-api-1 | File "/usr/src/app/main.py", line 4, in <module>
serge-api-1 | from typing import Annotated
serge-api-1 | ImportError: cannot import name 'Annotated' from 'typing' (/usr/lib/python3.8/typing.py)
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:35.483+00:00"},"s":"I", "c":"STORAGE", "id":4795906, "ctx":"initandlisten","msg":"WiredTiger opened","attr":{"durationMillis":554}}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:35.483+00:00"},"s":"I", "c":"RECOVERY", "id":23987, "ctx":"initandlisten","msg":"WiredTiger recoveryTimestamp","attr":{"recoveryTimestamp":{"$timestamp":{"t":0,"i":0}}}}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:35.490+00:00"},"s":"W", "c":"CONTROL", "id":22120, "ctx":"initandlisten","msg":"Access control is not enabled for the database. Read and write access to data and configuration is unrestricted","tags":["startupWarnings"]}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:35.490+00:00"},"s":"W", "c":"CONTROL", "id":22178, "ctx":"initandlisten","msg":"/sys/kernel/mm/transparent_hugepage/enabled is 'always'. We suggest setting it to 'never'","tags":["startupWarnings"]}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:35.490+00:00"},"s":"W", "c":"CONTROL", "id":5123300, "ctx":"initandlisten","msg":"vm.max_map_count is too low","attr":{"currentValue":65530,"recommendedMinimum":1677720,"maxConns":838860},"tags":["startupWarnings"]}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:35.492+00:00"},"s":"I", "c":"NETWORK", "id":4915702, "ctx":"initandlisten","msg":"Updated wire specification","attr":{"oldSpec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":17},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":17},"outgoing":{"minWireVersion":6,"maxWireVersion":17},"isInternalClient":true},"newSpec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":17},"incomingInternalClient":{"minWireVersion":17,"maxWireVersion":17},"outgoing":{"minWireVersion":17,"maxWireVersion":17},"isInternalClient":true}}}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:35.492+00:00"},"s":"I", "c":"REPL", "id":5853300, "ctx":"initandlisten","msg":"current featureCompatibilityVersion value","attr":{"featureCompatibilityVersion":"6.0","context":"startup"}}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:35.492+00:00"},"s":"I", "c":"STORAGE", "id":5071100, "ctx":"initandlisten","msg":"Clearing temp directory"}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:35.492+00:00"},"s":"I", "c":"CONTROL", "id":20536, "ctx":"initandlisten","msg":"Flow Control is enabled on this deployment"}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:35.493+00:00"},"s":"I", "c":"FTDC", "id":20625, "ctx":"initandlisten","msg":"Initializing full-time diagnostic data capture","attr":{"dataDirectory":"/data/db/diagnostic.data"}}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:35.500+00:00"},"s":"I", "c":"REPL", "id":6015317, "ctx":"initandlisten","msg":"Setting new configuration state","attr":{"newState":"ConfigReplicationDisabled","oldState":"ConfigPreStart"}}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:35.500+00:00"},"s":"I", "c":"STORAGE", "id":22262, "ctx":"initandlisten","msg":"Timestamp monitor starting"}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:35.501+00:00"},"s":"I", "c":"NETWORK", "id":23015, "ctx":"listener","msg":"Listening on","attr":{"address":"/tmp/mongodb-27017.sock"}}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:35.501+00:00"},"s":"I", "c":"NETWORK", "id":23015, "ctx":"listener","msg":"Listening on","attr":{"address":"0.0.0.0"}}
serge-mongodb-1 | {"t":{"$date":"2023-03-23T13:23:35.501+00:00"},"s":"I", "c":"NETWORK", "id":23016, "ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"off"}}
serge-web-1 |
serge-web-1 | Forced re-optimization of dependencies
serge-web-1 |
serge-web-1 | VITE v4.2.0 ready in 556 ms
serge-web-1 |
serge-web-1 | β Local: http://localhost:9123/
serge-web-1 | β Network: http://172.23.0.3:9123/
serge-web-1 | TypeError: fetch failed
serge-web-1 | at fetch (/usr/src/app/node_modules/undici/index.js:109:13)
serge-web-1 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
serge-web-1 | at async Object.eval [as fetch] (/node_modules/@sveltejs/kit/src/runtime/server/fetch.js:27:10)
serge-web-1 | at async eval (/node_modules/@sveltejs/kit/src/runtime/server/page/load_data.js:195:18)
serge-web-1 | at async load (+layout.ts:11:12)
serge-web-1 | at async Module.load_data (/node_modules/@sveltejs/kit/src/runtime/server/page/load_data.js:162:17)
serge-web-1 | at async eval (/node_modules/@sveltejs/kit/src/runtime/server/page/index.js:169:13)
serge-nginx-1 | 10.150.1.5 - - [23/Mar/2023:13:23:40 +0000] "GET / HTTP/1.1" 500 1029 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36" "-"
serge-web-1 | TypeError: fetch failed
serge-web-1 | at fetch (/usr/src/app/node_modules/undici/index.js:109:13)
serge-web-1 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
serge-web-1 | at async Object.eval [as fetch] (/node_modules/@sveltejs/kit/src/runtime/server/fetch.js:27:10)
serge-web-1 | at async eval (/node_modules/@sveltejs/kit/src/runtime/server/page/load_data.js:195:18)
serge-web-1 | at async load (+layout.ts:11:12)
serge-web-1 | at async Module.load_data (/node_modules/@sveltejs/kit/src/runtime/server/page/load_data.js:162:17)
serge-web-1 | at async Module.respond_with_error (/node_modules/@sveltejs/kit/src/runtime/server/page/respond_with_error.js:52:17)
serge-web-1 | at async resolve (/node_modules/@sveltejs/kit/src/runtime/server/respond.js:388:12)
serge-web-1 | at async Module.respond (/node_modules/@sveltejs/kit/src/runtime/server/respond.js:240:20)
serge-web-1 | at async file:///usr/src/app/node_modules/@sveltejs/kit/src/exports/vite/dev/index.js:505:22
serge-nginx-1 | 10.150.1.5 - - [23/Mar/2023:13:23:40 +0000] "GET /favicon.ico HTTP/1.1" 500 1019 "http://192.168.1.110:8008/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36" "-"