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

cURL error 60: SSL certificate problem: certificate has expired #60

Closed
kunalbca33 opened this issue Oct 2, 2021 · 36 comments
Closed

cURL error 60: SSL certificate problem: certificate has expired #60

kunalbca33 opened this issue Oct 2, 2021 · 36 comments
Assignees

Comments

@kunalbca33
Copy link

Please check my screenshot.

I am getting error in pulling data from platform.sh.
image

@chris-archer-whisky
Copy link

I also get this after updating to the latest version of lando v3.4.1

@markb-wa
Copy link

markb-wa commented Oct 4, 2021

This is actually a bug, and has been raised with Platform.sh. See https://platformsh.slack.com/archives/C0JHEUHQD/p1633335889212500.

Also referenced in the following Github issue https://github.com/lando/lando/issues/3162. See https://github.com/lando/lando/issues/3162#issuecomment-932225080 and https://github.com/lando/lando/issues/3162#issuecomment-932229020

Edit @ 12:31: Corrected spelling.

@mttkng
Copy link

mttkng commented Oct 4, 2021

Hard to work out where the issue lies at the moment — Lando or PSH.

Platform CLI commands work with no issue but Lando commands such as lando pull still give the SSL problem.

@kunalbca33
Copy link
Author

I also get this after updating to the latest version of lando v3.4.1

Will it solve if we downgrade the lando version?

@labboy0276
Copy link
Sponsor Contributor

labboy0276 commented Oct 5, 2021

@pirog I can replicate. I used lando from source.

Commands I ran (selected p.sh recipe on init):

lando init
lando start
lando pull

My verbose output is in this gist: https://gist.github.com/labboy0276/2e5e736da961bf901c5ec4c9537d55d6

@pirog
Copy link
Sponsor Member

pirog commented Oct 5, 2021

@labboy0276 cool. lets screen share and work on it 2GeThA

@AlexBorsody
Copy link

Will downgrading solve the issue?

@pirog
Copy link
Sponsor Member

pirog commented Oct 5, 2021

@AlexBorsody the Lando version shouldn't matter. The issue is inside the images used in the Platform.sh recipe which are managed and maintained by them, not Lando.

We are working with them to resolve but it's not trivial.
We are also working to see if there is something we can do on the Lando side as a short term workaround but this is also not trivial because of how the Platform.sh images, rightly, work.

@pirog
Copy link
Sponsor Member

pirog commented Oct 5, 2021

Just an update here.

We are going to roll a new Lando release today with a workaround for this. This should at least get people using the platformsh recipe back up and running until we can figure out a better long term solution with the Platform.sh crew.

However, as an added bonus: GitHub Actions is currently down/degraded so we are blocked on deploying this until it comes back up.

@kunalbca33
Copy link
Author

@pirog Thank you for update

@labboy0276
Copy link
Sponsor Contributor

3.4.2 has just been released to address this issue. Can you please try that version and see if it resolves this issue?

@kunalbca33
Copy link
Author

Thank you for fast update on this issue. It's working now.

@pirog
Copy link
Sponsor Member

pirog commented Oct 5, 2021

Props to @labboy0276 for the deep linux skills required to get this workaround rolling!!!

@crevillo
Copy link

crevillo commented Oct 6, 2021

Sadly is not working for me. I'm a bit new to lando though. I can confirm I have 3.4.2 in place and I still see this error with a different url though.

image

Certificate looks valid if I do a curl from my host.

Maybe this is something to be fixed in other place?

@pirog
Copy link
Sponsor Member

pirog commented Oct 6, 2021 via email

@crevillo
Copy link

crevillo commented Oct 6, 2021

tried, but still same...

@DavidPetit
Copy link

Hi, the 3.4.2 fixes this issue but it creates a new one. Drush does not work anymore:
lando drush [preflight] Drush::$container is not initialized yet. \Drush::setContainer() must be called with a real container.

@pirog
Copy link
Sponsor Member

pirog commented Oct 6, 2021

@crevillo can you share your platform config so we can try to replicate?

@DavidPetit run lando ssh -u root -c "chmod 777 /tmp" inside the offending application and see if that helps?

@labboy0276 i think at the end of your hackalicious script we need to ensure that /tmp is set correctly. Seems like its perms are being changed.

@crevillo
Copy link

crevillo commented Oct 6, 2021

@pirog do you mean my .platform.app.yaml?
if so you can get it from https://github.com/ibexa/post-install/blob/main/resources/platformsh/ibexa-oss/3.3/.platform.app.yaml

@pirog
Copy link
Sponsor Member

pirog commented Oct 6, 2021

@crevillo ahhh is see, so you are getting the error on the initial lando start|lando rebuild when the build hook is running and not on the lando pull?

@crevillo
Copy link

crevillo commented Oct 6, 2021

yeah, that's it, @pirog

@pirog
Copy link
Sponsor Member

pirog commented Oct 6, 2021

@crevillo got it. makes WAY more sense to me now.

We are doing ANOTHER hotfix release which does our hackyworkaround BEFORE build steps and also resolves the issue @DavidPetit. I think that should get you both back on the righteous path to dev nirvana.

@crevillo
Copy link

crevillo commented Oct 6, 2021

sounds good! thanks.

@pirog
Copy link
Sponsor Member

pirog commented Oct 6, 2021

@crevillo @DavidPetit try this prerelease out and let us know if it resolves the issues for you?
https://github.com/lando/lando/releases/tag/v3.4.3

@crevillo
Copy link

crevillo commented Oct 6, 2021

sorry which one? do you have a link?

@pirog
Copy link
Sponsor Member

pirog commented Oct 6, 2021

@crevillo updated comment to include link to prerelease

@crevillo
Copy link

crevillo commented Oct 6, 2021

Working now at least in that part!. Thanks a lot. If I find something else I'll back here.

@pirog
Copy link
Sponsor Member

pirog commented Oct 6, 2021

Awesome! Appreciate the quick feedback so we can get this hack working as a good-enough interim solution!

@kilik047
Copy link

kilik047 commented Oct 6, 2021

Got the issue with drush also, and the prerelease fix it.
Awesome!!

@pirog
Copy link
Sponsor Member

pirog commented Oct 6, 2021

HUZZAH!

@DavidPetit
Copy link

@pirog
This pre-release works well (both lando pull and lando drush). Thanks!

@nlighteneddesign
Copy link

I'm still seeing this issue on 3.4.2 I am not using the platform recipe, just drupal8 and I am installing the cli in the container manually

@AaronFeledy
Copy link
Member

@nlighteneddesign Have you run a lando rebuild since updating?

@kunalbca33
Copy link
Author

Site was working good after updating to latest version. But suddenly start showing array as output for Drupal site.
image

@nlighteneddesign
Copy link

@nlighteneddesign Have you run a lando rebuild since updating?

Updating to 3.4.3 and then destroying and restarting worked. Thanks!

@jmalott
Copy link

jmalott commented Oct 12, 2021

Yeah downloading 3.4.3 and doing a rebuild worked for me. On OSX.

@rtfm-47 rtfm-47 transferred this issue from lando/lando Oct 26, 2021
@pirog pirog self-assigned this Oct 29, 2021
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