Coder Social home page Coder Social logo

Update grocy? about grocy-docker HOT 5 CLOSED

grocy avatar grocy commented on July 21, 2024
Update grocy?

from grocy-docker.

Comments (5)

Source-Kod avatar Source-Kod commented on July 21, 2024

I think this is a problem with the persistent volume I made. This happened to me when I was testing something. I just deleted the volume and let it remake a new one, but that will lose all the data you have. You could test if this would fix it without deleting your old database volume by changing lines 28 and 37 in the docker-compose.yml from database to database2 or something.Then delete your containers(docker rm grocy grocy-nginx) and run the docker-compose up.

To switch back to your old database you just change the docker-compose.yml back and delete your containers(docker rm grocy grocy-nginx) and run the docker-compose up again.

By the way if your using the docker-compose pull you don't need to docker-compose build or vice versa. Pull gets the images from the repository and build uses the dockerfile you have to build the image.

Also since your new to docker you might want to check out Portainer it helped me a lot when I first started using docker. I mostly use the command lines now, but the Portainer GUI makes troubleshooting easier.

from grocy-docker.

MatFluor avatar MatFluor commented on July 21, 2024

Thanks for your suggestion!

When I switch to another database, it works - but changing back to the old database unfortunately doesn't. OF course removing the volume works as well, but as you said, data loss. I went that way, since I didn't do too much work in there, but for future updates it might be worth looking into I think.

from grocy-docker.

schildgenb avatar schildgenb commented on July 21, 2024

Having the same issues here that it stays on 2.2. I do not really want to lose data if I don't have too. Any ideas @talmai?

from grocy-docker.

andreas5232 avatar andreas5232 commented on July 21, 2024

I just stumbled upon the same problem. Even though docker-compose pull recreated the containers, they were still running an old version of grocy. Since I'm not very familiar with the grocy internals (yet), I don't know what the officially intended way of upgrading grocy-docker is.

What I did to upgrade my grocy-docker instance is:

  • Use the shell of your hosts OS, not within the docker container
  • Find the path to your grocy data:
    docker inspect --format='{{json .Mounts}}' grocy | python -m json.tool
  • Make sure to backup all your grocy files
  • Change into the _data dir: cd /var/lib/docker/volumes/grocydocker_database/_data
  • Run the provided update script: bash ./update.sh
  • Enjoy your updated grocy! 🎉

Please let me know, if this works for you. Maybe we can add this little upgrade help to the README then.

from grocy-docker.

jayaddison avatar jayaddison commented on July 21, 2024

Resolving this issue as stale; please reopen and provide steps to reproduce the problem if you're still experiencing this issue and would like help investigating it.

from grocy-docker.

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.