OpenAdaptAI / OpenAdapt

Open Source Generative Process Automation (i.e. Generative RPA). AI-First Process Automation with Large ([Language (LLMs) / Action (LAMs) / Multimodal (LMMs)] / Visual Language (VLMs)) Models
https://www.OpenAdapt.AI
MIT License
992 stars 138 forks source link

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

Open abrichr opened 6 months ago

abrichr commented 6 months ago

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