-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
ERR Profile save() exception: Error: EACCES: permission denied, open '/bot/demo.wechaty.json' #982
Comments
The error message is clear enough: |
Container changed to run as a When docker bind-mount, it doesn't touch the permission of the directory mounted in. so
|
Thanks @Gcaufy Confirmed, will look into it to see if we should go back to use root user as before. |
@zixia did you fixed this exception? when i try to save the user's avatar, the docker will exit. thanks a lot
|
Not fix yet, because I'm still thinking about why I change to non-root user before... It seems we should restore the docker to use the root user to make the life easier. |
I agree, docker container they are independent, root should be safe for your host machine. |
@Gcaufy Ok, let's change it back to use root user. Is there anyone who wants to make this PR? :) |
Will close this issue because I believe we had already switch back to use |
Provide Your Network Information
Run
npm run doctor
orwechaty run doctor
(for docker user), paste output herewechaty run doctor
Expected behavior
success
Actual behavior
13:45:16 ERR Profile save() exception: Error: EACCES: permission denied, open '/bot/demo.wechaty.json'
(node:30) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: EACCES: permission denied, open '/bot/demo.wechaty.json'
(node:30) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
^C13:45:19 INFO Bot finis(130, SIGINT)
Steps to reproduce the behavior (and fixes, if any)
Full Output Logs
$ WECHATY_LOG=silly npm run ts-node mybot.ts # or $ WECHATY_LOG=silly node dist/mybot.js
Show Logs
### Paste the full output logs here with `WECHATY_LOG=silly` set# PASTE FULL LOG OUTPUT AT HERE:
The text was updated successfully, but these errors were encountered: