-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
[BUG] No data shown in UI after docker pull new images #79
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
You're mounting an incorrect folder. Please follow the readme |
I started with:
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:
Searching for a fix, I found someone saying that swapping EDIT: Also found suggestion of :/var/www/data` here Since then, it has worked until today when I updated the container. Changing back to If deleting persistent data (re-creating everything from scratch like this), I get the `Unable to run Grocy` instead.with
in docker-compose.yaml, doing:
Gives the
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? |
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. |
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 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. |
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! |
Is there an existing issue for this?
Current Behavior
Not sure if related to #9 or #50 but there are no answers for those.
I have grocy in my docker-compose.yaml.
relevant docker-compose.yaml
After doing:
Everything is gone after logging in. Password has reset to default
admin/admin
, and no products, product_groups, location, etc. were present.Output of docker logs grocy
I did have the web UI open (in a background window) while I did the docker pull, and I saw this page when I navigated back:
I've pasted the logs and stack trace from that page here:
A server error occured while processing your request
Error source
Error message
Stack trace
Easy error info copy & paste (for reporting)
/app/www/packages/morris/lessql/src/LessQL/Database.php:110
SQLSTATE[HY000]: General error: 1 no such table: sessions
#0 /app/www/packages/morris/lessql/src/LessQL/Database.php(110): PDO->prepare()
#1 /app/www/packages/morris/lessql/src/LessQL/Database.php(493): LessQL\Database->prepare()
#2 /app/www/packages/morris/lessql/src/LessQL/Result.php(143): LessQL\Database->select()
#3 /app/www/packages/morris/lessql/src/LessQL/Result.php(322): LessQL\Result->execute()
#4 /app/www/services/SessionService.php(54): LessQL\Result->fetch()
#5 /app/www/middleware/SessionAuthMiddleware.php(21): Grocy\Services\SessionService->IsValidSession()
#6 /app/www/middleware/DefaultAuthMiddleware.php(24): Grocy\Middleware\SessionAuthMiddleware->authenticate()
#7 /app/www/middleware/AuthMiddleware.php(53): Grocy\Middleware\DefaultAuthMiddleware->authenticate()
#8 /app/www/packages/slim/slim/Slim/MiddlewareDispatcher.php(269): Grocy\Middleware\AuthMiddleware->__invoke()
#9 /app/www/packages/slim/slim/Slim/Middleware/RoutingMiddleware.php(45): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#10 /app/www/packages/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\RoutingMiddleware->process()
#11 /app/www/packages/slim/slim/Slim/Middleware/ErrorMiddleware.php(76): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#12 /app/www/packages/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\ErrorMiddleware->process()
#13 /app/www/middleware/CorsMiddleware.php(27): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#14 /app/www/packages/slim/slim/Slim/MiddlewareDispatcher.php(269): Grocy\Middleware\CorsMiddleware->__invoke()
#15 /app/www/packages/slim/slim/Slim/MiddlewareDispatcher.php(65): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#16 /app/www/packages/slim/slim/Slim/App.php(199): Slim\MiddlewareDispatcher->handle()
#17 /app/www/packages/slim/slim/Slim/App.php(183): Slim\App->handle()
#18 /app/www/app.php(112): Slim\App->run()
#19 /app/www/public/index.php(45): require_once('...')
#20 {main}
{
"grocy_version": {
"Version": "4.0.3",
"ReleaseDate": "2023-09-02"
},
"php_version": "8.2.13",
"sqlite_version": "3.41.2",
"os": "Linux 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64",
"client": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:120.0) Gecko/20100101 Firefox/120.0"
}
Expected Behavior
All data should remain when I update the docker container without changing anything with the persistent_data.
Steps To Reproduce
22.04
) with docker (Docker version 24.0.5, build 24.0.5-0ubuntu1~22.04.1
) and docker-compose (docker-compose version 1.28.5, build c4eb3a1f
) withdocker-compose.yaml
as shown above, set up linuxserver/grocy and add items.Environment
CPU architecture
x86-64
Docker creation
Container logs
The text was updated successfully, but these errors were encountered: