The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • HTTP Status 500 IO Error: The Network Adapter could not establish the connection Jira Debian Squeeze Oracle with Service Name

HTTP Status 500 IO Error: The Network Adapter could not establish the connection Jira Debian Squeeze Oracle with Service Name

Flacid Snake
July 18, 2013

Hi,

I'm getting this error:

HTTP Status 500 IO Error: The Network Adapter could not establish the connection

I'm trying to use an Oracle11g using Service database following these steps:

https://confluence.atlassian.com/display/JIRAKB/How+to+Connect+JIRA+to+ORACLE+Using+Service+Name

I add the property:

JVM_SUPPORT_RECOMMENDED_ARGS=" -Doracle.net.tns_admin=/opt/atlassian/jira/conf"

The folder /opt/atlassian/jira/conf contains the file tnsnames.ora which looks like:

ORAPRE13 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = myhost.com)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = XEON)
)
)

I edit the dbconfig.xml as follows:

<?xml version="1.0" encoding="UTF-8" ?>

<jira-database-config>
<name>ORAPRE13</name>
<delegator-name>default</delegator-name>
<database-type>oracle10g</database-type>
<schema-name>jira</schema-name>
- <jdbc-datasource>
<url>jdbc:oracle:thin:@//myhost.com:1521/XEON</url>
<driver-class>oracle.jdbc.OracleDriver</driver-class>
<username>user</username>
<password>pass</password>
<pool-min-size>20</pool-min-size>
<pool-max-size>20</pool-max-size>
<pool-max-wait>30000</pool-max-wait>
<min-evictable-idle-time-millis>4000</min-evictable-idle-time-millis>
<time-between-eviction-runs-millis>5000</time-between-eviction-runs-millis>
<pool-max-idle>20</pool-max-idle>
<pool-remove-abandoned>true</pool-remove-abandoned>
<pool-remove-abandoned-timeout>300</pool-remove-abandoned-timeout>
</jdbc-datasource>
</jira-database-config>
What am I doing wrong?
Thanks in advance

5 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Flacid Snake
July 18, 2013

I tried to telnet the host and it doesn't connect, so I've asked my network administrator to check if maybe the firewall is blocking the traffic over the 1521 port

1 vote
Alex Perez
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 Champions.
July 21, 2013

Hi,

try to connect to Oracle from the jira server. Try "tnsping ORAPRE13", and if OK, sqlplus.

It's likely a misconfigured listener on the server.

0 votes
mamedshahmaliyev
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!
August 26, 2018

First you should check the network issues(e.g: firewall is blocking port 1521). If network is ok, 

then most probably you have listener configured wrongly, the hostname you specify in connection string must be the same as in the listener.

https://www.youtube.com/watch?v=pMQXVihgrrE&t=212s

https://adhoctuts.com/fix-oracle-io-error-the-network-adapter-could-not-establish-the-connection-error/

0 votes
Flacid Snake
July 21, 2013

Thank you Alex Perez. The firewall was blocking the traffic over the 1521 port.

Abid Raza
July 31, 2018

How did you allow it from the firewall in linux centros?

0 votes
Flacid Snake
July 21, 2013

Please I really need help. The firewall seems to be ok. What am I doing wrong with the configuration above?

Thanks

Comments for this post are closed

Community moderators have prevented the ability to post new answers.