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] Crash "throw er; // Unhandled 'error' event" after docker deployment #1672

Closed
5 tasks done
RonnieLast opened this issue Aug 16, 2024 · 8 comments
Closed
5 tasks done
Assignees
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working 🕸️ Duplicate [ISSUE] This issue or pull request already exists

Comments

@RonnieLast
Copy link

Environment

Self-Hosted (Docker)

System

Alpine or Ubuntu LXC on Proxmox, docker engine 27.1.2

Version

3.1.1

Describe the problem

Deploy Dashy 3.1.1 using docker methods in deployment docs (both "docker run" and "docker compose").
Initially the package starts building and such as expected, then crashes out with a yarn error.

Error: ENOENT: no such file or directory, stat '/app/dist/index.html'
Error: ENOENT: no such file or directory, stat '/app/dist/index.html'
Error: ENOENT: no such file or directory, stat '/app/dist/index.html'
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with signal "SIGKILL".
node:events:496
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at target._send (node:internal/child_process:879:20)
    at target.send (node:internal/child_process:752:19)
    at callback (/app/node_modules/worker-farm/lib/child/index.js:32:17)
    at module.exports (/app/node_modules/terser-webpack-plugin/dist/worker.js:13:5)
    at handle (/app/node_modules/worker-farm/lib/child/index.js:44:8)
    at process.<anonymous> (/app/node_modules/worker-farm/lib/child/index.js:55:3)
    at process.emit (node:events:518:28)
    at emit (node:internal/child_process:951:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on process instance at:
    at node:internal/child_process:883:39
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11) {
  errno: -32,
  code: 'EPIPE',
  syscall: 'write'
}

Node.js v20.11.1
ERROR: "build" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Additional info

Tested with both Alpine linux in the LXC as well as Ubuntu 22.04 based LXC.
Unusually I can deploy Dashy 3.1.1 in an LXC by using tteck's scrips and it works just fine...
https://tteck.github.io/Proxmox/#dashy-lxc

Please tick the boxes

@RonnieLast RonnieLast added the 🐛 Bug [ISSUE] Ticket describing something that isn't working label Aug 16, 2024
@github-project-automation github-project-automation bot moved this to Awaiting Triage in Dashy V3 Aug 16, 2024
@CrazyWolf13
Copy link
Collaborator

Hi can you share how you run dashy? Your full docker command used?

Also try this:

docker run --pull always -p 8080:8080 lissy93/dashy

@CrazyWolf13
Copy link
Collaborator

CrazyWolf13 commented Aug 16, 2024

Are you now using docker or the tteck script -> non-docker installation?

When running dashy without docker:

git clone https://github.com/lissy93/dashy
cd dashy
yarn --ignore-engines
yarn build-and-start

@RonnieLast
Copy link
Author

Hi can you share how you run dashy? Your full docker command used?

Also try this:

docker run --pull always -p 8080:8080 lissy93/dashy

Hi, the original run used the command "docker run -p 8080:8080 lissy93/dashy" (as per the deployment guide).
I have now tested it with the suggested command and I had the same crash.

root@gp-docker:~# docker run --pull always -p 8080:8080 lissy93/dashy
latest: Pulling from lissy93/dashy
Digest: sha256:cefeaf7b04b96e9ce195d393a90ea4da77502724a59f84fee0094c8c6138f584
Status: Image is up to date for lissy93/dashy:latest
yarn run v1.22.19
$ NODE_OPTIONS=--openssl-legacy-provider npm-run-all --parallel build start
$ NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build
$ node server

Checking config file against schema...
✔️ Config file is valid, no issues found

SSL Not Enabled: Public key not present


 ██████╗  █████╗ ███████╗██╗  ██╗██╗   ██╗
 ██╔══██╗██╔══██╗██╔════╝██║  ██║╚██╗ ██╔╝
 ██║  ██║███████║███████╗███████║ ╚████╔╝
 ██║  ██║██╔══██║╚════██║██╔══██║  ╚██╔╝
 ██████╔╝██║  ██║███████║██║  ██║   ██║
 ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝   ╚═╝

