Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Cannot set OPENPROJECT_HTTPS=true

Cannot set OPENPROJECT_HTTPS=true

Added by Hans Erasmus over 2 years ago

Hi all

I have updated to the latest version of OpenProject (12.2.5) via apt update. My OpenProject instance complains that: 
"Your application is running with HTTPS mode set to http, but the request is an https request. This will result in errors! You will need to set the following configuration value: OPENPROJECT_HTTPS=true "
Could anyone please help me figure out what is wrong here?

Running:
"sudo openproject run bundle exec rake setting:OPENPROJECT_HTTPS=true"
results in:

/opt/openproject/config/constants/settings/definition.rb:295:in `find_env_var_override': Using unprefixed environment variables is deprecated. Please use OPENPROJECT_ATTACHMENTS_STORAGE_PATH instead of ATTACHMENTS_STORAGE_PATH (StructuredWarnings::StandardWarning)
/opt/openproject/config/constants/settings/definition.rb:295:in `find_env_var_override': Using unprefixed environment variables is deprecated. Please use OPENPROJECT_RAILS_CACHE_STORE instead of RAILS_CACHE_STORE (StructuredWarnings::StandardWarning)
rake aborted!
Don't know how to build task 'setting:OPENPROJECT_HTTPS=true' (See the list of available tasks with `rake --tasks`)
/opt/openproject/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/opt/openproject/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.10/lib/bundler/cli/exec.rb:58:in `load'
/opt/openproject/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.10/lib/bundler/cli/exec.rb:58:in `kernel_load'
/opt/openproject/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.10/lib/bundler/cli/exec.rb:23:in `run'
/opt/openproject/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.10/lib/bundler/cli.rb:483:in `exec'
/opt/openproject/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/opt/openproject/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/opt/openproject/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/opt/openproject/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.10/lib/bundler/cli.rb:31:in `dispatch'
/opt/openproject/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/opt/openproject/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.10/lib/bundler/cli.rb:25:in `start'
/opt/openproject/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.10/exe/bundle:48:in `block in <top (required)>'
/opt/openproject/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.10/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'
/opt/openproject/vendor/bundle/ruby/3.1.0/gems/bundler-2.3.10/exe/bundle:36:in `<top (required)>'
/opt/openproject/bin/bundle:110:in `load'
/opt/openproject/bin/bundle:110:in `<main>'
(See full trace by running task with --trace)

Replies (5)

RE: Cannot set OPENPROJECT_HTTPS=true - Added by Hans Erasmus over 2 years ago

Also want to add, setting OPENPROJECT_HTTPS=true in /opt/openproject/.env and restarting openproject.service after that, does not work either.

RE: Cannot set OPENPROJECT_HTTPS=true - Added by Adam Szabo over 2 years ago

Hi Hans

it is really complex to understand how to hand over a variable to OpenProject.

Please try with this, to read configuration

openproject config:get OPENPROJECT_HTTPS.

To update  openproject config:set OPENPROJECT_HTTPS=true

RE: Cannot set OPENPROJECT_HTTPS=true - Added by Hans Erasmus over 2 years ago

Thank you! This seemed to have done the trick. Hopefully it stays set now ;-)

Thanks again

RE: Cannot set OPENPROJECT_HTTPS=true - Added by How Live about 2 years ago

Running Openproject communiy Version on a Ubuntu 20.04. VPS with SSL encryption

typing: "openproject config:get OPENPROJECT_HTTPS"

Result: "true"

But my OpenProject instance still complains that:

"Your application is running with HTTPS mode set to http, but the request is an https request. This will result in errors! You will need to set the following configuration value: OPENPROJECT_HTTPS=true "

how do i make this message not appear anymore?

RE: Cannot set OPENPROJECT_HTTPS=true - Added by How Live about 2 years ago

Restart server solved this issue

How Live wrote:

Running Openproject communiy Version on a Ubuntu 20.04. VPS with SSL encryption

typing: "openproject config:get OPENPROJECT_HTTPS"

Result: "true"

But my OpenProject instance still complains that:

"Your application is running with HTTPS mode set to http, but the request is an https request. This will result in errors! You will need to set the following configuration value: OPENPROJECT_HTTPS=true "

how do i make this message not appear anymore?

  • (1 - 5/5)
Loading...