Skip to content
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

API: Fix Docker in the develop branch for API and Admin #3199

Open
palisadoes opened this issue Feb 11, 2025 · 4 comments
Open

API: Fix Docker in the develop branch for API and Admin #3199

palisadoes opened this issue Feb 11, 2025 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@palisadoes
Copy link
Contributor

palisadoes commented Feb 11, 2025

This is for the Develop Branch

Describe the bug

  1. In the develop branch we cannot get the API docker instance to communicate with the Admin instance.
  2. We need the following:
    1. The API instance must only communicate on port 4000, not 80 or 443. It must be able to respond to queries from the Admin instance on port 4000
    2. The Admin instance must only communicate on port 4321, not 80 or 443. It must communicate with the API on port 4000
  3. The queries in the develop branch for logging in seem to be malfunctioning. You may need to eventually try with code from an older PR

To Reproduce
Steps to reproduce the behavior:

  1. Run the API as a docker instance
  2. Run Admin as a docker instance
  3. There is no communication

Expected behavior

  • It works

Actual behavior

It doesn't work. These are the symptoms

  1. When the nginx configuration is removed from the API docker files, we can communicate with it easily. This query succeeds:
    curl -X POST "http://HOSTNAME:4000/graphql" \
    -H "Content-Type: application/json" \
    -d '{"query": "{organizations {name}}"}'
    
  2. You can communicate with the Admin instance on 4321 without issue from an external machine
    telnet ADMIN-HOST 4321
    
  3. You can communicate with the API instance on 4321 without issue from an external machine
    telnet API-HOST 4321
    
  4. When Admin tries to communicate with the API we get:
    1. 404 errors
    2. No traffic between the API and Admin docker containers
  5. On the API
    1. No traffic between the API and Admin docker containers
    docker logs -f talawa-api-dev
    1. TCP dump on port 4000 doesn't show traffic
    tcpdump -n -X tcp port 4000
    1. On Admin
    1. Developer tools > network, shows traffic not being routed correctly

Screenshots

  • N/A

Additional details

Please collaborate as a team on these 2 issues

  1. API: Fix Docker in the develop branch for API and Admin #3199
  2. Admin: Fix Docker in the develop branch for API and Admin talawa-admin#3583

Potential internship candidates

Please read this if you are planning to apply for a Palisadoes Foundation internship

@VanshikaSabharwal
Copy link

please assign

@palisadoes palisadoes removed the unapproved Unapproved for Pull Request label Feb 11, 2025
@prayanshchh
Copy link
Contributor

prayanshchh commented Feb 11, 2025

I can work on this with @VanshikaSabharwal, if u want I can unassign from my existing issues as they aren't high priority

@CHIRANTH-24
Copy link

@palisadoes I would also like to work on this with @VanshikaSabharwal and @prayanshchh .

If you could verify my other issue and unassign me

@VanshikaSabharwal
Copy link

Yes @prayanshchh @CHIRANTH-24 we can connect on slack. I am working on the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants