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

Error 400 on recipe import #3205

Open
labsnoir opened this issue Jul 3, 2024 · 14 comments
Open

Error 400 on recipe import #3205

labsnoir opened this issue Jul 3, 2024 · 14 comments
Labels
[feat] URL Import URL importer and parser related issues

Comments

@labsnoir
Copy link

labsnoir commented Jul 3, 2024

Tandoor Version

1.5.17

Import URL

https://www.chefkoch.de/rezepte/2812481433250378/Die-ultimative-vegane-Lasagne.html

When did the issue happen?

after pressing the search button

This happens on different sites, not only chefkoch.

2024-07-03 21_50_55-URL-Import

2024-07-03 21_48_10-URL-Import

2024-07-03 21_53_16-URL-Import

Response / message shown

{"error":true,"msg":"Verbindung fehlgeschlagen."}
@smilerz
Copy link
Collaborator

smilerz commented Jul 3, 2024

please share the tandoor logs

@labsnoir
Copy link
Author

labsnoir commented Jul 3, 2024

These are the last lines of /var/lib/docker/containers//-json.log - is this the log you need?

{"log":"::ffff:172.18.0.4 - - [03/Jul/2024:21:45:18 +0200] "GET /api/space/1/ HTTP/1.0" 200 538 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"\n","stream":"stdout","time":"2024-07-03T19:45:18.19075536Z"} {"log":"::ffff:172.18.0.4 - - [03/Jul/2024:21:45:18 +0200] "GET /static/assets/logo_color_svg.svg HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"\n","stream":"stdout","time":"2024-07-03T19:45:18.284680782Z"} {"log":"::ffff:172.18.0.4 - - [03/Jul/2024:21:45:18 +0200] "GET /static/assets/logo_color_192.png HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"\n","stream":"stdout","time":"2024-07-03T19:45:18.285415414Z"} {"log":"::ffff:172.18.0.4 - - [03/Jul/2024:21:45:19 +0200] "GET /static/assets/spinner.svg HTTP/1.0" 304 0 "http://[some-ipv6-address]/static/css/app.min.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"\n","stream":"stdout","time":"2024-07-03T19:45:19.263794912Z"} {"log":"::ffff:172.18.0.4 - - [03/Jul/2024:21:45:24 +0200] "POST /api/recipe-from-source/ HTTP/1.0" 400 49 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"\n","stream":"stdout","time":"2024-07-03T19:45:24.258337848Z"} {"log":"Bad Request: /api/recipe-from-source/\n","stream":"stderr","time":"2024-07-03T19:45:24.258432742Z"}
{"log":"WARNING:django.request:Bad Request: /api/recipe-from-source/\n","stream":"stderr","time":"2024-07-03T19:45:24.258444433Z"} {"log":"Bad Request: /api/recipe-from-source/\n","stream":"stderr","time":"2024-07-03T19:45:38.158862311Z"}
{"log":"WARNING:django.request:Bad Request: /api/recipe-from-source/\n","stream":"stderr","time":"2024-07-03T19:45:38.158946045Z"} {"log":"::ffff:172.18.0.4 - - [03/Jul/2024:21:45:38 +0200] "POST /api/recipe-from-source/ HTTP/1.0" 400 49 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"\n","stream":"stdout","time":"2024-07-03T19:45:38.159771261Z"} {"log":"Bad Request: /api/recipe-from-source/\n","stream":"stderr","time":"2024-07-03T19:46:04.677493615Z"}
{"log":"WARNING:django.request:Bad Request: /api/recipe-from-source/\n","stream":"stderr","time":"2024-07-03T19:46:04.677571588Z"} {"log":"::ffff:172.18.0.4 - - [03/Jul/2024:21:46:04 +0200] "POST /api/recipe-from-source/ HTTP/1.0" 400 49 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"\n","stream":"stdout","time":"2024-07-03T19:46:04.677591719Z"} {"log":"Bad Request: /api/recipe-from-source/\n","stream":"stderr","time":"2024-07-03T19:46:49.619710055Z"}
{"log":"WARNING:django.request:Bad Request: /api/recipe-from-source/\n","stream":"stderr","time":"2024-07-03T19:46:49.619782468Z"} {"log":"::ffff:172.18.0.4 - - [03/Jul/2024:21:46:49 +0200] "POST /api/recipe-from-source/ HTTP/1.0" 400 49 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"\n","stream":"stdout","time":"2024-07-03T19:46:49.619802279Z"} {"log":"Bad Request: /api/recipe-from-source/\n","stream":"stderr","time":"2024-07-03T19:47:39.633283307Z"}
{"log":"WARNING:django.request:Bad Request: /api/recipe-from-source/\n","stream":"stderr","time":"2024-07-03T19:47:39.633361431Z"} {"log":"::ffff:172.18.0.4 - - [03/Jul/2024:21:47:39 +0200] "POST /api/recipe-from-source/ HTTP/1.0" 400 49 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"\n","stream":"stdout","time":"2024-07-03T19:47:39.633380641Z"} {"log":"Bad Request: /api/recipe-from-source/\n","stream":"stderr","time":"2024-07-03T19:50:54.871734665Z"}
{"log":"WARNING:django.request:Bad Request: /api/recipe-from-source/\n","stream":"stderr","time":"2024-07-03T19:50:54.871928393Z"} {"log":"::ffff:172.18.0.4 - - [03/Jul/2024:21:50:54 +0200] "POST /api/recipe-from-source/ HTTP/1.0" 400 49 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"\n","stream":"stdout","time":"2024-07-03T19:50:54.872438236Z"} {"log":"::ffff:172.18.0.4 - - [03/Jul/2024:22:01:35 +0200] "GET /api/meal-plan/?from_date=2024-07-03\u0026to_date=2024-07-04 HTTP/1.0" 200 798 "-" "Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"\n","stream":"stdout","time":"2024-07-03T20:01:35.443139201Z"} {"log":"Bad Request: /api/recipe-from-source/\n","stream":"stderr","time":"2024-07-03T20:27:26.699489386Z"}
{"log":"WARNING:django.request:Bad Request: /api/recipe-from-source/\n","stream":"stderr","time":"2024-07-03T20:27:26.699558749Z"} {"log":"::ffff:172.18.0.4 - - [03/Jul/2024:22:27:26 +0200] "POST /api/recipe-from-source/ HTTP/1.0" 400 49 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"\n","stream":"stdout","time":"2024-07-03T20:27:26.699579219Z"}

@smilerz
Copy link
Collaborator

smilerz commented Jul 3, 2024

please share the full log in text format, not json

@labsnoir
Copy link
Author

labsnoir commented Jul 3, 2024

where is it located? the only log I found is that one in json format.

@smilerz
Copy link
Collaborator

smilerz commented Jul 3, 2024

it's standard out on the container

@labsnoir
Copy link
Author

labsnoir commented Jul 4, 2024

Ok, thank you for the clarification! The output of the container is:

root@26bb4c90:/srv# docker compose up
[+] Running 3/3
✔ Container srv-db_recipes-1 Recreated 10.4s
✔ Container srv-web_recipes-1 Recreated 0.2s
✔ Container srv-nginx_recipes-1 Recreated 0.1s
Attaching to db_recipes-1, nginx_recipes-1, web_recipes-1
db_recipes-1 |
db_recipes-1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
db_recipes-1 |
db_recipes-1 | 2024-07-04 17:20:51.458 UTC [1] LOG: starting PostgreSQL 16.3 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20240309) 13.2.1 20240309, 64-bit
db_recipes-1 | 2024-07-04 17:20:51.458 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
db_recipes-1 | 2024-07-04 17:20:51.458 UTC [1] LOG: listening on IPv6 address "::", port 5432
db_recipes-1 | 2024-07-04 17:20:51.464 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_recipes-1 | 2024-07-04 17:20:51.476 UTC [27] LOG: database system was shut down at 2024-07-04 17:19:35 UTC
db_recipes-1 | 2024-07-04 17:20:51.490 UTC [1] LOG: database system is ready to accept connections
web_recipes-1 | Checking configuration...
web_recipes-1 | Waiting for database to be ready...
web_recipes-1 | Database is ready
web_recipes-1 | Migrating database
nginx_recipes-1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
nginx_recipes-1 | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
nginx_recipes-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
nginx_recipes-1 | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf is not a file or does not exist
nginx_recipes-1 | /docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
nginx_recipes-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
nginx_recipes-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
nginx_recipes-1 | /docker-entrypoint.sh: Configuration complete; ready for start up
nginx_recipes-1 | 2024/07/04 17:20:52 [notice] 1#1: using the "epoll" event method
nginx_recipes-1 | 2024/07/04 17:20:52 [notice] 1#1: nginx/1.27.0
nginx_recipes-1 | 2024/07/04 17:20:52 [notice] 1#1: built by gcc 13.2.1 20231014 (Alpine 13.2.1_git20231014)
nginx_recipes-1 | 2024/07/04 17:20:52 [notice] 1#1: OS: Linux 6.8.4-3-pve
nginx_recipes-1 | 2024/07/04 17:20:52 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 524288:524288
nginx_recipes-1 | 2024/07/04 17:20:52 [notice] 1#1: start worker processes
nginx_recipes-1 | 2024/07/04 17:20:52 [notice] 1#1: start worker process 20
web_recipes-1 | Operations to perform:
web_recipes-1 | Apply all migrations: account, admin, auth, authtoken, contenttypes, cookbook, oauth2_provider, sessions, sites, socialaccount
web_recipes-1 | Running migrations:
web_recipes-1 | No migrations to apply.
web_recipes-1 | Generating static files
web_recipes-1 | js-reverse file written to /opt/recipes/cookbook/static/django_js_reverse
web_recipes-1 |
web_recipes-1 | 1 static file copied to '/opt/recipes/staticfiles', 574 unmodified, 1185 post-processed.
web_recipes-1 | Done
web_recipes-1 | [2024-07-04 17:21:02 +0000] [1] [INFO] Starting gunicorn 21.2.0
web_recipes-1 | [2024-07-04 17:21:02 +0000] [1] [INFO] Listening at: http://[::]:8080 (1)
web_recipes-1 | [2024-07-04 17:21:02 +0000] [1] [INFO] Using worker: gthread
web_recipes-1 | [2024-07-04 17:21:02 +0000] [16] [INFO] Booting worker with pid: 16
web_recipes-1 | [2024-07-04 17:21:02 +0000] [17] [INFO] Booting worker with pid: 17
web_recipes-1 | [2024-07-04 17:21:02 +0000] [18] [INFO] Booting worker with pid: 18
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:10 +0200] "GET /data/import/url HTTP/1.0" 200 23012 "http://[some-ipv6-address]/system/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:10 +0000] "GET /data/import/url HTTP/1.1" 200 23012 "http://[some-ipv6-address]/system/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:10 +0000] "GET /static/themes/tandoor.min.e62f1984b5e4.css HTTP/1.1" 200 27902 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:10 +0200] "GET /static/themes/tandoor.min.e62f1984b5e4.css HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:10 +0200] "GET /static/css/app.min.050361699392.css HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:10 +0000] "GET /static/css/app.min.050361699392.css HTTP/1.1" 200 4300 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:10 +0200] "GET /static/js/jquery-3.5.1.min.dc5e7f18c8d3.js HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:10 +0000] "GET /static/js/jquery-3.5.1.min.dc5e7f18c8d3.js HTTP/1.1" 200 30879 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:10 +0200] "GET /static/js/bootstrap.min.575d3de8fa36.js HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:10 +0000] "GET /static/js/bootstrap.min.575d3de8fa36.js HTTP/1.1" 200 15867 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:10 +0000] "GET /static/js/popper.min.8156384b48c7.js HTTP/1.1" 200 7518 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:10 +0000] "GET /static/css/select2.min.9f54e6414f87.css HTTP/1.1" 200 1978 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:10 +0200] "GET /static/js/popper.min.8156384b48c7.js HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:10 +0200] "GET /static/css/select2.min.9f54e6414f87.css HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:10 +0200] "GET /static/js/select2.min.0f64f3a3a0c6.js HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:10 +0000] "GET /static/js/select2.min.0f64f3a3a0c6.js HTTP/1.1" 200 19867 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:10 +0200] "GET /static/css/select2-bootstrap.dcec0cc93fba.css HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:10 +0000] "GET /static/css/select2-bootstrap.dcec0cc93fba.css HTTP/1.1" 200 3676 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:10 +0200] "GET /static/themes/select2-bootstrap-theme.d007f71f4d38.css HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:10 +0000] "GET /static/themes/select2-bootstrap-theme.d007f71f4d38.css HTTP/1.1" 200 3679 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:10 +0200] "GET /static/fontawesome/fontawesome_all.min.2acd020d0b21.css HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:10 +0000] "GET /static/fontawesome/fontawesome_all.min.2acd020d0b21.css HTTP/1.1" 200 12346 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:10 +0200] "GET /static/django_js_reverse/reverse.4255b41ce7b6.js HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:10 +0000] "GET /static/django_js_reverse/reverse.4255b41ce7b6.js HTTP/1.1" 200 5582 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:10 +0000] "GET /static/vue/js/api-chunk.97818fcd6597.js HTTP/1.1" 200 14394 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:10 +0200] "GET /static/vue/js/api-chunk.97818fcd6597.js HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:10 +0200] "GET /static/vue/js/locales-chunk.c40fdfcc13a4.js HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:10 +0000] "GET /static/vue/js/locales-chunk.c40fdfcc13a4.js HTTP/1.1" 200 160644 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:10 +0000] "GET /static/vue/css/chunk-vendors.7af0c5ae81a4.css HTTP/1.1" 200 21072 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:10 +0200] "GET /static/vue/css/chunk-vendors.7af0c5ae81a4.css HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 2024/07/04 17:21:10 [warn] 20#20: *6 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/1/00/0000000001 while reading upstream, client: 172.18.0.1, server: localhost, request: "GET /static/vue/js/chunk-vendors.f3960bba6e8e.js HTTP/1.1", upstream: "http://172.18.0.3:8080/static/vue/js/chunk-vendors.f3960bba6e8e.js", host: "[some-ipv6-address]", referrer: "http://[some-ipv6-address]/data/import/url"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:10 +0200] "GET /static/vue/js/chunk-vendors.f3960bba6e8e.js HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:10 +0000] "GET /static/vue/js/chunk-vendors.f3960bba6e8e.js HTTP/1.1" 200 669565 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:10 +0000] "GET /static/vue/css/import_view.2caf7da76f78.css HTTP/1.1" 200 769 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:10 +0200] "GET /static/vue/css/import_view.2caf7da76f78.css HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:10 +0000] "GET /static/vue/js/import_view.158967fab036.js HTTP/1.1" 200 32728 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:10 +0200] "GET /static/vue/js/import_view.158967fab036.js HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:11 +0200] "GET /static/assets/brand_logo.6ebe02bf6707.png HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:11 +0000] "GET /static/assets/brand_logo.6ebe02bf6707.png HTTP/1.1" 200 35616 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:11 +0200] "GET /static/webfonts/poppins_latin_400.9ed361bba848.woff2 HTTP/1.0" 200 0 "http://[some-ipv6-address]/static/themes/tandoor.min.e62f1984b5e4.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:11 +0000] "GET /static/webfonts/poppins_latin_400.9ed361bba848.woff2 HTTP/1.1" 200 7900 "http://[some-ipv6-address]/static/themes/tandoor.min.e62f1984b5e4.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:11 +0000] "GET /static/webfonts/fa-solid-900.44d537ab79f9.woff2 HTTP/1.1" 200 75728 "http://[some-ipv6-address]/static/fontawesome/fontawesome_all.min.2acd020d0b21.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:11 +0200] "GET /static/webfonts/fa-solid-900.44d537ab79f9.woff2 HTTP/1.0" 200 0 "http://[some-ipv6-address]/static/fontawesome/fontawesome_all.min.2acd020d0b21.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:11 +0200] "GET /static/webfonts/fa-regular-400.f5f2566b93e8.woff2 HTTP/1.0" 200 0 "http://[some-ipv6-address]/static/fontawesome/fontawesome_all.min.2acd020d0b21.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:11 +0000] "GET /static/webfonts/fa-regular-400.f5f2566b93e8.woff2 HTTP/1.1" 200 13584 "http://[some-ipv6-address]/static/fontawesome/fontawesome_all.min.2acd020d0b21.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:12 +0200] "GET /api/space/1/ HTTP/1.0" 200 538 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:12 +0000] "GET /api/space/1/ HTTP/1.1" 200 538 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:12 +0000] "GET /static/assets/logo_color_svg.d7c2e31a63b7.svg HTTP/1.1" 200 2336 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:12 +0000] "GET /static/assets/logo_color_192.c9b9177ff941.png HTTP/1.1" 200 11462 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:12 +0200] "GET /static/assets/logo_color_svg.d7c2e31a63b7.svg HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:12 +0200] "GET /static/assets/logo_color_192.c9b9177ff941.png HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:20 +0200] "GET /static/assets/spinner.168a09fd2600.svg HTTP/1.0" 200 0 "http://[some-ipv6-address]/static/css/app.min.050361699392.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:20 +0000] "GET /static/assets/spinner.168a09fd2600.svg HTTP/1.1" 200 8593 "http://[some-ipv6-address]/static/css/app.min.050361699392.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | WARNING:django.request:Bad Request: /api/recipe-from-source/
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:25 +0200] "POST /api/recipe-from-source/ HTTP/1.0" 400 49 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:25 +0000] "POST /api/recipe-from-source/ HTTP/1.1" 400 49 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:21:25 +0200] "GET /static/webfonts/poppins_latin_700.f4f17fd53c7d.woff2 HTTP/1.0" 200 0 "http://[some-ipv6-address]/static/themes/tandoor.min.e62f1984b5e4.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:21:25 +0000] "GET /static/webfonts/poppins_latin_700.f4f17fd53c7d.woff2 HTTP/1.1" 200 7832 "http://[some-ipv6-address]/static/themes/tandoor.min.e62f1984b5e4.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/201001web_recipes-1 | WARNING:django.request:Bad Request: /api/recipe-from-source/
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:19:22:14 +0200] "POST /api/recipe-from-source/ HTTP/1.0" 400 49 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:17:22:14 +0000] "POST /api/recipe-from-source/ HTTP/1.1" 400 49 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"

@smilerz
Copy link
Collaborator

smilerz commented Jul 4, 2024

is debug enabled?

@labsnoir
Copy link
Author

labsnoir commented Jul 4, 2024

that's the output with debug=1 set in .env file (I hope this is what you asked for - please let me know if not)

root@26bb4c90:/srv# docker compose up
[+] Running 3/0
✔ Container srv-db_recipes-1 Created 0.0s
✔ Container srv-web_recipes-1 Created 0.0s
✔ Container srv-nginx_recipes-1 Created 0.0s
Attaching to db_recipes-1, nginx_recipes-1, web_recipes-1
db_recipes-1 |
db_recipes-1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
db_recipes-1 |
db_recipes-1 | 2024-07-04 19:49:00.733 UTC [1] LOG: starting PostgreSQL 16.3 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20240309) 13.2.1 20240309, 64-bit
db_recipes-1 | 2024-07-04 19:49:00.733 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
db_recipes-1 | 2024-07-04 19:49:00.733 UTC [1] LOG: listening on IPv6 address "::", port 5432
db_recipes-1 | 2024-07-04 19:49:00.739 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_recipes-1 | 2024-07-04 19:49:00.748 UTC [27] LOG: database system was shut down at 2024-07-04 19:48:34 UTC
db_recipes-1 | 2024-07-04 19:49:00.758 UTC [1] LOG: database system is ready to accept connections
web_recipes-1 | Checking configuration...
web_recipes-1 | Waiting for database to be ready...
web_recipes-1 | Database is ready
web_recipes-1 | Migrating database
nginx_recipes-1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
nginx_recipes-1 | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
nginx_recipes-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
nginx_recipes-1 | 10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf is not a file or does not exist
nginx_recipes-1 | /docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
nginx_recipes-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
nginx_recipes-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
nginx_recipes-1 | /docker-entrypoint.sh: Configuration complete; ready for start up
nginx_recipes-1 | 2024/07/04 19:49:01 [notice] 1#1: using the "epoll" event method
nginx_recipes-1 | 2024/07/04 19:49:01 [notice] 1#1: nginx/1.27.0
nginx_recipes-1 | 2024/07/04 19:49:01 [notice] 1#1: built by gcc 13.2.1 20231014 (Alpine 13.2.1_git20231014)
nginx_recipes-1 | 2024/07/04 19:49:01 [notice] 1#1: OS: Linux 6.8.4-3-pve
nginx_recipes-1 | 2024/07/04 19:49:01 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 524288:524288
nginx_recipes-1 | 2024/07/04 19:49:01 [notice] 1#1: start worker processes
nginx_recipes-1 | 2024/07/04 19:49:01 [notice] 1#1: start worker process 20
web_recipes-1 | Operations to perform:
web_recipes-1 | Apply all migrations: account, admin, auth, authtoken, contenttypes, cookbook, oauth2_provider, sessions, sites, socialaccount
web_recipes-1 | Running migrations:
web_recipes-1 | No migrations to apply.
web_recipes-1 | Generating static files
web_recipes-1 | js-reverse file written to /opt/recipes/cookbook/static/django_js_reverse
web_recipes-1 |
web_recipes-1 | 1 static file copied to '/opt/recipes/staticfiles', 574 unmodified, 1185 post-processed.
web_recipes-1 | Done
web_recipes-1 | [2024-07-04 19:49:11 +0000] [1] [INFO] Starting gunicorn 21.2.0
web_recipes-1 | [2024-07-04 19:49:11 +0000] [1] [INFO] Listening at: http://[::]:8080 (1)
web_recipes-1 | [2024-07-04 19:49:11 +0000] [1] [INFO] Using worker: gthread
web_recipes-1 | [2024-07-04 19:49:11 +0000] [16] [INFO] Booting worker with pid: 16
web_recipes-1 | [2024-07-04 19:49:11 +0000] [17] [INFO] Booting worker with pid: 17
web_recipes-1 | [2024-07-04 19:49:11 +0000] [18] [INFO] Booting worker with pid: 18
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:35 +0200] "GET /data/import/url HTTP/1.0" 200 22699 "http://[some-ipv6-address]/system/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:35 +0000] "GET /data/import/url HTTP/1.1" 200 22699 "http://[some-ipv6-address]/system/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:35 +0200] "GET /static/themes/tandoor.min.css HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:35 +0000] "GET /static/themes/tandoor.min.css HTTP/1.1" 200 202124 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:35 +0200] "GET /static/css/app.min.css HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:35 +0000] "GET /static/css/app.min.css HTTP/1.1" 200 41342 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:35 +0200] "GET /static/js/jquery-3.5.1.min.js HTTP/1.0" 304 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:35 +0000] "GET /static/js/jquery-3.5.1.min.js HTTP/1.1" 304 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:35 +0200] "GET /static/js/popper.min.js HTTP/1.0" 304 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:35 +0000] "GET /static/js/popper.min.js HTTP/1.1" 304 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:35 +0200] "GET /static/css/select2.min.css HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:35 +0000] "GET /static/css/select2.min.css HTTP/1.1" 200 14966 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:35 +0000] "GET /static/js/bootstrap.min.js HTTP/1.1" 304 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:35 +0200] "GET /static/js/select2.min.js HTTP/1.0" 304 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:35 +0000] "GET /static/js/select2.min.js HTTP/1.1" 304 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:35 +0200] "GET /static/js/bootstrap.min.js HTTP/1.0" 304 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:35 +0200] "GET /static/css/select2-bootstrap.css HTTP/1.0" 304 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:35 +0000] "GET /static/css/select2-bootstrap.css HTTP/1.1" 304 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:35 +0200] "GET /static/themes/select2-bootstrap-theme.css HTTP/1.0" 304 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:35 +0000] "GET /static/themes/select2-bootstrap-theme.css HTTP/1.1" 304 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:35 +0000] "GET /static/fontawesome/fontawesome_all.min.css HTTP/1.1" 304 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:35 +0200] "GET /static/fontawesome/fontawesome_all.min.css HTTP/1.0" 304 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:35 +0200] "GET /static/django_js_reverse/reverse.js HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:35 +0000] "GET /static/django_js_reverse/reverse.js HTTP/1.1" 200 41707 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:35 +0000] "GET /static/vue/js/api-chunk.js HTTP/1.1" 304 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:35 +0200] "GET /static/vue/js/api-chunk.js HTTP/1.0" 304 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:35 +0200] "GET /static/vue/css/chunk-vendors.css HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:35 +0000] "GET /static/vue/css/chunk-vendors.css HTTP/1.1" 200 93825 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:35 +0000] "GET /static/vue/js/locales-chunk.js HTTP/1.1" 304 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:35 +0200] "GET /static/vue/js/locales-chunk.js HTTP/1.0" 304 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:35 +0200] "GET /static/vue/css/import_view.css HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:35 +0000] "GET /static/vue/css/import_view.css HTTP/1.1" 200 2077 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:35 +0200] "GET /static/vue/js/import_view.js HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:35 +0000] "GET /static/vue/js/import_view.js HTTP/1.1" 200 130875 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:35 +0200] "GET /static/vue/js/chunk-vendors.js HTTP/1.0" 304 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:35 +0000] "GET /static/vue/js/chunk-vendors.js HTTP/1.1" 304 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:35 +0200] "GET /static/assets/brand_logo.png HTTP/1.0" 304 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:35 +0000] "GET /static/assets/brand_logo.png HTTP/1.1" 304 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:36 +0200] "GET /static/webfonts/poppins_latin_400.woff2 HTTP/1.0" 200 0 "http://[some-ipv6-address]/static/themes/tandoor.min.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:36 +0000] "GET /static/webfonts/poppins_latin_400.woff2 HTTP/1.1" 200 7900 "http://[some-ipv6-address]/static/themes/tandoor.min.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:36 +0000] "GET /static/webfonts/fa-regular-400.woff2 HTTP/1.1" 200 13584 "http://[some-ipv6-address]/static/fontawesome/fontawesome_all.min.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:36 +0200] "GET /static/webfonts/fa-regular-400.woff2 HTTP/1.0" 200 0 "http://[some-ipv6-address]/static/fontawesome/fontawesome_all.min.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:36 +0200] "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.0" 200 0 "http://[some-ipv6-address]/static/fontawesome/fontawesome_all.min.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:36 +0000] "GET /static/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 75728 "http://[some-ipv6-address]/static/fontawesome/fontawesome_all.min.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:36 +0000] "GET /static/assets/logo_color_192.png HTTP/1.1" 499 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:36 +0200] "GET /static/assets/logo_color_192.png HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:36 +0000] "GET /static/assets/logo_color_svg.svg HTTP/1.1" 499 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:36 +0200] "GET /static/assets/logo_color_svg.svg HTTP/1.0" 200 0 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:36 +0000] "GET /api/space/1/ HTTP/1.1" 200 538 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:36 +0200] "GET /api/space/1/ HTTP/1.0" 200 538 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:42 +0200] "GET /static/assets/spinner.svg HTTP/1.0" 200 0 "http://[some-ipv6-address]/static/css/app.min.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:42 +0000] "GET /static/assets/spinner.svg HTTP/1.1" 200 24676 "http://[some-ipv6-address]/static/css/app.min.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | Bad Request: /api/recipe-from-source/
web_recipes-1 | WARNING:django.request:Bad Request: /api/recipe-from-source/
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:47 +0200] "POST /api/recipe-from-source/ HTTP/1.0" 400 49 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:47 +0000] "POST /api/recipe-from-source/ HTTP/1.1" 400 49 "http://[some-ipv6-address]/data/import/url" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"
web_recipes-1 | ::ffff:172.18.0.4 - - [04/Jul/2024:21:49:47 +0200] "GET /static/webfonts/poppins_latin_700.woff2 HTTP/1.0" 200 0 "http://[some-ipv6-address]/static/themes/tandoor.min.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0"
nginx_recipes-1 | 172.18.0.1 - - [04/Jul/2024:19:49:47 +0000] "GET /static/webfonts/poppins_latin_700.woff2 HTTP/1.1" 200 7832 "http://[some-ipv6-address]/static/themes/tandoor.min.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0" "-"

@labsnoir
Copy link
Author

labsnoir commented Jul 6, 2024

Could the reason be the brackets of the ipv6 address like in http://[::1] ?

@vabene1111 vabene1111 added the [feat] URL Import URL importer and parser related issues label Jul 8, 2024
@he-pennypacker
Copy link

Subscribed as I have the same issue. I am running Docker Compose automatically updating with Watchtower. Currently on 1.5.18. I'm quite the Docker noob might need some help if you need further info from me.

@he-pennypacker
Copy link

Subscribed as I have the same issue. I am running Docker Compose automatically updating with Watchtower. Currently on 1.5.18. I'm quite the Docker noob might need some help if you need further info from me.

I think what's going on in my case at least, is that the recipe site isn't publishing recipes in the ld+json format that the recipe-scrapers library needs. This isn't clear in the doco/inline help (e.g. https://docs.tandoor.dev/features/import_export/), and I was muddling around trying to get it working for a long time.

Eventually I came across this discussion which cleared things up for me - #3243

So Tandoor can't import from any URL, only those sites supported by recipes-scraper which are listed here - https://github.com/hhursev/recipe-scrapers

@smilerz
Copy link
Collaborator

smilerz commented Aug 9, 2024

I think what's going on in my case at least, is that the recipe site isn't publishing recipes in the ld+json format that the recipe-scrapers library needs. This isn't clear in the doco/inline help (e.g. https://docs.tandoor.dev/features/import_export/), and I was muddling around trying to get it working for a long time.

To clarify - the import/export is importing from other apps.

The website importing is described in the README.
image

@labsnoir
Copy link
Author

Thank you for the hint with recipe_scrapers library. This works on the import url mentioned in the first post.

The import worked really well when Tandoor was running on a local Raspberry Pi. Then I moved Tandoor to a hosted IPv6 Server and since then it is not working anymore.

@he-pennypacker
Copy link

I think what's going on in my case at least, is that the recipe site isn't publishing recipes in the ld+json format that the recipe-scrapers library needs. This isn't clear in the doco/inline help (e.g. https://docs.tandoor.dev/features/import_export/), and I was muddling around trying to get it working for a long time.

To clarify - the import/export is importing from other apps.

The website importing is described in the README.

Yes, I think that kind of illustrates the point. If I want to import a recipe from a website, I click the 'plus' in the top right and choose 'Import Recipe' and end up here http://tandoor/data/import/url.

There are 4 options of recipe source, with 'Website' selected by default (Website|App|Source|Bookmarklet)

With the 400 errors I have been getting, I wanted to make sure I am importing correctly, so I click on the 'Help' icon at top right which takes me here: https://docs.tandoor.dev/features/import_export/

If this help doesn't related to website import, then it should.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[feat] URL Import URL importer and parser related issues
Projects
None yet
Development

No branches or pull requests

4 participants