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

[Bug]: dashboard fails to load when socket in use #657

Open
abrichr opened this issue May 9, 2024 · 0 comments
Open

[Bug]: dashboard fails to load when socket in use #657

abrichr opened this issue May 9, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@abrichr
Copy link
Contributor

abrichr commented May 9, 2024

Describe the bug

When loading the dashboard, if the dashboard previously did not exit cleanly, the dashboard fails to load:

[1] ERROR:    [Errno 48] Address already in use
[1] npm run fastapi-dev exited with code 1
[0]  ⚠ Specified "rewrites" will not automatically work with "output: export". See more info here: https://nextjs.org/docs/messages/export-no-custom-routes
[0]  ⚠ Specified "rewrites" will not automatically work with "output: export". See more info here: https://nextjs.org/docs/messages/export-no-custom-routes
[0]    ▲ Next.js 14.1.4
[0]    - Local:        http://localhost:5173
[0] 
[0]  ⚠ Specified "rewrites" will not automatically work with "output: export". See more info here: https://nextjs.org/docs/messages/export-no-custom-routes
[0]  ⚠ Specified "rewrites" will not automatically work with "output: export". See more info here: https://nextjs.org/docs/messages/export-no-custom-routes
[0]  ✓ Ready in 1165ms
[0]  ○ Compiling /recordings ...
[0]  ✓ Compiled /recordings in 2.3s (2310 modules)
[0] Failed to proxy http://127.0.0.1:8080/api/recordings/status Error: socket hang up
[0]     at Socket.socketCloseListener (node:_http_client:473:25)
[0]     at Socket.emit (node:events:531:35)
[0]     at TCP.<anonymous> (node:net:337:12)
[0]     at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
[0]   code: 'ECONNRESET'
[0] }
[0] Error: socket hang up
[0]     at Socket.socketCloseListener (node:_http_client:473:25)
[0]     at Socket.emit (node:events:531:35)
[0]     at TCP.<anonymous> (node:net:337:12)
[0]     at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
[0]   code: 'ECONNRESET'
[0] }
[0] Failed to proxy http://127.0.0.1:8080/api/recordings Error: socket hang up
[0]     at Socket.socketCloseListener (node:_http_client:473:25)
[0]     at Socket.emit (node:events:531:35)
[0]     at TCP.<anonymous> (node:net:337:12)
[0]     at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
[0]   code: 'ECONNRESET'
[0] }
[0] Error: socket hang up
[0]     at Socket.socketCloseListener (node:_http_client:473:25)
[0]     at Socket.emit (node:events:531:35)
[0]     at TCP.<anonymous> (node:net:337:12)
[0]     at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
[0]   code: 'ECONNRESET'
[0] }
[0]  ○ Compiling /_error ...
[0]  ✓ Compiled /_error in 1847ms (2496 modules)

To Reproduce

python -m openadapt.app.dashboard.run
pkill -f openadapt
python -m openadapt.app.dashboard.run
@abrichr abrichr added the bug Something isn't working label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants