You are not logged in.

#1 2020-09-28 13:41:05

RichKat
Member
Registered: 2020-08-15
Posts: 20

Makepkg fails with Handshake Failure

Makepkg seems to work until what seems like the very last part, when the process fails with Handshake Failure. I've tried running it as

makepkg -sic 

and

makepkg -si

Really not sure what the problem is - maybe I've failed at connecting to my network? I've downloaded and trusted the certificate, as well as logged in on a login page.
The specific package in question is mullvad-vpn, if that matters.

The full error:

Error: Failed to fetch relay list
Caused by: Hyper error
Caused by: error trying to connect: received fatal alert: HandshakeFailure
Caused by: received fatal alert: HandshakeFailure
==> ERROR: A failure occurred in build().
    Aborting...

Edit: This happens after

Running `target/debug/relay_list`

Last edited by RichKat (2020-09-28 14:24:35)

Offline

#2 2020-09-28 13:55:24

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: Makepkg fails with Handshake Failure

This isn't a makepkg failure, it's a failure of a command in the PKGBUILD, I'm guessing it's happening when it's running ./update-relays.sh?

Offline

#3 2020-09-28 14:17:10

RichKat
Member
Registered: 2020-08-15
Posts: 20

Re: Makepkg fails with Handshake Failure

I'm guessing it's happening when it's running ./update-relays.sh?

Almost, it happens when it runs

`target/debug/relay_list`

I'll edit the OP to reflect this

Last edited by RichKat (2020-09-28 14:24:10)

Offline

#4 2020-09-28 14:59:07

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: Makepkg fails with Handshake Failure

The https://aur.archlinux.org/packages/mullvad-vpn/ PKGBUILd does not contain a direct call to `target/debug/relay_list`
Package builds for me in a clean chroot.

Offline

#5 2020-09-28 18:09:56

RichKat
Member
Registered: 2020-08-15
Posts: 20

Re: Makepkg fails with Handshake Failure

Oh dear, what have I done? I think the original comment was right, looking at the file it seems like it breaks at ./update-relays.sh, Running `target/debug/relay_list is just what it says in the terminal, or possibly the first bit of that? Either way, that seems to be the part that breaks.

As the error is "Handshake Failure" I thought it might be a problem with my network connection. I've followed the wiki and things for setting up the right connection, my network is certificate-guarded WPA2 I think, it's quite likely I got confused at some point, but I have no idea where exactly I went wrong.

Offline

#6 2020-09-28 18:56:09

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: Makepkg fails with Handshake Failure

go / cargo downloads dependencies from the internet during build before ./update-relays.sh is called so there is network connectivity.

cat ./update-relays.sh
#!/usr/bin/env bash

echo "Updating relay list..."
set -e
cargo run -p mullvad-rpc --bin relay_list > dist-assets/relays.json

Offline

#7 2020-09-28 19:36:39

RichKat
Member
Registered: 2020-08-15
Posts: 20

Re: Makepkg fails with Handshake Failure

... so there is network connectivity.

So... what could the issue be?

Offline

#8 2020-09-28 21:51:39

seth
Member
Registered: 2012-09-03
Posts: 49,993

Re: Makepkg fails with Handshake Failure

Tons of stuff - https://aboutssl.org/fix-ssl-tls-handsh … led-error/

If "mullvad-rpc" has a debug falg, I'd invoke that, but because of #4 and assuming you're running an up-to-date archlinux and there's no nefarious interference: your system time…

Offline

#9 2021-01-22 16:57:07

OXDBXKXO
Member
Registered: 2021-01-22
Posts: 1

Re: Makepkg fails with Handshake Failure

Really sorry to necrobump this topic, but this is actually the only thread on the internet about this issue. I tried using different internet access points but none worked. What worked for me was to install the mullvad .deb with debtap. While connected to the VPN, the script managed to update the relay_list.

Offline

Board footer

Powered by FluxBB