Closed cyrinux closed 2 years ago
additional step is required for the WireGuard package to start. This is related to preventing packages not signed by Synology from running with root privileges. When installing the package, uncheck the run after installation option. After installing the package, connect to the NAS via SSH and run the sudo /var/packages/WireGuard/scripts/start command.
Description Hi, I maybe miss something, I'm able to build the SPK for DSM7/AppoloLake (for a DS918+ ). I build it from docker on my laptop because i got error with docker from the NAS itself. But then how to install it? I choose it from the "manual" install in package center but the file is "corrupt". What the tips for DSM7 to install selfsigned/build package?
Steps to reproduce Build the SPK, choose it as "manual install" in package center. Error saying file in corrupted.
Expected behavior I can install the SPK
Synology NAS model DS918+
additional step is required for the WireGuard package to start. This is related to preventing packages not signed by Synology from running with root privileges. When installing the package, uncheck the run after installation option. After installing the package, connect to the NAS via SSH and run the sudo /var/packages/WireGuard/scripts/start command.
Hi :) In fact, I can't I install the package at all for the moment. I understand that you describe the next step. The step described to allow all packages in package center settings is not available in dsm7. I can't find this option. Any idea? I don't see this run after installation option also.
Try to install WireGuard from CLI:
sudo synopkg install WireGuard-<arch>-<version>.spk
sudo /var/packages/WireGuard/scripts/start
Of course, replace <arch>
and <version>
with the correct values.
Same issue here. I tried via CLI with:
sudo synopkg install WireGuard-geminilake-1.0.20201221.spk
and got the following error:
{"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":"WireGuard-geminilake-1.0.20201221.spk","stage":"install_failed","success":false,"username":""}],"success":false}
@superslimjimmy Can you share your .spk file?
Hi guys, From my side I got this:
nas# /usr/syno/bin/synopkg install ~cyrinux/WireGuard-apollolake-1.0.20210606.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":"/var/services/homes/cyrinux/WireGuard-apollolake-1.0.20210606.spk","stage":"install_failed","success":false,"username":""}],"success":false}
I'm seeing a similar error here:
$ sudo synopkg install WireGuard-geminilake-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":"WireGuard-geminilake-1.0.20201221.spk","stage":"install_failed","success":false,"username":""}],"success":false}
I'm on a DS220+, trying to use the applicable SPK from the latest stable release: https://github.com/runfalk/synology-wireguard/releases/download/1.0.20201221/WireGuard-geminilake-1.0.20201221.spk
Hey guys, same here:
sudo synopkg install WireGuard-avoton-1.0.20210606.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-avoton-1.0.20210606.spk","stage":"install_failed","success":false,"username":""}],"success":false}
Error Code 261
Hint: under DSM 6 this Wireguard spk was installed, than removed, before i try to install my own DSM 7 Version. -> Solved the dsm6 Wireguard versions wasn't removed fully. now it runs.
Btw: DSM WebGUI output : Unable to update "WireGuard". Invalid file format.
System: DS1817+ avoton, DSM 7.0 spk: WireGuard-avoton-1.0.20210606.spk.zip
Hi guys, From my side I got this:
nas# /usr/syno/bin/synopkg install ~cyrinux/WireGuard-apollolake-1.0.20210606.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":"/var/services/homes/cyrinux/WireGuard-apollolake-1.0.20210606.spk","stage":"install_failed","success":false,"username":""}],"success":false}
Seems that you have the same error as i;
Check if old versions of Wireguard.spk are gone:
sudo synopkg list --name | grep WireGuard
if so; remove it
sudo synopkg uninstall WireGuard
rerun
sudo synopkg install WireGuard.spk
@ben-ba this fix for me, was well the old package not well uninstall/still present but not display. Thanks a lot :)
Description Hi, I maybe miss something, I'm able to build the SPK for DSM7/AppoloLake (for a DS918+ ). I build it from docker on my laptop because i got error with docker from the NAS itself. But then how to install it? I choose it from the "manual" install in package center but the file is "corrupt". What the tips for DSM7 to install selfsigned/build package?
Steps to reproduce Build the SPK, choose it as "manual install" in package center. Error saying file in corrupted.
Expected behavior I can install the SPK
Synology NAS model DS918+