inventree / InvenTree

Open Source Inventory Management System
https://docs.inventree.org
MIT License
4.26k stars 770 forks source link

Cannot login to Inventree server any more. Always end up un login screen #7127

Closed SergeoLacruz closed 6 months ago

SergeoLacruz commented 6 months ago

Please verify that this bug has NOT been raised before.

Describe the bug*

I enter username and password and end up in the login screen again. No message "wrong password is shown". what I tried: I ran a git pull I ran a invoke update, downloaded the frontend.zip and installed it using invoke frontend-download --file I created a new superuser using invoke superuser. Even this one cannot login. The installation worked fine until some days ago. No error messages are shown in the logs

Steps to Reproduce

cd src invoke server -a 192.168.1.40:8123' Firefox: http://192.168.1.40:8123/accounts/login/?next=/

Expected behaviour

start page shall be shown

Deployment Method

Version Information

Inventree latest commit from master UIbuntu 22.4 LTS Firefox 124.0.2 ls-lR.txt

Please verify if you can reproduce this bug on the demo site.

Relevant log output

ichael@Tree:~/src$ start_server
Python version 3.10.12 - /usr/bin/python3
2024-04-28 19:18:20,426 DEBUG Loading SECRET_KEY from '/home/michael/src/src/backend/InvenTree/secret_key.txt'
2024-04-28 19:18:20,426 DEBUG Configuring database backend:
2024-04-28 19:18:20,426 INFO DB_ENGINE: django.db.backends.postgresql
2024-04-28 19:18:20,426 INFO DB_NAME: inventree
2024-04-28 19:18:20,426 INFO DB_HOST: localhost
2024-04-28 19:18:20,435 DEBUG couldn't import psycopg 'c' implementation: No module named 'psycopg_c'
2024-04-28 19:18:20,435 DEBUG couldn't import psycopg 'binary' implementation: No module named 'psycopg_binary'
2024-04-28 19:18:20,478 INFO CORS: All origins allowed
2024-04-28 19:18:20,479 INFO InvenTree running with DEBUG enabled
2024-04-28 19:18:20,479 INFO MEDIA_ROOT: '/home/michael/data/media'
2024-04-28 19:18:20,479 INFO STATIC_ROOT: '/home/michael/data/static'
Saving setting 'InvenTreeSetting:INVENTREE_DEFAULT_CURRENCY' to cache
Skipping plugin loading sequence
Machine app: Skipping machine loading sequence
/home/michael/.local/lib/python3.10/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Waiting for database...
Database connection successful!
Python version 3.10.12 - /usr/bin/python3
2024-04-28 19:18:24,555 DEBUG Loading SECRET_KEY from '/home/michael/src/src/backend/InvenTree/secret_key.txt'
2024-04-28 19:18:24,556 DEBUG Configuring database backend:
2024-04-28 19:18:24,556 INFO DB_ENGINE: django.db.backends.postgresql
2024-04-28 19:18:24,556 INFO DB_NAME: inventree
2024-04-28 19:18:24,556 INFO DB_HOST: localhost
2024-04-28 19:18:24,564 DEBUG couldn't import psycopg 'c' implementation: No module named 'psycopg_c'
2024-04-28 19:18:24,564 DEBUG couldn't import psycopg 'binary' implementation: No module named 'psycopg_binary'
2024-04-28 19:18:24,608 INFO CORS: All origins allowed
2024-04-28 19:18:24,609 INFO InvenTree running with DEBUG enabled
2024-04-28 19:18:24,609 INFO MEDIA_ROOT: '/home/michael/data/media'
2024-04-28 19:18:24,609 INFO STATIC_ROOT: '/home/michael/data/static'
Saving setting 'InvenTreeSetting:INVENTREE_DEFAULT_CURRENCY' to cache
Machine app: Skipping machine loading sequence
Python version 3.10.12 - /usr/bin/python3
2024-04-28 17:18:25,854 DEBUG Loading SECRET_KEY from '/home/michael/src/src/backend/InvenTree/secret_key.txt'
2024-04-28 17:18:25,854 DEBUG Configuring database backend:
2024-04-28 17:18:25,854 INFO DB_ENGINE: django.db.backends.postgresql
2024-04-28 17:18:25,854 INFO DB_NAME: inventree
2024-04-28 17:18:25,854 INFO DB_HOST: localhost
2024-04-28 17:18:25,863 DEBUG couldn't import psycopg 'c' implementation: No module named 'psycopg_c'
2024-04-28 17:18:25,863 DEBUG couldn't import psycopg 'binary' implementation: No module named 'psycopg_binary'
2024-04-28 17:18:25,906 INFO CORS: All origins allowed
2024-04-28 17:18:25,907 INFO InvenTree running with DEBUG enabled
2024-04-28 17:18:25,907 INFO MEDIA_ROOT: '/home/michael/data/media'
2024-04-28 17:18:25,907 INFO STATIC_ROOT: '/home/michael/data/static'
Saving setting 'InvenTreeSetting:INVENTREE_DEFAULT_CURRENCY' to cache
Loading InvenTree plugins
Installing plugins from plugins file
Running pip command: /usr/bin/python3 -m pip install -r /home/michael/src/src/backend/InvenTree/plugins.txt
Plugin Registry: Reloading plugins - Force: True, Full: True, Collect: True
Collecting plugins
Added plugin directory: '/home/michael/src/src/backend/InvenTree/plugins' as 'plugins'
Loading plugins from directory 'plugin.builtin'
/home/michael/.local/lib/python3.10/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Loading plugins from directory 'plugin.samples'
Loading plugins from directory 'plugins'
Loading plugins from directory 'plugins'
Collected 32 plugins
barcodes.inventree_barcode, integration.core_notifications, integration.currency_exchange, plugin.builtin.integration.core_notifications, labels.inventree_label, labels.inventree_machine, labels.label_sheet, suppliers.digikey, suppliers.lcsc, suppliers.mouser, suppliers.tme, event.event_sample, event.filtered_event_sample, integration.another_sample, integration.another_sample, integration.api_caller, integration.custom_panel_sample, integration.label_sample, integration.report_plugin_sample, integration.sample, integration.sample_currency_exchange, integration.scheduled_task, integration.simpleactionplugin, plugin.samples.integration.simpleactionplugin, integration.transition, integration.validation_sample, integration.version, locate.locate_sample, build_order, build_order, inventree_zebra.zebra_plugin, inventree_supplier_panel.supplier_panel
Start unloading plugins
Loading InvenTree plugins
Machine app: Skipping machine loading sequence
Deactivating plugin settings
Finished deactivating plugins
Finished unloading plugins
Loading plugins
Starting plugin initialization
Loading plugin `InvenTreeBarcode`
Loaded plugin `InvenTreeBarcode` in 0.000s
Loading plugin `InvenTreeCoreNotificationsPlugin`
Loaded plugin `InvenTreeCoreNotificationsPlugin` in 0.000s
Loading plugin `InvenTreeCurrencyExchange`
Loaded plugin `InvenTreeCurrencyExchange` in 0.000s
Loading plugin `InvenTreeCoreNotificationsPlugin`
Loaded plugin `InvenTreeCoreNotificationsPlugin` in 0.000s
Loading plugin `InvenTreeLabel`
Loaded plugin `InvenTreeLabel` in 0.000s
Loading plugin `InvenTreeLabelMachine`
Loaded plugin `InvenTreeLabelMachine` in 0.000s
Loading plugin `InvenTreeLabelSheet`
Loaded plugin `InvenTreeLabelSheet` in 0.000s
Loading plugin `DigiKeyPlugin`
Loaded plugin `DigiKeyPlugin` in 0.000s
Loading plugin `LCSCPlugin`
Loaded plugin `LCSCPlugin` in 0.000s
Loading plugin `MouserPlugin`
Loaded plugin `MouserPlugin` in 0.000s
Loading plugin `TMEPlugin`
Loaded plugin `TMEPlugin` in 0.000s
Loading plugin `BuildOrderData`
Loaded plugin `BuildOrderData` in 0.000s
Loading plugin `BuildOrderData`
Loaded plugin `BuildOrderData` in 0.000s
Loading plugin `Zebra`
Loaded plugin `Zebra` in 0.000s
Loading plugin `SupplierCart`
Loaded plugin `SupplierCart` in 0.001s
Found 13 active plugins
Activating plugin settings
Activating plugin tasks
Registering IntegrationPlugin apps
Loading InvenTree plugins
Setting maintenance mode state: True
Event triggered: 'common_inventreesetting.created'
Enqueued [InvenTree] 650967
Pushed ('timing-ten-video-snake', 'cd67a3e97d5f41b9b98ff42cf54ec6b6')
Saving setting 'InvenTreeSetting:_MAINTENANCE_MODE' to cache
Hash differs for 'label/inventree/stockitem/qr.html'
Copying label template 'label/inventree/stockitem/qr.html'
Hash differs for 'label/inventree/stocklocation/qr.html'
Copying label template 'label/inventree/stocklocation/qr.html'
Hash differs for 'label/inventree/stocklocation/qr_and_text.html'
Copying label template 'label/inventree/stocklocation/qr_and_text.html'
Hash differs for 'label/inventree/part/part_label.html'
Copying label template 'label/inventree/part/part_label.html'
Hash differs for 'label/inventree/part/part_label_code128.html'
Copying label template 'label/inventree/part/part_label_code128.html'
Setting maintenance mode state: False
Event triggered: 'common_inventreesetting.saved'
Enqueued [InvenTree] 650968
Pushed ('pluto-california-oranges-bakerloo', 'e78ced376e6143528d14ac937eca57f2')
Saving setting 'InvenTreeSetting:_MAINTENANCE_MODE' to cache
Setting maintenance mode state: False
Event triggered: 'common_inventreesetting.saved'
Enqueued [InvenTree] 650969
Pushed ('yellow-winner-jig-sink', '103b42945f254ac6a3e11c3402ab9bf5')
Saving setting 'InvenTreeSetting:_MAINTENANCE_MODE' to cache
Setting maintenance mode state: True
Event triggered: 'common_inventreesetting.saved'
Enqueued [InvenTree] 650970
Pushed ('jersey-triple-eighteen-delaware', '6030a29b23034e8fb4c46f235863565c')
Saving setting 'InvenTreeSetting:_MAINTENANCE_MODE' to cache
Hash differs for 'report/inventree/bom/inventree_bill_of_materials_report.html'
Copying report template 'report/inventree/bom/inventree_bill_of_materials_report.html'
Hash differs for 'report/inventree/purchaseorder/inventree_po_report.html'
Copying report template 'report/inventree/purchaseorder/inventree_po_report.html'
Hash differs for 'report/inventree/salesorder/inventree_so_report.html'
Copying report template 'report/inventree/salesorder/inventree_so_report.html'
Setting maintenance mode state: False
Event triggered: 'common_inventreesetting.saved'
Enqueued [InvenTree] 650971
Pushed ('winter-glucose-oklahoma-video', '1c99a2d05cbf49fe87aabb350037a57c')
Saving setting 'InvenTreeSetting:_MAINTENANCE_MODE' to cache
Setting maintenance mode state: False
Event triggered: 'common_inventreesetting.saved'
Enqueued [InvenTree] 650972
Pushed ('salami-illinois-sodium-summer', 'e21793d9f99e4144b5e4b72b91d5c456')
Saving setting 'InvenTreeSetting:_MAINTENANCE_MODE' to cache
Adding permission part.add_partparameter to group Sourcing
Loading InvenTree machines
Collecting machine types
Found 1 machine types
Collecting machine drivers
Found 0 machine drivers
Initialized 0 machines
Starting background tasks...
Started 18 scheduled background tasks...
Checking for pending database migrations
Checking plugin registry hash
There are 0 pending migrations
Event triggered: 'common_inventreesetting.saved'
Enqueued [InvenTree] 650973
Pushed ('speaker-friend-mobile-vegan', '956f99b2ef1141efab6071357152b47d')
Saving setting 'InvenTreeSetting:_PENDING_MIGRATIONS' to cache
Collecting notification methods
Found 3 notification methods
Loaded unit registry in 0.649 s
Registering UrlsMixin Plugin
Done activating
Finished loading plugins
Event triggered: 'plugins_loaded'
Enqueued [InvenTree] 650974
Pushed ('spring-tango-saturn-beryllium', 'a03d8cc3c447451fa76331352e452c52')
Updating plugin registry hash: 036e6f33faf3d215794d9e4820d5d7d2
Event triggered: 'common_inventreesetting.created'
Enqueued [InvenTree] 650975
Pushed ('batman-nuts-seventeen-kilo', 'a320df4ea0f542b7bca525ff09a564b9')
Saving setting 'InvenTreeSetting:_PLUGIN_REGISTRY_HASH' to cache
Plugin Registry: Loaded 13 plugins
Setting maintenance mode state: False
Event triggered: 'common_inventreesetting.saved'
Enqueued [InvenTree] 650976
Pushed ('oregon-oven-fanta-triple', '20dedf862fae446c80694ce772bbb890')
Saving setting 'InvenTreeSetting:_MAINTENANCE_MODE' to cache
Setting maintenance mode state: True
Event triggered: 'common_inventreesetting.saved'
Enqueued [InvenTree] 650977
Pushed ('nevada-may-apart-robert', '7ae18e8fd999478089fbccb89f42b6d1')
Saving setting 'InvenTreeSetting:_MAINTENANCE_MODE' to cache
Hash differs for 'label/inventree/stockitem/qr.html'
Copying label template 'label/inventree/stockitem/qr.html'
Hash differs for 'label/inventree/stocklocation/qr.html'
Copying label template 'label/inventree/stocklocation/qr.html'
Hash differs for 'label/inventree/stocklocation/qr_and_text.html'
Copying label template 'label/inventree/stocklocation/qr_and_text.html'
Hash differs for 'label/inventree/part/part_label.html'
Copying label template 'label/inventree/part/part_label.html'
Hash differs for 'label/inventree/part/part_label_code128.html'
Copying label template 'label/inventree/part/part_label_code128.html'
Setting maintenance mode state: False
Event triggered: 'common_inventreesetting.saved'
Enqueued [InvenTree] 650978
Pushed ('quiet-enemy-undress-iowa', 'cb9634de3c25466097002d5ca6841d59')
Saving setting 'InvenTreeSetting:_MAINTENANCE_MODE' to cache
Setting maintenance mode state: False
Event triggered: 'common_inventreesetting.saved'
Enqueued [InvenTree] 650979
Pushed ('may-beer-kentucky-mobile', '789a0e6b9ef7463cb8ce2127d77fbf98')
Saving setting 'InvenTreeSetting:_MAINTENANCE_MODE' to cache
Setting maintenance mode state: True
Event triggered: 'common_inventreesetting.saved'
Enqueued [InvenTree] 650980
Pushed ('green-video-rugby-bacon', '006e96aee9e244a1a698c74413838606')
Saving setting 'InvenTreeSetting:_MAINTENANCE_MODE' to cache
Hash differs for 'report/inventree/bom/inventree_bill_of_materials_report.html'
Copying report template 'report/inventree/bom/inventree_bill_of_materials_report.html'
Hash differs for 'report/inventree/purchaseorder/inventree_po_report.html'
Copying report template 'report/inventree/purchaseorder/inventree_po_report.html'
Hash differs for 'report/inventree/salesorder/inventree_so_report.html'
Copying report template 'report/inventree/salesorder/inventree_so_report.html'
Setting maintenance mode state: False
Event triggered: 'common_inventreesetting.saved'
Enqueued [InvenTree] 650981
Pushed ('jig-march-kilo-hydrogen', '333f8fe99eb24de2b572fd4bf3513cfe')
Saving setting 'InvenTreeSetting:_MAINTENANCE_MODE' to cache
Setting maintenance mode state: False
Event triggered: 'common_inventreesetting.saved'
Enqueued [InvenTree] 650982
Pushed ('cup-friend-massachusetts-five', '8e83022115394b37967f1e7170253321')
Saving setting 'InvenTreeSetting:_MAINTENANCE_MODE' to cache
Adding permission part.change_partparameter to group Sourcing
Adding permission part.delete_partparameter to group Sourcing
Loading InvenTree machines
Collecting machine types
Found 1 machine types
Collecting machine drivers
Found 0 machine drivers
Initialized 0 machines
Starting background tasks...
Started 18 scheduled background tasks...
Checking for pending database migrations
Checking plugin registry hash
There are 0 pending migrations
Event triggered: 'common_inventreesetting.saved'
Enqueued [InvenTree] 650983
Pushed ('spaghetti-stairway-beer-eight', '5589616d9bcb41c29707bc3f378542cb')
Saving setting 'InvenTreeSetting:_PENDING_MIGRATIONS' to cache
Collecting notification methods
Found 3 notification methods
Watching for file changes with StatReloader
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (2 silenced).
April 28, 2024 - 17:18:31
Django version 4.2.11, using settings 'InvenTree.settings'
Starting development server at http://192.168.1.40:8123/
Quit the server with CONTROL-C.

