[GH-ISSUE #290] Misleading Error When sudo Command is Absent on Ubuntu Server #81

Closed
opened 2026-10-13 20:12:20 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @eddir on GitHub (Aug 19, 2023).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/290

Hello. I have encountered an issue while trying to set up Amnezia on a fresh Ubuntu server that didn't have the sudo command installed. The error message I received was misleading, indicating that the server port is already in use. However, the actual issue was the absence of the sudo command on the server.

To resolve this issue, I had to manually install sudo using apt install sudo.

Here are the logs from my session:

2023-08-19 21:26:12 info libpng warning: iCCP: known incorrect sRGB profile
2023-08-19 21:26:13 warning Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
...
2023-08-19 21:26:52 debug ServerController::setupContainer amnezia-openvpn-cloak
2023-08-19 21:26:52 debug ServerController::Run script
2023-08-19 21:26:52 debug sudo lsof -i -P -n | grep -E ':27017 ' | grep -i tcp | grep LISTEN
2023-08-19 21:26:52 debug SSH chanel opened
2023-08-19 21:26:53 debug ServerController::runScript finished
2023-08-19 21:26:53 debug doInstallAction finished with code ErrorCode::5("Server port already used. Check for another software")

It would be helpful if Amnezia could handle this scenario better, either by providing a more accurate error message or by checking for the existence of sudo and installing it if necessary. I suppose the same for lsof and fuser.

Thank you.

Originally created by @eddir on GitHub (Aug 19, 2023). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/290 Hello. I have encountered an issue while trying to set up Amnezia on a fresh Ubuntu server that didn't have the `sudo` command installed. The error message I received was misleading, indicating that the server port is already in use. However, the actual issue was the absence of the `sudo` command on the server. To resolve this issue, I had to manually install `sudo` using `apt install sudo`. Here are the logs from my session: ``` 2023-08-19 21:26:12 info libpng warning: iCCP: known incorrect sRGB profile 2023-08-19 21:26:13 warning Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations. ... 2023-08-19 21:26:52 debug ServerController::setupContainer amnezia-openvpn-cloak 2023-08-19 21:26:52 debug ServerController::Run script 2023-08-19 21:26:52 debug sudo lsof -i -P -n | grep -E ':27017 ' | grep -i tcp | grep LISTEN 2023-08-19 21:26:52 debug SSH chanel opened 2023-08-19 21:26:53 debug ServerController::runScript finished 2023-08-19 21:26:53 debug doInstallAction finished with code ErrorCode::5("Server port already used. Check for another software") ``` It would be helpful if Amnezia could handle this scenario better, either by providing a more accurate error message or by checking for the existence of `sudo` and installing it if necessary. I suppose the same for `lsof` and `fuser`. Thank you.
Author
Owner

@pokamest commented on GitHub (Feb 24, 2024):

Fixed, please update to the latest release.

<!-- gh-comment-id:1962325723 --> @pokamest commented on GitHub (Feb 24, 2024): Fixed, please update to the latest release.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
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
amnezia-vpn/amnezia-client#81
No description provided.