Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Connect applications if Jira in docker container

awemgamesltd
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 4, 2024

Hi community! May be some one can help me?

I have two hosts:
1 - Jira server
2 - Jira service desk
Both of hosts connected by application links and Jira service desk use Jira server as user directory.
Now i am migrate Jira server in Docker container
i have 3 container:
host
   |_docker
         |_nginx (0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp)
         |
         |_jira
         |
         |_mysql (0.0.0.0:3306->3306/tcp)
 
With this scheme - Jira server working fine
but i have no connection between two hosts
when i try test connection i see error:
"Connection test failed. Response from the server:
com.atlassian.crowd.exception.ApplicationPermissionException: Forbidden (403) Encountered a "403 - Forbidden" error while loading this page. client.forbidden.exception Go to Jira home"

This is my NGINX config:

server {
       listen 80;
       server_name my.domain.com;

       location / {
             return 301 https://$host$request_uri; # HTTPS-redirect
       }
}

server {
       listen 443 ssl;
       server_name my.domain.com;

       ssl_certificate /etc/nginx/ssl/ssl-bundle.crt;
       ssl_certificate_key /etc/nginx/ssl/server.key;

       client_max_body_size 0;

       location / {
              proxy_pass http://jira:8080; # redirect to Jira container
              proxy_set_header Host $host;
              proxy_set_header X-Real-IP $remote_addr;
              proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
              proxy_set_header X-Forwarded-Proto $scheme;
       }
}

Maybe I need to open some additional port in the container or make additional settings in the NGINX configuration?

1 answer

0 votes
Florian Bonniec
Community Champion
January 4, 2024

Hi @awemgamesltd 

 

Maybe this community post can help as he had a similar issue but between Confluence and JIRA. Solution found may fix your issue.

 

Solved: Connecting Confluence to Jira for user directory -... (atlassian.com)

 

Regards

awemgamesltd
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 8, 2024

Unfortunately, this is not my case.
I have only Jira in a container.
I analyzed the traffic and logs and see that the Service Desk sends a request to port 443 and i see in logs that the request reaches the container, but ends with error 403.
There is a record of this in the NGINX log and Jira log (access_log.2024-01-08):
"172.19.0.2 893x807752x1 - [08/Jan/2024:14:53:30 +0300] "POST /rest/usermanagement/1/search?entity-type=user&start-index=0&max-results=1&expand=user HTTP/1.0" 403 11812 22 "-" "Apache-HttpClient/4.5.13 (Java/11.0.21)" "-""

But I don’t understand why the error occurs and how to deal with it(

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.13.0
TAGS
AUG Leaders

Atlassian Community Events