inventree / InvenTree

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

cannot log in to old interface 16.8 after logging out #8535

Open tomse opened 1 day ago

tomse commented 1 day ago

Please verify that this bug has NOT been raised before.

Describe the bug*

trying to log in with the correct credentials on the old interface just "refreshes" the login page

trying the new interface it's possible to login with the same credentials.

This wasn't an issue until logging out (auto login worked fine)

Steps to Reproduce

  1. make sure you are logged out
  2. go to login page
  3. click the try new interface link
  4. login
  5. see the new site..
  6. log out
  7. try and log in to old site

Expected behaviour

expected to have a login, and see my default page

Deployment Method

Version Information

16.8

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

Relevant log output

matmair commented 1 day ago

I appreciate you looking through similar issues before creating an issue... https://github.com/inventree/InvenTree/issues/8481

SchrodingersGat commented 1 day ago

Read through the "breaking changes" section of the 0.16.7 release notes

tomse commented 15 hours ago

@matmair that bug is closed and didn't fix my issue. closest is #8533 but didn't mention login problems until later.

.env file

# Ensure debug is false for a production setup INVENTREE_DEBUG=false

changed to

# Ensure debug is false for a production setup INVENTREE_DEBUG=true

and it works.. switching debugging off reintroduces the problem.

there are 2 issues. logon, and missing pictures same as #8533 both are fixed if debugging is switched on

it seems that the images are created/recreated when having a successful logon (only with debugging true), after this, the images are showing properly when debugging is set to false and logging into the new website.

reload webpage on the new site shows login page again (with debug set to false)

for any one having similar issues (and google) and see this: I did replace the old docker-compose and .env file (copying my settings from the old file) as there are some changes to these files. My docker-compose file was from 0.12.x release - what I didn't notice in the upgrade documentation was the change in products from nginx to caddy for the reverse proxy

SchrodingersGat commented 11 hours ago

it seems that the images are created/recreated when having a successful logon (only with debugging true),

"images" - do you mean product pictures, image files etc?

Did you run invoke update?