5
0
Fork
You've already forked vpn-server-node
0

improve error message "unable to connect" #2

Open
opened 2024年05月24日 22:30:01 +02:00 by fkooman · 2 comments
CONNECT: unable to connect

We can do better!

Lines 58 to 60 in 0e8c142
if (!$httpResponse->isOkay() || 'OK' !== $httpResponse->body()) {
throw new ConnectionException('unable to connect');
}
``` CONNECT: unable to connect ``` We can do better! https://codeberg.org/eduVPN/vpn-server-node/src/commit/0e8c1426bf064f91165764ecd4564021fd60946f/src/Connection.php#L58-L60
Author
Owner
Copy link

The error is logged in the portal/controller actually:

} catch (NodeApiException $e) {
$this->logger->warning($e->getMessage());
return new Response('ERR');
}

Perhaps we should pass that on to the node?

The error is logged in the portal/controller actually: https://codeberg.org/eduVPN/vpn-user-portal/src/commit/7f044c29c76f675ab3474354bf8fc027bebde9c0/src/Http/NodeApiModule.php#L103-L107 Perhaps we should pass that on to the node?
Author
Owner
Copy link

We had a log entry every 5 seconds for the same CN. This is a client that keeps reconnecting with the same certificate that is no longer valid...

On the portal/controller:

$ sudo journalctl -f -t vpn-user-portal
We had a log entry every 5 seconds for the same CN. This is a client that keeps reconnecting with the same certificate that is no longer valid... On the portal/controller: ``` $ sudo journalctl -f -t vpn-user-portal ```
Sign in to join this conversation.
No Branch/Tag specified
v3
v2
v1
3.2.3
3.2.2
3.2.1
3.2.0
3.1.0
3.0.7
3.0.6
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
2.3.0
3.0.0
2.2.13
2.2.12
2.2.11
2.2.10
2.2.9
2.2.8
2.2.7
2.2.6
2.2.5
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.1.2
1.1.1
1.1.0
1.0.22
1.0.21
1.0.20
1.0.19
1.0.18
1.0.17
1.0.16
1.0.15
1.0.14
1.0.13
1.0.12
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
eduVPN/vpn-server-node#2
Reference in a new issue
eduVPN/vpn-server-node
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?