glygener / glygen-issues

Repository for public GlyGen tickets
GNU General Public License v3.0
0 stars 0 forks source link

Setting up GlyGen main API and frontend modules on AWS server #121

Closed rykahsay closed 1 month ago

rykahsay commented 1 year ago

So far, you have successfully installed

Next step is to set up the following modules

tiwa1154 commented 1 year ago

@rykahsay I am setting up the main API. Ran into an issue in Step 3 [https://github.com/glygener/glygen-backend-api/tree/2.0#step-3-initialize-and-populate-your-mongodb-database].

I ran python3 populate_all_collections.py -s prd -v 2.0.3 -m full and received error message "Usage: populate_all_collections.py [options]

populate_all_collections.py: error: no such option: -m"

tiwa1154 commented 1 year ago

@rykahsay For the frontend module, I followed https://github.com/glygener/glygen-frontend/blob/master/server-installation.md but the docker-glygen-frontend.service file is missing in the repo.

tiwa1154 commented 1 year ago

@rykahsay I ran python3 populate_collections.py -s $DEP -v $VER but got error in the screenshot below: Screen Shot 2023-04-24 at 13 14 24

tiwa1154 commented 1 year ago

@rykahsay For the frontend module, which branch are we using? Master or ver_2.0?

rykahsay commented 1 year ago

Yes, use 2.0 branch.

For the logs, create the logs dir:

mkdir logs
tiwa1154 commented 1 year ago

@rykahsay For the main API:

  1. created the container running_glygen_api_prd but can't start the container with sudo systemctl start docker-glygen-api-prd.service. See screenshot: Screen Shot 2023-04-25 at 15 07 38

For Frontend:

  1. ran sudo make -f MakeFile prod and received some errors: Screen Shot 2023-04-25 at 15 14 20
tiwa1154 commented 1 year ago

Also, for the API, I ran python3 update-search-init.py -s tst, received Failed to establish a new connection, see screenshot: Screen Shot 2023-04-25 at 15 20 48

rykahsay commented 1 year ago

We need to look into these issues on webex -- please set up a meeting on Friday after the group meeting.

tiwa1154 commented 1 year ago

@rykahsay Sent an email invitation for Friday's meeting.

tiwa1154 commented 1 year ago

Successfully created the frontend on the server Screen Shot 2023-05-17 at 13 09 34

@rykahsay Tried to map it to a public domain of aws.glygen.org in the /etc/httpd/conf.d/awsdata.conf. However, it seems to be not connected correctly and aws.glygen.org still shows not found.

tiwa1154 commented 1 year ago

@rykahsay For the main API implementation, also ran into issues with populating the mongodb database. See screenshot: Screen Shot 2023-05-17 at 15 39 14 showing FileNotFoundError

tiwa1154 commented 1 year ago

@rykahsay

For dataset-api, had an issue with populating mongodb database: python3 load_current_release.py -s prd -v 2.0.3 -m full: Screen Shot 2023-05-17 at 13 49 29

Connection refused.

rykahsay commented 1 year ago

For the second last comment you made, I have already gave you a solution --> scroll up and find it.

For the last comment, it is working now:

image
tiwa1154 commented 1 year ago

Running the last step of API testing, ran sudo python3 run_api_test.py -m 1 -g protein -s prd, received error: Screen Shot 2023-05-24 at 11 58 43 Also, you mentioned modifying config.json, not sure what exactly I should modify. @rykahsay

tiwa1154 commented 11 months ago

@rykahsay

  1. I have finished setting up Main GlyGen API: aws.api.glygen.org/ and the frontend container is running on the server but seems like /aws.glygen.org/ is not created by Dacian yet.
  2. I tried to reset the dataset API and APP but when I go to aws.data.glygen.org/ and aws.dsapi.glygen.org, see error in the screenshot: Screen Shot 2023-06-13 at 14 19 58. I assume it's because I changed the file path in the conf file to /efc/shared instead of the original path of /data/shared/ because when I run sudo python3 create_api_container.py -s prd, some steps are shown as CACHED and making directory in the /date/shared path Screen Shot 2023-06-13 at 14 39 30
tiwa1154 commented 11 months ago

@rykahsay

  1. Downloaded 2.1.1, tried to create and start docker container for the APP. Seems still not working on https://aws.data.glygen.org/. Shown as a blank page.
  2. When I populated the MongoDB, using python3 load_cur rent_release.py -s {DEP} -v {VER}, encountered an error, see screenshot: Screen Shot 2023-06-22 at 12 31 58
rykahsay commented 11 months ago

It should work now, but before you get to do that, you had to load the data. I have started the loading using the command given below.

python3 load_current_release.py  -s prd -v 2.1.1

It is loading to the last container (c_records) which takes some time.

image
tiwa1154 commented 11 months ago

Thanks, @rykahsay

So I created and started the docker container for the APP but the https://aws.data.glygen.org/ is shown as a blank page. How should I troubleshoot?

rykahsay commented 11 months ago

I have fixed the problem --> there needs to be additional customization of the app/conf/config.json file as shown below:

image
rykahsay commented 11 months ago
image
tiwa1154 commented 11 months ago

aws.glygen.org domain has been created but the certificate is invalid. Should I send an email to Dacian or @rykahsay you will handle it?

tiwa1154 commented 11 months ago

Screen Shot 2023-07-03 at 11 53 30