linuxserver / docker-healthchecks

GNU General Public License v3.0
177 stars 38 forks source link

Invalid HTTP request size when running locally built docker image #79

Closed luixal closed 2 years ago

luixal commented 3 years ago

linuxserver.io


Expected Behavior

When building the docker image locally using the provided command:

git clone https://github.com/linuxserver/docker-healthchecks.git
cd docker-healthchecks
docker build \
  --no-cache \
  --pull \
  -t ghcr.io/linuxserver/healthchecks:latest .

I expect the same docker-compose.yml file I use to run the image from docker hub to run the same way. My docker compose file is the following:

version: "2.1"
services:
  healthchecks:
    image: luixal/healthchecks
    container_name: healthchecks-luixal
    environment:
      - PUID=1000
      - PGID=1000
      - SITE_ROOT=http://localhost:8000
      - SITE_NAME=localhost
      - SUPERUSER_EMAIL=luixal@gmail.com
      - SUPERUSER_PASSWORD=9874292et56
    ports:
      - 8000:8000
    restart: unless-stopped

Current Behavior

When I run the image from docker hub, Healthchecks runs ok, but I suffer the Error 500 bug when logging in (present in issue #74 and peding merge of solution provided in PR #75 ).

I built the image locally using the branch of that PR using the provided command but, when running the local built image (with the same docker compose file) I get this error when trying to load the page on the browser:

healthchecks-luixal | invalid HTTP request size (max 4096)...skip
healthchecks-luixal | invalid HTTP request size (max 4096)...skip
...

After that, I tried building the image from the master branch in this repo, but I still get the same error.

Steps to Reproduce

  1. Clone the repo.
  2. Build the docker image.
  3. Run it with the docker-compose file provided above
  4. Access the webapp using the browser.

Environment

OS: Debian 5.10.46-4 (2021-08-03) Kernel 5.10.0-8-amd64 CPU architecture: x86_64 How docker service was installed: Official docker repo.

Command used to create docker container (run/create/compose/screenshot)

docker-compose up using the compose file provided above.

Docker logs

Creating healthchecks-luixal ... done
Attaching to healthchecks-luixal
healthchecks-luixal | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
healthchecks-luixal | [s6-init] ensuring user provided files have correct perms...exited 0.
healthchecks-luixal | [fix-attrs.d] applying ownership & permissions fixes...
healthchecks-luixal | [fix-attrs.d] done.
healthchecks-luixal | [cont-init.d] executing container initialization scripts...
healthchecks-luixal | [cont-init.d] 01-envfile: executing... 
healthchecks-luixal | [cont-init.d] 01-envfile: exited 0.
healthchecks-luixal | [cont-init.d] 10-adduser: executing... 
healthchecks-luixal | 
healthchecks-luixal | -------------------------------------
healthchecks-luixal |           _         ()
healthchecks-luixal |          | |  ___   _    __
healthchecks-luixal |          | | / __| | |  /  \ 
healthchecks-luixal |          | | \__ \ | | | () |
healthchecks-luixal |          |_| |___/ |_|  \__/
healthchecks-luixal | 
healthchecks-luixal | 
healthchecks-luixal | Brought to you by linuxserver.io
healthchecks-luixal | -------------------------------------
healthchecks-luixal | 
healthchecks-luixal | To support LSIO projects visit:
healthchecks-luixal | https://www.linuxserver.io/donate/
healthchecks-luixal | -------------------------------------
healthchecks-luixal | GID/UID
healthchecks-luixal | -------------------------------------
healthchecks-luixal | 
healthchecks-luixal | User uid:    1000
healthchecks-luixal | User gid:    1000
healthchecks-luixal | -------------------------------------
healthchecks-luixal | 
healthchecks-luixal | [cont-init.d] 10-adduser: exited 0.
healthchecks-luixal | [cont-init.d] 30-config: executing... 
healthchecks-luixal | Operations to perform:
healthchecks-luixal |   Apply all migrations: accounts, admin, api, auth, contenttypes, payments, sessions
healthchecks-luixal | Running migrations:
healthchecks-luixal |   Applying contenttypes.0001_initial... OK
healthchecks-luixal |   Applying auth.0001_initial... OK
healthchecks-luixal |   Applying accounts.0001_initial... OK
healthchecks-luixal |   Applying accounts.0002_profile_ping_log_limit... OK
healthchecks-luixal |   Applying accounts.0003_profile_token... OK
healthchecks-luixal |   Applying accounts.0004_profile_api_key... OK
healthchecks-luixal |   Applying accounts.0005_auto_20160509_0801... OK
healthchecks-luixal |   Applying accounts.0006_profile_current_team... OK
healthchecks-luixal |   Applying accounts.0007_profile_check_limit... OK
healthchecks-luixal |   Applying accounts.0008_profile_bill_to... OK
healthchecks-luixal |   Applying accounts.0009_auto_20170714_1734... OK
healthchecks-luixal |   Applying accounts.0010_profile_team_limit... OK
healthchecks-luixal |   Applying accounts.0011_profile_sort... OK
healthchecks-luixal |   Applying accounts.0012_auto_20171014_1002... OK
healthchecks-luixal |   Applying accounts.0013_remove_profile_team_access_allowed... OK
healthchecks-luixal |   Applying accounts.0014_auto_20171227_1530... OK
healthchecks-luixal |   Applying accounts.0015_auto_20181029_1858... OK
healthchecks-luixal |   Applying accounts.0016_remove_profile_bill_to... OK
healthchecks-luixal |   Applying accounts.0017_auto_20190112_1426... OK
healthchecks-luixal |   Applying accounts.0018_auto_20190112_1426... OK
healthchecks-luixal |   Applying accounts.0019_project_badge_key... OK
healthchecks-luixal |   Applying accounts.0020_auto_20190112_1950... OK
healthchecks-luixal |   Applying accounts.0021_auto_20190112_2005... OK
healthchecks-luixal |   Applying accounts.0022_auto_20190114_0857... OK
healthchecks-luixal |   Applying accounts.0023_auto_20190117_1419... OK
healthchecks-luixal |   Applying accounts.0024_auto_20190119_1540... OK
healthchecks-luixal |   Applying accounts.0025_remove_member_team... OK
healthchecks-luixal |   Applying accounts.0026_auto_20190204_2042... OK
healthchecks-luixal |   Applying accounts.0027_profile_deletion_notice_date... OK
healthchecks-luixal |   Applying accounts.0028_auto_20191119_1346... OK
healthchecks-luixal |   Applying accounts.0029_remove_profile_current_project... OK
healthchecks-luixal |   Applying accounts.0030_member_transfer_request_date... OK
healthchecks-luixal |   Applying accounts.0031_auto_20200803_1413... OK
healthchecks-luixal |   Applying accounts.0032_auto_20200819_0757... OK
healthchecks-luixal |   Applying accounts.0033_member_rw... OK
healthchecks-luixal |   Applying accounts.0034_credential... OK
healthchecks-luixal |   Applying accounts.0035_profile_reports... OK
healthchecks-luixal |   Applying accounts.0036_fill_profile_reports... OK
healthchecks-luixal |   Applying accounts.0037_profile_tz... OK
healthchecks-luixal |   Applying accounts.0038_profile_theme... OK
healthchecks-luixal |   Applying accounts.0039_remove_profile_reports_allowed... OK
healthchecks-luixal |   Applying accounts.0040_auto_20210722_1244... OK
healthchecks-luixal |   Applying accounts.0041_fill_role... OK
healthchecks-luixal |   Applying accounts.0042_remove_member_rw... OK
healthchecks-luixal |   Applying accounts.0043_add_role_manager... OK
healthchecks-luixal |   Applying accounts.0044_auto_20210730_0942... OK
healthchecks-luixal |   Applying admin.0001_initial... OK
healthchecks-luixal |   Applying admin.0002_logentry_remove_auto_add... OK
healthchecks-luixal |   Applying admin.0003_logentry_add_action_flag_choices... OK
healthchecks-luixal |   Applying api.0001_initial... OK
healthchecks-luixal |   Applying api.0002_auto_20150616_0732... OK
healthchecks-luixal |   Applying api.0003_auto_20150616_1249... OK
healthchecks-luixal |   Applying api.0004_auto_20150616_1319... OK
healthchecks-luixal |   Applying api.0005_auto_20150630_2021... OK
healthchecks-luixal |   Applying api.0006_check_grace... OK
healthchecks-luixal |   Applying api.0007_ping... OK
healthchecks-luixal |   Applying api.0008_auto_20150801_1213... OK
healthchecks-luixal |   Applying api.0009_auto_20150801_1250... OK
healthchecks-luixal |   Applying api.0010_channel... OK
healthchecks-luixal |   Applying api.0011_notification... OK
healthchecks-luixal |   Applying api.0012_auto_20150930_1922... OK
healthchecks-luixal |   Applying api.0013_auto_20151001_2029... OK
healthchecks-luixal |   Applying api.0014_auto_20151019_2039... OK
healthchecks-luixal |   Applying api.0015_auto_20151022_1008... OK
healthchecks-luixal |   Applying api.0016_auto_20151030_1107... OK
healthchecks-luixal |   Applying api.0017_auto_20151117_1032... OK
healthchecks-luixal |   Applying api.0018_remove_ping_body... OK
healthchecks-luixal |   Applying api.0019_check_tags... OK
healthchecks-luixal |   Applying api.0020_check_n_pings... OK
healthchecks-luixal |   Applying api.0021_ping_n... OK
healthchecks-luixal |   Applying api.0022_auto_20160130_2042... OK
healthchecks-luixal |   Applying api.0023_auto_20160131_1919... OK
healthchecks-luixal |   Applying api.0024_auto_20160203_2227... OK
healthchecks-luixal |   Applying api.0025_auto_20160216_1214... OK
healthchecks-luixal |   Applying api.0026_auto_20160415_1824... OK
healthchecks-luixal |   Applying api.0027_auto_20161213_1059... OK
healthchecks-luixal |   Applying api.0028_auto_20170305_1907... OK
healthchecks-luixal |   Applying api.0029_auto_20170507_1251... OK
healthchecks-luixal |   Applying api.0030_check_last_ping_body... OK
healthchecks-luixal |   Applying api.0031_auto_20170509_1320... OK
healthchecks-luixal |   Applying api.0032_auto_20170608_1158... OK
healthchecks-luixal |   Applying api.0033_auto_20170714_1715... OK
healthchecks-luixal |   Applying api.0034_auto_20171227_1530... OK
healthchecks-luixal |   Applying api.0035_auto_20171229_2008... OK
healthchecks-luixal |   Applying api.0036_auto_20180116_2243... OK
healthchecks-luixal |   Applying api.0037_auto_20180127_1215... OK
healthchecks-luixal |   Applying api.0038_auto_20180318_1306... OK
healthchecks-luixal |   Applying api.0039_remove_check_last_ping_body... OK
healthchecks-luixal |   Applying api.0040_auto_20180517_1336... OK
healthchecks-luixal |   Applying api.0041_check_desc... OK
healthchecks-luixal |   Applying api.0042_auto_20181029_1522... OK
healthchecks-luixal |   Applying api.0043_channel_name... OK
healthchecks-luixal |   Applying api.0044_auto_20181120_2004... OK
healthchecks-luixal |   Applying api.0045_flip... OK
healthchecks-luixal |   Applying api.0046_auto_20181218_1245... OK
healthchecks-luixal |   Applying api.0047_auto_20181225_2315... OK
healthchecks-luixal |   Applying api.0048_auto_20190102_0737... OK
healthchecks-luixal |   Applying api.0049_auto_20190102_0743... OK
healthchecks-luixal |   Applying api.0050_ping_kind... OK
healthchecks-luixal |   Applying api.0051_auto_20190104_0908... OK
healthchecks-luixal |   Applying api.0052_auto_20190104_1122... OK
healthchecks-luixal |   Applying api.0053_check_subject... OK
healthchecks-luixal |   Applying api.0054_auto_20190112_1427... OK
healthchecks-luixal |   Applying api.0055_auto_20190112_1427... OK
healthchecks-luixal |   Applying api.0056_auto_20190114_0857... OK
healthchecks-luixal |   Applying api.0057_auto_20190118_1319... OK
healthchecks-luixal |   Applying api.0058_auto_20190312_1716... OK
healthchecks-luixal |   Applying api.0059_auto_20190314_1744... OK
healthchecks-luixal |   Applying api.0060_tokenbucket... OK
healthchecks-luixal |   Applying api.0061_webhook_values... OK
healthchecks-luixal |   Applying api.0062_auto_20190720_1350... OK
healthchecks-luixal |   Applying api.0063_auto_20190903_0901... OK
healthchecks-luixal |   Applying api.0064_auto_20191119_1346... OK
healthchecks-luixal |   Applying api.0065_auto_20191127_1240... OK
healthchecks-luixal |   Applying api.0066_channel_last_error... OK
healthchecks-luixal |   Applying api.0067_last_error_values... OK
healthchecks-luixal |   Applying api.0068_auto_20200117_1023... OK
healthchecks-luixal |   Applying api.0069_auto_20200117_1227... OK
healthchecks-luixal |   Applying api.0070_auto_20200411_1310... OK
healthchecks-luixal |   Applying api.0071_check_manual_resume... OK
healthchecks-luixal |   Applying api.0072_auto_20200701_1007... OK
healthchecks-luixal |   Applying api.0073_auto_20200721_1000... OK
healthchecks-luixal |   Applying api.0074_auto_20200803_1411... OK
healthchecks-luixal |   Applying api.0075_auto_20200805_1004... OK
healthchecks-luixal |   Applying api.0076_auto_20201128_0951... OK
healthchecks-luixal |   Applying api.0077_auto_20210506_0755... OK
healthchecks-luixal |   Applying api.0078_sms_values... OK
healthchecks-luixal |   Applying contenttypes.0002_remove_content_type_name... OK
healthchecks-luixal |   Applying auth.0002_alter_permission_name_max_length... OK
healthchecks-luixal |   Applying auth.0003_alter_user_email_max_length... OK
healthchecks-luixal |   Applying auth.0004_alter_user_username_opts... OK
healthchecks-luixal |   Applying auth.0005_alter_user_last_login_null... OK
healthchecks-luixal |   Applying auth.0006_require_contenttypes_0002... OK
healthchecks-luixal |   Applying auth.0007_alter_validators_add_error_messages... OK
healthchecks-luixal |   Applying auth.0008_alter_user_username_max_length... OK
healthchecks-luixal |   Applying auth.0009_alter_user_last_name_max_length... OK
healthchecks-luixal |   Applying auth.0010_alter_group_name_max_length... OK
healthchecks-luixal |   Applying auth.0011_update_proxy_permissions... OK
healthchecks-luixal |   Applying auth.0012_alter_user_first_name_max_length... OK
healthchecks-luixal |   Applying payments.0001_initial... OK
healthchecks-luixal |   Applying payments.0002_subscription_plan_id... OK
healthchecks-luixal |   Applying payments.0003_subscription_address_id... OK
healthchecks-luixal |   Applying payments.0004_subscription_send_invoices... OK
healthchecks-luixal |   Applying payments.0005_subscription_plan_name... OK
healthchecks-luixal |   Applying payments.0006_subscription_invoice_email... OK
healthchecks-luixal |   Applying sessions.0001_initial... OK
healthchecks-luixal | Superuser created.
healthchecks-luixal | [cont-init.d] 30-config: exited 0.
healthchecks-luixal | [cont-init.d] 90-custom-folders: executing... 
healthchecks-luixal | [cont-init.d] 90-custom-folders: exited 0.
healthchecks-luixal | [cont-init.d] 99-custom-files: executing... 
healthchecks-luixal | [custom-init] no custom files found exiting...
healthchecks-luixal | [cont-init.d] 99-custom-files: exited 0.
healthchecks-luixal | [cont-init.d] done.
healthchecks-luixal | [services.d] starting services
healthchecks-luixal | [services.d] done.
healthchecks-luixal | [uWSGI] getting INI configuration from uwsgi.ini
healthchecks-luixal | [uwsgi-static] added mapping for /static => static-collected
healthchecks-luixal | *** Starting uWSGI 2.0.19.1 (64bit) on [Sun Sep 26 12:12:16 2021] ***
healthchecks-luixal | compiled with version: 10.3.1 20210424 on 05 April 2021 18:18:03
healthchecks-luixal | os: Linux-5.10.0-8-amd64 #1 SMP Debian 5.10.46-4 (2021-08-03)
healthchecks-luixal | nodename: c0d9f746395e
healthchecks-luixal | machine: x86_64
healthchecks-luixal | clock source: unix
healthchecks-luixal | pcre jit disabled
healthchecks-luixal | detected number of CPU cores: 8
healthchecks-luixal | current working directory: /app/healthchecks
healthchecks-luixal | detected binary path: /usr/sbin/uwsgi
healthchecks-luixal | your memory page size is 4096 bytes
healthchecks-luixal | detected max file descriptor number: 1048576
healthchecks-luixal | building mime-types dictionary from file /etc/mime.types...1311 entry found
healthchecks-luixal | lock engine: pthread robust mutexes
healthchecks-luixal | thunder lock: disabled (you can enable it with --thunder-lock)
healthchecks-luixal | uwsgi socket 0 bound to TCP address :8000 fd 3
healthchecks-luixal | Python version: 3.9.5 (default, May 12 2021, 20:44:22)  [GCC 10.3.1 20210424]
healthchecks-luixal | Python main interpreter initialized at 0x7f0eb7021bf0
healthchecks-luixal | python threads support enabled
healthchecks-luixal | your server socket listen backlog is limited to 100 connections
healthchecks-luixal | your mercy for graceful operations on workers is 60 seconds
healthchecks-luixal | mapped 145840 bytes (142 KB) for 1 cores
healthchecks-luixal | *** Operational MODE: single process ***
healthchecks-luixal | running "exec:/usr/bin/python3 ./manage.py collectstatic --noinput" (pre app)...
healthchecks-luixal | 
healthchecks-luixal | 317 static files copied to '/app/healthchecks/static-collected'.
healthchecks-luixal | running "exec:/usr/bin/python3 ./manage.py compress" (pre app)...
healthchecks-luixal | Compressing... done
healthchecks-luixal | Compressed 24 block(s) from 126 template(s) for 0 context(s).
healthchecks-luixal | WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x7f0eb7021bf0 pid: 281 (default app)
healthchecks-luixal | *** uWSGI is running in multiple interpreter mode ***
healthchecks-luixal | spawned uWSGI master process (pid: 281)
healthchecks-luixal | spawned uWSGI worker 1 (pid: 298, cores: 1)
healthchecks-luixal | [uwsgi-daemons] spawning "/usr/bin/python3 ./manage.py sendalerts" (uid: 1000 gid: 1000)
healthchecks-luixal | invalid HTTP request size (max 4096)...skip
healthchecks-luixal | invalid HTTP request size (max 4096)...skip
healthchecks-luixal | invalid HTTP request size (max 4096)...skip
healthchecks-luixal | invalid HTTP request size (max 4096)...skip
github-actions[bot] commented 3 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.