Skip to content

configuration file misconfiguration for bare metal nginx setup #8761

Closed

Description

@matmay

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

Activity

  1. added
    question
    setup
    triage:not-checked
    on Dec 24, 2024
  2. SchrodingersGat commented on Dec 25, 2024

    @SchrodingersGat
    Member

    @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.

  3. added this to the 0.17.1 milestone on Dec 25, 2024
  4. added
    bug
    and removed
    question
    triage:not-checked
    on Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsetup

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions