I have installed PsiTransfer by creating a stack in my Portainer running on my Synology NAS.
With a little help from composerize I have created this yaml for PsiTransfer (though I've hidden some values here for obvious reasons):
Basically, this works. The stack starts.
But almost immediately it also stops with this error message:
/app/lib/db.js:50
throw e;
^
Error: db initialization failed with error EACCES: permission denied, scandir '/data'
at Object.readdirSync (node:fs:1451:3)
at DB._sync (/app/lib/db.js:61:9)
at DB.init (/app/lib/db.js:46:12)
at Object.<anonymous> (/app/lib/endpoints.js:33:4)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Module.require (node:internal/modules/cjs/loader:1061:19)
at require (node:internal/modules/cjs/helpers:103:18) {
errno: -13,
syscall: 'scandir',
code: 'EACCES',
path: '/data'
}
Node.js v18.12.1
I think this is because PsiTransfer can't read from (or write to) my folder /volume2/docker-psitransfer because I have no equivalent for this instruction in your installation instructions:
sudo chown -R 1000 $PWD/data
I have given full access rights on this folder to a user docker-psitransfer (UID 1041, GID 65536) but I can't seem to find a way to tell PsiTransfer that. Even if I knew how to issue the chown command from within Portainer, it would be useless. There is no user with UID 1000 on a Synology NAS. From what I understand it is even simply impossible to have a user with a UID less than 1024 by design.
How can I solve this?
Thanks in advance, beer afterwards.
I have installed PsiTransfer by creating a stack in my Portainer running on my Synology NAS. With a little help from composerize I have created this yaml for PsiTransfer (though I've hidden some values here for obvious reasons):
Basically, this works. The stack starts. But almost immediately it also stops with this error message:
I think this is because PsiTransfer can't read from (or write to) my folder /volume2/docker-psitransfer because I have no equivalent for this instruction in your installation instructions:
I have given full access rights on this folder to a user docker-psitransfer (UID 1041, GID 65536) but I can't seem to find a way to tell PsiTransfer that. Even if I knew how to issue the chown command from within Portainer, it would be useless. There is no user with UID 1000 on a Synology NAS. From what I understand it is even simply impossible to have a user with a UID less than 1024 by design.
How can I solve this? Thanks in advance, beer afterwards.