Comments (5)
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.
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.
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.
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.
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)
- Feature / experiment: develop an alternative frontend container using 'caddy' as a webserver HOT 2
- Remove Hardcoded VOLUME in Frontend Dockerfile for Nginx HOT 3
- Only Log to `stdout` / `stderr` HOT 11
- Consider deprecating use of docker HOT 3
- grocy/grocy-docker or linuxserver/grocy HOT 7
- Rollback to PHP 8.0 HOT 3
- Request: Stronger initial login credentials HOT 6
- Update base images to use Alpine 3.17.2 HOT 2
- Plan from migrating away from dockerhub? HOT 3
- frontend container: intermittent build error: unable to remove temporary directory contents HOT 1
- GitHub Actions: update buildah-build action in publish workflow to a more recent version
- 404 on node_modules following upgrade to 4.0.0 HOT 44
- Update guide incomplete. HOT 1
- No assets in the web UI after 3.3.2->4.0.2 upgrade (docker-compose + nginx) HOT 10
- Frontend issues with grocy >= 4.0.1 HOT 4
- Feature Request: Populate data directory if using docker bind mounts HOT 6
- Feature request: Proxy authentication by http header value HOT 2
- Allow changing the name of the backend container. HOT 2
- Docker image not found (with bages linked) HOT 1
- Use of docker volume for data makes it hard to customize HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grocy-docker.