*******************************************************************************************
Welcome to Dashy! 🚀
Your new dashboard is now up and running with Docker
*******************************************************************************************


Using Dashy V-3.1.1. Update Check Complete
✅ Dashy is Up-to-Date


-  Building for production...
 WARN  A new version of sass-loader is available. Please upgrade for best experience.
error Command failed with signal "SIGKILL".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
node:events:496
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at target._send (node:internal/child_process:879:20)
    at target.send (node:internal/child_process:752:19)
    at callback (/app/node_modules/worker-farm/lib/child/index.js:32:17)
    at module.exports (/app/node_modules/terser-webpack-plugin/dist/worker.js:13:5)
    at handle (/app/node_modules/worker-farm/lib/child/index.js:44:8)
    at process.<anonymous> (/app/node_modules/worker-farm/lib/child/index.js:55:3)
    at process.emit (node:events:518:28)
    at emit (node:internal/child_process:951:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on process instance at:
    at node:internal/child_process:883:39
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11) {
  errno: -32,
  code: 'EPIPE',
  syscall: 'write'
}

Node.js v20.11.1
ERROR: "build" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
root@gp-docker:~# 

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Aug 16, 2024
@RonnieLast
Copy link
Author

RonnieLast commented Aug 16, 2024

Are you now using docker or the tteck script -> non-docker installation?

When running dashy without docker:

git clone https://github.com/lissy93/dashy
cd dashy
yarn --ignore-engines
yarn build-and-start

Ok, I thought that tteck was also using docker in his build, but I now see that he is not.
It's the docker install that I am testing and intending on using.
I could do the local build off the git clone if needed, but it's a docker implementation that I'm more keen to use.

@CrazyWolf13
Copy link
Collaborator

CrazyWolf13 commented Aug 16, 2024

Okay, thanks for the clarification, how much ressources does the LXC have?
Please try with 3GB RAM and 3 Cores to be save.

@RonnieLast
Copy link
Author

Okay, thanks for the clarification, how much ressources does the LXC have? Please try with 3GB RAM and 3 Cores to be save.

Alright, that seems to have got over the crash. I upgraded the LXC from 2GB and 2C to 3.5GB and 3C and it completed the build now. Tteck uses 2GB and 2C in his LXC build (but as I now know it's not docker based).

I'll deploy another docker build now with 3GB and 2C and see if deploys ok this time also.
Maybe if that's the true cause then a mention in the deployment docs would be an idea as it's not obvious.

@RonnieLast
Copy link
Author

Okay, thanks for the clarification, how much ressources does the LXC have? Please try with 3GB RAM and 3 Cores to be save.

Alright, that seems to have got over the crash. I upgraded the LXC from 2GB and 2C to 3.5GB and 3C and it completed the build now. Tteck uses 2GB and 2C in his LXC build (but as I now know it's not docker based).

I'll deploy another docker build now with 3GB and 2C and see if deploys ok this time also. Maybe if that's the true cause then a mention in the deployment docs would be an idea as it's not obvious.

Yes, a 3GB, 2C LXC built ok while a 2GB, 2C LXC does not.
So yes, good to close this! Thanks for your help!

@CrazyWolf13
Copy link
Collaborator

Yeah it's not intended to use that much ressources, we'll need to fix this, but there is already an open issue for this:
#1585 (comment)

So i'll close this as duplicate.

@CrazyWolf13 CrazyWolf13 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 16, 2024
@github-project-automation github-project-automation bot moved this from Awaiting Triage to Done in Dashy V3 Aug 16, 2024
@CrazyWolf13 CrazyWolf13 removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Aug 16, 2024
@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Aug 16, 2024
@CrazyWolf13 CrazyWolf13 added the 🕸️ Duplicate [ISSUE] This issue or pull request already exists label Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working 🕸️ Duplicate [ISSUE] This issue or pull request already exists
Projects
Status: Done
Development

No branches or pull requests

4 participants