zachowj / xfinity-data-usage

Fetch Xfinity data usage and serve it via an HTTP endpoint, publish it to MQTT or post it to an URL.
https://hub.docker.com/r/zachowj/xfinity-data-usage
MIT License
53 stars 15 forks source link

Error: EACCES: permission denied, open '/config/pwsuffix' #38

Closed tfer6 closed 3 years ago

tfer6 commented 3 years ago

Was running this for awhile, prior to trying to implement the password reset process. I'm getting this error now.

today at 10:48:37 AM http server started
today at 10:48:37 AM Unable to load password file.
today at 10:48:37 AM Fetching Data
today at 10:48:37 AM Loading (https://customer.xfinity.com)
today at 10:48:45 AM Page Title:  Please reset your Xfinity password
today at 10:48:45 AM Attempting to reset password
today at 10:48:53 AM CODE: 400316
today at 10:48:58 AM Loading Usage https://customer.xfinity.com/apis/csp/account/me/services/internet/usage?filter=internet
today at 10:48:58 AM [Error: EACCES: permission denied, open '/config/pwsuffix'] {
today at 10:48:58 AM   errno: -13,
today at 10:48:59 AM Not logged in
today at 10:48:59 AM Loading (https://customer.xfinity.com)
today at 10:49:07 AM Page Title:  Security Check
today at 10:49:07 AM Clicking "Ask me later" for security check
today at 10:49:09 AM Loading Usage https://customer.xfinity.com/apis/csp/account/me/services/internet/usage?filter=internet
today at 10:49:10 AM Not logged in
today at 10:49:10 AM Loading (https://customer.xfinity.com)
today at 10:49:43 AM Error while fetching usage
today at 10:49:43 AM waiting for selector `#user` failed: timeout 30000ms exceeded
today at 10:49:43 AM Next fetch in 720 minutes @ 3:48:37 AM
zachowj commented 3 years ago

Does the container have write permission to the config directory?

tfer6 commented 3 years ago

The error seems to have gone away on it's own, when I recreated the container. I'll close this.

I'm not a regular docker users, would their be an easy way for me to confirm permissions are setup correctly? No worries either way.

zachowj commented 3 years ago

It would only throw that error when trying to reset the password.

Was a pwsuffix file created in the config directory?

tfer6 commented 3 years ago

No, but based on the logs it looks like I haven't had to have a reset since recreating the container. I'll keep an eye on it and post back when it happens.