General :: Error - Could Not Open Socket ?
May 5, 2010
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.
View 3 Replies
ADVERTISEMENT
Sep 15, 2009
We are seeing recv err on socket 31: 0x36. What could be meaning of the error?.
View 1 Replies
View Related
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?
View 1 Replies
View Related
Mar 30, 2009
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....
View 7 Replies
View Related
Jan 27, 2010
I have configured a squid proxy; it's running, but there was a problem: it does not provide service to client side.
The error was: "could not connect to session manager" "cannot open the network socket"
View 1 Replies
View Related
Jan 31, 2010
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?
View 1 Replies
View Related
Jul 6, 2010
i'm writing a simple program of client socket program. Here below is the code sample which i'm writing...
Code:
//tcp_client.c
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include<string.h>
#include<stdlib.h>
[Code].....
the above code works fine.if we copmile and run ./a.exe 192.xx.xx.xxx 1111 and press enter it works fine..everytime it asks "Please enter the message: " and if give that will be displayed in server. but my problem is i dont want to print everytime "Please enter the message: " i just want to feed some words one by one to the socket.
View 4 Replies
View Related
Dec 16, 2010
i want to open a cmd.exe of a remote machine in my own machine.. i am using c language. its just for educational purpose.
View 9 Replies
View Related
Oct 17, 2010
I tried removing it and installing again but I still get the same code in the terminal:
[Code]....
View 3 Replies
View Related
Feb 26, 2010
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).
netstat shows it as listening
netstat --listen
tcp6 0 0 [::]: SimpleSocketTest [::]:* LISTEN
netstat -anp | grep 9955
tcp6 0 0 ::: 9955 :::* LISTEN 1484/java
View 4 Replies
View Related
Feb 24, 2011
I need some help.Trying to set up bugzilla on my VM.After setting up the IP to use static i could log on to the url its not even loading up from command line its issueing an error.when i try to log on to mysql
bugzilla:~# mysql -u root mysql] ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
View 1 Replies
View Related
Jun 4, 2010
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.
I browsed a lot but unable to find it.
View 1 Replies
View Related
Dec 7, 2010
Anyone knows the difference between a socket and TCP connection for connecting to an external system?
View 1 Replies
View Related
May 5, 2009
I had installed Fedora 10
Below is the output of uname -a
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.
View 1 Replies
View Related
Dec 21, 2010
Let's show the problem: I have a socked connection (in a fd var). In certain moment, I need to use the same socket in two threads. Lets see in the example:
Code: int main(void)
{
int fd; // the socket
[code]....
View 9 Replies
View Related
Feb 28, 2011
when i tried the command mysql -u root it is giving me an error that "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'(2)" although my mysql server is ruuning beacuse i m using XAMMP server and its inbuild mysql server is running i cannot use service mysqld start command beacuse this command try to start another instance of mysql and i required mysql of XAMMP.
View 3 Replies
View Related
Apr 29, 2011
What is the magic that needs to be done to be able to record in audacity?
- Fedora 15 x86_64 2.6.35.12-88.fc14.x86_64
- SoundBlaster X-Fi card.
-I have added rpmfusion to yum repos.
When I start audacity the following is printed to the concole:
Code:
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
Expression 'stream->capture.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3653
View 5 Replies
View Related
Jun 20, 2011
I have an old PC with two hard drives (40 and 60Gb) and it uses dual IGhz pIII processors. It shares screen,mouse and keyboard with another PC.Both into Netgear modem. It ran ubuntu 8.04 and XP Pro on the drives above with no problems. Then I decided to try Mint 11 (34bit CD) - result after Grub blank screen other than flashing cursor at top left.No input from keyboard.
Tried Mint KDE 10 (34bit DVD) same result.
Tried Kubuntu 10 (CD) same result.
Reinstalled Ubuntu 8.04 no problem.
Upgraded via download from 8.04 to 10LTS hoping that this would somehow prevent the problem and have screen which says:-
starting up
[000000] ACPI no DMI BIOS year,ACPI =force is required to enable acpi
mount: mounting none on /dev failed: No such device
udevd[825]: error getting socket: Invalid argument
error initialising netlink socket
udevd[825] error initialising netlink socket
libudev: udev_monitor_new_from_netlink:error getting socket:Invalid argument
Segmentation fault
Gave up waiting for root device.Common problems:
Boot args (cat/proc/cmmdline)
Check root delay (Did the system wait long enough)
Check root (did the sytem wait for the right device)
Missing modules (cat/proc/modules; 1s /dev)
ALERT! dev/disc/by-uuid/"long number here" does not exist.Dropping to a shell.
Then it goes into Busybox and ends with "initramfs". I have tried altering the boot device in BIOS from HDD0 through 3 with the same result other than more bad language!
View 9 Replies
View Related
Aug 3, 2010
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.
View 2 Replies
View Related
May 21, 2009
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.
View 1 Replies
View Related
Dec 8, 2010
figure out this error?
Code:
kradalby@hpcompaq6530b-laptop ~/.ssh $ ssh -vvv -p 110 kradalby@dfekt.no
OpenSSH_5.5p1 Debian-5+b1, OpenSSL 0.9.8o 01 Jun 2010
[code]....
View 3 Replies
View Related
Apr 2, 2011
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2). I've had this problem to the point where I thought I messed up my actual configuration so bad that I reinstalled Ubuntu to get rid of all the MySQL configuration; I ran MySQL through Windows with a breeze, but I'm getting some errors like that after restarting my computer just a few minutes ago and I have not changed anything in my SQL settings. I'm on Ubuntu 10.10 64 bit and running MySQL 5.1. the actual error that I get from Navicat and from the website is at [URL]... Update: 20110402. Connection for controluser as defined in your configuration failed. Just got that when I tried to log in to phpmyadmin.
View 4 Replies
View Related
May 9, 2011
I have installed the mysql server on my ubuntu. I need to assign or reset the root password. I followed the article at http://www.ubuntugeek.com/reset-the-...-on-mysql.html. When I ran the command
[Code]....
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) what am i doing wrong, and explain to someone who almost has no experience with ubuntu. I am new to this.
View 1 Replies
View Related
Nov 16, 2010
I cant open my open office file. ".xls"Iam saving my files when someone accidentally cut the power and my computer shutdown. When i open my pc and open the file it display"General Input/ Output Error"
View 5 Replies
View Related
Sep 9, 2010
Linux Error: 23: Too many open files in system..OS: CentOS 5.0, Oracle 10g R2..Application: Microsoft VB6, the application is opening many connections e.g. more than 3000 in 3 minutes and suddenly, the oracle instance is disconnecting and getting "too many open files in system" as error in the listenr.log file.
View 2 Replies
View Related
Feb 17, 2010
I have installed RHEL 4.6. But X server is not running. Wen i executed xclock Error: Can't open display: hostnmae:0.0
View 4 Replies
View Related
Oct 25, 2010
/usr/bin/xterm Xt error: Can't open display: %s
I tried to connect to remote server ,which is installed Centos 5.4 x86, through Xmanager on windows 7, and got this error.
Quote:
/usr/bin/xterm Xt error: Can't open display: %s
At the remote server, I turned on firewall and after this I got the above-mentioned error message.
I do this accrding to instruction on remote server.
Quote:
2. Firewall (TCP/UDP Ports) Configuration
Open UDP port 177 from the PC to the remote host direction.
Open incoming TCP ports 6000~6010 from the remote host to your PC.
After adding these ports "/etc/sysconfig/iptable" as the enoder mentioned, /etc/init.d/iptables restart
3. Reboot the remote host and start Xmanager <- I could not restart remote server.
View 14 Replies
View Related
Oct 1, 2010
I have a while(1) loop, and the error is: glibtop: open (/proc/stat): Too many open files This error occurs after about a half hour to an hour of running. I've tried running this multiple times, both with using glib_close() at the end of the loop, using glib_init() and glib_close() at beginning/end, and just using glib_init(). The strange thing is these have no effect on the actual glib_get functions.
View 5 Replies
View Related
Nov 19, 2010
I have a Dell Dimension 4400, 8 yrs old. It is set up to boot to either Open Suse 11 or Windows. I turned on the machine this morning, it booted very slowly. My screen says, "GRUB loading stage 1.5" then it says "Error 21." I can not go beyond this screen. My machine is stuck here.
View 4 Replies
View Related
Mar 8, 2011
iam just trying to connect to server which accepts one client and server will read(blocking operation) infinitely, but After closing the client socket the server "read operation" is returning zero and "errno variable(in errno.h)" value is also zero. how can i detect whether a client socket is closed/active..?
client.c
Serv_Addr.sin_family = AF_INET;
Serv_Addr.sin_addr.s_addr = inet_addr("127.0.0.1");
Serv_Addr.sin_port = htons(26553);
if( 0 > connect (Serv_Fds,&Serv_Addr,sizeof(Serv_Addr)) )
{
perror("connect");
return 0;
[Code]....
View 3 Replies
View Related