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

Synology NFS Mount Fails #113

Open
Exotron opened this issue Mar 6, 2024 · 5 comments
Open

Synology NFS Mount Fails #113

Exotron opened this issue Mar 6, 2024 · 5 comments
Labels
question Further information is requested third-party This is related to an external component

Comments

@Exotron
Copy link

Exotron commented Mar 6, 2024

I mounted my Synlogy as NFS in Home Assistant as /Share/paperless it seems the Docker doesnt have permission and the Addon Stops.
It works if i unmount it and then mount it back while paperless is running.

Hopefully someone can help.

I tried almost everything. Here is the Homeassistant Protocol output:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting

-----------------------------------------------------------
 Add-on: Paperless-ngx
 Paperless is an application that manages your personal documents. With the help of a document scanner, paperless transforms your wieldy physical document binders into a searchable archive and provides many utilities for finding and managing your documents.
-----------------------------------------------------------
 Add-on version: 1.2.8
 You are running the latest version of this add-on.
 System: Home Assistant OS 12.0  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2024.2.2
 Home Assistant Supervisor: 2024.02.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-timezone: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
[21:29:55] INFO: Configuring timezone (Europe/Berlin)...
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service base-addon-timezone successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-paperless: starting
s6-rc: info: service init-nginx: starting
s6-rc: info: service redis: starting
s6-rc: info: service redis successfully started
chown: changing ownership of '/share/paperless/consume': Invalid argument
chown: changing ownership of '/share/paperless/media/media.lock': Invalid argument
chown: changing ownership of '/share/paperless/media/documents/thumbnails/0000004.webp': Invalid argument
chown: changing ownership of '/share/paperless/media/documents/thumbnails/0000003.webp': Invalid argument
chown: changing ownership of '/share/paperless/media/documents/thumbnails': Invalid argument
Ingress is enabled
chown: changing ownership of '/share/paperless/media/documents/archive/2024/none/ELSTER - Versandbestätigung.pdf': Invalid argument
chown: changing ownership of '/share/paperless/media/documents/archive/2024/none': Invalid argument
chown: changing ownership of '/share/paperless/media/documents/archive/2024': Invalid argument
chown: changing ownership of '/share/paperless/media/documents/archive/2021/none/Grundriss_Haus.pdf': Invalid argument
chown: changing ownership of '/share/paperless/media/documents/archive/2021/none': Invalid argument
chown: changing ownership of '/share/paperless/media/documents/archive/2021': Invalid argument
chown: changing ownership of '/share/paperless/media/documents/archive': Invalid argument
chown: changing ownership of '/share/paperless/media/documents/originals/2024/none/ELSTER - Versandbestätigung.pdf': Invalid argument
chown: changing ownership of '/share/paperless/media/documents/originals/2024/none': Invalid argument
chown: changing ownership of '/share/paperless/media/documents/originals/2024': Invalid argument
chown: changing ownership of '/share/paperless/media/documents/originals/2021/none/Grundriss_Haus.pdf': Invalid argument
chown: changing ownership of '/share/paperless/media/documents/originals/2021/none': Invalid argument
chown: changing ownership of '/share/paperless/media/documents/originals/2021': Invalid argument
chown: changing ownership of '/share/paperless/media/documents/originals': Invalid argument
chown: changing ownership of '/share/paperless/media/documents': Invalid argument
chown: changing ownership of '/share/paperless/media': Invalid argument
chown: changing ownership of '/share/paperless': Invalid argument
s6-rc: warning: unable to start service init-paperless: command exited 1
s6-rc: info: service init-nginx successfully started
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
/run/s6/basedir/scripts/rc.init: fatal: stopping the container.
s6-rc: info: service init-nginx: stopping
s6-rc: info: service redis: stopping
s6-rc: info: service redis successfully stopped
s6-rc: info: service init-nginx successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-timezone: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-timezone successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
@BenoitAnastay
Copy link
Owner

BenoitAnastay commented Mar 6, 2024

It seems to be a NFS4 issue, I can eventually make chown optional but you have to fix ACL on your network share

@BenoitAnastay BenoitAnastay added third-party This is related to an external component question Further information is requested labels Mar 7, 2024
@CR6-SE
Copy link

CR6-SE commented Mar 22, 2024

Same Problem here. What do you mean when you say fix ALC.
It was working perfect till some point. Something must changed?!

Best Regards

@BenoitAnastay
Copy link
Owner

What do you mean when you say fix ALC.

It was a miswrite, I meant access-control list.
You will need to make those folders writable by paperless on your Sonology.
The error above seem linked to NFS, you can check if it persist with SMB share.

If nothing works I'll allow to skip chown commands.
Since I don't have a synology it would be kinda hard for me to debug

@CR6-SE
Copy link

CR6-SE commented Mar 24, 2024

It seems to work now.
It was running with the squash option make every user to admin. This seems not to work anymore.
I had to gave the guest user spezial permissions. Now it is working again.
But now the guest user must have all permissions for that folder. Not the best solution I guess.

Thx BenotAnastay!

@BenoitAnastay
Copy link
Owner

@Exotron is it working on your side?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested third-party This is related to an external component
Projects
None yet
Development

No branches or pull requests

3 participants