Questions tagged [sockets]
99 questions
558
votes
8 answers
How to know what program is listening on a given port?
I suspect a program is listening on port 8000 on my machine.
When I run the following command, I get this error:
> python -m SimpleHTTPServer
# Lots of python error
socket.error: [Errno 98] Address already in use
If I use another port (8000 is the…
yansal
- 5,683
42
votes
2 answers
What are socket files?
Recently, I started using tmux; I'm trying to use the pair programming feature in that software.
During the process a socket file was created.
My question is: what are socket files, how am I to open them on Ubuntu and how are they used?
Moha the almighty camel
- 1,713
11
votes
1 answer
Launching programs after hostname change returns error _IceTransSocketUNIXConnect: could not connect to local-host
After changing the hostname on 14.04 I cannot launch unetbootin, attempting to launch the application from bash returns:
_IceTransSocketUNIXConnect: Cannot connect to non-local host OLDHOSTNAME
_IceTransSocketUNIXConnect: Cannot connect to…
Oatlad
- 111
11
votes
4 answers
How can I create a new socket in /dev?
I want to create a new socket file in /dev. Does the way to get it is adding a new rule to udev?
Marc
- 491
- 3
- 5
- 10
9
votes
1 answer
Can't start MySQL server if the .sock file is changed in /etc/mysql/my.cnf
I have installed MySQL server 5.5 on Ubuntu 12.04.
I am trying to start MySQL server on a different sock file. By default MySQL runs on /var/run/mysqld/mysqld.sock.
I am trying to run the same server on /var/run/mysqld/mysqld1.sock.
For this I have…
user117844
- 151
9
votes
5 answers
Unable to start Apache on Ubuntu 12.10: no listening sockets available
I'm unable to start apache2 installed using apt-get. I'm getting the very same error on 2 separate Ubuntu 12.10 installations, one on my desktop PC, the other one running in VirtualBox:
michal@michaltest:~$ sudo service apache2 start
* Starting web…
michalstanko
- 191
8
votes
1 answer
how to stop socket with linux command?
how to stop socket in linux :
socket ==>
root@root:/home/aa/test# netstat | grep 3966
tcp 0 0 server:3966 server:57004 TIME_WAIT
thank
Ellouze Anis
- 261
7
votes
3 answers
Mysql install ERROR: Database files are locked. Daemon already running? Warning: Unable to start the server
At first I removed previous MySQL installation
apt autoremove mysql-server-8.0
MySQL has been removed from services. Then I tried to install new MySQL
apt install mysql-server
which throws me an error: ERROR: Database files are locked. Daemon…
Čamo
- 849
4
votes
0 answers
Mariadb Plugin 'unix socket' is not loaded
After installing Mariadb on Ubuntu 15.10 I was unable to use mysql. The following error was reported: Plugin 'unix socket' is not loaded.
It seems that plugin table in the mysql db was empty. Why was this?
My remedy was:
killall…
iainH
- 808
- 1
- 9
- 16
4
votes
0 answers
Bluetooth Socket Program: connect: Host is down
I am trying to test rfcomm_server.c and rfcomm_client.c (from the link https://github.com/balle/bluetooth-snippets) on my new Bluetooth dongle.
When I run rfcomm_client, it exits on connect giving the error "connect: Host is down". I am running the…
UbflPM
- 41
- 1
- 3
4
votes
0 answers
How to restart a systemd socket?
Problem in a nutshell: systemd creates a socket on boot, but it is not possible to restart or recreate it without a reboot.
/etc/systemd/system/gunicorn.socket
[Unit]
Description=gunicorn…
leggewie
- 1,087
4
votes
1 answer
Server stops accepting connections after ~120,000 active on 18.04.3
I'm running a type of perf test where I have a simple TCP server with 4 IP addresses that is listening on a port and getting connections from several other computers on the local network. Everything works fine up to just under 120,000 active…
Denis
- 61
3
votes
1 answer
/var/run/postgres keeps being deleted, preventing postgres from starting
By default, my PostgreSQL installation was creating a socket in /tmp but my psql command-line client was looking in /var/run/postgresql/.s.PGSQL.5432.
To remedy this, I edited postgresql.conf and changed the directory to
unix_socket_directories =…
sparkyspider
- 141
3
votes
2 answers
postgresql broken after 14.04 despite succesful pg_upgrade
I'm running an Ubuntu VPS where i'm am upgrading to 14.04. everything has gone smoothly so far. Except the PostgreSQL migration from 9.1 to 9.3.
The server hosts a Django 1.6 site and the traceback that I get is this:
File…
Thyssen
- 31
3
votes
5 answers
iriunwebcam doesn't work on 20.04
iriunwebcam (https://iriun.com) has worked fine on Ubuntu 20.04 LTS as well as on Ubuntu 20.04 beta on another VMware virtual machine, while it won't still work on a real PC. Also it works fine in Ubuntu 19.10 on another virtual machine. In addition…
hakanekat
- 43