-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Evaluate and test the SDR deployment document #133
Comments
Hi Oliver/Laurence, I am currently trying to run the SDR locally to test the implementation before setting it up on a remote server. This process until now gave me some issues that the documentation did not directly address but I could fix, I can list those if you like. However, I am now getting pretty stuck at the last step: the deployment of the Ansible playbook (I skipped the SSL portion for my local installment). In an attempt to host the SDR locally I attempted several things but started with the suggested 'hosts' file were I defined the localhost ip as the host:
This keeps giving me the following result:
Which I interpret as the host is not valid or I am probably doing something wrong in the way you should deploy this on localhost in comparison to a remote server. Could you give me a hint on what I am doing wrong? Ansible and Galaxy are completely new to me so I am probably overseeing something. Best regards, Tom |
Hello @TomDijkema! Thanks for trying out the process :) I have a few responses!
|
Hi @OliverWoolland, Thanks, we have set up a remote server and now this part indeed works as expected in the manual. Error:
Values in the encrypted sdr-secret.yml file:
|
Hi @TomDijkema - excellent news that it has gone as planned. Please be a little careful posting IP addresses and passwords here! Could you please double check you are working with the latest version of this repository? I would have expected this commit to solve your issue. If you do have the latest version and that problem has persisted I will have to have a look in to it! |
Apologies, forgot to mute them, edited previous comment. |
Ok, I pulled the latest version and retried. It now encounters a 502 Bad Gateway, originating from the domain itself. If you navigate to https://sdr.dissco.tech (our domain for sdr) you can see the error code. This is the nginx result from running the first playbook, maybe something in there went wrong. Checked our server config but ports 80 and 443 should be accessible from anywhere, also included the SSL certificates in the server (called foo with the correct extension) and connection is verified. I am not sure if this is a problem with our server config or SDR, it looks like ports 80 and 443 are up and running with nginx master just fine. If so I will check this with Sam next week. Error in playbook:
|
Ok thanks for trying that, did you rerun only deploy-sdr.yml or did you run deploy-galaxy.yml as well? If only deploy-sdr can I suggest rerunning deploy-galaxy first and seeing if that helps? |
I think i did rerun it, but let me try it again |
Sadly the 502 is rather hard to debug. If needed, a procedure I have used is:
|
Ok, when I manually start the Galaxy server as you described it gives the following logs:
I guess some other service is running on the port supervisord wants to run, on which port should it run according to your configuration? |
Thanks for trying that :) I agree that looks like a problem! The set up uses standard ports so 80 or 443 I would expect |
Hmm, strange. Server states nginx running on the ports, but that does seem intentional no?
|
For that to be a problem seems very strange to me. Maybe bring nginx down too? |
You could also dump the nginx config to check that the galaxy configuration is there |
Galaxy is present in the nginx.conf, in the last portion of the file, it mentions this section is maintained by Ansible |
Anyway, thanks for your help until now! Will continue on Monday. |
Hi @OliverWoolland , After some inspecting we think we have narrowed down the problem to a missing instance of Gunicorn, which already creates some errors while running the first playbook (the Galaxy one). On Friday, when I ran the playbook twice it somehow ignored this error which probably was not beneficial for the second playbook. It seems Galaxy runs on Gunicorn, thus it can not be missed. One of my previous comments when I ran the Galaxy instance solely by itself gave a similar issue calling out supervisord was not running. Here is the error the first playbook gives:
|
Hi @TomDijkema, I hope you had a nice weekend. The playbook should handle the creation and setup of the Gunicorn instance. I wonder if this could be linked to the playbook having run with an old version first. If you've not tried it already, could you try running both playbooks again on a fresh (Ubuntu 20.04) VM? After the first playbook runs you should be able to find a (blank) instance of Galaxy running at your URL) |
The weekend was great! Hopefully yours was too. Ok, I shall try and set up a new VM to install the SDR to ensure we have a clean instance. |
Just to be sure: the ansible_ssh_pass variable in the secrets file, it needs to contain the Remote machine ssh user password. What is your exact definition of this (because I am not 100% sure)? |
Hi @OliverWoolland, Here are the notes I took during the set up of the SDR. Tried to summarize them, so let me know if I need to further clarify something. Overview Notes
|
Naturalis will set up their own instance of the SDR using current documentation. We will record (and respond) to any questions or feedback here.
The text was updated successfully, but these errors were encountered: