Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configuration file misconfiguration for bare metal nginx setup #8761

Closed
1 of 7 tasks
matmay opened this issue Dec 24, 2024 · 1 comment · Fixed by #8767
Closed
1 of 7 tasks

configuration file misconfiguration for bare metal nginx setup #8761

matmay opened this issue Dec 24, 2024 · 1 comment · Fixed by #8767
Labels
bug Identifies a bug which needs to be addressed setup Relates to the InvenTree setup / installation process
Milestone

Comments

@matmay
Copy link

matmay commented Dec 24, 2024

Deployment Method

  • Installer
  • Docker Development
  • Docker Production
  • Bare metal Development
  • Bare metal Production
  • Digital Ocean image
  • Other (please provide a link Steps to Reproduce

Describe the problem*

Did a fresh bare metal installation using the installation script in a debian 11 lxc on proxmox and would always get logged out when refreshing, would not be able to download any media or display the pictures. Also old GUI would not work, login button was just dead.

citing from /etc/inventree/config.yaml

# Cookie settings (nominally the default settings should be fine)
#cookie:
#  secure: false
#  samesite: false

these three lines need to be commented out to fix this, as we are not using ssl.

took me a night to figure this out.

Steps to Reproduce

in proxmox pve shell create debian 11 lxc
bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/vm/debian-vm.sh)"
in debian lxc
wget -qO install.sh https://get.inventree.org && bash install.sh

copy media and import database from old installation to have some media to download
inventree run invoke import-records -c -f data.json

Relevant log output

@matmay matmay added question This is a question setup Relates to the InvenTree setup / installation process triage:not-checked Item was not checked by the core team labels Dec 24, 2024
@SchrodingersGat
Copy link
Member

SchrodingersGat commented Dec 25, 2024

@matmay thanks for reporting this.

NOTE: I had a comment here asking for further information, but I have found out why the problem is occurring. I'll ensure a patch is up quickly

Fix is incoming in #8767 - the default value for the SESSION_COOKIE_SECURE parameter was not being set properly, in the absence of the lines you un-commented in the configuration file.

@SchrodingersGat SchrodingersGat added this to the 0.17.1 milestone Dec 25, 2024
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed and removed question This is a question triage:not-checked Item was not checked by the core team labels Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Identifies a bug which needs to be addressed setup Relates to the InvenTree setup / installation process
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants