Questions tagged [sockets]
The sockets tag has no usage guidance.
98
questions
0
votes
0
answers
233
views
Error message on boot: Dependency failed for sssd-pam-pri... Service responder private socket
[DEPEND] Dependency failed for sssd-pam-pri... Service responder private socket.
[DEPEND] Dependency failed for sssd-pam.soc... SSSD PAM Service responder socket.
[DEPEND] Dependency failed for sssd-...
0
votes
0
answers
181
views
ssh Match LocalAddress with ssh.socket doesn't work
On a new Ubuntu install I noticed that SSH uses sockets to start its daemon on demand. I've configured /etc/systemd/system/ssh.socket.d/port.conf, on the server, to listen on two ports as follows:
[...
0
votes
1
answer
1k
views
postgresql 14 - s.PGSQL.5432 no such file
Installed ubuntu 22.04, postgresql v 14.9 - everything worked correctly. Rebooted the system, got an error:
"connection to server on socket "/var/run/postgresql//.s.PGSQL.5432" failed: ...
0
votes
0
answers
26
views
DNS/Internet Access Packet and Socket Traffic Issues (Ubuntu Studio-wired ethernet direct to Router)
enter image description here
How can I fix this in Ubuntu Studio? (I am hard wired directly to router with ethernet wire, router has static external web ip from ISP):
user@user-MS-7693:~$ ping -c 10 ...
2
votes
0
answers
566
views
How to allow an apparmor profile to create a unix socket
On Ubuntu kinetic, I get multiple DENIED operations by apparmor in /var/log/syslog such as:
operation="create" class="net" info="failed type and protocol match" error=-13 ...
1
vote
0
answers
199
views
MySQL does not create socket when launched at boot
After a reboot, mysqld is running, but no socket gets created and you cannot connect to the MySQL server:
# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/...
-1
votes
1
answer
155
views
How to read and alter packet info when forwarding
I have two laptops running ubuntu(both 20.04.4 LTS x86_64) and im trying to use one as a router(lets call them laptop1 and laptop2 and laptop2 is acting as a router). So far ive used the ip route ...
1
vote
0
answers
168
views
Why is there less latency and jitter when there is additional high bandwidth traffic between two computers with Ubuntu 22.04 installed on them?
I have two computers that are connected via an Ethernet cable with Ubuntu 22.04 installed on them. I have a client on computer A) which is sending UDP packets to a server on computer B) and I am ...
0
votes
0
answers
470
views
berkeley socket programming issues - <netinet.h> not found
My standard socket stuff doesnt work anymore on Ubuntu 20.04.4 - <netinet.h> not found. This then leads to definition errors of sockaddr.
s.c:22:14: error: ‘struct sockaddr’ has no member named ‘...
0
votes
0
answers
84
views
How local socket is differentiated?
In case of multiprocessor environment where IPC is implemented using a sockets How can we make sure each socket is identified.
For example In our environment we have around 14 process and each of them ...
0
votes
1
answer
214
views
crontab - mysqldump is using different socket
First, I have already permanently set the PATH directory of MySQL so I can use it in terminal in any directory. To verify this process, I restarted my computer, open the terminal and use the command ...
0
votes
0
answers
361
views
My Ubuntu 20.04 spits out "logger: socket /dev/log: No such file or directory"
I'm a newbie to Ubuntu. I am trying to run a script that needs access to /dev/log when the following error occurred "logger: socket /dev/log: No such file or directory". Any ideas on how to ...
0
votes
1
answer
1k
views
Which ping-like command to measure lowest-latency possible between two machine?
My task is to measure the network latency between 2 machines (both 1-way and 2-way are OK).
The 2 PCs are in the same room, on the same network, and connected to the same router.
When I use the ping ...
0
votes
1
answer
2k
views
run ip commands without sudo
I am currently writing something that utilizes a usb CAN interface to communicate with a CAN bus. If I switch users to root, the program runs just fine, however, I want to run the program as my local ...
0
votes
0
answers
43
views
Are socket numbers realted to source port numbers
I understand that socket=IP + port number but I was wondering if the internal number a socket has is related to the ephemeral port that is chosen for outgoing TCP connections?
For example this is from ...
1
vote
1
answer
380
views
Why does KeePassXC creates a socket file in tmp folder
Im new to Ubuntu. Just started to use KeePassXC and noticed when KeepPassXC is launched, it creates a .lock and .socket file in the tmp folder. Im trying to figure out what these files are, what they ...
0
votes
0
answers
21
views
wanted to install 2 socket server with LTS, what will be the process to get latest version with LTS? [duplicate]
my customer is buying dell XW8545 with 2 AMD processors, and asked us to install ubuntu latest version with LTS. please guide...
0
votes
0
answers
894
views
Forward terminal output to localhost port
I am new to tcp. Suppose I have a command to run on terminal that prints output line by line. How do I forward that output to a localhost port so that I can read it with other apps written in Python. ...
1
vote
1
answer
139
views
Game dedicated server application crash/delay after some time on Ubuntu 20.04
I've been running a game server application which, after some time, crashes with all the people connected to it (packets delay for one/two minutes making most people disconnect although the ...
0
votes
0
answers
397
views
Game dedicated server application crash/delay after some time on Ubuntu 18.04 - xfce4 GUI
I've been running a game server application which, after some time, crashes with all the people connected to it (packets delay for one/two minutes making most people disconnect although the ...
2
votes
1
answer
28k
views
ConnectionRefusedError: [Errno 111] Connection refused
Executive Summary.
I get "connection refused 111" when trying to communicate over sockets in Python. When the connection is refused, THE LISTENER STOPS LISTENING. Same problem occurs using ...
0
votes
0
answers
739
views
** socat[8592] E connect(5, AF=1 "\0/tmp/dbus-6LCOz2lgUY", 23): Connection refused**
I am a BEGINNER with Ubuntu (Linux).
I am trying to create an independant network namespace (that I downloaded here : https://github.com/Lekensteyn/netns) in order to capture Internet traffic without ...
1
vote
0
answers
2k
views
zmq.error.ZMQError: Address already in use
I have installed Anaconda (python 3.7) in my ubuntu 20.04 system. However, while running my Python code from the Spyder console, I am getting the following error:
An error occurred while starting the ...
0
votes
2
answers
484
views
Why doesn't MariaDB or MySQL start?
Apparently purging, and/or reinstalling mysql and mariadb can cause conflicts, so tried:
root@mordor:~#
root@mordor:~# sudo apt purge mariadb-server mariadb-client mysql-client mysql-server
Reading ...
0
votes
0
answers
1k
views
How to handle missing mysqld.sock socket?
I am new to MySQL.
I naively tried to uninstall my MySQL from by Ubuntu 20.04 before attempting to reinstall it again.
In order to do this, I followed the instructions listed in the accepted answer in ...
1
vote
0
answers
191
views
Cannot open chromium neither by the icon nor by the terminal, the following message appears:
$ chromium-browser
error: cannot communicate with server: Post http://localhost/v2/snapctl: dial unix /run/snapd-snap.socket: socket: permission denied
Trace/breakpoint trap (core dumped)
I will ...
1
vote
1
answer
523
views
Generate a dir for unix sockets WITHOUT systemd
In normal Ubuntu I used to create a dir for Unix sockets as follows (say for project foo):
Create a systemd script in: /usr/lib/tmpfiles.d/foo.conf
Place the following code in the script:
/run/foo ...
0
votes
1
answer
129
views
Communication between two netcats
Guys why is this happening:
I launch this on one console nc -l 5000 -e /bin/bash
And this on another one on the same pc nc localhost 5000
But it shows connection refused!
Why is this happening and ...
7
votes
3
answers
13k
views
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 ...
0
votes
1
answer
628
views
Cannot open sockets after suspend
When I boot my computer everything works fine, but after resuming from suspend applications are not able to open new local sockets. My connection and DNS are fine. I can ping domains. I can browse ...
3
votes
5
answers
11k
views
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 ...
4
votes
0
answers
5k
views
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 socket
[...
1
vote
1
answer
4k
views
outward traffic blocked
So I have this web server which is accepting incoming traffic and is able to serve back replies.
However, if the server has to initiate any kind of traffic (icmp/tcp..) it fails:
Its been up for > 600 ...
3
votes
1
answer
3k
views
Communicating via a local socket or named pipe
I'm reading a book that is related SSH. I can't figure out what this sentence means.
SSH clients communicate with the agent via a local socket or named
pipe whose filename is stored in an ...
3
votes
2
answers
6k
views
Clamav-daemon on Ubuntu 16.04.6 LTS: Why is clamd socket file not created in /var/run/clamav?
On Ubuntu 18.04 server a socket file is created when starting clamav-daemon without problem. On an older server using the 16.04.6 LTS the socket file is just not created whatever I tried. Even I ...
4
votes
1
answer
448
views
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 ...
1
vote
1
answer
1k
views
How to send packets at 512 nano sec delay using Socket Programming and UDP socket
Using SOCK_DGRAM for UDP sockets
All packets are 22 bytes in length (ie 64 including headers)
client.c
...
no_of_packets--;
sprintf(buf, "#:!0 rem");
sprintf(buf, format , buf);
...
-1
votes
1
answer
1k
views
Stop socket connects (force)
Can you help me to close socket connection force.
I have PHP script which works like listener at port 1234
But some times i need to relaunch this script. So i'm doing "killall php" and then "php ...
0
votes
1
answer
64
views
How to make an outgtoing TCP connection through specified netwrok interface?
Is there a way to implement in C program a next feature: it's need to making outgoing TCP connections through specified network interface? as example:
eth0 - 172.16.0.1
eth1 - 192.168.1.1
In some ...
2
votes
1
answer
10k
views
Failing to Start gunicorn.service using systemd
gunicorn.socket
[Unit]
Description=gunicorn socket
[Socket]
ListenStream=/run/gunicorn.sock
[Install]
WantedBy=sockets.target
gunicorn.service
[Unit]
Description=gunicorn daemon
...
1
vote
1
answer
1k
views
#include <SFML/Network.hpp> not found
Can someone help me out with this error. Trying to program a network scanner
cppns.cpp:2:10: fatal error: SFML/Network.hpp: No such file or directory
#include <SFML/Network.hpp>
^~~~~...
0
votes
0
answers
45
views
Question about TCP/IP socket data transportation time
I have a problem that I have to test a TCP/IP connection beetween two computers. My setup is two computers without a DHCP router, both computers are Ubuntu 16.04 and I use a 128 kb message as a test. ...
0
votes
1
answer
149
views
I am new to computer, so I try to install LAMP in ubuntu 18.04. and this is my problem, please help the Masters
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Does have any idea?
1
vote
1
answer
929
views
Problem in reading from socket
I have a spark streaming program, that reads data from a socket I have craeted using:
nc -lk 9999
The program reads the data from socket and exclude the "Error" messages. When I write manually in ...
0
votes
1
answer
334
views
Import system log files into local socket
I have coded a single program in spark to receive data from a local socket and capture lines that has the "Error" in them. I write manually in terminal:
$ nc -lk 9999
Error: some error message
...
1
vote
0
answers
1k
views
nslookup working fine but ruby http call throwing error - getaddrinfo: Try again (SocketError)
nslookup and dig are resolving the address but ruby program throwing error.
here is the stack trace
10: from /usr/local/bundle/gems/rest-client-2.0.2/lib/restclient.rb:67:in `get'
9: from /usr/...
1
vote
2
answers
552
views
Wrap tcp listener script so that it uses a sock file instead
I have a program when run, starts listing on on port 12345
$ ./cool_script.pl
My linux administrator says it's against the policy to open ports. He says I'm allowed to use ~/cool_script.sock (unix ...
0
votes
0
answers
6k
views
internet very slow speedtest fails with socket errors
We changed ISP's recently, & I notice that the ubuntu computer is having a lot of difficulty now with the internet. It frequenly hangs in the middle of a download.
When I visit speedtest.net on a ...
1
vote
1
answer
1k
views
how to send data from virtual machine to host
I have a virtual machine (Ubuntu) and I need to send data through socket communication to my host PC (Ubuntu as well).
Is there a way to do it?
I found out that the localhost of the PC and VM are the ...
0
votes
1
answer
2k
views
mysqld directory disappears after using sudo service mysql stop
Recently upgraded to 16.04 from 14.04. Apache2 works and PHP client works. But /var/run/mysqld goes missing after stopping or restarting MySQL service. Tried to uninstall MySQL 5.7 and reinstall, and ...