Networking :: Unable To Open Socket (Not Available Error)
Aug 12, 2010
I've been tasked with transferring a Python web server from a Debian box to a Fedora server for work. (I think) I've been able to transfer all required files but I'm unable to run the web server because whenever I make the HTTPServer call in the python file I get an error "Cannot assign Requested Address".
I've basically traced the issue back to the server being unable to open a socket on the requested port (8085 in this case). I've checked netstat and there are no processes running on that port (or any other one I've tried for that matter) so wondering if there's a system configuration I need to do to allow programs to bind to sockets. Is there a deny configuration set up somewhere I need to modify? Does this even make sense?
I am having problems accessing my work desktop through my home computer running Fedora 13. I am able to remote into work through MAC and Windows XP. I loaded vpnc and was able to connect to the concentrator. I also able to ping it too. I cannot connect to my desktop using rdesktop. I get error message �Unable to connect, socket is unavailable. I cannot ping to the desktop.
I have a cgi script that tries to get the IP address of a domain. the Domain is defined in Bind, yet it can not resolve it. I put the domain in the host file and it then gives a Error: unable to create socket - Permission denied
I figure I have to do some code changes to the script but here I would like an explaination as to the error I am getting.
I'm using PHP on a centos server to send emails out. It should use smtp with authentication to send out and one of the credentials is the hostname but in trying to use those credentials I get this error:
Zend_Mail_Protocol_Exception: Could not open socket
However, when using an ip address instead of the host's name it seems to work making me think this is a server issue/Centos issue.
I am pragmatically trying to upload a list of files from my client machine to a proFTPd server I have running on Ubuntu. Every time I get several (around fifty) files into the transfer, I get the following error: Quote: Connection reset by peer: socket write error
I am able to remotely upload 25,000 small files of ~ 1K in size, but when I go to upload hundreds of 2-4 Mb files, I get a socket write error. Am I using up all available sockets before they can be released? If so, how do I release the sockets? If not, what does this error mean and why am I getting it?
im getting that error in my code for some reason. I compiled my code, and when i try to run this server it throws me an error on my call to setsocketopt(). The only way it can reach that part of my loop is if it succeeds when it calls sock() so I dont understand why the error says its an operation on a non-socket. Im just trying to set up a server to pass messages from a client to it a viceversa. Here is the code:
Code: int main() { int socket_fd, new_socket_fd, k; struct addrinfo hints, *server_info, *p; struct sockaddr_storage peer_address; code....
I create SCTP socket with port number 60011. The SCTP socket descriptor value is 18. When I try to close the socket with the socket descriptor, sometimes it is not closed without errno.
I want to configure socket timer to release socket(port) once the connection is terminated. Do we have something in Linux OS to configure this delay to release socket?.
Any command, link or man-page anything will be helpful.
Linux 2.6.27.5-117.fc10.i686.PAE #1 SMP Tue Nov 18 12:08:10 EST 2008 i686 i686 i386 GNU/Linux
I need to enable telnet service on it, then found xinetd and telnet-server not installed,
Then I had installed below First I had installed Xinetd: xinetd-2.3.14-21.fc10.i386.rpm then I had installed telnet-server: xinetd-2.3.14-21.fc10.i386.rpm
After installation I executed below commands
Service xinetd start Chkconfig xinetd on Chkconfig telnet on Service iptables stop Chkconfig iptables off Iptables �F
After I had tried telnet localhost ----IT FAILED
when I run telnet server manually by issuing the below command /usr/sbin/in.telnetd, I get below error [COLOR="Red"]/usr/sbin/in.telnetd: getpeername: Socket operation on non-socket[/COLOR]
I have other system running same OS, I had followed the same steps discussed above to enable telnet, It works fine on it.
I install and configure the vncserver following and reading 1000papers, but all of this present the same problem; when i try to connect to my vncserver,recive this mesage: unable connect to socket: No route to host (113) The OS version is Fedora Core 14 and tigervnc-server i try different solutions including:Allow TCP connection modifing files /etc/gdm/custom.conf and /usr/share/gdm/gdm.chemas Disable SELinux removing iptables Here follow the vncserver configuration:
[code].....
The ip address of the vncserver is correct because i can do ssh on it. Where or what can i do?
I'm trying to run Interhack (spoiled variant of Nethack) for local game. Is looking through settings I saw that:
[Code]....
When I try to start it with ih_server option it gives me that error: Code: Can't access() script Could not create socket: Connection refused I think my problem is closed port: Code: nc localhost 9999 localhost [127.0.0.1] 9999 (?) : Connection refused How do I fix this?
I am not really new to ubuntu since I had it for time now I still don't know a lot about it since I was not really interested in exploring it and probably won't understand some of the terms used so go easy on me. Now, since I have upgraded to ubuntu 10.10 (maverick) (maybe even earlier since I haven't been using it much) I have not been able to open Software Center.
Trying to openit through terminal gave me the following result: Code: Traceback (most recent call last): File "/usr/bin/software-center", line 90, in <module> app = SoftwareCenterApp(datadir, xapian_base_path, options, args) File "/usr/share/software-center/softwarecenter/app.py", line 145, in __init__ self.history = get_apt_history() ..... raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: sr_RS
When trying to copy my personal address to CouchDB I get this error: Unable to open address book. This address book cannot be opened. This either means that an incorrect URI was entered, or this server is unreachable. Detailed error message: Invalid source
I have been trying (since 10.04!) to sync my Evolution contacts. UbuntuOne seems to be the most promising way of doing that automatically, however, I completely fail at accomplishing this seemingly simple task. I have NEVER been able to successfully back up my address book to UbuntuOne. Note: all other sync works fine. It's just Evolution that is seemingly smarter than I am. Thing I have done to solve the issue:
- Upgraded from 10.04 to 11.04 - All three steps from this article: https://wiki.ubuntu.com/UbuntuOne/FA...olutionSyncing - Cuss and swear and roll my eyes, mutter a few unrepeatable curse words about Canonical and their mothers.
Well after messing with compiz Opacity I managed to make all panels and windows transparent. Only thing I see is desktop background and icons. Tried ctrl+although+f1 and running gconftool-2 --recursive-unset /apps/compiz Then a reboot. Same issue. Next ran metacity --replace I get: Windows manager error: Unable to open X display
I placed the DVD in the player's window. Movie Player was installed earlier. When I am trying to play the DVD, it is shown as under. "An error occurred. Could not open location; you might not have permission to open the file."
After finally getting libptp2 to compile I find that ptpcam does not work. This has worked perfectly fine before with the same camera using Slackware 12.0, I am now using Slackware 13.1 and ptpcam will simply not work. The error is as follows:
Code:
x86_1# ptpcam -l Listing devices... bus/dev vendorID/prodID device model ERROR: Could not open session! Try to reset the camera.
I have tried to reset with "ptpcam -r", I have also tried to disconnect and reconnect the camera to the USB system, I have tried to reboot the computer, I have tried to use different versions of libptp2 -- all to no avail. The strace shows the issue is apparently a failed ioctl(), although I have no idea why it fails:
I have verified that the camera is working in Windows 7 on the same physical computer and I can see the camera from lsusb and dmesg output when I connect it to the USB system. This system is Slackware 13.1, Linux x86_1 2.6.33.4-smp #2 SMP Wed May 12 22:47:36 CDT 2010 i686 Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz GenuineIntel GNU/Linux.
I have a java application that I wrote recently. It runs off port 9955. The application runs great on my mac server. When I installed it on my linux box i cant get to it from outside the box. A port scan shows the port as closed. I flushed my iptables, did not help. I can telnet into the app locally, from the server and it works great. I cannot telnet from outside the server. I have a reference to the application in /etc/services as a tcp port (which it is).
There is an option to play ..... video in totem. But i am unable to play any video. Error shows, "Could not open location; you might not have permission to open the file.". I searched google, few suggestions are patches for ......py file, but there is no file named ......py in /usr/lib/totem/plugins/...../ folder.
I'm trying to update the drivers to NVIDIA-Linux-x86-260.19.21.run (GeForce GT 220) but ran into several problems. I'm currently running Ubuntu 10.04. when running sudo sh NVIDIA-Linux-x86-260.19.21.run /var/log/nvidia-installer.log gives the following errors:
-> Uninstallation of existing driver: NVIDIA Accelerated Graphics Driver for Linux-x86 (260.19.21) is complete. -> Searching for conflicting X files: ERROR: Unable to open '/usr/lib/xorg/modules/libglx.so' for reading (No such file or directory)
I've been using cyrus and sendmail together for a very very long time now. Just recently I upgraded to fedora 13 and now my virtual users can not send email from the /etc/sasldb2 passwords. I get in the /var/log/messages sendmail[31427]: unable to open Berkeley db /etc/sasldb2: Unknown error: Its weird that they can still log in and get email from imapd.conf
I even tried re-creating sasldb2 and sasldblistusers2 shows my two users 'one' that is also a local user account and the saslauthd authenticates when sending emails, but the virtual user 'two' can't send just only can log in to receive. /etc/sysconfig/saslauthd is set up as mech=pam. but I don't see how that would be relevant to this issue.
I tried creating a virtual server in apache and it got created successfully. (I also added a zone in dns for that domain successfully) However, when I try opening that domain in my browser, I see a popup window which asks me what to do with "default" which is a php file type.
I dont see the index.php which should actually open. What do I do to make the php files display correctly?
I am trying to make a vnc connection from pc #2 to pc #1. Pc #1 is a debian pc behind a zyxel router (P-2602HW-D1A). Pc #2 is a windows xp pc another place at the internet.I have configured the zyxel router to forward incomming trafic on port 5902 to the local ip-adress of the debian box. The debian box is running a vnc server, listening on port 5902.But i dosn?t work.I have tryed to scan the zyxel routers ipadress on port 5902 from the internet, but the scanner says that the port is closed.The vnc server on pc #1 is working fine on the local network. I can connect to the server from a pc on the same side of the zyxel router.Is it deffenitly a router problem, or could it have something to do with debians own firewall?