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

Init links to an HTTPS version, even if Certbot was unsuccessful #6

Closed
colmtroy opened this issue Sep 16, 2021 · 4 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@colmtroy
Copy link

Howdy!
Was excited to give Sail a try but hit an immediate error with my first try.
Running sail 0.9.12 on macOS 11.2.2 (m1 macbook air)

sail init ran successfully but when I open the WP url https://b0dd8f888b61a6a6.sailed.io/ it's clear nginx isn't running correctly.

Any ideas as to what the issue might be?

@kovshenin
Copy link
Owner

Hi @colmtroy, thanks so much for giving Sail a try!

I'm looking at the provision logs for b0dd8f888b61a6a6 on the API server and it looks like Let's Encrypt failed to issue an SSL certificate for the domain, the service was down for maintenance. And indeed, the site works without HTTPS right now, so Nginx is running for sure. Here's what you could do:

  1. You can try and re-issue an SSL certificate for the internal domain:
sail domain make-https b0dd8f888b61a6a6.sailed.io
  1. OR If you haven't put anything worthy on the droplet yet, you can try to destroy and re-provision it:
sail destroy
sail init --force

I'll keep this issue open for now and probably add an extra check on the API server and some verbosity, for when SSL fails, to make sure users aren't trying to access the site via HTTPS if it hasn't received a valid certificate yet.

Let me know if this doesn't work for you and thanks so much for reporting this!

@kovshenin kovshenin self-assigned this Sep 16, 2021
@kovshenin kovshenin added the bug Something isn't working label Sep 16, 2021
@kovshenin kovshenin changed the title nginx error Init links to an HTTPS version, even if Certbot was unsuccessful Sep 16, 2021
@colmtroy
Copy link
Author

@kovshenin make-https did the job - thanks for the quick reply!

@kovshenin
Copy link
Owner

Glad it worked, let me know if you run into any other trouble!

@kovshenin
Copy link
Owner

Should be fixed in #14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants