YunoHost-Apps / wireguard_ynh

WireGuard VPN software with a web UI configuration companion, packaged for YunoHost.
GNU General Public License v3.0
35 stars 10 forks source link

Install failed on rpi3 #26

Closed narduin closed 3 years ago

narduin commented 3 years ago

Hello,

I tried to install the app on my raspberry pi 3 but it fails. Most of the errors seem to come from dependencies "not going to be installed" or "not installable".

Context

Logs

full logs here

Thanks for helping!

tituspijean commented 3 years ago

Oops yes! I discovered the issue this weekend but forgot the send a patch in the main branches.

tituspijean commented 3 years ago

@narduin the automated tests are failing right now, but I do confirm it works on my RPi4. Can you try it out on yours?

sudo yunohost app install https://github.com/YunoHost-Apps/wireguard_ynh/tree/testing

narduin commented 3 years ago

I will hapily test it but I've never installed a testing branch before. Will I have to remove it to install the main when it's patched?

tituspijean commented 3 years ago

No, no need. Basically it only checks if the current version is lower than the one in the master branch or the one you feed it (does not matter which branch actually). It will automatically update to next available stable version too. ;)

narduin commented 3 years ago

I was able to install the app.

However it does not currently work. Both wg-quick@wg0 and wireguard_ui were stopped. I manually started wg-quick@wg0 but wireguard_ui throws an error:

Jun 30 09:17:21 systemd[1]: Started WireGuard UI.
Jun 30 09:17:21 systemd[1879]: wireguard_ui.service: Changing to the requested working directory failed: Permission denied
Jun 30 09:17:21 systemd[1879]: wireguard_ui.service: Failed at step CHDIR spawning /opt/yunohost/wireguard/wireguard-ui: Permission denied
Jun 30 09:17:21 systemd[1]: wireguard_ui.service: Main process exited, code=exited, status=200/CHDIR
Jun 30 09:17:21 systemd[1]: wireguard_ui.service: Failed with result 'exit-code'.
tituspijean commented 3 years ago

@narduin, can you share the output of ls -la /opt/yunohost/wireguard/?

tituspijean commented 3 years ago

Issue found and fixed in #27. Feel free to reopen if needed.

narduin commented 3 years ago

Latest version installed without problem! Thanks 👍

I can't get it to work but I think it's because the rpi is behind a router with its own firewall/dhcp/etc. ^^