InvenTree icon indicating copy to clipboard operation
InvenTree copied to clipboard

Platform not loading for login screen

Open Jamespcman opened this issue 1 year ago • 3 comments

Please verify that this bug has NOT been raised before.

  • [x] I checked and didn't find a similar issue

Describe the bug*

After updating to 17.9 it no longer displays the Platform login screen, (just a white screen) the original interface is working properly.

Steps to Reproduce

After updating to 17.9 it no longer displays the Platform login screen, (just a white screen) the original interface is working properly.

Expected behaviour

After updating to 17.9 it no longer displays the Platform login screen, (just a white screen) the original interface is working properly.

Deployment Method

  • [x] Docker
  • [ ] Package
  • [ ] Bare metal
  • [ ] Other - added info in Steps to Reproduce

Version Information

17.9

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

  • [ ] I can reproduce this bug on the demo site.

Relevant log output


Jamespcman avatar Mar 19 '25 17:03 Jamespcman

My 2 cents as I have been staring at blank white screen for days while trying to move away from the inventree.localhost "gate". I fixed it but I made so many changes, that I cannot exactly pinpoint my solution but the last things I did, I provided and explicit port in the caddyfile ( # Bind to port 80 for external access :80 { ) rather than relying on the default inventree.localhost variable as it seemed that backend caddy communication had some issues even with static files. I also whitelisted some CORS related variable (INVENTREE_CORS_ORIGIN_WHITELIST) in the .env file along with other things modifications along with other variable like CADDY_ADMIN_BIND=0.0.0.0 INVENTREE_COOKIE_SAMESITE=None INVENTREE_TRUSTED_ORIGINS="http://x.x.x.x,https://FQDN" INVENTREE_CORS_ORIGIN_WHITELIST="http://x.x.x.x,http://inventree.localhost,https://FQDN"

Having said this, sometimes just waiting a few more minutes might get the magic to happen by fixing itself. :)

Endstarter avatar Mar 19 '25 17:03 Endstarter

when i have the white screen i go to my docker install and do with ssh docker compose run --rm inventree-server invoke update

after that my platform screen is getting back.

huizebruin avatar Mar 19 '25 20:03 huizebruin

Thank you guys, fixed it. I ran the invoke update command for InvenTree and it took care of it. Thank you for the response.

Jamespcman avatar Mar 19 '25 21:03 Jamespcman