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

error while provisioning fresh box in MacOS #2530

Closed
columbian-chris opened this issue Sep 30, 2021 · 16 comments
Closed

error while provisioning fresh box in MacOS #2530

columbian-chris opened this issue Sep 30, 2021 · 16 comments
Labels

Comments

@columbian-chris
Copy link

I was working on an issue (#2529) and thought I would try an attempt in a fresh VVV box. I installed it but after I initially provisioned it, it threw me errors:

    default: Reading package lists...
    default: E: The repository 'https://deb.nodesource.com/node_14.x focal Release' does not have a Release file.
    default: E: The repository 'https://nginx.org/packages/mainline/ubuntu focal Release' does not have a Release file.
    default:  ! The 'main' provisioner ran into problems, the full log is available at '/var/log/provisioners/2021.09.30_19-59-23/provisioner-main.log'. It completed in 30 seconds.
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

I ssh-ed into the box and noticed that none of the default sites (like one.wordpress.test, etc.) were in the /srv/www/ directory, so clearly the provisioning never reached that point of the process.

I looked at the full log file the error described and it didn't seem to provide anything additional.

@tomjn
Copy link
Member

tomjn commented Sep 30, 2021

Sounds like you had the misfortune of provisioning while Node source had its pants down. It's like surprise guests turning up and ringing the doorbell while you're in the shower covered in soap. All I can suggest is that you wait a little while and try again.

@columbian-chris
Copy link
Author

@tomjn Thanks for the response. I tried again a second ago and still got the same error so I'll give it another try tomorrow.

@tomjn
Copy link
Member

tomjn commented Oct 1, 2021

@columbian-chris we don't have any say or control over Nodesource, so unless you know of an alternative apt source there's nothing that can be done at our end

@tomjn
Copy link
Member

tomjn commented Oct 1, 2021

perhaps destroy and recreate? That it's happening with Nginx too suggests either ISP intervention, terrible luck, or interference

@columbian-chris
Copy link
Author

Yeah sorry, didn't work. I'll give it another try tomorrow after more time has passed. Do you know if Nodesource releases status notes or updates so we can know if they have problems going on?

@JenaMischk
Copy link

JenaMischk commented Oct 1, 2021

Apparently DST Root CA X3 (older Let's Encrypt signed root certificate) expired yesterday, the 30th of September, which resulted in quite some broken things across the web.

For the particular case of nodesource, following nodesource/distributions#1267 and nodesource/distributions#1266 I took these steps:
vagrant ssh
sudo apt-get update
sudo apt-get install ca-certificates
sudo apt-get install libgnutls30

After running these commands vagrant up --provision worked as usual for me, and I'm back on track.

@Mte90
Copy link
Member

Mte90 commented Oct 1, 2021

it is the day of issues of certificates in all t the world, all the systems and services needs updates.

@tomjn
Copy link
Member

tomjn commented Oct 1, 2021

@JenaMischk I'm curious why libgnutls30?

@tomjn
Copy link
Member

tomjn commented Oct 1, 2021

ca-certificates has been added to the main list of apt packages on the develop branch

@columbian-chris
Copy link
Author

Apparently DST Root CA X3 (older Let's Encrypt signed root certificate) expired yesterday, the 30th of September, which resulted in quite some broken things across the web.

For the particular case of nodesource, following nodesource/distributions#1267 and nodesource/distributions#1266 I took these steps: vagrant ssh sudo apt-get update sudo apt-get install ca-certificates sudo apt-get install libgnutls30

After running these commands vagrant up --provision worked as usual for me, and I'm back on track.

This also enabled me to successfully provision.

@shoreline-chrism
Copy link
Contributor

I checked out the develop branch a few minutes before @columbian-chris commented and I still had the same issues with "focal Release doesn't have a release file. Following @columbian-chris' instructions I was able to get my box spun up. @tomjn Maybe more than ca-certificates is needed? I think chris added the libgnutls30 package as well

@shoreline-chrism
Copy link
Contributor

I still had the same issues with "focal Release doesn't have a release file.

I also destroyed the box and tried to run vagrant up on develop with same issues.

@tomjn
Copy link
Member

tomjn commented Oct 1, 2021 via email

@JenaMischk
Copy link

@JenaMischk I'm curious why libgnutls30?

To be fair, it might very well run without it, although I can not test it right now.

On my first try to solve this issue I did install libgnutls30 alone and the errors were not fixed. Only after installing ca-certificates was I able to run the provisioner. So, it is possible that my first attempt did nothing to it, and ca-certificates is enough in itself. But since so many people were referencing both ca-certificates and libgnutls30 in their succesfull attempts to fix the issues at nodesource, I included both.

So, in my steps to fix the provisioner earlier today, I have tested provisioning with libgnutls30 only (failed), then with both libgnutls30 and ca-certificates (succeeded), but never with ca-certificates only. Will test and report as soon as possible.

@shoreline-chrism
Copy link
Contributor

I forgot to link the issue but here's the PR: #2531

@tomjn
Copy link
Member

tomjn commented Oct 18, 2021

I'm closing this as the fix is merged into develop, if you have this issue either switch to the develop branch or update to v3.8+ if it's been released

@tomjn tomjn closed this as completed Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants