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] ***SOLVED *** Docker container keeps looping and not starting - Issue with ZFS version on Debian Bookworm #1792

Closed
5 tasks done
tsunulukai opened this issue Jan 18, 2025 · 0 comments
Assignees
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working

Comments

@tsunulukai
Copy link

Environment

Self-Hosted (Docker)

System

Debian 12.9, Docker version 20.10.24+dfsg1, build 297e128, Dashy V-3.1.1.

Version

3.1.1

Describe the problem

*** SOLVED ***
It was due to my docker storage being located on a ZFS pool. #1337 put me on the track to solve the issue. As others may encounter the same situation in a config similar to mine, I'm posting this for documentation purposes.

I fixed it by upgrading the zfs-dkms module from the bookworm-backport releases.

cat <<EOF >> /etc/apt/sources.list
deb http://deb.debian.org/debian/ bookworm-backports main contrib non-free non-free-firmware
EOF

apt update
apt install zfs-dkms/bookworm-backports
reboot

It's my first time trying Dashy. I have no configuration file or artifacts from previous installations. My first attempt if using Dashy v3.1.1
I checked the documentation and am using the up to date settings (port 8080 in the container and path /app/user-data/) updated since v3.
When trying to spin up a instance of dashy, the containers keeps restarting and displays the same errors in a loop.

#1617 seemed linked at first sight, but the problem there was a port mapping issue which is not the case here.

I get the same error whether

  • trying to spin it up in command line:
# docker run -p 4000:8080 lissy93/dashy
  • or with docker-compose:
# cat /etc/docker-compose/dashy.yml
version: "3.8"
services:
  dashy:
    image: lissy93/dashy
    container_name: dashy
    volumes:
      - /etc/dashy/conf.yml:/app/user-data/conf.yml
    ports:
      - 4000:8080
    environment:
      - NODE_ENV=production
      - UID=1000
      - GID=1000
    restart: unless-stopped
    network_mode: bridge

Additional info

Trying with the minimum set of parameters

# docker run -p 4000:8080 lissy93/dashy
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

Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme

-  Building for production...
 WARN  A new version of sass-loader is available. Please upgrade for best experience.
 ERROR  Error: EINVAL: invalid argument, rmdir '/app/dist/css'
Error: EINVAL: invalid argument, rmdir '/app/dist/css'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "build" exited with 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.

<*** DOCKER CONTAINER CRASH & RESTART ***>

Or with Docker-compose:

# cat /etc/docker-compose/dashy.yml
version: "3.8"
services:
  dashy:
    image: ghcr.io/lissy93/dashy
    container_name: dashy
    volumes:
      - /etc/dashy/conf.yml:/app/user-data/conf.yml
    ports:
      - 4000:8080
    environment:
      - NODE_ENV=production
      - UID=1000
      - GID=1000
    restart: unless-stopped
    network_mode: bridge

# systemctl restart docker-compose@dashy

# docker compose ls
NAME                STATUS              CONFIG FILES
dashy               running(1)          /etc/docker-compose/dashy.yml

# journalctl -f -u docker-compose@dashy.service
Jan 18 23:41:47 nas systemd[1]: Starting docker-compose@dashy.service - DockerCompose Service for dashy...
Jan 18 23:41:53 nas docker[434208]: dashy
Jan 18 23:41:53 nas docker[434804]: dashy
Jan 18 23:41:53 nas docker[434848]: Container dashy  Creating
Jan 18 23:41:53 nas docker[434848]: Container dashy  Created
Jan 18 23:41:53 nas docker[434848]: Container dashy  Starting
Jan 18 23:41:53 nas docker[434848]: Container dashy  Started
Jan 18 23:41:53 nas systemd[1]: Started docker-compose@dashy.service - DockerCompose Service for dashy.
Jan 18 23:41:54 nas docker[435094]: yarn run v1.22.19
Jan 18 23:41:54 nas docker[435094]: $ NODE_OPTIONS=--openssl-legacy-provider npm-run-all --parallel build start
Jan 18 23:41:54 nas docker[435094]: $ node server
Jan 18 23:41:54 nas docker[435094]: $ NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build
Jan 18 23:41:54 nas docker[435094]: Checking config file against schema...
Jan 18 23:41:55 nas docker[435094]: ✔️ Config file is valid, no issues found
Jan 18 23:41:55 nas docker[435094]: SSL Not Enabled: Public key not present
Jan 18 23:41:55 nas docker[435094]:
Jan 18 23:41:55 nas docker[435094]:  ██████╗  █████╗ ███████╗██╗  ██╗██╗   ██╗
Jan 18 23:41:55 nas docker[435094]:  ██╔══██╗██╔══██╗██╔════╝██║  ██║╚██╗ ██╔╝
Jan 18 23:41:55 nas docker[435094]:  ██║  ██║███████║███████╗███████║ ╚████╔╝
Jan 18 23:41:55 nas docker[435094]:  ██║  ██║██╔══██║╚════██║██╔══██║  ╚██╔╝
Jan 18 23:41:55 nas docker[435094]:  ██████╔╝██║  ██║███████║██║  ██║   ██║
Jan 18 23:41:55 nas docker[435094]:  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝   ╚═╝
Jan 18 23:41:55 nas docker[435094]:
Jan 18 23:41:55 nas docker[435094]: *******************************************************************************************
Jan 18 23:41:55 nas docker[435094]: Welcome to Dashy! 🚀
Jan 18 23:41:55 nas docker[435094]: Your new dashboard is now up and running with Docker
Jan 18 23:41:55 nas docker[435094]: *******************************************************************************************
Jan 18 23:41:55 nas docker[435094]:
Jan 18 23:41:55 nas docker[435094]: Using Dashy V-3.1.1. Update Check Complete
Jan 18 23:41:55 nas docker[435094]: ✅ Dashy is Up-to-Date
Jan 18 23:41:55 nas docker[435094]: Browserslist: caniuse-lite is outdated. Please run:
Jan 18 23:41:55 nas docker[435094]:   npx update-browserslist-db@latest
Jan 18 23:41:55 nas docker[435094]:   Why you should do it regularly: https://github.com/browserslist/update-db#readme
Jan 18 23:41:55 nas docker[435094]: -  Building for production...
Jan 18 23:41:55 nas docker[435094]:  WARN  A new version of sass-loader is available. Please upgrade for best experience.
Jan 18 23:41:56 nas docker[435094]:  ERROR  Error: EINVAL: invalid argument, rmdir '/app/dist/css'
Jan 18 23:41:56 nas docker[435094]: Error: EINVAL: invalid argument, rmdir '/app/dist/css'
Jan 18 23:41:56 nas docker[435094]: error Command failed with exit code 1.
Jan 18 23:41:56 nas docker[435094]: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Jan 18 23:41:56 nas docker[435094]: ERROR: "build" exited with 1.
Jan 18 23:41:56 nas docker[435094]: error Command failed with exit code 1.
Jan 18 23:41:56 nas docker[435094]: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Jan 18 23:41:56 nas docker[435536]: docker-compose  Warning: No resource found to remove
Jan 18 23:41:56 nas systemd[1]: docker-compose@dashy.service: Deactivated successfully.
Jan 18 23:41:57 nas systemd[1]: docker-compose@dashy.service: Scheduled restart job, restart counter is at 1.
Jan 18 23:41:57 nas systemd[1]: Stopped docker-compose@dashy.service - DockerCompose Service for dashy.
Jan 18 23:41:57 nas systemd[1]: Starting docker-compose@dashy.service - DockerCompose Service for dashy...
Jan 18 23:42:07 nas docker[435568]: dashy
Jan 18 23:42:07 nas docker[436434]: dashy
Jan 18 23:42:07 nas docker[436512]: Container dashy  Creating
Jan 18 23:42:07 nas docker[436512]: Container dashy  Created
Jan 18 23:42:07 nas docker[436512]: Container dashy  Starting
Jan 18 23:42:07 nas docker[436512]: Container dashy  Started
Jan 18 23:42:07 nas systemd[1]: Started docker-compose@dashy.service - DockerCompose Service for dashy.
Jan 18 23:42:07 nas docker[436688]: yarn run v1.22.19
Jan 18 23:42:07 nas docker[436688]: $ NODE_OPTIONS=--openssl-legacy-provider npm-run-all --parallel build start
Jan 18 23:42:08 nas docker[436688]: $ node server
Jan 18 23:42:08 nas docker[436688]: $ NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build
Jan 18 23:42:08 nas docker[436688]: Checking config file against schema...
Jan 18 23:42:08 nas docker[436688]: ✔️ Config file is valid, no issues found
Jan 18 23:42:08 nas docker[436688]: SSL Not Enabled: Public key not present
Jan 18 23:42:08 nas docker[436688]:
Jan 18 23:42:08 nas docker[436688]:  ██████╗  █████╗ ███████╗██╗  ██╗██╗   ██╗
Jan 18 23:42:08 nas docker[436688]:  ██╔══██╗██╔══██╗██╔════╝██║  ██║╚██╗ ██╔╝
Jan 18 23:42:08 nas docker[436688]:  ██║  ██║███████║███████╗███████║ ╚████╔╝
Jan 18 23:42:08 nas docker[436688]:  ██║  ██║██╔══██║╚════██║██╔══██║  ╚██╔╝
Jan 18 23:42:08 nas docker[436688]:  ██████╔╝██║  ██║███████║██║  ██║   ██║
Jan 18 23:42:08 nas docker[436688]:  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝   ╚═╝
Jan 18 23:42:08 nas docker[436688]:
Jan 18 23:42:08 nas docker[436688]: *******************************************************************************************
Jan 18 23:42:08 nas docker[436688]: Welcome to Dashy! 🚀
Jan 18 23:42:08 nas docker[436688]: Your new dashboard is now up and running with Docker
Jan 18 23:42:08 nas docker[436688]: *******************************************************************************************
Jan 18 23:42:08 nas docker[436688]:
Jan 18 23:42:08 nas docker[436688]: Using Dashy V-3.1.1. Update Check Complete
Jan 18 23:42:08 nas docker[436688]: ✅ Dashy is Up-to-Date
Jan 18 23:42:09 nas docker[436688]: Browserslist: caniuse-lite is outdated. Please run:
Jan 18 23:42:09 nas docker[436688]:   npx update-browserslist-db@latest
Jan 18 23:42:09 nas docker[436688]:   Why you should do it regularly: https://github.com/browserslist/update-db#readme
Jan 18 23:42:09 nas docker[436688]: -  Building for production...
Jan 18 23:42:09 nas docker[436688]:  WARN  A new version of sass-loader is available. Please upgrade for best experience.
Jan 18 23:42:10 nas docker[436688]:  ERROR  Error: EINVAL: invalid argument, rmdir '/app/dist/css'
Jan 18 23:42:10 nas docker[436688]: Error: EINVAL: invalid argument, rmdir '/app/dist/css'
Jan 18 23:42:10 nas docker[436688]: error Command failed with exit code 1.
Jan 18 23:42:10 nas docker[436688]: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Jan 18 23:42:10 nas docker[436688]: ERROR: "build" exited with 1.
Jan 18 23:42:10 nas docker[436688]: error Command failed with exit code 1.
Jan 18 23:42:10 nas docker[436688]: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Jan 18 23:42:10 nas docker[437051]: docker-compose  Warning: No resource found to remove
Jan 18 23:42:10 nas systemd[1]: docker-compose@dashy.service: Deactivated successfully.
Jan 18 23:42:10 nas systemd[1]: docker-compose@dashy.service: Scheduled restart job, restart counter is at 2.

