[Support] Linuxserver.io - Grocy


Recommended Posts

15 minutes ago, Konfitüre said:

Hey

is there a database for products that i can import?

It is a lot of work to collect all products and my wife she won't do it and I alone cannot do it

Not that I'm aware of. If you can't get your wife to see the value in investing her time, I recommend binning the project.

 

https://forums.unraid.net/topic/78198-support-linuxserverio-grocy/?do=findComment&comment=768702

 

Link to comment

I'm currently going through implementing grocy in my household, (something to do over lockdown!)

 

Have you looked at barcodebuddy docker and android scan app? Its an barcode front end that allows a lookup of scanned barcodes against the internet before passing data to grocy. Made importing initially a little simpler. 

 

It's a very simple docker image, redirect port 80 away and a path to save the container /config files to keep configuration.

 

Made things simpler for me anyway!

 

Flubster

Link to comment
On 4/26/2020 at 2:28 AM, Flubster said:

 

It's a very simple docker image, redirect port 80 away and a path to save the container /config files to keep configuration.

Seems to be fine locally, do you have it exposed through reverse proxy? I'm not having much success there, and it's required for my workflow to be able to use grocy externally.

 

I see on the project page that reverse proxy documentation is in progress, but I thought maybe you had a working config.

https://github.com/Forceu/barcodebuddy/projects/1

Link to comment

What an excellent little app. Time was well invested in setting things up inside the app once installed. Have a newly pregnant partner here who is relishing being able to transparently build the shopping list for me to fulfil (as this is my job while COVID-19 is here) without the usual txts etc. Sigh. LOL!

 

Anyway, thanks for making this into a docker boys. Special thanks for also including a default proxy.conf file in the letsencrypt docker too. Made setting it up for external access via https a doddle.

Link to comment
  • 3 weeks later...
On 4/27/2020 at 5:35 PM, jonathanm said:

Seems to be fine locally, do you have it exposed through reverse proxy? I'm not having much success there, and it's required for my workflow to be able to use grocy externally.

 

I see on the project page that reverse proxy documentation is in progress, but I thought maybe you had a working config.

https://github.com/Forceu/barcodebuddy/projects/1

I see the developer has now posted nginx reverse proxy configs if any use

 

https://github.com/Forceu/barcodebuddy/blob/master/example/nginxReverseProxy.conf


Flubster

Link to comment
On 4/26/2020 at 8:28 AM, Flubster said:

I'm currently going through implementing grocy in my household, (something to do over lockdown!)

 

Have you looked at barcodebuddy docker and android scan app? Its an barcode front end that allows a lookup of scanned barcodes against the internet before passing data to grocy. Made importing initially a little simpler. 

 

It's a very simple docker image, redirect port 80 away and a path to save the container /config files to keep configuration.

 

Made things simpler for me anyway!

 

Flubster

Do you know how to change the language from where it searches the barcode?

Link to comment
1 hour ago, saarg said:

We already have a proxy-conf for it in our letsencrypt container.

Are you positive about that? I just pulled an update for LE, and it's not in there.

 

Regardless, I got it working just fine.

3 hours ago, Flubster said:

I see the developer has now posted nginx reverse proxy configs if any use

 

https://github.com/Forceu/barcodebuddy/blob/master/example/nginxReverseProxy.conf


Flubster

Yeah, I initially had some issues, but it turns out it wasn't (directly) my reverse proxy. When you scan the 3d barcode to automatically connect the smartphone app to the server, it turns out the url it generates is http, and my server is only exposed on https. As soon as I manually changed that before proceeding, everything worked great.

Link to comment
4 hours ago, jonathanm said:

Are you positive about that? I just pulled an update for LE, and it's not in there.

 

Regardless, I got it working just fine.

Yeah, I initially had some issues, but it turns out it wasn't (directly) my reverse proxy. When you scan the 3d barcode to automatically connect the smartphone app to the server, it turns out the url it generates is http, and my server is only exposed on https. As soon as I manually changed that before proceeding, everything worked great.

I'm pretty sure.

 

https://github.com/linuxserver/reverse-proxy-confs/blob/master/grocy.subdomain.conf.sample

 

Haven't you updated your letsencrypt container for a while?

Link to comment
1 hour ago, saarg said:

I'm pretty sure.

 

https://github.com/linuxserver/reverse-proxy-confs/blob/master/grocy.subdomain.conf.sample

 

Haven't you updated your letsencrypt container for a while?

That's for grocy, not barcodebuddy.

 

9 hours ago, Flubster said:

I see the developer has now posted nginx reverse proxy configs if any use

 

https://github.com/Forceu/barcodebuddy/blob/master/example/nginxReverseProxy.conf


Flubster

 

Link to comment
  • 3 weeks later...
  • 1 month later...

Hey! Just recently grocy has been giving me a 502 bad gateway error when I try loading the /products page. Any thoughts as to why, or how to fix this?

nginx log shows many similar entries like this:

Quote

2020/07/08 09:14:09 [error] 327#327: *125 FastCGI sent in stderr: ": PHP Notice: Trying to get property 'name' of non-object in /config/data/viewcache/4beb16ca620ac8a5836266363b7fe77f7e919dd3.php on line 96PHP message: PHP Notice: Trying to get property 'name' of non-object in /config/data/viewcache/4beb16ca620ac8a5836266363b7fe77f7e919dd3.php on line 96PHP message: PHP Notice: Trying to get property 'name' of non-object in /config/data/viewcache/4beb16ca620ac8a5836266363b7fe77f7e919dd3.php on line 96PHP message: PHP Notice: Trying to get property 'name' of non-object in /config/data/viewcache/4beb16ca620ac8a5836266363b7fe77f7e919dd3.php on line 96PHP message

And this:

Quote

2020/07/08 09:14:09 [error] 327#327: *125 upstream sent too big header while reading response header from upstream, client: 192.168.xx.xx, server: _, request: "GET /products HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.xx.xx", referrer: "http://192.168.xx.xx/locations"

 

Thinking I need to edit something in the nginx "default" config file?

 

**Edit** Found the solution! Add the following to the nginx config file (/nginx/site-configs/default) along with the current default fastcgi settings.  Potentially this should be added to the docker container's default?

fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;

 

Edited by Raza
Link to comment
  • 5 months later...
On 7/10/2020 at 12:42 AM, Raza said:

Hey! Just recently grocy has been giving me a 502 bad gateway error when I try loading the /products page. Any thoughts as to why, or how to fix this?

nginx log shows many similar entries like this:

And this:

 

Thinking I need to edit something in the nginx "default" config file?

 

**Edit** Found the solution! Add the following to the nginx config file (/nginx/site-configs/default) along with the current default fastcgi settings.  Potentially this should be added to the docker container's default?


fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;

 

I've got the same problem but your explanation doesn't solve it...

@saargIs there any other way to fix this?

Link to comment

From the deafening silence here, I'm guessing nobody else's container partially broke on the 3.0 update? Apparently there is something incompatible in my appdata, because a fresh pull of the container on a different server works properly and looks like this

image.thumb.png.d29ceec9489bcc858965fb68bfc540bd.png

But my both my active version and fresh pull look like this after I copy my appdata to the fresh pull.

image.thumb.png.b84c97d256c6598d395d0a530595a775.png

Shopping list and recipes are similarly borked.

 

Any ideas what I need to nuke or rebuild from my appdata? I would love to import my items, but apparently backup and restore aren't a thing, unless I dig into the database manually.

Link to comment
1 hour ago, jonathanm said:

From the deafening silence here, I'm guessing nobody else's container partially broke on the 3.0 update? Apparently there is something incompatible in my appdata, because a fresh pull of the container on a different server works properly and looks like this

image.thumb.png.d29ceec9489bcc858965fb68bfc540bd.png

But my both my active version and fresh pull look like this after I copy my appdata to the fresh pull.

image.thumb.png.b84c97d256c6598d395d0a530595a775.png

Shopping list and recipes are similarly borked.

 

Any ideas what I need to nuke or rebuild from my appdata? I would love to import my items, but apparently backup and restore aren't a thing, unless I dig into the database manually.

Maybe related to this?

https://github.com/linuxserver/docker-grocy/issues/30

Link to comment
3 minutes ago, saarg said:

I doubt it, considering it says the current php version is still supported, but perhaps not in the next version (s).

Quote

Grocy changed their composer PHP requirement to 7.4, starting with the next release (grocy/grocy@f1efd08). Right now the PHP version for this docker image is 7.3.
7.4 is technically not required, the author did this, as he is testing with 7.4, but it might change in the future.

 

Link to comment
19 hours ago, saarg said:

I don't know. Did you restart  the container after adding the parameters?

Yes, always after a change in the files. Swag & Grocy

  • A new install does work fine
  • I've copied the new config.php to existing install = same problem
  • Cant access Meal Plan & Recipes locally and externally
  • After coping the database + data/storage to the new install, the same problem occurs

It has something to do with file size pictures? Or quantity of pictures? I dont know. What can I try else?

Link to comment
4 hours ago, bl3gh said:

Yes, always after a change in the files. Swag & Grocy

  • A new install does work fine
  • I've copied the new config.php to existing install = same problem
  • Cant access Meal Plan & Recipes locally and externally
  • After coping the database + data/storage to the new install, the same problem occurs

It has something to do with file size pictures? Or quantity of pictures? I dont know. What can I try else?

I dont have any suggestions.  I don't  know grocy at all. You can try to ask the group guys if they know why it happens.

Link to comment
1 hour ago, saarg said:

I dont have any suggestions.  I don't  know grocy at all. You can try to ask the group guys if they know why it happens.

Thanks mate.

@linuxserver.io Is it possible to help me with this?

Problem: Cant access Meal Plan & Recipes locally and externally after update to 3.0

 

Tried:

  • I've copied the new config.php to existing install = same problem
  • Cant access Meal Plan & Recipes locally and externally
  • After coping the database + data/storage to the new install, the same problem occurs
  • Add the following to the nginx config file (/nginx/site-configs/default) along with the current default fastcgi settings
    fastcgi_buffers 16 16k;
    fastcgi_buffer_size 32k;

It has something to do with file size pictures? Or quantity of pictures? I dont know. What can I try else?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.