EMAIL_HOST is not configured
EMAIL_HOST_USER is not configured
DEFAULT_FROM_EMAIL is not configured
[28/Apr/2024 17:19:27] "GET /accounts/login/?next=/ HTTP/1.1" 200 8516
[28/Apr/2024 17:19:27] "GET /static/fontawesome/css/brands.css HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/img/inventree.png HTTP/1.1" 200 202656
[28/Apr/2024 17:19:27] "GET /static/fontawesome/css/solid.css HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/bootstrap/css/bootstrap.min.css HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/select2/css/select2-bootstrap-5-theme.css HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/select2/css/select2.css HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/treegrid/js/jquery.treegrid.bootstrap3.js HTTP/1.1" 200 166
[28/Apr/2024 17:19:27] "GET /static/css/color-themes/default.css HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/css/inventree.css HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/script/jquery.form.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/script/jquery_3.3.1_jquery.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/script/jquery-ui/jquery-ui.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/bootstrap/js/bootstrap.bundle.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/script/bootstrap/bootstrap-treeview.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/treegrid/js/jquery.treegrid.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/bootstrap-table/bootstrap-table.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/fontawesome/js/solid.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/fontawesome/js/regular.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/fontawesome/js/brands.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/fullcalendar/main.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/fullcalendar/locales-all.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/select2/js/select2.full.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/fontawesome/js/fontawesome.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/script/moment.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/script/chartjs-adapter-moment.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/script/chart.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/script/clipboard.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/script/html5-qrcode.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/script/qrcode.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/script/inventree/message.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/easymde/easymde.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/script/inventree/inventree.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/script/randomColor.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:27] "GET /static/fontawesome/webfonts/fa-solid-900.woff2 HTTP/1.1" 200 79444
[28/Apr/2024 17:19:27] "GET /static/img/inventree_splash.jpg HTTP/1.1" 200 471840
[28/Apr/2024 17:19:27] "GET /static/img/favicon/android-icon-192x192.png HTTP/1.1" 200 16513
[28/Apr/2024 17:19:27] "GET /static/img/favicon/favicon-16x16.png HTTP/1.1" 200 1481
EMAIL_HOST is not configured
EMAIL_HOST_USER is not configured
DEFAULT_FROM_EMAIL is not configured
[28/Apr/2024 17:19:39] "POST /accounts/login/ HTTP/1.1" 302 0
[28/Apr/2024 17:19:39] "GET / HTTP/1.1" 302 0
EMAIL_HOST is not configured
EMAIL_HOST_USER is not configured
DEFAULT_FROM_EMAIL is not configured
[28/Apr/2024 17:19:39] "GET /accounts/login/?next=/ HTTP/1.1" 200 8516
[28/Apr/2024 17:19:39] "GET /static/script/jquery_3.3.1_jquery.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:39] "GET /static/script/jquery-ui/jquery-ui.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:39] "GET /static/bootstrap/js/bootstrap.bundle.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:39] "GET /static/script/jquery.form.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:39] "GET /static/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:39] "GET /static/treegrid/js/jquery.treegrid.bootstrap3.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:39] "GET /static/script/bootstrap/bootstrap-treeview.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:39] "GET /static/treegrid/js/jquery.treegrid.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:39] "GET /static/bootstrap-table/bootstrap-table.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:39] "GET /static/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:39] "GET /static/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:39] "GET /static/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:39] "GET /static/fontawesome/js/regular.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:39] "GET /static/fontawesome/js/solid.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:39] "GET /static/fontawesome/js/brands.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:39] "GET /static/fontawesome/js/fontawesome.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:39] "GET /static/fullcalendar/main.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:39] "GET /static/fullcalendar/locales-all.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:39] "GET /static/script/moment.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:39] "GET /static/select2/js/select2.full.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:39] "GET /static/script/chartjs-adapter-moment.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:39] "GET /static/script/clipboard.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:39] "GET /static/script/chart.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:40] "GET /static/easymde/easymde.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:40] "GET /static/script/html5-qrcode.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:40] "GET /static/script/randomColor.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:40] "GET /static/script/qrcode.min.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:40] "GET /static/script/inventree/inventree.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:40] "GET /static/script/inventree/message.js HTTP/1.1" 304 0
[28/Apr/2024 17:19:40] "GET /static/fontawesome/css/brands.css HTTP/1.1" 304 0
[28/Apr/2024 17:19:40] "GET /static/fontawesome/css/solid.css HTTP/1.1" 304 0
[28/Apr/2024 17:19:40] "GET /static/bootstrap/css/bootstrap.min.css HTTP/1.1" 304 0
[28/Apr/2024 17:19:40] "GET /static/select2/css/select2.css HTTP/1.1" 304 0
[28/Apr/2024 17:19:40] "GET /static/select2/css/select2-bootstrap-5-theme.css HTTP/1.1" 304 0
[28/Apr/2024 17:19:40] "GET /static/css/inventree.css HTTP/1.1" 304 0
[28/Apr/2024 17:19:40] "GET /static/css/color-themes/default.css HTTP/1.1" 304 0
[28/Apr/2024 17:19:40] "GET /static/img/inventree.png HTTP/1.1" 200 202656
[28/Apr/2024 17:19:40] "GET /static/img/inventree_splash.jpg HTTP/1.1" 200 471840

michael@Tree:~$
SchrodingersGat commented 6 months ago
wolflu05 commented 6 months ago

I can actually reproduce that. Just updated my dev env to test out the py 3.12 changes (now still on 3.11) and when trying to login in CUI I get redirected to the login screen again. I already found out, that this only happens when using safari. In chrome I cannot reproduce that bug.

I now bisected it and #6970 seems to have broken the login on safari.

Seems like that when disabeling SESSION_COOKIE_SECURE in the settings.py it starts working again in safari:

 # Additional CSRF settings
 CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
 CSRF_COOKIE_NAME = 'csrftoken'
 CSRF_COOKIE_SAMESITE = 'Lax'
-SESSION_COOKIE_SECURE = True
+SESSION_COOKIE_SECURE = False
 SESSION_COOKIE_SAMESITE = 'Lax'

But I have not enough insights on how to properly fix this issue. Effectively the sessionid cookie gets not stored and that's why the login screen is showed again.

SergeoLacruz commented 6 months ago

version from... good question. Some commit about a week ago. I use the classical interface. When a try the platform interface, it sees that I am logged in, but I do not see any data. I can reproduce the problem with Edge. I have no Chrome or Safari Browser. Changing SESSION_COOKIE_SECURE to False solves the problem

SchrodingersGat commented 6 months ago

Odd that the problem does not exhibit on the demo site. In any case, there is no real issue with setting SESSION_COOKIE_SECURE=False - this setting was only introduced in https://github.com/inventree/InvenTree/pull/6970