[BUG] Failed to start Dashy docker version
Environment
Self-Hosted (Docker)
System
RKE2 with ContainerD
Version
No response
Describe the problem
Hello
I tried to deployed Dashy in Offline RKE2 Cluster. As recommended i used helm chart located here: https://github.com/vyrtualsynthese/selfhosted-helmcharts/tree/main/charts/dashy
Main issue is that container try to compile yarn packages and recreate app at every reboot. Why ? My system doesn't have access to internet so it can't retrieve cots from web.
Also i run hardened cluster where root user at runtime is banned. So i tried mlultiples actions to switch app folder permissions to node user but still have permissions issue:
`yarn run v1.22.19 $ NODE_OPTIONS=--openssl-legacy-provider npm-run-all --parallel build start $ node server $ NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build
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
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: EACCES: permission denied, rmdir '/app/dist' Error: EACCES: permission denied, rmdir '/app/dist' 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. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.`
I tried to see with dockerfiles in repository but files seems outdated because Yarn complain about deprecated modules regarding node version used. I tried to switch from multiples versions between 16 and 24, not working...
` [email protected]: The engine "node" is incompatible with this module. Expected version ">=16.0.0 <21.6.2". Got "21.6.2"
@achrinza/[email protected]: The engine "node" is incompatible with this module. Expected version "8 || 10 || 12 || 14 || 16 || 17". Got "20.19.2"
[email protected]: The engine "node" is incompatible with this module. Expected version ">=18". Got "16.17.1" `
Am i missing something ? i will continue to read documentation , i still active in case of somebody habe an idea about that :) thank you
Additional info
No response
Please tick the boxes
- [x] You have explained the issue clearly, and included all relevant info
- [x] You are using a supported version of Dashy
- [x] You've checked that this issue hasn't already been raised
- [x] You've checked the docs and troubleshooting guide
- [x] You agree to the code of conduct
I had a similar issue. At first I thought it might be a permissions issue (despite running as a user that owned the dashy directory), but it still happens even when I change permissions for that directory to 777.
I don't have the code in front of me currently but it's a similar issue as documented in this thread already with the same error message. The container appears to be in an endless restart loop.
Thanks so much for your work on this project- besides this hiccup I love it!
Edit for more info- I deployed as a simple Docker container on a Debian server using Compose under Portainer.
I tried to access the console of the container but I got an error as it appeared that the container was stuck in a restart loop. When opening it in a browser I either get a 404 or the page loads with a "config not found" error despite there being a simple conf.yml in the appropriate spot.
I thought maybe I missed something until I saw this issue.
Hello there !
Thank for your answer. I retried my tests but same issue with Helm chart this time. Container start but after some seconds:
yarn run v1.22.19 warning Skipping preferred cache folder "/home/node/.cache/yarn" because it is not writable. warning Skipping preferred cache folder "/tmp/.yarn-cache-1000" because it is not writable. warning Skipping preferred cache folder "/tmp/.yarn-cache" because it is not writable. error Yarn hasn't been able to find a cache folder it can use. Please use the explicit --cache-folder option to tell it what location to use, or make one of the preferred locations info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I suppose that i have to put a hand in engine to make it work again. Maybe this app cannot be ran in full offline system. I will see ...
Same here. Using docker compose in different configurations:
- image: lissy93/dashy
- image: lissy93/dashy:3.x
- build: . # after cloning the repository
In all cases the result is a timeout in the browser.
The log of the container shows: at the first start: ` 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.
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
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
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
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
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
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
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
WARNING Compiled with 1 warning11:27:10 AM
warning in ./src/components/Widgets/CustomList.vue
Module Error (from ./node_modules/eslint-loader/index.js):
/app/src/components/Widgets/CustomList.vue
39:14 error Missing radix parameter radix
40:6 error Missing trailing comma comma-dangle
50:11 error 'today' is never reassigned. Use 'const' instead prefer-const
53:13 error 'threshold' is never reassigned. Use 'const' instead prefer-const
55:11 error Assignment to property of function parameter 'item' no-param-reassign
â 5 problems (5 errors, 0 warnings)
3 errors and 0 warnings potentially fixable with the
--fixoption. @ ./src/components/Widgets lazy ^./.*.vue$ namespace object @ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Widgets/WidgetBase.vue?vue&type=script&lang=js @ ./src/components/Widgets/WidgetBase.vue?vue&type=script&lang=js @ ./src/components/Widgets/WidgetBase.vue @ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/LinkItems/Section.vue?vue&type=script&lang=js @ ./src/components/LinkItems/Section.vue?vue&type=script&lang=js @ ./src/components/LinkItems/Section.vue @ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/Home.vue?vue&type=script&lang=js @ ./src/views/Home.vue?vue&type=script&lang=js @ ./src/views/Home.vue @ ./src/router.js @ ./src/main.js @ multi ./src/main.js File Size Gzipped dist/js/chunk-vendors.8ac68b27.js 7207.75 KiB 2681.26 KiB dist/js/dashy.d16a035c.js 798.08 KiB 238.88 KiB
`
.... lots of loading and then:
dist/css/chunk-ff6de53a.0e433876.css 0.00 KiB 0.02 KiB Images and other types of assets omitted. DONE Build complete. The dist directory is ready to be deployed. INFO Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html
After a restart:
`
yarn run v1.22.19
$ NODE_OPTIONS=--openssl-legacy-provider npm-run-all --parallel build start
$ node server
$ NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build
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.
DONE Compiled successfully in 38852ms11:37:16 AM
File Size Gzipped
dist/js/chunk-vendors.8ac68b27.js 7207.75 KiB 2681.26 KiB
dist/js/dashy.d16a035c.js 798.08 KiB 238.88 KiB
...dist/css/chunk-ff6de53a.0e433876.css 0.00 KiB 0.02 KiB Images and other types of assets omitted. DONE Build complete. The dist directory is ready to be deployed. INFO Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html `
p.s.: I did not get the code markup to work.
Hey @batreseau, this has now been implemented in #2002, and will be released shortly in 4.0.0 đ
We're sorry this one took so long đ