Comments (12)
Can you please execute next command and paste output?:
curl http://localhost:7500/adv
from tang.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (56) Recv failure: Connection reset by peer
It's the same on two different servers running with ubuntu 22.04
from tang.
Sorry, I can not figure out what the problem is.
Which clevis version are you using?
How did you change port number where clevis is reading?
Did you try with other port?
I will try to reproduce this and if I come to a conclusion, I will let you know
from tang.
I changed the port via
/etc/systemd/system/tangd.socket.d/override.conf
[Socket]
ListenStream=
ListenStream=7500
I have tried different ports now. After that the error message is different. Now the message is as following;
url: (7) Failed to connect to vpsmail.de port 7500 after 5 ms: Connection refused
url: (7) Failed to connect to vpsmail.de port 7300 after 5 ms: Connection refused
url: (7) Failed to connect to vpsmail.de port 7200 after 5 ms: Connection refused
I checked with systemctl show tangd.socket -p Listen if tang is listening to the port and this show 7500, 7300 and 7200
How can I see the clevis version?
With
apt-show-versions clevis
I'm getting
18-1ubuntu1
from tang.
Please, post the output of systemctl status tangd.socket
Also, please check the permissions in /var/lib/tang
: ls -ld /var/lib/tang/
from tang.
systemctl status tangd.socket
● tangd.socket - Tang Server socket
Loaded: loaded (/lib/systemd/system/tangd.socket; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/tangd.socket.d
└─override.conf
Active: active (listening) since Sun 2022-11-13 09:46:12 CET; 3 days ago
Listen: [::]:7500 (Stream)
Accepted: 10; Connected: 0;
Tasks: 0 (limit: 4625)
Memory: 0B
CPU: 12ms
CGroup: /system.slice/tangd.socket
Notice: journal has been rotated since unit was started, output may be incomplete.
ls -ld /var/lib/tang/
drwxr-xr-x 1 _tang _tang 0 Nov 13 09:31 /var/lib/tang/
from tang.
The accepted connections did count up as I had the old error curl: (56) Recv failure: Connection reset by peer. Since I changed the port and switched back it does not cound up anymore.
from tang.
Can you execute "curl" with verbose option, to try to see if there is more info there?
curl --verbose http://localhost:7500/adv
Also, check your /etc/hosts, as it is weird that it is trying to resolve localhost to a named host:
Failed to connect to vpsmail.de port 7500
from tang.
curl --verbose http://localhost:7500/adv
- Trying 127.0.0.1:7500...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to localhost (127.0.0.1) port 7500 (#0)
GET /adv HTTP/1.1
Host: localhost:7500
User-Agent: curl/7.81.0
Accept: /
-
Recv failure: Connection reset by peer
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
-
Closing connection 0
curl: (56) Recv failure: Connection reset by peer
from tang.
Sorry, I can not figure out what the issue could be .... ¿do you have firewalld running?
from tang.
Hello, firewalld is running but the effect is the same on localhost (where firewalld has no effect) or when the port is open in firewalld for runtime and permanent configuration. I would assume that a closed port in firewall would not be a connection reset instead there would be no connection at all because the port would not be accessible at al. Currently I'm running Ubuntu 22.04.2.
from tang.
Related Issues (20)
- "Not on the same physical medium" security requirement for Tang server and clients HOT 1
- README.md: 404 on link to Docker container HOT 5
- Tang running in standalone mode is leaving defunct processes after each request is served
- Release version 13
- Include parameter to change URL path prefix where server is listening
- Fedora rawhide container failing due to issues on dnf.conf format HOT 2
- Similar protocol with proof HOT 3
- Github actions related to code (build, coverage) should not be executed on documentation changes
- Release version 14
- [minor] Check for ss before testing
- Avoid clang compiler warning
- Possibly increase adv-standalone test timeout HOT 3
- RFE: Logging?
- Few problems building from v11 source
- Tang doesn't close socket if error occured? HOT 3
- RFE: support arduino build HOT 4
- Reference academic publication of algorithm HOT 3
- Update documentation for 'optional' configurations (SSL/TLS & Authentication)
- Create advertisements offline HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tang.