Closed CPBPILOT closed 2 years ago
Actually there are 3 pod, and 5 containers total. My password has a special character. for the sake of trying i uninstalled and reinstall with a simpler username and password. after trying to log in again I still get the same error.
Didnt mean to close this issue here are the 5 logs from the 5 containers inventree_inventree-5c9f8f967f-7bwbn_worker.log inventree_inventree-5c9f8f967f-7bwbn_nginx.log inventree_inventree-5c9f8f967f-7bwbn_inventree.log inventree_inventree-redis-0_inventree-redis.log inventree_inventree-postgresql-0_inventree-postgresql.log
Looks like the django-allauth library is throwing an error here, as it has been passed a string amount
parameter:
@CPBPILOT have you configured any custom auth settings here? In particular, have you setup rate limiting?
@matmair you're more familiar with this part of the codebase - anything stand out to you?
I have not explicitly set anything, but this is being installed through truecharts on a trueNAS server. They are really doing all the installs of the different pods and containers. Stavros-k over at truecharts probably knows better what they are doing in the background. Not sure how to tag him in this comment the @ isn't pulling him up. Also just to ref I am not a Linux/docker/CLI expert so if you need me to get some information from the setup I have no problem helping but you might have to walk me through a little more than others
There not rate-limiting enabled when Installed without Ingress
(aka reverse proxy).
(Errors happen without Ingress, haven't tried with)
There are only some resource limits, per pod.
Those limits are pretty high. It's 4 vCores and 8GiB of RAM.
Here is also some logs from the browser console
login/ payload looks fine
calendar.js
,nav.js
and settings.js
respond with 401 Unauthorized.
The rest respond with 404 Not found.
It tries to fetch something from /static/i18n/{lng}.
something.js
the {lng}
seems to be passed literal, and not substituted with the actual language.
Also this seems weird while sitting on the login screen
Not a supported install way and I do not have access to a true nas instance for reproducing so not sure how much we can do. I will take a look in the weekend (+3d).
@stavros-k is the command 'invoke update' run during the install? Seems like not all static data is pre-rendered correctly.
@stavros-k is the command 'invoke update' run during the install? Seems like not all static data is pre-rendered correctly.
After Redis and Postgres is up and running, An inventree container starts and runs (overriding main command of the container)
cd /home/inventree
invoke update
Once that is completed, then main inventree container starts, plus a worker container, along with the nginx container.
Just to make sure, I just exec'ed into the running Inventree container, run invoke update
again.
python packages all were installed already.
I had changed dir to /home/inventree
# invoke update
Installing required python packages from 'requirements.txt'
Requirement already satisfied: pip in /usr/local/lib/python3.9/site-packages (22.2.2)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: arrow==1.2.2 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 7)) (1.2.2)
Requirement already satisfied: asgiref==3.5.2 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 9)) (3.5.2)
Requirement already satisfied: babel==2.10.3 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 11)) (2.10.3)
Requirement already satisfied: bleach[css]==5.0.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 13)) (5.0.1)
Requirement already satisfied: blessed==1.19.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 15)) (1.19.1)
Requirement already satisfied: brotli==1.0.9 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 17)) (1.0.9)
Requirement already satisfied: certifi==2022.6.15 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 19)) (2022.6.15)
Requirement already satisfied: cffi==1.15.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 23)) (1.15.1)
Requirement already satisfied: charset-normalizer==2.1.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 27)) (2.1.0)
Requirement already satisfied: coreapi==2.3.3 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 29)) (2.3.3)
Requirement already satisfied: coreschema==0.0.4 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 31)) (0.0.4)
Requirement already satisfied: cryptography==3.4.8 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 33)) (3.4.8)
Requirement already satisfied: cssselect2==0.6.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 37)) (0.6.0)
Requirement already satisfied: defusedxml==0.7.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 39)) (0.7.1)
Requirement already satisfied: diff-match-patch==20200713 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 43)) (20200713)
Requirement already satisfied: django==3.2.15 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 45)) (3.2.15)
Requirement already satisfied: django-allauth==0.51.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 70)) (0.51.0)
Requirement already satisfied: django-allauth-2fa==0.10.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 74)) (0.10.0)
Requirement already satisfied: django-cleanup==6.0.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 76)) (6.0.0)
Requirement already satisfied: django-cors-headers==3.13.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 78)) (3.13.0)
Requirement already satisfied: django-crispy-forms==1.14.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 80)) (1.14.0)
Requirement already satisfied: django-error-report==0.2.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 82)) (0.2.0)
Requirement already satisfied: django-filter==22.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 84)) (22.1)
Requirement already satisfied: django-formtools==2.3 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 86)) (2.3)
Requirement already satisfied: django-import-export==2.5.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 88)) (2.5.0)
Requirement already satisfied: django-js-asset==2.0.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 90)) (2.0.0)
Requirement already satisfied: django-maintenance-mode==0.16.3 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 92)) (0.16.3)
Requirement already satisfied: django-markdownify==0.9.2 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 94)) (0.9.2)
Requirement already satisfied: django-money==2.1.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 96)) (2.1.1)
Requirement already satisfied: django-mptt==0.11.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 98)) (0.11.0)
Requirement already satisfied: django-otp==1.1.3 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 100)) (1.1.3)
Requirement already satisfied: django-picklefield==3.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 102)) (3.1)
Requirement already satisfied: django-q==1.3.9 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 104)) (1.3.9)
Requirement already satisfied: django-redis==5.2.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 106)) (5.2.0)
Requirement already satisfied: django-sql-utils==0.6.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 108)) (0.6.1)
Requirement already satisfied: django-sslserver==0.22 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 110)) (0.22)
Requirement already satisfied: django-stdimage==5.3.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 112)) (5.3.0)
Requirement already satisfied: django-user-sessions==1.7.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 114)) (1.7.1)
Requirement already satisfied: django-weasyprint==2.1.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 116)) (2.1.0)
Requirement already satisfied: django-xforwardedfor-middleware==2.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 118)) (2.0)
Requirement already satisfied: djangorestframework==3.13.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 120)) (3.13.1)
Requirement already satisfied: et-xmlfile==1.1.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 122)) (1.1.0)
Requirement already satisfied: fonttools[woff]==4.34.4 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 124)) (4.34.4)
Requirement already satisfied: gunicorn==20.1.0 in /usr/local/lib/python3.9/site-packages (from -r requirements.txt (line 126)) (20.1.0)
Requirement already satisfied: html5lib==1.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 128)) (1.1)
Requirement already satisfied: idna==3.3 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 130)) (3.3)
Requirement already satisfied: importlib-metadata==4.12.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 132)) (4.12.0)
Requirement already satisfied: itypes==1.2.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 134)) (1.2.0)
Requirement already satisfied: jinja2==3.1.2 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 136)) (3.1.2)
Requirement already satisfied: markdown==3.4.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 138)) (3.4.1)
Requirement already satisfied: markuppy==1.14 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 140)) (1.14)
Requirement already satisfied: markupsafe==2.1.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 142)) (2.1.1)
Requirement already satisfied: oauthlib==3.2.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 144)) (3.2.0)
Requirement already satisfied: odfpy==1.4.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 146)) (1.4.1)
Requirement already satisfied: openpyxl==3.0.10 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 148)) (3.0.10)
Requirement already satisfied: pdf2image==1.16.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 150)) (1.16.0)
Requirement already satisfied: pillow==9.2.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 152)) (9.2.0)
Requirement already satisfied: py-moneyed==1.2 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 160)) (1.2)
Requirement already satisfied: pycparser==2.21 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 164)) (2.21)
Requirement already satisfied: pydyf==0.2.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 166)) (0.2.0)
Requirement already satisfied: pyjwt[crypto]==2.4.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 168)) (2.4.0)
Requirement already satisfied: pyphen==0.12.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 170)) (0.12.0)
Requirement already satisfied: python-barcode[images]==0.14.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 172)) (0.14.0)
Requirement already satisfied: python-dateutil==2.8.2 in /usr/local/lib/python3.9/site-packages (from -r requirements.txt (line 174)) (2.8.2)
Requirement already satisfied: python-fsutil==0.6.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 176)) (0.6.1)
Requirement already satisfied: python3-openid==3.2.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 178)) (3.2.0)
Requirement already satisfied: pytz==2022.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 180)) (2022.1)
Requirement already satisfied: pyyaml==6.0 in /usr/local/lib/python3.9/site-packages (from -r requirements.txt (line 185)) (6.0)
Requirement already satisfied: qrcode[pil]==7.3.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 187)) (7.3.1)
Requirement already satisfied: rapidfuzz==0.7.6 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 191)) (0.7.6)
Requirement already satisfied: redis==3.5.3 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 193)) (3.5.3)
Requirement already satisfied: requests==2.28.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 197)) (2.28.1)
Requirement already satisfied: requests-oauthlib==1.3.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 202)) (1.3.1)
Requirement already satisfied: sentry-sdk==1.9.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 204)) (1.9.0)
Requirement already satisfied: six==1.16.0 in /usr/local/lib/python3.9/site-packages (from -r requirements.txt (line 206)) (1.16.0)
Requirement already satisfied: sqlparse==0.4.2 in /usr/local/lib/python3.9/site-packages (from -r requirements.txt (line 212)) (0.4.2)
Requirement already satisfied: tablib[html,ods,xls,xlsx,yaml]==3.2.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 216)) (3.2.1)
Requirement already satisfied: tinycss2==1.1.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 220)) (1.1.1)
Requirement already satisfied: uritemplate==4.1.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 225)) (4.1.1)
Requirement already satisfied: urllib3==1.26.11 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 227)) (1.26.11)
Requirement already satisfied: wcwidth==0.2.5 in /usr/local/lib/python3.9/site-packages (from -r requirements.txt (line 231)) (0.2.5)
Requirement already satisfied: weasyprint==54.3 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 233)) (54.3)
Requirement already satisfied: webencodings==0.5.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 237)) (0.5.1)
Requirement already satisfied: xlrd==2.0.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 243)) (2.0.1)
Requirement already satisfied: xlwt==1.3.0 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 245)) (1.3.0)
Requirement already satisfied: zipp==3.8.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 247)) (3.8.1)
Requirement already satisfied: zopfli==0.2.1 in /root/.local/lib/python3.9/site-packages (from -r requirements.txt (line 249)) (0.2.1)
Requirement already satisfied: setuptools in /usr/local/lib/python3.9/site-packages (from django-money==2.1.1->-r requirements.txt (line 96)) (60.0.5)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Installing plugin packages from '/home/inventree/data/plugins.txt'
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Running InvenTree database migrations...
========================================
2022-09-07 09:23:20,870 INFO SECRET_KEY loaded by INVENTREE_SECRET_KEY
2022-09-07 09:23:20,922 INFO DB_ENGINE: django.db.backends.postgresql
2022-09-07 09:23:20,922 INFO DB_NAME: inventree
2022-09-07 09:23:20,922 INFO DB_HOST: teset-postgresql
Clearing SERVER_RESTART_REQUIRED flag
Plugins not enabled - skipping loading sequence
collecting notification methods
found 1 notification methods
No changes detected
2022-09-07 09:23:23,953 INFO SECRET_KEY loaded by INVENTREE_SECRET_KEY
2022-09-07 09:23:24,008 INFO DB_ENGINE: django.db.backends.postgresql
2022-09-07 09:23:24,008 INFO DB_NAME: inventree
2022-09-07 09:23:24,008 INFO DB_HOST: teset-postgresql
Plugins not enabled - skipping loading sequence
collecting notification methods
found 1 notification methods
Operations to perform:
Apply all migrations: account, admin, auth, authtoken, build, common, company, contenttypes, django_q, error_report, exchange, label, order, otp_static, otp_totp, part, plugin, report, sites, socialaccount, stock, user_sessions, users
Running migrations:
No migrations to apply.
2022-09-07 09:23:27,038 INFO SECRET_KEY loaded by INVENTREE_SECRET_KEY
2022-09-07 09:23:27,074 INFO DB_ENGINE: django.db.backends.postgresql
2022-09-07 09:23:27,074 INFO DB_NAME: inventree
2022-09-07 09:23:27,074 INFO DB_HOST: teset-postgresql
Plugins not enabled - skipping loading sequence
collecting notification methods
found 1 notification methods
Operations to perform:
Synchronize unmigrated apps: InvenTree, allauth, allauth_2fa, corsheaders, crispy_forms, django_cleanup, django_filters, django_otp, djmoney, formtools, import_export, maintenance_mode, markdownify, messages, mptt, rest_framework, staticfiles
Apply all migrations: account, admin, auth, authtoken, build, common, company, contenttypes, django_q, error_report, exchange, label, order, otp_static, otp_totp, part, plugin, report, sites, socialaccount, stock, user_sessions, users
Synchronizing apps without migrations:
Creating tables...
Running deferred SQL...
Running migrations:
No migrations to apply.
2022-09-07 09:23:29,484 INFO SECRET_KEY loaded by INVENTREE_SECRET_KEY
2022-09-07 09:23:29,521 INFO DB_ENGINE: django.db.backends.postgresql
2022-09-07 09:23:29,521 INFO DB_NAME: inventree
2022-09-07 09:23:29,521 INFO DB_HOST: teset-postgresql
Plugins not enabled - skipping loading sequence
collecting notification methods
found 1 notification methods
System check identified no issues (1 silenced).
========================================
InvenTree database migrations completed!
2022-09-07 09:23:31,329 INFO SECRET_KEY loaded by INVENTREE_SECRET_KEY
2022-09-07 09:23:31,364 INFO DB_ENGINE: django.db.backends.postgresql
2022-09-07 09:23:31,364 INFO DB_NAME: inventree
2022-09-07 09:23:31,364 INFO DB_HOST: teset-postgresql
Plugins not enabled - skipping loading sequence
collecting notification methods
found 1 notification methods
Rebuilding Part objects
Rebuilding PartCategory objects
Rebuilding StockItem objects
Rebuilding StockLocation objects
Rebuilding Build objects
2022-09-07 09:23:33,144 INFO SECRET_KEY loaded by INVENTREE_SECRET_KEY
2022-09-07 09:23:33,180 INFO DB_ENGINE: django.db.backends.postgresql
2022-09-07 09:23:33,180 INFO DB_NAME: inventree
2022-09-07 09:23:33,180 INFO DB_HOST: teset-postgresql
Plugins not enabled - skipping loading sequence
collecting notification methods
found 1 notification methods
Rebuilding Part thumbnails
Rebuilding Company thumbnails
2022-09-07 09:23:34,978 INFO SECRET_KEY loaded by INVENTREE_SECRET_KEY
2022-09-07 09:23:35,013 INFO DB_ENGINE: django.db.backends.postgresql
2022-09-07 09:23:35,013 INFO DB_NAME: inventree
2022-09-07 09:23:35,013 INFO DB_HOST: teset-postgresql
Plugins not enabled - skipping loading sequence
collecting notification methods
found 1 notification methods
render stock.js
render notification.js
render model_renderers.js
render bom.js
render filters.js
render api.js
render table_filters.js
render part.js
render build.js
render modals.js
render report.js
render tables.js
render search.js
render attachment.js
render barcode.js
render order.js
render company.js
render label.js
render forms.js
render helpers.js
render plugin.js
rendered all files in /home/inventree/InvenTree/templates/js/translated
2022-09-07 09:23:46,799 INFO SECRET_KEY loaded by INVENTREE_SECRET_KEY
2022-09-07 09:23:46,834 INFO DB_ENGINE: django.db.backends.postgresql
2022-09-07 09:23:46,834 INFO DB_NAME: inventree
2022-09-07 09:23:46,834 INFO DB_HOST: teset-postgresql
Plugins not enabled - skipping loading sequence
collecting notification methods
found 1 notification methods
525 static files copied to '/home/inventree/data/static', 2251 unmodified.
2022-09-07 09:23:48,604 INFO SECRET_KEY loaded by INVENTREE_SECRET_KEY
2022-09-07 09:23:48,639 INFO DB_ENGINE: django.db.backends.postgresql
2022-09-07 09:23:48,640 INFO DB_NAME: inventree
2022-09-07 09:23:48,640 INFO DB_HOST: teset-postgresql
Plugins not enabled - skipping loading sequence
Starting background tasks...
collecting notification methods
found 1 notification methods
User test already exists - skipping creation
Collecting settings
deleted setting 'INVENTREE_LATEST_VERSION'
checked all settings
InvenTree translation coverage: 19%
2022-09-07 09:23:50,618 INFO SECRET_KEY loaded by INVENTREE_SECRET_KEY
2022-09-07 09:23:50,653 INFO DB_ENGINE: django.db.backends.postgresql
2022-09-07 09:23:50,653 INFO DB_NAME: inventree
2022-09-07 09:23:50,653 INFO DB_HOST: teset-postgresql
Plugins not enabled - skipping loading sequence
collecting notification methods
found 1 notification methods
File “/home/inventree/InvenTree/locale/en/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/zh/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/pt/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/th/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/he/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/ru/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/it/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/pt_br/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/fa/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/ja/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/nl/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/cs/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/tr/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/hu/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/pl/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/sv/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/vi/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/de/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/fr/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/no/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/es/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/id/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/es_MX/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/ko/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/InvenTree/locale/el/LC_MESSAGES/django.po” is already compiled and up to date.
But still the problem pesirsts
Not a supported install way and I do not have access to a true nas instance for reproducing so not sure how much we can do. I will take a look in the weekend (+3d).
Are you serieusly telling people docker and kubernetes are considered totally unsupported?! It;s 2022 'nuf said.
@matmair I have a test server I can give you access to that is a fresh install of trueNAS and only has the current imventree app installed. Do you have another way to contact you that I can send the access information to
@matmair I have a test server I can I can give you access to that is a fresh install of trueNAS and only has the current imventree app installed. Do you have another way to contact you that I can send the access information to
TrueNAS is irrelevant in this case, please stop those references. Devs can test with on any helm platform they like, our helm charts (aka apps) are mostly platform agnostic.
Not a supported install way and I do not have access to a true nas instance for reproducing so not sure how much we can do. I will take a look in the weekend (+3d).
Are you serieusly telling people docker and kubernetes are considered totally unsupported?! It;s 2022 'nuf said.
@Ornias1993 are you seriously demanding free support for your plattform from devs in their free time? We have offical bare-metal and docker guides and configs that we support. HeIm/k8s is not on that list as the app is not scaling out properly and support for object storage is not implemented. I am not going to spend my limited free time learning and supporting all the ways devs invent to host and deploy software.
Also I already started debugging as you can see from the next message - but I will stop that now as I can see that I will not enjoy working with this project a bit. But good to know how the TrueCharts project ticks. Maybe someone else from the team feels inclined to help.
@Ornias1993 If you read there documents docker is a supported way but maybe not k8s. Maybe after solving this issue they would add it to the supported ways to install. As @matmair mentioned he had already started debugging and asking @stavros-k questions and they were working together.
Not a supported install way and I do not have access to a true nas instance for reproducing so not sure how much we can do. I will take a look in the weekend (+3d).
Are you serieusly telling people docker and kubernetes are considered totally unsupported?! It;s 2022 'nuf said.
@Ornias1993 are you seriously demanding free support for your plattform from devs in their free time? We have offical bare-metal and docker guides and configs that we support. HeIm/k8s is not on that list as the app is not scaling out properly and support for object storage is not implemented. I am not going to spend my limited free time learning and supporting all the ways devs invent to host and deploy software.
Also I already started debugging as you can see from the next message - but I will stop that now as I can see that I will not enjoy working with this project a bit. But good to know how the TrueCharts project ticks. Maybe someone else from the team feels inclined to help.
To be clear: We basicallly just spin-up the container on kubernetes without much kubernetes special sauce. this error is not likely to be caused by anything kubernetes as far as we’re aware.
hence my surprise about the fact you did not support docker.
there was no reason to assume bad intent. Like I said: It sounded like you where saying your own docker container was not supported.
@Ornias1993 If you read there documents docker is a supported way but maybe not k8s. Maybe after solving this issue they would add it to the supported ways to install. As @matmair mentioned he had already started debugging and asking @stavros-k questions and they were working together. But then you have coming in here parading you big ass head like you know everything.
While I might have some difference of opinion with the team here. I do respect them as people and for their work.
There was absolutely zero reason, however, for you to start namecalling people and ranting in multiple projects because of that.
Not a supported install way and I do not have access to a true nas instance for reproducing so not sure how much we can do. I will take a look in the weekend (+3d).
Are you serieusly telling people docker and kubernetes are considered totally unsupported?! It;s 2022 'nuf said.
@Ornias1993 Please tell me how the "nuf said" comment was in any way in good faith. You were being just as arrogant!
Not a supported install way and I do not have access to a true nas instance for reproducing so not sure how much we can do. I will take a look in the weekend (+3d).
Are you serieusly telling people docker and kubernetes are considered totally unsupported?! It;s 2022 'nuf said.
@Ornias1993 Please tell me how the "nuf said" comment was in any way in good faith. You were being just as arrogant!
It was indeed maybe not the nicest way of wording surprise. But thats between me myself and @matmair . I might have, depending on how you read it, indeed sounded arrogant. But thats no reason to start going off-topic and derail your own issue to start calling people names.
my apologies to @matmair if I sounded onreasonably rude, obviously.
I would ofcourse prefer the issue here being looked into, rather that derail this into a personality contest. So ill leave it at that, not to trigger @CPBPILOT any furter. @stavros-k can handle it from here.
Please let us all maintain a level of civility in the discussion here. Aggression towards anyone is not acceptable.
This is an open source project maintained by us in our spare time.
This issue may be particular to your setup, or it might be an upstream bug in the allauth library we use. It could also be on our end. We'll do what we can (when we can) to get to the bottom of it.
I just tried to setup inventree on truenas scale and ran into this issue. Any updates or workarounds to make it working?
@AivarasAukselis can you tell us some more about your setup? In particular have you implemented any auth rate limiting?
@AivarasAukselis can you tell us some more about your setup? In particular have you implemented any auth rate limiting?
No, nothing specific, just default settings for the helm chart. Perhaps some of the default settings chosen by truecharts invoke the bug. Here is the prinscreen of all the settings i can control:
@AivarasAukselis can you post the error log you are seeing here, so we can compare to the original post?
@AivarasAukselis can you post the error log you are seeing here, so we can compare to the original post?
Sure, here it is: inventree_inventree-5b5fcf4df-s4k44_inventree.log
Hmm, seems to work if I change the field of login attempts from 5 to empty. Perhaps the field value is passed as a string instead of an int?
@AivarasAukselis Wow, wouldn't have thought to check that :) You are correct.
Kubernetes configmaps can't have int
values.
There are workarounds, yes.
If this can be handled in the inventtree side, that would be perfect. @SchrodingersGat, Maybe something like int(ENV_VAR)? Otherwise I'll see what I can do.
Looks like there are 6 envs that need to be int (that I can find)
The DB, Redis and Web port seems to work even as string
It works on Kubernetes if an int is provided. This is a problem with the used deployment method. A system-specific fix might be provided in the future. However, I will state that Kubernetes in general is not a supported method as none of the maintainers or core devs use it. So this might break at any point without us noticing or fixing it soon.
It works on Kubernetes if an int is provided.
Yes it does, but as the values coming from env's even on docker or docker-compose can be passed as strings.
Anyway. I get that it might break.
Please verify that this bug has NOT been raised before.
Describe the bug*
I am unable to log in to the system after install. I installed this through truecharts on a truenas scale server/nas. After going through the install steps. When I open the login page and type in the admin credentials and I get a "Internal Server Error The server raised an internal error Refer to the error log in the admin interface for further details" There are 3 pods running, a postgresql , a redis and then the main container, when looking at the main container log there a line that says "TypeError: '<' not supported between instances of 'int' and 'str'" immediately after a line "allowed = len(history) < amount". It also there are some Unauthorized .js scripts I have had truecharts look at there implementation and they say the code that looks like is throwing a error is not their code.
Steps to Reproduce
Install inventree on a truenas scale nas go to the login page login with the admin credentials entered at install error is presented
Expected behavior
Expect that I would be able to login to the app.
Deployment Method
Version Information
0.8.2_4.08 please see truecharts issue 3684 https://github.com/truecharts/charts/issues/3684
Relevant log output