Comments (6)
I get that. If you had come to us when it first broke during an upgrade, we could have helped. But after changing mounts, too much is changed and we can't possibly reproduce your setup to properly troubleshoot.
If it breaks again, feel free to drop by our Discord, which is great for quick chats and troubleshooting.
Good luck!
from docker-grocy.
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
from docker-grocy.
You're mounting an incorrect folder. Please follow the readme
from docker-grocy.
I started with:
grocy:
image: lscr.io/linuxserver/grocy:latest
container_name: grocy
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Copenhagen
volumes:
- /mnt/data/docker/grocy:/config
ports:
- "10.0.30.21:9283:80"
restart: unless-stopped
I had it working a loooong time ago, but hadn't used it for many months (years?) until I tried again recently, and it no longer worked; I just got a page showing:
Unable to run Grocy: config.php in data directory (/app/www/public/../data) not found. Have you copied config-dist.php to the data directory and renamed it to config.php?
Searching for a fix, I found someone saying that swapping :/config
to :/var/www/data
worked for them. Different docker image, I think, but I tried, and it worked where nothing else did.
EDIT: Also found suggestion of :/var/www/data` here
Since then, it has worked until today when I updated the container. Changing back to /mnt/data/docker/grocy:/config
gives the same result that made me change to /mnt/data/docker/grocy:/var/www/data
in the first place, the web UI doesn't load (The page isn’t redirecting properly
) despite no errors in docker logs if keeping the persistent data (initially created with /mnt/data/docker/grocy:/config
).
If deleting persistent data (re-creating everything from scratch like this), I get the `Unable to run Grocy` instead.
with
grocy:
image: lscr.io/linuxserver/grocy:latest
container_name: grocy
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Copenhagen
volumes:
- /mnt/data/docker/grocy:/config
ports:
- "10.0.30.21:9283:80"
restart: unless-stopped
in docker-compose.yaml, doing:
docker kill grocy
sudo rm -rf /mnt/data/docker/grocy
docker-compose up -d
Gives the
The page isn’t redirecting properly`) despite no errors in docker logs if keeping the persistent data (initially created with `/mnt/data/docker/grocy:/config
So it seems like I should worry about why a new instance with docker-compose as in this post doesn't get me to the login page instead?
Any idea why that is?
from docker-grocy.
You can't just switch mount points like that and expect it not to break. That suggestion you linked is not even for this image. Your persistent folder on host is likely broken beyond repair.
You need to either start with a fresh config folder and start over, or restore from a working backup (likely from before you switched the mount point in the first place.
from docker-grocy.
It's not so much that I didn't expect anything to break when changing mount points, it's more that it already was broken using /config
(after not accessing it for a while), before making changes to the documented setup, so I got a bit... desperate? Adventurous? Somewhere in between.
But sure, I'll restart (I have scripts to re-add all products). And avoid leaving it running for months/years between using it going forward.
from docker-grocy.
Related Issues (20)
- 502 Bad Gateway using raspberry pi 3b+ 64bit HOT 36
- Installing an SSL certificate HOT 12
- Add time zone format to readme HOT 2
- Unable to Upload Images of Reasonable File Size HOT 8
- Migrations scripts logs errors but migration is successfully HOT 3
- Login page no longer works (most likely after the latest upgrade) HOT 8
- [BUG] config.php not found HOT 4
- [FEAT] Setting Grocy settings via enviroment HOT 3
- [BUG] Terrible performance on the latest version HOT 33
- SQLSTATE[HY000]: General error: 1 no such table: users HOT 5
- 4.0.0 not working HOT 3
- Grocy docker started but shows ERR_TOO_MANY_REDIRECTS HOT 18
- [BUG] Update to 4.0.1 completely breaks website, links lead to different pages HOT 5
- [BUG] Update from latest 3 to latest 4 breaks sql statements HOT 5
- [BUG] Chore Userfield breaks editing/adding Chores HOT 3
- [BUG] FPM initialization failed, fastcgi address in use HOT 7
- [BUG] Fresh install - Unable to run Grocy: config.php in data directory (/app/www/public/../data) not found. HOT 7
- [BUG] Container does not start up with "Grocy\Middleware\ReverseProxyAuthMiddleware" HOT 2
- [BUG] Empty stock overview - broken index HOT 6
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 docker-grocy.