Connection Refused Error 111
Contents |
log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might connection refused error 111 dbconsole have Meta Discuss the workings and policies of this site About
Smtp Connection Refused 111 Interspire
Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads
Oracle Connection Refused Error 111
with us Database Administrators Questions Tags Users Badges Unanswered Ask Question _ Database Administrators Stack Exchange is a question and answer site for database professionals who wish to
Emctl Connection Refused Error 111
improve their database skills and learn from others in the community. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Linux Error: 111: Connection refused LSNRCTL up vote 1 down vote favorite I linux error 111 connection refused have a problem starting my listener, I am using Centos 6.5 and Oracle 12cR1. Database has been installed successfully. Now my issue is when I start my listener, the following error is shown: LSNRCTL> service Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=gaurav)(PORT=1521))) TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error TNS-00511: No listener Linux Error: 111: Connection refused Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) Services Summary... Service "tuts" has 1 instance(s). Instance "tuts", status UNKNOWN, has 1 handler(s) for this service... Handler(s): "DEDICATED" established:0 refused:0 LOCAL SERVER The command completed successfully My hostname is gaurav So i create an entry in hosts file as 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.1.1 gaurav oracle Also, I have created a listener.ora file, with contents as follows: LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =gaurav)(PORT = 1521)) (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) ) ) sid_list_listener= (sid_list= (sid_desc= (oracle-home=/home/oracle/app/oracle/product/12.1.0/dbhome_1) (sid_name=tuts))) I am able to ping my host gaurav. Can anyone please help me in fixing the issue? EDIT
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more oem connection refused error 111 about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges error 111 connection refused mongodb Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each error 111 connection refused python other. Join them; it only takes a minute: Sign up Why am I getting the error “connection refused” in Python? (Sockets) up vote 27 down vote favorite 9 I'm new to Sockets, please excuse my complete lack of http://dba.stackexchange.com/questions/66568/linux-error-111-connection-refused-lsnrctl understanding. I have a server script(server.py): #!/usr/bin/python import socket #import the socket module s = socket.socket() #Create a socket object host = socket.gethostname() #Get the local machine name port = 12397 # Reserve a port for your service s.bind((host,port)) #Bind to the port s.listen(5) #Wait for the client connection while True: c,addr = s.accept() #Establish a connection with the client print "Got connection from", addr c.send("Thank you for connecting!") c.close() and client script (client.py): #!/usr/bin/python import socket #import http://stackoverflow.com/questions/16130786/why-am-i-getting-the-error-connection-refused-in-python-sockets socket module s = socket.socket() #create a socket object host = '192.168.1.94' #Host i.p port = 12397 #Reserve a port for your service s.connect((host,port)) print s.recv(1024) s.close I go to my desktop terminal and start the script by typing: python server.py after which, I go to my laptop terminal and start the client script: python client.py but I get the following error: File "client.py", line 9, in s.connect((host,port)) File "/usr/lib/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) socket.error: [Errno 111] Connection refused I've tried using different port numbers to no avail. However, I was able to get the host name using the same ip and the gethostname() method in the client script and I can ping the desktop (server). python sockets share|improve this question asked Apr 21 '13 at 11:49 Sheldon 1,94463972 Try using telnet. It often helps me. Type in your terminal telnet [IP] 12397 (replace IP with what gethostname() returns). If you do it so you should see Thank you for connecting. If not, please show me what telnet returned. –Matt3o12 Apr 21 '13 at 11:56 telnet works for me, but every command I send creates a HTTP/1.1 400 Bad Request and closes connection. –Patrizio Bertoni Mar 20 '15 at 17:21 Stackoverflow's question also helps some time. –Ajay Gupta Sep 9 '15 at 15:01 add a comment| 3 Answers 3 active oldest vot
sudhir 71 ●4 ●5 ●9 updated 2013-05-28 16:46:13 -0500 smaffulli 6886 ●36 ●67 ●100 http://maffulli.net/ Hello, I am using ubuntu 13.04 with openstack https://ask.openstack.org/en/question/1637/authorization-failed-errno-111-connection-refused/ grizzly version. my openstack was working fine and i was able to commnicate to my vm instances from external network and vice versa, but suddenly due to some issue i started facing problem. I am getting "[Errno 111] Connection refused" error, I have faced this same issue many times in past and i use to reinstall from connection refused scratch, but after sometime again i will end up in same problem. This happens every time not only for me all my peers also facing the same issue on their lab setup. This behavior make me think like after some time the database is getting corrupted or something similar to this . i would really appreciate if someone connection refused error can help me to narrow down the root cause ? Thanks in advance. root@ubuntu150:/var# keystone --debug user-list REQ: curl -i http://10.19.11.150:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient" REQ BODY: {"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "admin_pass"}}} Authorization Failed: [Errno 111] Connection refused root@ubuntu150:~# quantum net-list [Errno 111] Connection refused root@ubuntu150:~# keystone user-list Authorization Failed: [Errno 111] Connection refused root@ubuntu150:~# quantum subnet-list [Errno 111] Connection refused root@ubuntu150:/var# tail -n 30 /var/log/keystone/keystone.log 2013-05-28 23:40:48 WARNING [keystone.common.wsgi] You are not authorized to perform the requested action: admin_required 2013-05-29 02:08:20 WARNING [keystone.common.wsgi] You are not authorized to perform the requested action: admin_required root@ubuntu150:/var# cat /var/log/nova/nova-* | grep -i error 2013-05-28 18:29:37.251 ERROR nova.openstack.common.rpc.common [req-46d05539-0ed3-4104-a72f-c77359c657c7 None None] AMQP server on localhost:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 1 seconds. 2013-05-28 18:29:38.254 ERROR nova.openstack.common.rpc.common [req-46d05539-0ed3-4104-a72f-c77359c657c7 None None] AMQP server on localhost:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 3 seconds. 2013-05-28 18:29:41.259 ERROR nova.openstack.common.rpc.common [req-46d05539-0ed3-4104-a72f-c77359c657c7 None None] AMQP server on localhost:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 5 seconds. 2013-05-28