Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The container fails to build the wireguard package (at least over here). #188

Open
seemebreakthis opened this issue Jan 21, 2024 · 1 comment

Comments

@seemebreakthis
Copy link

seemebreakthis commented Jan 21, 2024

Description
I have built the synobuild image, but when I invoke this command: "sudo docker run --rm --privileged --env PACKAGE_ARCH=geminilake --env DSM_VER=7.2 -v $(pwd)/artifacts:/result_spk synobuild", I get the error below:

wget https://git.zx2c4.com/wireguard-linux-compat/snapshot/wireguard-linux-compat-1.0.20220627.tar.xz
--2024-01-21 18:47:30--  https://git.zx2c4.com/wireguard-linux-compat/snapshot/wireguard-linux-compat-1.0.20220627.tar.xz
Resolving git.zx2c4.com (git.zx2c4.com)... 86.109.7.149, 2604:1380:45f1:e200::3
Connecting to git.zx2c4.com (git.zx2c4.com)|86.109.7.149|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-xz]
Saving to: 'wireguard-linux-compat-1.0.20220627.tar.xz'

     0K .......... .......... .......... .......... .......... 2.87M
    50K .......... .......... .........                        66.9M=0.02s

2024-01-21 18:47:31 (4.45 MB/s) - 'wireguard-linux-compat-1.0.20220627.tar.xz' saved [81260]

tar -xf wireguard-linux-compat-1.0.20220627.tar.xz
xz: (stdin): Unexpected end of input
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

Steps to reproduce
Even when I run the command manually on my NAS:

wget https://git.zx2c4.com/wireguard-linux-compat/snapshot/wireguard-linux-compat-1.0.20220627.tar.xz

I get a file that's exactly "81260" bytes in size, and it doesn't untar properly.

When I tried downloading this file from my Windows PC via Firefox by simply entering the URL, it consistently requires several attempts before the file can eventually be downloaded. And the size of the file is actually "264016" bytes in size.

Expected behavior
The container can complete this step wget https://git.zx2c4.com/wireguard-linux-compat/snapshot/wireguard-linux-compat-1.0.20220627.tar.xz


I actually have a local copy of the file because I can get Firefox to download it albeit with failed attempts before it can successfully be donwloaded. Can anyone tell me how to work around this problem and build an image that grabs this file elsewhere when the step is reached (so I can feed the file to the container instead of it trying to get the file from https://git.zx2c4.com/wireguard-linux-compat/snapshot/wireguard-linux-compat-1.0.20220627.tar.xz)?

@seemebreakthis
Copy link
Author

Update: Finally compiled successfully with a workaround (that's only possible as I happen to run a web server myself).

Both
https://git.zx2c4.com/wireguard-linux-compat/snapshot/wireguard-linux-compat-1.0.20220627.tar.x
and
https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-1.0.20210914.tar.xz

Simply cannot be downloaded successfully by the container. I even tried with the container behind a VPN provider to mimic connecting from various countries, but no good. There is clearly a problem currently with git.zx2c4.com from what I can tell.

Like I said, I could download these two files successfully with a desktop browser and after making numerous failed attempts. So I ended up hosting these 2 files in my own file server, then change the "Makefile" to change the URL from git.zx2c4.com to myownserver.com, before building the image then creating the container to make the .spk installation file.

But the problem remains that git.zx2c4.com seems to be super unstable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant