Lissy93 / dashy

🚀 A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
https://dashy.to
MIT License
17.98k stars 1.36k forks source link

[BUG] Check if the specified host path exists and is the expected type #1743

Open Fuckingnameless opened 2 days ago

Fuckingnameless commented 2 days ago

Environment

Self-Hosted (Docker)

System

docker

Version

latest

Describe the problem

Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker compose --file '/srv/dev-disk-by-uuid-rvwrvw3rw3wva-461a-b445-aef168ae309d/appdata/Dashy/Dashy.yml' --file "/srv/dev-disk-by-uuid-rvwrvw3rw3wva-461a-b445-aef168ae309d/appdata/Dashy/compose.override.yml" --env-file '/srv/dev-disk-by-uuid-84b5631f-84fa-461a-b445-aef168ae309d/appdata/global.env' --env-file '/srv/dev-disk-by-uuid-rvwrvw3rw3wva-461a-b445-aef168ae309d/appdata/Dashy/Dashy.env' up -d  2>&1':  Network dashy_default  Creating
 Network dashy_default  Created
 Container Dashy  Creating
 Container Dashy  Created
 Container Dashy  Starting
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/srv/dev-disk-by-uuid-84b5631f-84fa-461a-b445-aef168ae309d/appdata/Dashy/conf.yml" to rootfs at "/app/user-data/conf.yml": create mount destination for /app/user-data/conf.yml mount: cannot mkdir in /srv/dev-disk-by-uuid-rvwrvw3rw3wva-461a-b445-aef168ae309d/docker/overlay2/a1beac24db080ed0dr4vrw4rvwrvwr1496be920b5a56669e30264d/merged/app/user-data/conf.yml: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker compose --file '/srv/dev-disk-by-uuid-rvwrvw3rw3wva-461a-b445-aef168ae309d/appdata/Dashy/Dashy.yml' --file "/srv/dev-disk-by-uuid-rvwrvw3rw3wva-84fa-461a-b445-aef168ae309d/appdata/Dashy/compose.override.yml" --env-file '/srv/dev-disk-by-uuid-rvwrvw3rw3wva-461a-b445-aef168ae309d/appdata/global.env' --env-file '/srv/dev-disk-by-uuid-rvwrvw3rw3wva-461a-b445-aef168ae309d/appdata/Dashy/Dashy.env' up -d  2>&1':  Network dashy_default  Creating
 Network dashy_default  Created
 Container Dashy  Creating
 Container Dashy  Created
 Container Dashy  Starting
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/srv/dev-disk-by-uuid-84b5631f-84fa-461a-b445-aef168ae309d/appdata/Dashy/conf.yml" to rootfs at "/app/user-data/conf.yml": create mount destination for /app/user-data/conf.yml mount: cannot mkdir in /srv/dev-disk-by-uuid-rvwrvw3rw3wva-461a-b445-aef168ae309d/docker/overlay2/a1beac24db080ed0d7a952a20a89d98009a096451496be920b5a56669e30264d/merged/app/user-data/conf.yml: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type in /usr/share/openmediavault/engined/rpc/compose.inc:998
Stack trace:
#0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(622): OMVRpcServiceCompose->{closure}()
#1 /usr/share/openmediavault/engined/rpc/compose.inc(965): OMV\Rpc\ServiceAbstract->execBgProc()
#2 [internal function]: OMVRpcServiceCompose->doCommand()
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(122): call_user_func_array()
#4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod()
#5 /usr/sbin/omv-engined(544): OMV\Rpc\Rpc::call()
#6 {main}

Additional info

No response

Please tick the boxes

Fuckingnameless commented 2 days ago

i can't load or save a config file

also is there any reason the container creates the user-data folder as root even though an unprivileged user:group ID is set in the compose file??

Fuckingnameless commented 2 days ago

also get these randomly when building

Dashy  | -  Building for production...
Dashy  |  WARN  A new version of sass-loader is available. Please upgrade for best experience.
Dashy  | 
Dashy  | Using Dashy V-3.1.1. Update Check Complete
Dashy  | ✅ Dashy is Up-to-Date
Dashy  | 
Dashy  |  WARNING  Compiled with 1 warning4:59:56 AM
Dashy  | 
Dashy  |  warning  in ./src/components/Widgets/GlNetworkInterfaces.vue
Dashy  | 
Dashy  | Module Error (from ./node_modules/eslint-loader/index.js):
Dashy  | 
Dashy  | /app/src/components/Widgets/GlNetworkInterfaces.vue
Dashy  |   71:50  error  Expected exception block, space or tab after '//' in comment  spaced-comment
Dashy  | 
Dashy  | ✖ 1 problem (1 error, 0 warnings)
Dashy  |   1 error and 0 warnings potentially fixable with the `--fix` option.
Dashy  | 
Dashy  | 
Dashy  |  @ ./src/components/Widgets lazy ^\.\/.*\.vue$ namespace object
Dashy  |  @ ./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
Dashy  |  @ ./src/components/Widgets/WidgetBase.vue?vue&type=script&lang=js
Dashy  |  @ ./src/components/Widgets/WidgetBase.vue
Dashy  |  @ ./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
Dashy  |  @ ./src/components/LinkItems/Section.vue?vue&type=script&lang=js
Dashy  |  @ ./src/components/LinkItems/Section.vue
Dashy  |  @ ./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
Dashy  |  @ ./src/views/Home.vue?vue&type=script&lang=js
Dashy  |  @ ./src/views/Home.vue
Dashy  |  @ ./src/router.js
Dashy  |  @ ./src/main.js
Dashy  |  @ multi ./src/main.js