Content
Cannot set OPENPROJECT_HTTPS=true
Added by Hans Erasmus about 3 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)
Also want to add, setting
OPENPROJECT_HTTPS=truein/opt/openproject/.envand restarting openproject.service after that, does not work either.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=trueThank you! This seemed to have done the trick. Hopefully it stays set now ;-)
Thanks again
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 anhttpsrequest. 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?
Restart server solved this issue
How Live wrote: