Code Monkey home page Code Monkey logo

Comments (4)

thefakewater avatar thefakewater commented on August 18, 2024

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.

from instauto.

thefakewater avatar thefakewater commented on August 18, 2024

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.

from instauto.

thegreenmilecornant avatar thegreenmilecornant commented on August 18, 2024

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.

from instauto.

thefakewater avatar thefakewater commented on August 18, 2024

I've created a volume now. To which path do I mount it?

I would recommend creating a managed volume because its easier.
You could create a ./data folder at the root of your project.
But you need to specify in your code to write the json files inside that folder.
Screenshot 2023-05-05 120416
Then with this data folder you can mount it like this in docker-compose.yml

version: '3'
services:
  myinstabot:
    volumes:
      - instabot:/app/data/
volumes:
  instabot:

from instauto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.