-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
Fix the Docker support #145
Comments
Sometimes this issue throw randomly on my container too when I start it . What I do is that I set my docker container restart policies to "on failure" and i set max-retry to 10 so that when it throws this error it immediately restarts and the error is gone and the bot doesn't fail after that. |
To avoid this error I suggest that you create a docker volume and put the cookies.json,+ (all the data .json files) into a separate folder that you bind with that volume. The cookies.json validity last 1 year I think but it's better to login with cookies than username and password because it's faster. |
Thanks. I tried the Restart Policy without luck. I've created a volume now. To which path do I mount it? And how would I obtain the cookies.json and the rest of the .json files? I have never had a successful run in Docker. Can I use the equivalent from SimpleInstaBot? Those files I can reach and have successful runs with. |
To Reproduce
I have cloned the repository, changed the docker-compose.yaml with my username and password and run the
command docker-compose --profile instauto up -d
.I then check the logs in Portainer and see this log;
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
This is related to the ground work made by @maxxxdj in PR #141 . Feels as if we're close to getting there and having a working image. Would you please look at this again @maxxxdj ?
Also, the timezone is off. Can we add that as an env variable?
Provide me with HTML
Did you receive an error while the bot is running?
To make it easier for me to understand why it's failing, please copy and share with me the HTML of the button (or even better the whole page) and share it, by following these instructions:
Use Option + ⌘ + J (on macOS), or Shift + CTRL + J (on Windows/Linux) to open devtools.
Using the Web Inspector (F12), go to the Elements tab, right click on the tag in your code and select Copy->Copy outerHTML. Then paste that here
If you feel it's private information you can instead email to [email protected]
The text was updated successfully, but these errors were encountered: