Skip to content

SSL certificates not autogenerated in 0.7.1 #1001

Closed

Description

@kodumbeats

🐛 Bug Report

On a fresh install of 0.7.1, appwrite-worker-certificates throws an exception, and SSL certificates are not populating correctly. I did some debugging and narrowed it down to this line of logic:

https://github.com/appwrite/appwrite/blob/master/app/workers/certificates.php#L127

A few var_dump()s later, and I found myself in a state where $stderr is non-empty, even with a successful exit code:

var_dump($stderr);
string(175) "Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Cert not yet due for renewal
Keeping the existing certificate
"

var_dump($exit);
int(0)

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

Yes.

To Reproduce

  • Deploy a fresh instance of Appwrite 0.7.1 on a VPS
  • Configure a domain A record to point at VPS IP address
  • Update env vars to set the domain and security email
  • docker-compose up -d after setting env vars to ensure containers receive new env vars.
  • Navigate to domain in browser

Expected behavior

Proceed to Appwrite console signin/signup.

Actual behavior

sslerrorpage

Your Environment

VPS running Ubuntu 20.04, deploying Appwrite 0.7.1

Activity

  1. added
    bug
    on Mar 18, 2021
  2. added
    waiting for release
    on Mar 22, 2021
  3. kodumbeats commented on Mar 24, 2021

    @kodumbeats
    ContributorAuthor

    Fix released in Appwrite 0.7.2.

  4. removed
    waiting for release
    on Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions