[go: nahoru, domu]

Skip to content
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

Auto Meal Plan Feature: No Recipes are added to the calendar #2827

Closed
vabene1111 opened this issue Dec 22, 2023 Discussed in #2824 · 11 comments · Fixed by #2853
Closed

Auto Meal Plan Feature: No Recipes are added to the calendar #2827

vabene1111 opened this issue Dec 22, 2023 Discussed in #2824 · 11 comments · Fixed by #2853
Labels
bug Something isn't working

Comments

@vabene1111
Copy link
Collaborator

Discussed in #2824

Originally posted by silberzwiebel December 21, 2023
Hi there,

I'm wondering if I'm doing something wrong or if I just don't understand the auto-meal-plan-feature.
I tried several times (with no keywords, with all keywords, with single keywords, with only 2 days to plan, ...) but I never see any recipes added to the meal plan / calendar. Relevant logs below (from opening the meal-plan page, clicking on "smart planning" and auto-creating a meal-plan with no success but also no error message)

Maybe I do have too little recipes? Or is there something else I'm missing?
How can I enable some more debug logging?

Thanks in advance for any help!

Best,
kartoffelsalat

tandoor-nginx_recipes-1  | 192.168.178.131 - - [21/Dec/2023:14:28:59 +0000] "GET /api/meal-type/ HTTP/1.1" 200 94 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0" "-"
tandoor-web_recipes-1    | 172.23.0.4 - - [21/Dec/2023:15:28:59 +0100] "GET /api/meal-type/ HTTP/1.0" 200 94 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0"
tandoor-nginx_recipes-1  | 192.168.178.131 - - [21/Dec/2023:14:29:00 +0000] "GET /api/user-preference/1/ HTTP/1.1" 200 939 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0" "-"
tandoor-nginx_recipes-1  | 192.168.178.131 - - [21/Dec/2023:14:29:00 +0000] "GET /api/user/ HTTP/1.1" 200 167 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0" "-"
tandoor-web_recipes-1    | 172.23.0.4 - - [21/Dec/2023:15:29:00 +0100] "GET /api/user-preference/1/ HTTP/1.0" 200 939 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0"
tandoor-web_recipes-1    | 172.23.0.4 - - [21/Dec/2023:15:29:00 +0100] "GET /api/user/ HTTP/1.0" 200 167 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0"
tandoor-nginx_recipes-1  | 192.168.178.131 - - [21/Dec/2023:14:29:00 +0000] "GET /api/keyword/?query=&root=0&page=1&page_size=50&simple=1 HTTP/1.1" 200 1580 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0" "-"
tandoor-web_recipes-1    | 172.23.0.4 - - [21/Dec/2023:15:29:00 +0100] "GET /api/keyword/?query=&root=0&page=1&page_size=50&simple=1 HTTP/1.0" 200 1580 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0"
tandoor-nginx_recipes-1  | 192.168.178.131 - - [21/Dec/2023:14:29:25 +0000] "POST /api/auto-plan/ HTTP/1.1" 200 240 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0" "-"
tandoor-web_recipes-1    | 172.23.0.4 - - [21/Dec/2023:15:29:25 +0100] "POST /api/auto-plan/ HTTP/1.0" 200 240 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0"
tandoor-nginx_recipes-1  | 192.168.178.131 - - [21/Dec/2023:14:29:25 +0000] "GET /api/meal-plan/?from_date=2023-12-18&to_date=2024-01-07 HTTP/1.1" 200 807 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0" "-"
tandoor-web_recipes-1    | 172.23.0.4 - - [21/Dec/2023:15:29:25 +0100] "GET /api/meal-plan/?from_date=2023-12-18&to_date=2024-01-07 HTTP/1.0" 200 807 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0"

```</div>
@vabene1111 vabene1111 added the bug Something isn't working label Dec 22, 2023
@vabene1111
Copy link
Collaborator Author

So this works on my local instance and on my private instance but not on yours and not on the hosted 🤔

i have updated the beta release which should not have any breaking changes, it would be great if you could try if that fixes your issue.

@silberzwiebel
Copy link

Thanks for the fast response. I used the beta-docker-tag and my self-hosted instance is now on 54119ed (so it says on the /system page).

Unfortunately, the problem still exists ...

@vabene1111
Copy link
Collaborator Author

Very interesting, need to investigate further or maybe build in some debug code.

Have you run with debug=1 in your environment to see if there are any logs from that?

@silberzwiebel
Copy link

Not yet, but I've enabled the DEBUG and the SQL_DEBUG just now. Here is the result, starting with click on "Meal Plan":

tandoor-web_recipes-1    |   [SQL Queries for] /plan/
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [TOTAL TIME: 0.07 seconds]
tandoor-web_recipes-1    |   [TOTAL QUERIES: 47]
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:21 +0100] "GET /plan/ HTTP/1.1" 200 22563 "http://192.168.178.21:90/books/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:21 +0100] "GET /plan/ HTTP/1.0" 200 22563 "http://192.168.178.21:90/books/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:22 +0100] "GET /static/css/app.min.css HTTP/1.1" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:22 +0100] "GET /static/css/select2.min.css HTTP/1.0" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:22 +0100] "GET /static/js/jquery-3.5.1.min.js HTTP/1.1" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:22 +0100] "GET /static/css/select2.min.css HTTP/1.1" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:22 +0100] "GET /static/css/app.min.css HTTP/1.0" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:22 +0100] "GET /static/themes/tandoor.min.css HTTP/1.0" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:22 +0100] "GET /static/themes/tandoor.min.css HTTP/1.1" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:22 +0100] "GET /static/js/jquery-3.5.1.min.js HTTP/1.0" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:22 +0100] "GET /static/js/select2.min.js HTTP/1.1" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:22 +0100] "GET /static/js/select2.min.js HTTP/1.0" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:22 +0100] "GET /static/django_js_reverse/reverse.js HTTP/1.1" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:22 +0100] "GET /static/js/popper.min.js HTTP/1.1" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:22 +0100] "GET /static/django_js_reverse/reverse.js HTTP/1.0" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:22 +0100] "GET /static/js/popper.min.js HTTP/1.0" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:22 +0100] "GET /static/css/select2-bootstrap.css HTTP/1.1" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:22 +0100] "GET /static/themes/select2-bootstrap-theme.css HTTP/1.1" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:22 +0100] "GET /static/js/bootstrap.min.js HTTP/1.1" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:22 +0100] "GET /static/themes/select2-bootstrap-theme.css HTTP/1.0" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:22 +0100] "GET /static/css/select2-bootstrap.css HTTP/1.0" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:22 +0100] "GET /static/js/bootstrap.min.js HTTP/1.0" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:22 +0100] "GET /static/fontawesome/fontawesome_all.min.css HTTP/1.1" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:22 +0100] "GET /static/vue/css/chunk-vendors.css HTTP/1.1" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:22 +0100] "GET /static/vue/js/chunk-vendors.js HTTP/1.1" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:22 +0100] "GET /static/fontawesome/fontawesome_all.min.css HTTP/1.0" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:22 +0100] "GET /static/vue/js/chunk-vendors.js HTTP/1.0" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:22 +0100] "GET /static/vue/css/chunk-vendors.css HTTP/1.0" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:22 +0100] "GET /static/vue/js/locales-chunk.js HTTP/1.1" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:22 +0100] "GET /static/vue/js/locales-chunk.js HTTP/1.0" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:22 +0100] "GET /static/vue/js/api-chunk.js HTTP/1.1" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:22 +0100] "GET /static/vue/js/api-chunk.js HTTP/1.0" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:22 +0100] "GET /static/vue/css/meal_plan_view.css HTTP/1.1" 200 4051 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:22 +0100] "GET /static/vue/css/meal_plan_view.css HTTP/1.0" 200 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:22 +0100] "GET /static/vue/js/meal_plan_view.js HTTP/1.1" 200 108031 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:22 +0100] "GET /static/vue/js/meal_plan_view.js HTTP/1.0" 200 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:22 +0100] "GET /static/assets/brand_logo.png HTTP/1.1" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:22 +0100] "GET /static/assets/brand_logo.png HTTP/1.0" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [SQL Queries for] /api/meal-plan/
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [TOTAL TIME: 0.06 seconds]
tandoor-web_recipes-1    |   [TOTAL QUERIES: 7]
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:23 +0100] "GET /api/meal-plan/?from_date=2023-12-18&to_date=2023-12-31 HTTP/1.1" 200 2 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:23 +0100] "GET /api/meal-plan/?from_date=2023-12-18&to_date=2023-12-31 HTTP/1.0" 200 2 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [SQL Queries for] /api/meal-plan/
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [TOTAL TIME: 0.064 seconds]
tandoor-web_recipes-1    |   [TOTAL QUERIES: 7]
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:24 +0100] "GET /api/meal-plan/?from_date=2023-12-18&to_date=2024-01-07 HTTP/1.1" 200 2 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:24 +0100] "GET /api/meal-plan/?from_date=2023-12-18&to_date=2024-01-07 HTTP/1.0" 200 2 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [SQL Queries for] /api/meal-plan/
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [TOTAL TIME: 0.075 seconds]
tandoor-web_recipes-1    |   [TOTAL QUERIES: 7]
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:24 +0100] "GET /api/meal-plan/?from_date=2023-12-18&to_date=2024-01-07 HTTP/1.1" 200 2 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:24 +0100] "GET /api/meal-plan/?from_date=2023-12-18&to_date=2024-01-07 HTTP/1.0" 200 2 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [SQL Queries for] /api/user-preference/1/
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [TOTAL TIME: 0.09500000000000001 seconds]
tandoor-web_recipes-1    |   [TOTAL QUERIES: 14]
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:24 +0100] "GET /api/user-preference/1/ HTTP/1.1" 200 939 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:24 +0100] "GET /api/user-preference/1/ HTTP/1.0" 200 939 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [SQL Queries for] /api/meal-type/
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [TOTAL TIME: 0.6359999999999999 seconds]
tandoor-web_recipes-1    |   [TOTAL QUERIES: 7]
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:24 +0100] "GET /api/meal-type/ HTTP/1.1" 200 94 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [SQL Queries for] /api/meal-type/
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:24 +0100] "GET /api/meal-type/ HTTP/1.0" 200 94 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [SQL Queries for] /api/meal-type/
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [TOTAL TIME: 0.7350000000000001 seconds]
tandoor-web_recipes-1    |   [TOTAL QUERIES: 7]
tandoor-web_recipes-1    |   [TOTAL TIME: 0.483 seconds]
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:24 +0100] "GET /api/meal-type/ HTTP/1.1" 200 94 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:24 +0100] "GET /api/meal-type/ HTTP/1.0" 200 94 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    |   [TOTAL QUERIES: 7]
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:24 +0100] "GET /api/meal-type/ HTTP/1.1" 200 94 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:24 +0100] "GET /api/meal-type/ HTTP/1.0" 200 94 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [SQL Queries for] /api/meal-type/
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [TOTAL TIME: 0.052 seconds]
tandoor-web_recipes-1    |   [TOTAL QUERIES: 7]
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:29 +0100] "GET /api/meal-type/ HTTP/1.1" 200 94 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:29 +0100] "GET /api/meal-type/ HTTP/1.0" 200 94 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"

And somewhere around here, I clicked on "smart planning":

tandoor-web_recipes-1    |   [SQL Queries for] /api/user/
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [TOTAL TIME: 0.08600000000000001 seconds]
tandoor-web_recipes-1    |   [TOTAL QUERIES: 12]
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [SQL Queries for] /api/user-preference/1/
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:29 +0100] "GET /api/user/ HTTP/1.1" 200 167 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:29 +0100] "GET /api/user/ HTTP/1.0" 200 167 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    |   [TOTAL TIME: 0.09800000000000002 seconds]
tandoor-web_recipes-1    |   [TOTAL QUERIES: 14]
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:29 +0100] "GET /api/user-preference/1/ HTTP/1.1" 200 939 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:29 +0100] "GET /api/user-preference/1/ HTTP/1.0" 200 939 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [SQL Queries for] /api/keyword/
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [TOTAL TIME: 0.028 seconds]
tandoor-web_recipes-1    |   [TOTAL QUERIES: 11]
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:29 +0100] "GET /api/keyword/?query=&root=0&page=1&page_size=50&simple=1 HTTP/1.1" 200 1580 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:29 +0100] "GET /api/keyword/?query=&root=0&page=1&page_size=50&simple=1 HTTP/1.0" 200 1580 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [SQL Queries for] /api/auto-plan/
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [TOTAL TIME: 0.038 seconds]
tandoor-web_recipes-1    |   [TOTAL QUERIES: 7]
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:45 +0100] "POST /api/auto-plan/ HTTP/1.1" 200 240 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:45 +0100] "POST /api/auto-plan/ HTTP/1.0" 200 240 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [SQL Queries for] /api/meal-plan/
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [TOTAL TIME: 0.022 seconds]
tandoor-web_recipes-1    |   [TOTAL QUERIES: 7]
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:45 +0100] "GET /api/meal-plan/?from_date=2023-12-18&to_date=2024-01-07 HTTP/1.1" 200 2 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:45 +0100] "GET /api/meal-plan/?from_date=2023-12-18&to_date=2024-01-07 HTTP/1.0" 200 2 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [SQL Queries for] /api/meal-type/
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [TOTAL TIME: 0.018000000000000002 seconds]
tandoor-web_recipes-1    |   [TOTAL QUERIES: 7]
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:54 +0100] "GET /api/meal-type/ HTTP/1.1" 200 94 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:54 +0100] "GET /api/meal-type/ HTTP/1.0" 200 94 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [SQL Queries for] /api/user-preference/1/
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [TOTAL TIME: 0.036000000000000004 seconds]
tandoor-web_recipes-1    |   [TOTAL QUERIES: 14]
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:54 +0100] "GET /api/user-preference/1/ HTTP/1.1" 200 939 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:54 +0100] "GET /api/user-preference/1/ HTTP/1.0" 200 939 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [SQL Queries for] /api/user/
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [TOTAL TIME: 0.069 seconds]
tandoor-web_recipes-1    |   [TOTAL QUERIES: 12]
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:54 +0100] "GET /api/user/ HTTP/1.1" 200 167 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:54 +0100] "GET /api/user/ HTTP/1.0" 200 167 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [SQL Queries for] /api/recipe/
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [TOTAL TIME: 0.12100000000000002 seconds]
tandoor-web_recipes-1    |   [TOTAL QUERIES: 26]
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:27:55 +0100] "GET /api/recipe/?query=&page=1&page_size=10&simple=1 HTTP/1.1" 200 4713 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:27:55 +0100] "GET /api/recipe/?query=&page=1&page_size=10&simple=1 HTTP/1.0" 200 4713 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:28:00 +0100] "GET /static/vue/css/3760.css HTTP/1.0" 200 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:28:00 +0100] "GET /static/vue/js/9692.js HTTP/1.0" 200 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:28:00 +0100] "GET /static/vue/js/3760.js HTTP/1.0" 200 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:28:00 +0100] "GET /static/vue/css/3760.css HTTP/1.1" 200 1209 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:28:00 +0100] "GET /static/vue/js/3760.js HTTP/1.1" 200 9434 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:28:00 +0100] "GET /static/vue/js/9692.js HTTP/1.1" 200 14733 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:28:00 +0100] "GET /static/assets/recipe_no_image.svg HTTP/1.1" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:28:00 +0100] "GET /static/assets/recipe_no_image.svg HTTP/1.0" 304 0 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [SQL Queries for] /api/user-preference/1/
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [TOTAL TIME: 0.03400000000000001 seconds]
tandoor-web_recipes-1    |   [TOTAL QUERIES: 14]
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:28:00 +0100] "GET /api/user-preference/1/ HTTP/1.1" 200 939 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:28:00 +0100] "GET /api/user-preference/1/ HTTP/1.0" 200 939 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"
tandoor-web_recipes-1    | MEAL_AUTO_ADD Signal trying to auto add to shopping
tandoor-web_recipes-1    | MEAL_AUTO_ADD Created SLR
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [SQL Queries for] /api/meal-plan/
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    | 
tandoor-web_recipes-1    |   [TOTAL TIME: 0.5680000000000001 seconds]
tandoor-web_recipes-1    |   [TOTAL QUERIES: 38]
tandoor-nginx_recipes-1  | 192.168.178.159 - - [23/Dec/2023:10:28:05 +0100] "POST /api/meal-plan/ HTTP/1.1" 201 805 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0" "-"
tandoor-web_recipes-1    | 172.24.0.4 - - [23/Dec/2023:10:28:05 +0100] "POST /api/meal-plan/ HTTP/1.0" 201 805 "http://192.168.178.21:90/plan/" "Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"

I can't see anything -- but maybe you see something suspicious?

@silberzwiebel
Copy link
silberzwiebel commented Dec 23, 2023 via email

@vabene1111
Copy link
Collaborator Author

Interesting, the logs do not point to any obvious issue. I am. Guessing there is some kind of edge case that just exits the planning algortihm.

Need to look into it to see what's wrong

@silberzwiebel
Copy link

Thanks for looking into the logs.
Potentially @AquaticLava is able to help with this issue, too?
I'm happy to help with debug logs or other small things to test.

@AquaticLava
Copy link
Contributor

Thanks for the ping! I'll take a look at it this week!

@andreasziegl
Copy link
andreasziegl commented Jan 2, 2024

@AquaticLava I had the same issue and it was caused by the fact, that I haven't added a keyword to the mealtype. Most likely this is not the issue from @silberzwiebel, but regardless it might make sense to add a check to the form, that at least one mealtype has a keyword

@silberzwiebel
Copy link

Thanks for the comment @andreasziegl.
Somehow it started to work. But I had to add a recipe with a keyword first. I had recipes and keywords in my database beforehand and I still can use the auto-plan-feature only sometimes in the demo instance. So something is still odd (but adding a recipe seems to be at least a workaround?).

@AquaticLava
Copy link
Contributor

Ah, that does seem to fix the issue! Adding a recipe with all keywords looks to fix the issue on my instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants