Back

Fix HTTP challenge

  • 0
  • Self Hosted
Achim
3 May, 2023, 04:30

Thanks already for your help πŸ™πŸ½

TL;DR
In this support thread, the user was experiencing issues with the HTTP challenge. They discovered that the IPv6 suffix of their server changed when they restarted it in January, and changing it back resolved the issue. The user also shared logs and mentioned that the certificate for their subdomain is expired and not getting renewed. The support agent suggested checking the logs for the appwrite-worker-certificates container and recommended using the certificate from their website registrar. They also advised the user to add their hostname as the domain and domain target environment variables and delete the custom domain in their project. The user provided more details about their setup, including using DynDNS for routing
Achim
3 May, 2023, 04:31

For DynDNS: {"server":"1.3.3","client-web":"11.0.0","client-flutter":"9.0.0","client-apple":"2.0.0","client-android":"2.0.0","client-graphql":"October 2021","client-rest":"","console-web":"0.1.0","console-cli":"2.0.2","server-nodejs":"9.0.0","server-deno":"7.0.0","server-php":"8.0.0","server-python":"2.0.0","server-ruby":"8.0.0","server-dart":"8.0.0","server-kotlin":"2.0.0","server-swift":"2.0.0","server-graphql":"October 2021","server-rest":""}

For the subdomain: {"server":"1.3.3","client-web":"11.0.0","client-flutter":"9.0.0","client-apple":"2.0.0","client-android":"2.0.0","client-graphql":"October 2021","client-rest":"","console-web":"0.1.0","console-cli":"2.0.2","server-nodejs":"9.0.0","server-deno":"7.0.0","server-php":"8.0.0","server-python":"2.0.0","server-ruby":"8.0.0","server-dart":"8.0.0","server-kotlin":"2.0.0","server-swift":"2.0.0","server-graphql":"October 2021","server-rest":""}

Drake
3 May, 2023, 04:33

What's not working?

Achim
3 May, 2023, 04:44

I don't get a certificate for my subdomain. Only for the IP, and before the DynDNS domain. My subdomain doesn't have an A record pointing to Appwrite, as it's routed through DynDNS. Can it work this way? Actually, is worked last time, but I don't get a new certificate now.

Drake
3 May, 2023, 04:45

What do you mean you don't get a certificate? What happens?

Drake
3 May, 2023, 04:45

IPs can't get a valid certificate

Drake
3 May, 2023, 04:46

You custom domain does not need an A record

Drake
3 May, 2023, 04:47

When I say domain, I mean domain or subdomain

Achim
3 May, 2023, 04:59

The certificate for my subdomain is expired. And there is no new one. There now are new ones for the IP and DynDNS though (not valid, but at least existent).

Drake
3 May, 2023, 05:07

Is this supposed to be your main hostname or your custom domain hostname?

Achim
3 May, 2023, 06:44

What do you mean? For Appwrite I use my subdomain, like sub.domain.com.

Achim
3 May, 2023, 07:11

My response to the message was that I tried and it was not successful. This only helps the UI show 'verified'.

Drake
3 May, 2023, 12:58

How many hostnames do you need for your Appwrite instance?

Achim
3 May, 2023, 14:06

Setup is: My domain has a subdomain like sub.domain.com, with a CNAME to sub.dyndns.com, that gets updated to forward to the server's IP. I only access Appwrite via sub.domain.com. This already worked for 8 months, but no new certificate was generated, so now it's not accessible from the app.

Achim
3 May, 2023, 14:06

It's a very basic setup I believe. Just a DynDNS between my subdomain and the server.

Drake
3 May, 2023, 14:15

So it sounds like you only need 1 hostname for your Appwrite instance. You don't need to create a custom domain in your project then. You need to add your hostname as the domain and domain target environment variables. Delete the custom domain in your project

Achim
3 May, 2023, 14:49

So sub.domain.com as app domain target and app domain? I had this for 9 months and it didn't work.

Achim
3 May, 2023, 14:49

I only added the custom domain since this thread

Drake
3 May, 2023, 15:14

Yes. If something isn't working, you would need to check the logs for the appwrite-worker-certificates container

Achim
3 May, 2023, 15:15

Actually it did work in the beginning, but since April the certificate is expired. Is there a way to just use the certificate from my website (from my registrar)?

Achim
3 May, 2023, 15:15
Achim
3 May, 2023, 15:17

So far I tried all suggestions, turns out they're not necessary and my setup was ok. I can send you the full log via message if that helps.

Drake
3 May, 2023, 15:38

sure, please DM me the logs from the worker

Achim
4 May, 2023, 14:30

I solved it after a long day of debugging: The IPv6 suffix of my server changed when I restarted it in January. I changed it back, and now the http challenge works again 😊

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more