Skip to content

[BUG] Dashy crashes when I try to access a file that doesnt existΒ #1973

@DhruvaSambrani

Description

@DhruvaSambrani

Environment

Self-Hosted (Docker)

System

Firefox

Version

3.1.1

Describe the problem

I was previously running Homer as my dashboard on home.whatever.xx. after switching, the browser loads the cached html page which calls the config file for homer, whoch pbviously doesnt exist now. But this seems to crash dashy and it has to rebuild the /dist.

As a second question, can i persist /dist so that docker restarts don't force rebuilds? Maybe this shoukd be the default beviour in the docs' docker command?

Additional info

my-dashboard | node:_http_outgoing:652 my-dashboard | throw new ERR_HTTP_HEADERS_SENT('set'); my-dashboard | ^
my-dashboard | my-dashboard | Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client my-dashboard | at ServerResponse.setHeader (node:_http_outgoing:652:11) my-dashboard | at /app/server.js:150:13
my-dashboard | at /app/services/status-check.js:79:7
my-dashboard | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
my-dashboard | code: 'ERR_HTTP_HEADERS_SENT' my-dashboard | }
my-dashboard | my-dashboard | Node.js v20.11.1
my-dashboard | error Command failed with exit code 1.
my-dashboard | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
my-dashboard | ERROR: "start" exited with 1. my-dashboard | error Command failed with exit code 1. my-dashboard | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.my-dashboard exited with code 1 (restarting)
my-dashboard | yarn run v1.22.19 my-dashboard | $ NODE_OPTIONS=--openssl-legacy-provider npm-run-all --parallel build start my-dashboard | $ NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build

Please tick the boxes

Metadata

Metadata

Assignees

Labels

πŸ› Bug[ISSUE] Ticket describing something that isn't working

Projects

Status

Awaiting Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions