Skip to content

502 bad gateway (somehwat different issues than others have raised) #7326

Closed

Description

@xkalamity

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*

I'm incredibly new to this linux thing, but ran the install script and seemed to have no issues. however I get a 502 bad gateway when i go to the local host page. followed along with issue 7246, I uncommented the site_url in the /etc/inventree/config.yaml file (see below). I checked the web-service-1 log and got the below issue. System has been restarted as well post-yaml change. I realize there's lots of others dealing with this issue so hopefully my situation can provide some clarity

Steps to Reproduce

"#"Base URL for the InvenTree server
"#"Use the environment variable INVENTREE_SITE_URL
site_url: 'http://localhost:8000'

Relevant log output

May 23 14:24:08 SRVOTTINVTREE systemd[1]: Started inventree-web-1.service.
May 23 14:24:10 SRVOTTINVTREE inventree-web-1.service[939]: Python version 3.9.5 - /opt/inventree/env/bin/python3.9
May 23 14:24:10 SRVOTTINVTREE inventree-web-1.service[939]: 2024-05-23 14:24:10,827 ERROR No CSRF_TRUSTED_ORIGINS specified. Please provide a list of trusted origins, or specify INVENTREE_SITE_URL
May 23 14:24:10 SRVOTTINVTREE systemd[1]: inventree-web-1.service: Main process exited, code=exited, status=255/EXCEPTION
May 23 14:24:10 SRVOTTINVTREE systemd[1]: inventree-web-1.service: Failed with result 'exit-code'.
May 23 14:24:11 SRVOTTINVTREE systemd[1]: inventree-web-1.service: Scheduled restart job, restart counter is at 1.

Activity

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

    @SchrodingersGat
    Member

    Ref: #7336

  3. SchrodingersGat commented on May 26, 2024

    @SchrodingersGat
    Member

    @xkalamity thanks for reporting. we are looking into this and hope to have a resolution for everyone soon

  4. SchrodingersGat commented on May 27, 2024

    @SchrodingersGat
    Member

    @xkalamity from your logs it looks like the INVENTREE_SITE_URL is not actually being set. How are you specifying this value?

  5. xkalamity commented on May 27, 2024

    @xkalamity
    Author

    @SchrodingersGat

    I am using the config.yaml file, and using the default localhost address given in the config.

  6. SchrodingersGat commented on May 27, 2024

    @SchrodingersGat
    Member

    I am using the config.yaml file,

    Can you clarify the exact location of the file you are editing?

    Also please note that we have just releaesd an update to hopefully fix the installer issues. Please try reinstalling / updating the setup

  7. xkalamity commented on May 27, 2024

    @xkalamity
    Author

    update fixed the issue, thanks!

  8. SchrodingersGat commented on May 27, 2024

    @SchrodingersGat
    Member

    @xkalamity awesome thanks for letting us know.

  9. added
    bug
    and removed
    triage:not-checked
    on May 27, 2024
  10. added this to the 0.16.0 milestone on May 27, 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

    buginstallerquestionsetup

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions