Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to self host on ECS but receiving Internal Server Error #693

Open
github-carlos opened this issue Apr 19, 2024 · 2 comments
Open

Comments

@github-carlos
Copy link

I am trying to self host the provided docker file on ECS with Fargate launch type but the following error is occuring when trying to access the port 3000.

`error Failed to handle request for /favicon.ico
TypeError: fetch failed
at node:internal/deps/undici/undici:12618:11
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async invokeRequest (/app/node_modules/next/dist/server/lib/server-ipc/invoke-request.js:21:12)
at async requestHandler (/app/node_modules/next/dist/server/lib/start-server.js:336:33)
at async Server. (/app/node_modules/next/dist/server/lib/start-server.js:152:13) {
cause: Error: connect ECONNREFUSED 127.0.0.1:44759
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 44759
}
}
TypeError: fetch failed
at node:internal/deps/undici/undici:12618:11
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async invokeRequest (/app/node_modules/next/dist/server/lib/server-ipc/invoke-request.js:21:12)
at async requestHandler (/app/node_modules/next/dist/server/lib/start-server.js:336:33)
at async Server. (/app/node_modules/next/dist/server/lib/start-server.js:152:13) {
cause: Error: connect ECONNREFUSED 127.0.0.1:44759
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 44759
}
}

  • error Failed to handle request for /`

I think I am missing something.

@typpo
Copy link
Collaborator

typpo commented Apr 20, 2024 via email

@github-carlos
Copy link
Author

Yes, I built it locally with
docker build --build-arg NEXT_PUBLIC_PROMPTFOO_BASE_URL=http://localhost:3000 -t promptfoo-ui .
And provided port 3000 and openai envs in the ecs task launch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants