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

HTTPS setup broken? #786

Closed
joepio opened this issue Jan 5, 2024 · 2 comments
Closed

HTTPS setup broken? #786

joepio opened this issue Jan 5, 2024 · 2 comments
Assignees
Labels
bug Something isn't working server atomic-server

Comments

@joepio
Copy link
Member

joepio commented Jan 5, 2024

Just tried deploying to staging, noticed that HTTPS setup doesn't work:

2024-01-05T16:38:30.239706Z  INFO atomic_server::appstate: Initializing AppState
2024-01-05T16:38:30.239903Z  INFO atomic_server::appstate: Opening database at "/root/.local/share/atomic-data/store"
2024-01-05T16:38:30.323941Z  INFO atomic_server::appstate: Setting default agent
2024-01-05T16:38:30.324933Z  INFO atomic_server::appstate: Default Agent is set: http://localhost:9883/agents//SAgBCbY1RSh4QJlQk9d8CHbypvL4J5xHmklgabxVIs=
2024-01-05T16:38:30.325236Z  INFO atomic_server::appstate: Starting search service
2024-01-05T16:38:30.329386Z  INFO atomic_server::appstate: Starting commit monitor
2024-01-05T16:38:30.329805Z  INFO atomic_server::https: Creating LetsEncrypt account with email [email protected]
2024-01-05T16:38:30.982786Z  INFO actix_server::builder: Starting 1 workers
2024-01-05T16:38:30.983209Z  INFO actix_server::server: Actix runtime found; starting in Actix runtime
2024-01-05T16:38:32.983419Z  INFO atomic_server::https: Testing availability of http://staging.atomicdata.dev/.well-known/acme-challenge/h9F69WGj67FfJYc16f39fKnF55j0WXvC8-TW0ncAtKQ
2024-01-05T16:38:32.986161Z  INFO atomic_server::https: Server for HTTP initialization running correctly
2024-01-05T16:38:33.592920Z  INFO atomic_server::https: order is not ready, waiting 500ms
2024-01-05T16:38:34.094915Z  INFO atomic_server::https: order is not ready, waiting 1s
2024-01-05T16:38:35.096500Z  INFO atomic_server::https: order is not ready, waiting 2s
2024-01-05T16:38:37.097279Z  INFO atomic_server::https: order is not ready, waiting 4s
2024-01-05T16:38:41.098415Z  INFO atomic_server::https: order is not ready, waiting 8s
2024-01-05T16:38:49.099691Z  INFO atomic_server::https: order is not ready, waiting 16s

Thoughts:

  • There's a message missing: Server temporarily running in HTTP mode. This is a warning called in the very start of cert_init_server.
  • The Server for HTTP initialization running correctly message means that the well known URL was working at some point
  • Perhaps the server stopped? Seems odd, it should log that.
joepio added a commit that referenced this issue Jan 5, 2024
@joepio joepio self-assigned this Jan 10, 2024
@joepio joepio added bug Something isn't working server atomic-server labels Jan 10, 2024
joepio added a commit that referenced this issue Jan 10, 2024
joepio added a commit that referenced this issue Jan 10, 2024
joepio added a commit that referenced this issue Jan 10, 2024
@joepio
Copy link
Member Author

joepio commented Jan 10, 2024

The .well-known URL is available.

And the acme challenge has a status of "valid" at some point:

https://acme-v02.api.letsencrypt.org/acme/chall-v3/302755283156/8VVuyg

But the order is not "valid" on my end.. Why?

related: djc/instant-acme#13

Screenshot 2024-01-10 at 16 05 41

joepio added a commit that referenced this issue Jan 10, 2024
joepio added a commit that referenced this issue Jan 10, 2024
Try order state: valid #786

Log states #786

log challenges #786

#768 refresh!

#768 loop certs

Cleanup, move 1 sec delay to loop #768
joepio added a commit that referenced this issue Jan 10, 2024
Try order state: valid #786

Log states #786

log challenges #786

#768 refresh!

#768 loop certs

Cleanup, move 1 sec delay to loop #768
@joepio
Copy link
Member Author

joepio commented Jan 10, 2024

Various things were wrong with the example code. Works now!

@joepio joepio closed this as completed Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working server atomic-server
Projects
None yet
Development

No branches or pull requests

1 participant