Added by Darell Sison over 8 years ago
I managed to install Open Project on my cloud server for evaluation.
I used the manual install on ubuntu 14.04.
And managed to install it completely, but when i go to the url (ip address as this si just in development).
I get this error on the browser: Incomplete response received from application
Can any one help?
Is this related to the secret key? I really dont understand how that works can anyone help?
Thanks in advance
Replies (5)
I’ve spend past few days trying to solve the very same problem - and now it’s resolved!
After seeing that same “Incomplete response received from application” response from Apache the error log /etc/apache2/error.log said that SECRET_KEY_BASE was missing although it had been defined on /home/openproject/.profile and it was visible with env command. Then I noticed that the SECRET_KEY_BASE was visible only for user Openproject and I moved it to /etc/environment file as instructed on the manual installation guide. By doing that change SECRET_KEY_BASE became visible for other users as well with env command but still I faced the same problem with Apache. Defining the SECRET_KEY_BASE on secrets.yml worked fine but that is not recommended.
After searching for several posts on missing SECRET_KEY_BASE finally I found this topic saying that Apache is not able to see system variables:
http://stackoverflow.com/questions/25429715/missing-secret-key-base-for-production-environment/25438346#25438346
This worked for me. Can you please test as well? I think we should update the manual installation guide.
How do I do this? What commands should I put to test it?
I ran the command
export SECRET_KEY_BASE=
and it gave me an error
-bash: syntax error near unexpected token `newline’
You basically just cut & paste the line from ~/.profile file to /etc/apache2/envvars file and restart Apache.
Wow it works!!!
Yes the manual installation guide should be updated.
How do i make sure the system sends emails?
I noticed that it doesnt
There is already a Git commit aiming to enhance the manual installation guide:
https://github.com/opf/openproject/commit/72511adbf9edc566a2ee64df4f22d02187a2fdeb
The existing guide actually already mentioned “or pass it to the server upon start manually” but it was not so obvious to realize how to implement that.
I haven’t yet reached email sending so I can’t comment on that. It probably needs a separate topic.