-
-
Notifications
You must be signed in to change notification settings - Fork 644
[WIP] added some hints for the troubleshooting; fixed sleep instructions #119
Conversation
conf/entrypoint.sh
Outdated
@@ -1,7 +1,11 @@ | |||
#!/usr/bin/env bash | |||
# It will generally take about 40 seconds for elasticsearch and couchdb to be ready to receive connections | |||
echo 'Scheduling setup scripts to run in 40 seconds...' | |||
sleep 40 && /usr/src/app/conf/initcouch.sh 2>&1 && /usr/src/app/utils/elasticsearch.sh couchadmin test 2>&1 & | |||
sleep 40 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, for instance, they try to postpone the script execution, but it doesn't work. Without &&
it works as expected and really stops the script from the execution. I believe that was the expected behavior. Opinions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think your change is correct. Can we remove the part where it runs the scripts the second time? Is it possible they just included the second one because the first one always failed because it wasn't actually waiting the 40 seconds like it was supposed to?
I'm observing two new issues that popped up recently involving the main "hospitalrun" container.
Not sure what the ultimate fix should be for these, but after these changes server is working for me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should remove the part where it runs the setup scripts the second time in entrypoint.sh.
Also the http -> https redirect isn't working. After you access the site on https (manually by typing "https://") for the first time, your browser will remember and use https automatically in the future, but the initial redirect coming from nginx isn't working. It is just redirecting to "https://" edit: nvm, I think it's something wrong with my test setup and the config is actually fine |
Fix list formatting.
Fix screenshot to show SSL_TYPE.
Fix screenshot to show default "auto" SSL_TYPE.
Remove '-d' so users will see their log output by default.
Add troubleshooting note for SSL configuration issues.
@stukalin @MatthewDorner I just got this up and running remotely on a digital ocean box running Ubuntu 16.04.5 LTS. It's working fine: https://hrbeta.modestventures.com/ The only issue is that it's not auto-redirecting from http->https |
The redirect thing is weird. It redirects fine on my VM but not on my 1and1 VPS. It's the line in the nginx configs where it says "rewrite ^(.*)$ https://$host$request_uri" and when it's not working, it's because somehow both $host and $request_uri are blank. And those are nginx system variables so I don't know how it's blank. |
🎉 This PR is included in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.1.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
The goal is to start a brand new installation of the server and make it work which is apparently not the case now. At the same time it'd be nice to document issues and possible solutions.