Forums

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

Access the Jira Server app from Docker

Nader Nassif
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 18, 2019

Hi,

I tried to find this info everywhere but I couldn't.

I have downloaded the Jira Server app on my iphone (iOS 13.1.3) and I am running Jira in docker.

Since Jira is running in Docker it only has the localhost url defined. I can access the instance from my mobile browser by pointing the browser to my computer's IP and Jira port.

I tried using http://myComputerIP:8080 , I tried using http://dockerImageName.network:8080 , and finally I tried with localhost:8080

None of these options worked. I always get "cannot connect to your site" message.  How can I access Jira deployed in docker through my local host using the Jira mobile server app (1.3.2) ?

Thank you.

2 answers

1 accepted

0 votes
Answer accepted
Nader Nassif
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 20, 2019

@DPK JI managed to resolve the issue. Thank you for your help.

 

the problem on my end was the baseUrl. I had the base url set to localhost:8080. I checked the server.xml and the same was set over there.

It seems that the mobile checks the exact url against the base url of the system. If they mis-match then you can get this error message. I could see this by turning on the HTTP access logs and checked where exactly does the authentication method stops.

So, if you have a context path configured and/or a specific base url the mobile app will not work if the info don't match between your login info on the app and in the server config. This might be a helpful tip in the mobile app documentation.

Cheers!

Nader

DPKJ
Community Champion
November 20, 2019

oh! nice catch.

Like Nader Nassif likes this
0 votes
DPKJ
Community Champion
November 18, 2019

@Nader Nassifyou need to check following items,

  • Check Jira is working fine inside Docker, and not throwing any error on startup
  • Check you have mapped docker port number 8080 with your host system
    • You can map it to any port number of host system.
  • Once mapped, check if localhost:<HOST_PORT> is accessible on your host machine.
  • Now, check if <HOST_PORT> is open for external access.
  • Now, try on your phone.
Nader Nassif
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 18, 2019

@dpThank you for the answer.

  • I have no errors in the Jira server startup logs
  • I have mapped the docker port correctly
  • I can access my instance as explained from all my iPhone browsers using http://myIP:8080
  • My Jira instance is on version 8.5.1
  • Jira mobile plugin is enabled and on version 3.2.8

Still getting the same error message.

What else can I check / do to troubleshoot ?

DPKJ
Community Champion
November 18, 2019

@Nader NassifHave you checked if your server allow incoming connection on mapped port?

Nader Nassif
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 18, 2019

@DPKJI'm assuming that you are referring to the http application port 8080 (https://confluence.atlassian.com/kb/ports-used-by-atlassian-applications-960136309.html)

In this case yes I did. Jira is accessible on my computer and I can access the instance from the browser with localhost:8080.

It is also accessible from my mobile browser using http://myComputerIP:8080

I can also access it from other phones, machines. However, not through the server app

Are there other ideas or somehow I can extract the app logs that I can share ?

DPKJ
Community Champion
November 18, 2019

@Nader NassifIt seems that only problem you are having is of Mobile App access.

Now, to diagnose that I have couple of pointer,

 

Do check these and come back, meanwhile I will try to emulate it on my test system.

Nader Nassif
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 20, 2019

.

DPKJ
Community Champion
November 20, 2019

@Nader NassifCan you mark/upvote both answers here (as both of them contains diagnosis steps), it will be helpful for someone else who stuck with same problem.

Suggest an answer

Log in or Sign up to answer