vchrizz / ER-wizard-WireGuard

WireGuard Wizard for Ubiquiti EdgeMAX Devices supporting Wizards
GNU General Public License v3.0
93 stars 6 forks source link

Fails to download WireGuard package #15

Closed avocadosalsa closed 1 year ago

avocadosalsa commented 1 year ago

When setting up the wizard for the first time, it fails to download WireGuard. The following is from /config/user-data/wireguard/wireguard-wizard.log:

2023-02-18/19:38:47.073770259 [wizard] WireGuard wizard found at /config/wizard/feature/WireGuard/wizard-rundpkg-query: no packages found matching wireguard
2023-02-18/19:38:47.138133883 [wizard] wireguard package not installed! need to install packages.
2023-02-18/19:38:47.142840585 [installer] Starting installation of WireGuard from /config/user-data/wireguard/ ...
2023-02-18/19:38:47.149796244 [installer] check if we are online (if we can reach github.com) ...
2023-02-18/19:38:47.409827086 [installer] online-check succeeded ...
2023-02-18/19:38:47.413813929 [installer] Check system where we are running ...
2023-02-18/19:38:47.429347466 [installer] Detected EdgeRouter e300 system ...
2023-02-18/19:38:47.455051436 [installer] Detected EdgeOS version v1 ...
2023-02-18/19:38:47.459176829 [installer] Checking for e300-v1 deb-file in /config/user-data/wireguard ...
2023-02-18/19:38:47.475038506 [installer] WireGuard deb-file not found, need to download from latest release ...
error: test is not defined
.assets[].browser_download_url | select(test("e300-v1"))
                                        ^^^^
1 compile error
2023-02-18/19:38:47.799898809 [installer] Download of WireGuard starting from  ...
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
2023-02-18/19:38:47.849050086 [installer] download done.
2023-02-18/19:38:47.853040301 [installer] Installing WireGuard for e300-v1 ...
dpkg: error processing e300-v1*.deb (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
 e300-v1*.deb

I was able to work around this issue by manually downloading the .deb package to the /config/user-data/wireguard directory.

vchrizz commented 1 year ago

Please check out v1.7-20230916. This issue should now be fixed.

avocadosalsa commented 11 months ago

This is still an issue so I opened a PR to address it.