Content
You are here:
Configuration broken after upgrade to 8.3.2
Added by Frank Grossmann over 5 years ago
I'm accessing my server through a apache https reverse proxy.
After the upgrade I can't access my server anymore through web interface (Cross-Site Request Forgery Token error message), this happened before.
Previously I was then able to directly access the server through http and local IP, not anymore. On previous upgrades I found it has reset the local hostname and http/https protocol settings to the default values and didn't remember my settings.
How do I set the hostname and protocol settings through CLI ?
Thanks!
Replies (2)
Dear Felix,
this has been reported at and has be fixed for OpenProject 9.0.0. As a workaround until then, please set the SERVER_HOSTNAME and SERVER_PROTOCOL manually with:
openproject config:set SERVER_HOSTNAME="your hostname"
openproject config:set SERVER_PROTOCOL="https"
Best,
Oliver
Hi Oliver,
let me give you an update.
First of all it seems I've forgot to run openproject configure after apt update, which seems to have caused the same cookie error message even when accessing the server locally through http. So maybe you want to check into that and produce a more meaningful error.
Anyway, I can say
openproject config:set SERVER_HOSTNAME="your hostname"
openproject config:set SERVER_PROTOCOL="https"
do not result in the upgrade honouring these entries. They are imported into /etc/openproject/conf.d/other, however. But it seems they are not used during upgrade / configure or during service startup - they are not imported into the system config shown in the web application. After running openproject configure I was able to get into the web interface again and could manually change.
So I am not sure that's what you intended to achieve, as the config:set commands did not have any effect.
Thanks and regards
Felix