runfalk / synology-wireguard

WireGuard support for some Synology NAS drives
MIT License
919 stars 131 forks source link

SPK Fails to install on DS218 (GUI and CLI) #103

Open tunloop opened 2 years ago

tunloop commented 2 years ago

Upgraded my DSM from 6.2 to 7 and not surprisingly it wiped out the kernel module. I uninstalled the wireguard package and went to reinstall, but Synology wont take the new SPK.

uname -a 4.4.180+ #41890 SMP Thu Jul 15 03:42:46 CST 2021 aarch64 GNU/Linux synology_rtd1296_ds218

ash-4.4# sudo synopkg install /tmp/WireGuard-rtd1296-1.0.20201221.spk {"error":{"code":0},"results":[{"action":"install","beta":false,"betaIncoming":false,"error":{"code":261,"description":"invalid package info content"},"installReboot":false,"installing":true,"language":"enu","last_stage":"prepare_install","package":"WireGuard","packageName":"WireGuard","spk":"/tmp/WireGuard-rtd1296-1.0.20201221.spk","stage":"install_failed","success":false,"username":""}],"success":false}

Not sure what is going on here.

tunloop commented 2 years ago

Compiled my own version of the package for rtd1296 and dsm 7.0. Package installs but fails to start. Can't even install the debug spk.

sudo synopkg install WireGuard-rtd1296-1.0.20210606.spk {"error":{"code":0},"results":[{"action":"install","beta":false,"betaIncoming":false,"error":{"code":0},"finished":true,"installReboot":false,"installing":true,"language":"enu","last_stage":"postreplace","package":"WireGuard","packageName":"WireGuard","pid":13270,"spk":"WireGuard-rtd1296-1.0.20210606.spk","stage":"installed_and_stopped","status":"stop","success":true,"username":""}],"success":true}

sudo synopkg start WireGuard {"action":"prepare","error":{"code":272,"description":"Failed to run script, script=[start]"},"stage":"prepare","success":false}

synopkg install WireGuard-rtd1296-1.0.20210606_debug.spk {"error":{"code":0},"results":[{"action":"install","beta":false,"betaIncoming":false,"error":{"code":261,"description":"package does not have preupgrade / postupgrade script"},"installReboot":false,"installing":true,"language":"enu","last_stage":"prepare_install","package":"WireGuard","packageName":"WireGuard","spk":"WireGuard-rtd1296-1.0.20210606_debug.spk","stage":"install_failed","success":false,"username":""}],"success":false}

ben-ba commented 2 years ago

@erasedhammer99

The WireGuard package is installed. The installation of the debug versions failed because, the "normal" one is already installed.

see: https://github.com/runfalk/synology-wireguard#installation after installation run sudo /var/packages/WireGuard/scripts/start

Geier97332 commented 2 years ago

Hi @erasedhammer99 ,

have you solved the problem? I have a DS118 with the same CPU and I want to upgrade to DSM 7 without losing my working wireguard server. Can you send me the working SPK, because I don't know how to build my own.

Thanks!

tunloop commented 2 years ago

Hi @erasedhammer99 ,

have you solved the problem? I have a DS118 with the same CPU and I want to upgrade to DSM 7 without losing my working wireguard server. Can you send me the working SPK, because I don't know how to build my own.

Thanks!

Upgrading will blow away the existing wireguard no matter what (config files will stay).

Compiling your own following the instructions on the main page isn't too bad,I would recommend doing that. I can give you the spk I have, but in the future I wouldn't recommend getting software packages from people on the internet lol

That file is not actually a .gz (just to be able to upload here), so just rename it back to an spk. WireGuard-Synology-rtd1296-1.0.20210606.spk.gz .

Geier97332 commented 2 years ago

Thank you! I'll try it when I have time for this!