Thank Steven for your help so far π
nah this is expected because the previous migration removed these attributes
Can the issue be caused by my Nginx Proxy Manager? I am using it to route to different containers on my server.
Custom domains being empty? No
Yes. As mentioned I do get the message
... But there is no entry in later.
Should an entry be listed in Traefik? Could I check somewhere particular, to see where it fails?
No
How many projects do you have?
Only one, even though the Migration displayed 2/2 projects. Which is also weird.
Check the docker logs from the appwrite
and appwrite-worker-certificates
containers for errors or anything related to rules
That's fine. The console is the other project
So the error was, that it was already assigned to a other function.
[Error] Message: Domain already assigned to 'function' service with ID 'triggerFunction'.
So now I deleted custom domain from triggerFunction
and tried to add it to the dynamic links function. The problem is my appwrite backend subdomain is baas.example.com
and I am trying to add link.example.com
. That (link.example.com
) is also what I am adding when asked for Domain
. The verification fails and shows
Type: CNAME Name:link Value:baas.example.com
Shouldn't Value be example.com
?
Nope, that's correct for cname records
So the error in the appwrite
container is:
[Error] Timestamp: 2023-10-12T23:05:49+00:00
[Error] Method: PATCH
[Error] URL: /v1/proxy/rules/:ruleId/verification
[Error] Type: Appwrite\Extend\Exception
[Error] Message: Domain verification failed. Please check if your DNS records are correct and try again.
[Error] File: /usr/src/code/app/controllers/api/proxy.php
[Error] Line: 297
Should the link.example.com
be directing me to the backend, such as baas.example.com
does?
Link.example.com and baas.example.com should point to your appwrite instance
So I managed to get the link.example.com domain to access my appwrite backend by adding it in Custom Domains of the project settings. And the certification is generated. I still didn't manage to add it to the function, custom domain.
I can't use link.example.com
for backend access (registered under custom domains in project settings) and also add it as function domain, isn't?
correct
Can I simply remove the entry from custom domains and try i again in function domains?
I was wondering, because of the certificate issued, whether it can be reissued or whether I have to make any backup.
Yes, I believe so
Thanks a lot Steven, it worked. I don't know why it didn't work in the passed. But one issue is definately, that there is no message, when you try to add a custom domain several times e.g. project level and function level. There is no error, instead there is a success message without any successful operation.
it would be good to create an issue for this
I will do that π. I will check whether it is easily reproducible, and once I have the steps, I will create an Issue on GitHub.
Recommended threads
- Deploy function not working - 503
Hellon i get this error message, when i try to deploy a new version of a function <html><body><h1>503 Service Unavailable</h1>No server is available to handle...
- Current User is Not authorized
recreating same Thread
- Account Status
Hello! I'm a student and am in the GitHub Student Organization, and according to GitHub, I am recieving pro membership via the Student Dev Pack. However, when I...