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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: Certificate for custom domain not generated due to error #6913

Open
2 tasks done
maendamedia opened this issue Oct 15, 2023 · 8 comments
Open
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@maendamedia
Copy link

maendamedia commented Oct 15, 2023

馃憻 Reproduction steps

Added a custom domain using the dashboard and added cname for that into the dns.
Domain is verified successfully by Appwrite. But ssl is not generated

Error in logs:

appwrite-worker-certificates  | [notice] Starting work on (Job{v1-certificates} | ID: 33193cc6c22754d68d3db465494555f7 | CertificatesV1 | [{"project":null,"domain":{"domain":"sub.mydomain.com"},"skipRenewCheck":true}])
appwrite-worker-certificates  | [critical] (Job{v1-certificates} | ID: 33193cc6c22754d68d3db465494555f7 | CertificatesV1 | [{"project":null,"domain":{"domain":"sub.mydomain.com"},"skipRenewCheck":true}]) has failed Utopia\Database\Exception\Structure: Invalid document structure: Unknown attribute: "log" in /usr/src/code/vendor/utopia-php/database/src/Database/Database.php:2504
appwrite-worker-certificates  | Stack trace:
appwrite-worker-certificates  | #0 /usr/src/code/app/workers/certificates.php(171): Utopia\Database\Database->createDocument(Object(Utopia\Database\Document), Object(Utopia\Database\Document))
appwrite-worker-certificates  | #1 /usr/src/code/app/workers/certificates.php(145): CertificatesV1->saveCertificateDocument('sub.my...', Object(Utopia\Database\Document))
appwrite-worker-certificates  | #2 /usr/src/code/src/Appwrite/Resque/Worker.php(122): CertificatesV1->run()
appwrite-worker-certificates  | #3 /usr/src/code/vendor/resque/php-resque/lib/Resque/Job.php(201): Appwrite\Resque\Worker->perform()
appwrite-worker-certificates  | #4 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(303): Resque_Job->perform()
appwrite-worker-certificates  | #5 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(242): Resque_Worker->perform(Object(Resque_Job))
appwrite-worker-certificates  | #6 /usr/src/code/vendor/resque/php-resque/bin/resque(185): Resque_Worker->work('1', false)

馃憤 Expected behavior

Generate ssl for custom domain

馃憥 Actual Behavior

It gives error on ssl generating part

appwrite-worker-certificates  | [notice] Starting work on (Job{v1-certificates} | ID: 33193cc6c22754d68d3db465494555f7 | CertificatesV1 | [{"project":null,"domain":{"domain":"sub.mydomain.com"},"skipRenewCheck":true}])
appwrite-worker-certificates  | [critical] (Job{v1-certificates} | ID: 33193cc6c22754d68d3db465494555f7 | CertificatesV1 | [{"project":null,"domain":{"domain":"sub.mydomain.com"},"skipRenewCheck":true}]) has failed Utopia\Database\Exception\Structure: Invalid document structure: Unknown attribute: "log" in /usr/src/code/vendor/utopia-php/database/src/Database/Database.php:2504
appwrite-worker-certificates  | Stack trace:
appwrite-worker-certificates  | #0 /usr/src/code/app/workers/certificates.php(171): Utopia\Database\Database->createDocument(Object(Utopia\Database\Document), Object(Utopia\Database\Document))
appwrite-worker-certificates  | #1 /usr/src/code/app/workers/certificates.php(145): CertificatesV1->saveCertificateDocument('sub.my...', Object(Utopia\Database\Document))
appwrite-worker-certificates  | #2 /usr/src/code/src/Appwrite/Resque/Worker.php(122): CertificatesV1->run()
appwrite-worker-certificates  | #3 /usr/src/code/vendor/resque/php-resque/lib/Resque/Job.php(201): Appwrite\Resque\Worker->perform()
appwrite-worker-certificates  | #4 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(303): Resque_Job->perform()
appwrite-worker-certificates  | #5 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(242): Resque_Worker->perform(Object(Resque_Job))
appwrite-worker-certificates  | #6 /usr/src/code/vendor/resque/php-resque/bin/resque(185): Resque_Worker->work('1', false)

馃幉 Appwrite version

Version 1.4.x

馃捇 Operating system

Linux

馃П Your Environment

1.4.5
No extra configs

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@maendamedia maendamedia added the bug Something isn't working label Oct 15, 2023
@adarsh-jha-dev
Copy link

@maendamedia can you please assign this to me?

@maendamedia
Copy link
Author

Any ideas? :(

@adarsh-jha-dev
Copy link

you please assign this to me and I will come up with some solution.

@maendamedia
Copy link
Author

you please assign this to me and I will come up with some solution.

Where do you want me to assign you too?

@stnguyen90 stnguyen90 self-assigned this Oct 17, 2023
@stnguyen90
Copy link
Contributor

@maendamedia, thanks for creating this issue! 馃檹馃徏 Did you upgrade to 1.4.5 or did you have a clean install?

@maendamedia
Copy link
Author

@maendamedia, thanks for creating this issue! 馃檹馃徏 Did you upgrade to 1.4.5 or did you have a clean install?

I upgraded from 1.4.4 to 1.4.5. Altough I still have the upgrade issue in my other issue :)

@maendamedia
Copy link
Author

@stnguyen90 Any idea how to fix this?

@stnguyen90
Copy link
Contributor

stnguyen90 commented Nov 13, 2023

I upgraded from 1.4.4 to 1.4.5. Altough I still have the upgrade issue in my other issue :)

So, you had a clean install of 1.4.4? Did you have a previous instance of Appwrite on the same server?

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

3 participants