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

Bootstrap hangs on fetching base-19.1.4 #49

Closed
PixelSupreme opened this issue Apr 5, 2019 · 10 comments
Closed

Bootstrap hangs on fetching base-19.1.4 #49

PixelSupreme opened this issue Apr 5, 2019 · 10 comments
Labels

Comments

@PixelSupreme
Copy link

I tried to install opnsense using the bootstrap script. I used a fresh FreeBSD 11.2 install and followed the instructions on the github page. Even then fetch failed to verify any SSL certificate. I set the environment variable SSL_NO_VERIFY_PEER=1 to work around this.

With that the bootstrap script worked, until the installation tries to fetch base-19.1.4 archive. It just seems to try endlessely. I let it run for several hours but no progress.

@fichtner
Copy link
Member

fichtner commented Apr 5, 2019

You can use -i option for insecure, but it shouldn't stall at the end. Verification is not optional once you have all packages (and cert store installed).

@PixelSupreme
Copy link
Author

I did install the ca_root_nss package and verified the symlinks. But fetch couldn't even download from github itself without the 'no verify' workaround.

@fichtner
Copy link
Member

fichtner commented Apr 5, 2019

There may be a proxy in the way or a firewall. The URL is https://pkg.opnsense.org/FreeBSD:11:amd64/19.1/sets/kernel-19.1.4-amd64.txz so can you try this manually?

# fetch https://pkg.opnsense.org/FreeBSD:11:amd64/19.1/sets/kernel-19.1.4-amd64.txz

@PixelSupreme
Copy link
Author

I'm on a weekend trip right now, so going to take a few days before I have access to the box again.

@fichtner
Copy link
Member

fichtner commented Apr 5, 2019

Sure, no problem. Happy to debug this further later. Enjoy the trip. :)

@PixelSupreme
Copy link
Author

PixelSupreme commented Apr 8, 2019

Okay, sorry for the delay but I got back to this issue.

Here's what i got for the fetch command:

# fetch https://pkg.opnsense.org/FreeBSD:11:amd64/19.1/sets/kernel-19.1.4-amd64.txz
Certificate verification failed for /CN=pkg.opnsense.org
34374371912:error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/s3_clnt.c:1269:
fetch: https://pkg.opnsense.org/FreeBSD:11:amd64/19.1/sets/kernel-19.1.4-amd64.txz: Authentication error

This is without the SSL_NO_VERIFY_PEER variable set

@fichtner
Copy link
Member

fichtner commented Apr 8, 2019

I don't know. Partial chain or time out of sync or worst case MITM (proxy in your network). Is ca_root_nss package still installed?

@fichtner
Copy link
Member

fichtner commented Apr 8, 2019

You can also try -v option for more debug output in fetch :)

@PixelSupreme
Copy link
Author

Now this is a bit embarrassing, but after you mentioned time sync as possible issue I checked my settings. It seems my ntp configuration didn't work, at all and time was way off. After manually updating time it works. Well, freebsd newbie here >.<. Thanks for your time anyway.

@fichtner
Copy link
Member

fichtner commented Apr 8, 2019

Yay, no worries, happy to help!

@fichtner fichtner closed this as completed Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants