[GH-ISSUE #852] Had the same issue, here's what worked for me: #226

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

Originally created by @rasolAAaa on GitHub (Jun 14, 2024).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/852

Had the same issue, here's what worked for me:

After running Linux client to configure the server I've noticed that script runs

CUR_USER=$(whoami)
sudo mkdir -p /opt/amnezia/amnezia-awg
sudo chown $CUR_USER /opt/amnezia/amnezia-awg

After that, the installation fails with SSH error 300, while the stdout says

"SCP: Warning: status code 1 received: scp: /opt/amnezia/amnezia-awg/Dockerfile: No such file or directory\n"

Indeed, the folder /opt/amnezia does not exist. Let's create it manually then! Just run on your target server this:

export CUR_USER=$(whoami) && sudo mkdir -p /opt/amnezia/amnezia-awg && sudo chown $CUR_USER /opt/amnezia/amnezia-awg

Make sure you log in with the same user as you've put in the AmneziaVPN client. Can't say if that can cause issues, but I believe the CUR_USER variable is there for a reason

After that the error 300 is gone and installation process goes as usual. Not sure why this happens, hope this helps someone

_Originally posted by @NastyaGrifon in https://github.com/amnezia-vpn/amnezia-client/issues/845#issuecomment- [ ] -2168```

  • # > ```430~~~~019166_
Originally created by @rasolAAaa on GitHub (Jun 14, 2024). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/852 Had the same issue, here's what worked for me: After running Linux client to configure the server I've noticed that script runs ``` CUR_USER=$(whoami) sudo mkdir -p /opt/amnezia/amnezia-awg sudo chown $CUR_USER /opt/amnezia/amnezia-awg ``` After that, the installation fails with SSH error 300, while the stdout says ``` "SCP: Warning: status code 1 received: scp: /opt/amnezia/amnezia-awg/Dockerfile: No such file or directory\n" ``` Indeed, the folder /opt/amnezia does not exist. Let's create it manually then! Just run on your target server this: ``` export CUR_USER=$(whoami) && sudo mkdir -p /opt/amnezia/amnezia-awg && sudo chown $CUR_USER /opt/amnezia/amnezia-awg ``` Make sure you log in with the same user as you've put in the AmneziaVPN client. Can't say if that can cause issues, but I believe the CUR_USER variable is there for a reason After that the error 300 is gone and installation process goes as usual. Not sure why this happens, hope this helps someone _Originally posted by @NastyaGrifon in https://github.com/amnezia-vpn/amnezia-client/issues/845#issuecomment- [ ] -2168``` - [ ] # > ```430~~~~019166_
Author
Owner

@rasolAAaa commented on GitHub (Jun 14, 2024):

  • [سلام باتشکر فراوان از برنامه خ عالی تان
<!-- gh-comment-id:2168696823 --> @rasolAAaa commented on GitHub (Jun 14, 2024): - [ ] [سلام باتشکر فراوان از برنامه خ عالی تان
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#226
No description provided.