You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Following the linked docker-compose example, I've setup both front-end and back-end containers. The ports 8015 and 8016 are mentioned, but not 8000, which seems to be required.
Logs:
adventurelog-5d4984469c-ftblk The origin to be set is: http://<my-domain>.ts.net
adventurelog-5d4984469c-ftblk Listening on 0.0.0.0:3000
adventurelog-5d4984469c-ftblk TypeError: fetch failed
adventurelog-5d4984469c-ftblk at node:internal/deps/undici/undici:12618:11
adventurelog-5d4984469c-ftblk at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
adventurelog-5d4984469c-ftblk at async fetchCSRFToken (file:///app/build/server/chunks/index.server-CBG1QNm5.js:4:26)
adventurelog-5d4984469c-ftblk at async default (file:///app/build/server/chunks/11-DShrFDs1.js:28:23)
adventurelog-5d4984469c-ftblk at async handle_action_json_request (file:///app/build/server/index.js:992:18)
adventurelog-5d4984469c-ftblk at async resolve2 (file:///app/build/server/index.js:3715:24)
adventurelog-5d4984469c-ftblk at async i18nHook (file:///app/build/server/chunks/hooks.server-DhCGhSN5.js:95:12)
adventurelog-5d4984469c-ftblk at async themeHook (file:///app/build/server/chunks/hooks.server-DhCGhSN5.js:90:10)
adventurelog-5d4984469c-ftblk at async authHook (file:///app/build/server/chunks/hooks.server-DhCGhSN5.js:38:14)
adventurelog-5d4984469c-ftblk at async respond (file:///app/build/server/index.js:3607:22) {
adventurelog-5d4984469c-ftblk cause: Error: connect ECONNREFUSED ::1:8000
adventurelog-5d4984469c-ftblk at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16) {
adventurelog-5d4984469c-ftblk errno: -111,
adventurelog-5d4984469c-ftblk code: 'ECONNREFUSED',
adventurelog-5d4984469c-ftblk syscall: 'connect',
adventurelog-5d4984469c-ftblk address: '::1',
adventurelog-5d4984469c-ftblk port: 8000
adventurelog-5d4984469c-ftblk }
adventurelog-5d4984469c-ftblk }
adventurelog-5d4984469c-ftblk TypeError: fetch failed
adventurelog-5d4984469c-ftblk at node:internal/deps/undici/undici:12618:11
adventurelog-5d4984469c-ftblk at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
adventurelog-5d4984469c-ftblk at async fetchCSRFToken (file:///app/build/server/chunks/index.server-CBG1QNm5.js:4:26)
adventurelog-5d4984469c-ftblk at async default (file:///app/build/server/chunks/11-DShrFDs1.js:28:23)
adventurelog-5d4984469c-ftblk at async handle_action_json_request (file:///app/build/server/index.js:992:18)
adventurelog-5d4984469c-ftblk at async resolve2 (file:///app/build/server/index.js:3715:24)
adventurelog-5d4984469c-ftblk at async i18nHook (file:///app/build/server/chunks/hooks.server-DhCGhSN5.js:95:12)
adventurelog-5d4984469c-ftblk at async themeHook (file:///app/build/server/chunks/hooks.server-DhCGhSN5.js:90:10)
adventurelog-5d4984469c-ftblk at async authHook (file:///app/build/server/chunks/hooks.server-DhCGhSN5.js:38:14)
adventurelog-5d4984469c-ftblk at async respond (file:///app/build/server/index.js:3607:22) {
adventurelog-5d4984469c-ftblk cause: Error: connect ECONNREFUSED ::1:8000
adventurelog-5d4984469c-ftblk at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16) {
adventurelog-5d4984469c-ftblk errno: -111,
adventurelog-5d4984469c-ftblk code: 'ECONNREFUSED',
adventurelog-5d4984469c-ftblk syscall: 'connect',
adventurelog-5d4984469c-ftblk address: '::1',
adventurelog-5d4984469c-ftblk port: 8000
adventurelog-5d4984469c-ftblk }
adventurelog-5d4984469c-ftblk }
Running this on k3s. The only relevant config for the front-end container are the env variables:
Hi! Port 8000 is for the internal communication between the Nginx service and the Django service. This port does not need to be exposed because only Nginx is exposed in the container and handles routing to Django or static files accordingly. I would double check your PUBLIC_SERVER_URL, it should most likely be https://serveraddress:8016. Let me know how this goes. If this does not work I would try http://server:8000 as a second option.
Describe the bug
Following the linked docker-compose example, I've setup both front-end and back-end containers. The ports 8015 and 8016 are mentioned, but not
8000
, which seems to be required.Logs:
Running this on k3s. The only relevant config for the front-end container are the env variables:
What is port
8000
? We have 8015 for the front-end, and 8016 for the backend - which service is this port intended for, and how can we override it?The text was updated successfully, but these errors were encountered: