Readeck - 502 Bad Gateway After Installation

SOLUTION:

  1. SSH into your Yunohost server
  2. Switch to a superuser with sudo su
  3. Access Postgres as the superuser sudo -u postgres psql Note: I tried to do this as my normal user and it failed.
  4. Once you’re in a Postgres command line, denoted by postgres=#, you’re going to temporarily elevate the readeck database user to superuser status within the database.
  5. To elevate the readeck database user to superuser, type ALTER USER readeck SUPERUSER;
  6. Wait for a minute or two while readeck discovers its newfound ability to create that ‘unaccent’ extension. Check Tools → Services in the admin web portal and you should see that the service has successfully initialized.
  7. Check the Readeck website and make sure you’re no longer getting the 502 error.
  8. Remove the superuser status by typing ALTER USER readeck NOSUPERUSER;
  9. You should be able to quit your Postgres command line with exit and then type exit again to return your Yunohost root user back to your regular user.
  10. Go back to the Readeck website and create your first user. You should be up and running now!