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

better error messages when there are issues with communication with portal/controller #5

Closed
opened 2026年02月12日 10:59:24 +01:00 by fkooman · 1 comment

Example: when a different WireGuard key is already registered for this node, this is the error message:

$ php libexec/server-config.php 
ERROR: request to "http://localhost:8082/node-api.php/server_config/v2" returned HTTP response code "500"
#0 /home/fkooman/Projects/eduVPN-v3/vpn-server-node/libexec/server-config.php(29): Vpn\Node\ConfigWriter->write()
#1 {main}
Example: when a different WireGuard key is already registered for this node, this is the error message: ``` $ php libexec/server-config.php ERROR: request to "http://localhost:8082/node-api.php/server_config/v2" returned HTTP response code "500" #0 /home/fkooman/Projects/eduVPN-v3/vpn-server-node/libexec/server-config.php(29): Vpn\Node\ConfigWriter->write() #1 {main} ```
Author
Owner
Copy link
$ php libexec/server-config.php 
##### Response Code #####
500
##### Begin Response Body #####
{"error":"node \"0\" already registered a public key, but it does not match anymore, delete the existing public key first from \"/var/lib/vpn-user-portal/keys\""}
##### End Response Body #####
``` $ php libexec/server-config.php ##### Response Code ##### 500 ##### Begin Response Body ##### {"error":"node \"0\" already registered a public key, but it does not match anymore, delete the existing public key first from \"/var/lib/vpn-user-portal/keys\""} ##### End Response Body ##### ```
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
No project
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#5
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?