# systemctl status docker-compose@dashy
× docker-compose@dashy.service - DockerCompose Service for dashy
     Loaded: loaded (/etc/systemd/system/docker-compose@.service; disabled; preset: enabled)
     Active: failed (Result: exit-code) since Sat 2025-01-18 23:42:20 UTC; 1min 31s ago
   Duration: 2.831s
    Process: 438338 ExecStartPre=/usr/bin/docker stop -t 2 dashy (code=exited, status=0/SUCCESS)
    Process: 438738 ExecStartPre=/usr/bin/docker rm -f dashy (code=exited, status=0/SUCCESS)
    Process: 438783 ExecStartPre=/usr/bin/docker compose -f /etc/docker-compose/dashy.yml -p dashy up -d dashy (code=exited, status=130)
        CPU: 130ms

# cat /etc/dashy/conf.yml
---
# Page meta info, like heading, footer text and nav links
pageInfo:
  title: Dashy
  description: Welcome to your new dashboard!
  navLinks:
  - title: GitHub
    path: https://github.com/Lissy93/dashy
  - title: Documentation
    path: https://dashy.to/docs

# Optional app settings and configuration
appConfig:
  theme: colorful

# Main content - An array of sections, each containing an array of items
sections:
- name: Getting Started
  icon: fas fa-rocket
  items:
  - title: Dashy Live
    description: Development a project management links for Dashy
    icon: https://i.ibb.co/qWWpD0v/astro-dab-128.png
    url: https://live.dashy.to/
    target: newtab

In the browser, the building screen is displayed until the container crashes.

Image

When it crashes, the connection is reset.
Image

Please tick the boxes

@tsunulukai tsunulukai added the 🐛 Bug [ISSUE] Ticket describing something that isn't working label Jan 18, 2025
@github-project-automation github-project-automation bot moved this to Awaiting Triage in Dashy V3 Jan 18, 2025
@github-project-automation github-project-automation bot moved this from Awaiting Triage to Done in Dashy V3 Jan 18, 2025
@tsunulukai tsunulukai changed the title [BUG] ***SOLVED *** Docker container keeps looping and not starting [BUG] ***SOLVED *** Docker container keeps looping and not starting - Issue with ZFS version on Debian Bookworm Jan 18, 2025
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

2 participants