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

Trillium install error, mkdir /share/trillium access denied #16

Open
GrumpyMeow opened this issue Oct 13, 2023 · 5 comments
Open

Trillium install error, mkdir /share/trillium access denied #16

GrumpyMeow opened this issue Oct 13, 2023 · 5 comments

Comments

@GrumpyMeow
Copy link

GrumpyMeow commented Oct 13, 2023

I just started with a fresh HAOS setup. When starting the Trillium addon, the following error is logged:

No USER_UID specified, leaving 1000
No USER_GID specified, leaving 1000
node:internal/fs/utils:347
    throw err;
    ^
Error: EACCES: permission denied, mkdir '/share/trillium'
    at Object.mkdirSync (node:fs:1382:3)
    at getTriliumDataDir (/usr/src/app/src/services/data_dir.js:41:16)
    at Object.<anonymous> (/usr/src/app/src/services/data_dir.js:62:26)
    at Module._compile (node:internal/modules/cjs/loader:1191:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
    at Module.load (node:internal/modules/cjs/loader:1069:32)
    at Function.Module._load (node:internal/modules/cjs/loader:904:12)
    at Module.require (node:internal/modules/cjs/loader:1093:19)
    at require (node:internal/modules/cjs/helpers:108:18)
    at Object.<anonymous> (/usr/src/app/src/services/log.js:4:17) {
  errno: -13,
  syscall: 'mkdir',
  code: 'EACCES',
  path: '/share/trillium'
}

Thank you for creating these addons.

@GrumpyMeow GrumpyMeow changed the title Trillium install error Trillium install error, mkdir /share/trillium access denied Oct 13, 2023
@jdeath
Copy link
Owner

jdeath commented Oct 13, 2023

That is why the documentation says to make the directory yourself. Did that not work?
https://github.com/jdeath/homeassistant-addons/tree/main/trillium#installation

@GrumpyMeow
Copy link
Author

I did create the folder, but the error remained.
Probably the issue has got something to do with the uid. I will retry soon.

@forzahog
Copy link

I had to "chmod 2777 /share/trillium" to get it to work.

@jdeath
Copy link
Owner

jdeath commented Jul 11, 2024

2777 or 777? I added to documentation.

Perhaps in the future, I will convert it to use the new addons_config/ directory instead of share.

@forzahog
Copy link

I tried 777 first, but it didn't work. 2777 did the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants