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] Dashy crashlooping after last upgrade to 2.1.2 #1494

Closed
5 tasks done
Matsched opened this issue Mar 4, 2024 · 13 comments
Closed
5 tasks done

[BUG] Dashy crashlooping after last upgrade to 2.1.2 #1494

Matsched opened this issue Mar 4, 2024 · 13 comments
Assignees
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working

Comments

@Matsched
Copy link

Matsched commented Mar 4, 2024

Environment

Self-Hosted (Docker)

System

Docker 25.0.3 build 4debf41

Version

Dashy V-2.1.2

Describe the problem

After upgrading to last docker-image, dashy crashes after few seconds. Im able to open the dashy dashboard (like normal), then reload and i get "Not found".
I didnt changed anything in my config-files.
Im using docker-compose with Watchtower for Dashy.

Additional info

dashy  | ✔️ Config file is valid, no issues found
dashy  |
dashy  | SSL Not Enabled: Public key not present
dashy  |
dashy  |
dashy  |  ██████╗  █████╗ ███████╗██╗  ██╗██╗   ██╗
dashy  |  ██╔══██╗██╔══██╗██╔════╝██║  ██║╚██╗ ██╔╝
dashy  |  ██║  ██║███████║███████╗███████║ ╚████╔╝
dashy  |  ██║  ██║██╔══██║╚════██║██╔══██║  ╚██╔╝
dashy  |  ██████╔╝██║  ██║███████║██║  ██║   ██║
dashy  |  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝   ╚═╝
dashy  |
dashy  | *******************************************************************************************
dashy  | Welcome to Dashy! 🚀
dashy  | Your new dashboard is now up and running with Docker
dashy  | *******************************************************************************************
dashy  |
dashy  |
dashy  | Using Dashy V-2.1.2. Update Check Complete
dashy  | ✅ Dashy is Up-to-Date
dashy  |
dashy  |
dashy  | -  Building for production...
dashy  |  WARN  A new version of sass-loader is available. Please upgrade for best experience.
dashy  | Error: ENOENT: no such file or directory, stat '/app/dist/index.html'
dashy  | error Command failed with signal "SIGKILL".
dashy  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
dashy  | ERROR: "build-watch" exited with 1.
dashy  | error Command failed with exit code 1.
dashy  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
dashy exited with code 0

Please tick the boxes

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

liss-bot commented Mar 4, 2024

If you're enjoying Dashy, consider dropping us a ⭐
🤖 I'm a bot, and this message was automated

@Lissy93
Copy link
Owner

Lissy93 commented Mar 4, 2024

Hmm, that's not good.
I did push an update a few hours ago, was this before or after that update?
Could you try re-pulling that latest image / tag?

@ulrik-vj
Copy link

ulrik-vj commented Mar 4, 2024

Also having this issue. I can run the container as root (2.1.2/latest) no problems. But running as user: XXXX:XXXX, gives constant crashing.
Just pulled and Tested on 2.1.1, there i can run as user no crashing. Here is something from logs running latest image:
dashy

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Mar 4, 2024
@CrazyWolf13
Copy link
Collaborator

Hmm, that's not good. I did push an update a few hours ago, was this before or after that update? Could you try re-pulling that latest image / tag?

Actually getting the same error :/

@CTHRU
Copy link

CTHRU commented Mar 4, 2024

This might explain my issue too on a rpi 3b docker installation. The rpi runs the latest 64 bit pi os lite version, fully upgraded. I noticed that v2.1.2 slowly uses all assigned memory resources (448MB) after a few minutes. It also uses all assigned cpu resources (50%) while doing so.

I have a slightly adapted docker file where i bind mount the whole app/public folder. And yes, i did copy the folder's content from the v2.1.2 source code on GitHub on the host folder.

compose.yaml file

services:
  dashy:
    container_name: dashy
    hostname: dashy
    memswap_limit: 448M
    deploy:
      resources:
        limits:
          cpus: "0.50"
          memory: 384M
    restart: unless-stopped
    ports:
      - 80:80
    image: lissy93/dashy:latest
    volumes:
      - ${HOST_APP_DIR}/public:/app/public
    networks:
      - dashy
networks:
  dashy:
    name: dashy
  • I saw the docker hub update of this afternoon and pulled the image again, allas same result.
  • the default conf.yml website is loaded long before the memory is consumed.
  • I saw the fancy new loading screen (nicely done).
  • I tried to clear the site's browser data but the behavior is consistent.

@p6002
Copy link

p6002 commented Mar 4, 2024

It stops working, how I can check what is a reason and share here?

@CrazyWolf13
Copy link
Collaborator

It stops working, how I can check what is a reason and share here?

Lissy has already identified the issue and is currently testing a fix.

Huge claps to her 👏

@Matsched
Copy link
Author

Matsched commented Mar 4, 2024

I have tested a bit:
If i docker compose up dashy and immediately open the dashboard in browser i get

dashy  | Error: ENOENT: no such file or directory, stat '/app/dist/index.html'

And Dashy exit with errorcode.

After disabling resource-limits in docker-compose.yml and waiting for dashy to fully start up, dashy is working. I can repeat F5 without any issue.

If i open Dashy on unlimited resources before it fully starts up, i get again "ENOENT: no such file..." like above and dashy hang up.

Now i see in: https://dashy.to/docs/deployment/ Dashy needs 1GB. It runs all the time on 256MB flawlessly (lol)

@Lissy93
Copy link
Owner

Lissy93 commented Mar 4, 2024

Sorry, sorry, yes fix coming in #1496
Just testing it at the moment.....

The issue was a bug causing loads of rebuilds, causing it to consume more ram than intended. I've written a new re-build script which should only watch for relevant changes... just testing it on several devices.

@Lissy93
Copy link
Owner

Lissy93 commented Mar 4, 2024

Now i see in: https://dashy.to/docs/deployment/ Dashy needs 1GB. It runs all the time on 256MB flawlessly (lol)

Nothing changed there, those were just the recommended specs for the Node base image, but it very very very rarley gets anywhere near 1GB

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Mar 4, 2024
@Lissy93
Copy link
Owner

Lissy93 commented Mar 4, 2024

Merging #1496 now....
Will be available on DockerHub shortly
I'm hoping this will fix the issue, so 🤞
Let me know if that works out for you

@Lissy93
Copy link
Owner

Lissy93 commented Mar 4, 2024

Okay, updated version live on DockerHub and GHCR. Try re-pulling :latest or :2.1.2 tag.
It's working for me and @CrazyWolf13 - but OP give it a shot and let us know how you get on.

And sorry for the trouble this has caused, I'll do smaller and more frequent updates going forward, to hopefully mitigate things breaking.

@p6002
Copy link

p6002 commented Mar 4, 2024

Thanks it works now!
sudo docker pull lissy93/dashy:latest

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Mar 4, 2024
@Lissy93 Lissy93 closed this as completed Mar 5, 2024
@github-project-automation github-project-automation bot moved this from Awaiting Triage to Done in Dashy V3 Mar 5, 2024
@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Mar 5, 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
Projects
Status: Done
Development

No branches or pull requests

7 participants