HemmeligOrg / Hemmelig.app

Keep your sensitive information out of chat logs, emails, and more with encrypted secrets.
https://hemmelig.app
MIT License
684 stars 59 forks source link

Can't upload files, due to permission error #215

Closed FuckingToasters closed 11 months ago

FuckingToasters commented 11 months ago

Description

[Error: EACCES: permission denied, open '/var/tmp/hemmelig/upload/files/_BhAwnflzvx3x-F49mKxmUzD2-fDWV69.json'] {
  errno: -13,
  code: 'EACCES',
  syscall: 'open',
  path: '/var/tmp/hemmelig/upload/files/_BhAwnflzvx3x-F49mKxmUzD2-fDWV69.json'

}

EACCES: permission denied, open '/var/tmp/hemmelig/upload/files/_BhAwnflzvx3x-F49mKxmUzD2-fDWV69.json'
2023/09/28 09:02PM 30 pid=19 hostname=hemmelig reqId=req-2l res={"statusCode":403} responseTime=10.205626487731934 msg=request completed

Screenshots

No response

Additional information

I tried chmod 777 /var which sadly did not solve it.

bjarneo commented 11 months ago

It is not a bug. It is wrong permissions on the filesystem.

bjarneo commented 11 months ago

Should be some troubleshooting at the end of the readme

FuckingToasters commented 11 months ago

Should be some troubleshooting at the end of the readme

I now ran these 3 commands:

chown -R root /var/tmp/hemmelig/upload/files
chown -R root /root/docker/data/hemmelig/data/
chown -R root /root/docker/data/hemmelig/database/

Sadly the issue is the same.

bjarneo commented 11 months ago

https://github.com/HemmeligOrg/Hemmelig.app/issues/183#issuecomment-1520390666

FuckingToasters commented 11 months ago

Hmm, i looked at the suggested solution, my scret host were set to files.domain.com.

I now updated it to domain.com and tried it again, without success

FuckingToasters commented 11 months ago

update: i added user: root which seem to have solved this issue, but caused a new one.