Back

[SOLVED] Failed to install Appwrite dockers after each upgrade

  • 0
  • General
  • Self Hosted
iStornZ
3 Nov, 2023, 06:41

Hello all, every time I upgrade Appwrite server I had an error:

TypeScript
unexpected character "." in variable name near [...]```

To solve this, I always need to:
- Edit `.env` file
- Change  this line

//[...] _APP_VCS_GITHUB_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY----- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -----END RSA PRIVATE KEY-----" //[...]

TypeScript
By this:

//[...] _APP_VCS_GITHUB_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----" //[...]

TypeScript
- Run upgrade command
- Run migration command
- Edit `.env` file
- Revert back changes to original private VCS Github key
- Run `docker compose up -d`

This is quite annoying, did you know why I always need to change my private key? It seems it does'nt support line break in `.env`file...

Thanks !
TL;DR
Title: [SOLVED] Error installing Appwrite dockers after upgrade; Private key requires modification Messages: User encountered an error when installing Appwrite dockers after each upgrade. Solution involved modifying the private key in the `.env` file. The private key should be in a single line and not multiple lines. The error occurred because the `.env` file was modified and the closing quotation mark was missing. Steps to solve the issue: 1. Edit `.env` file 2. Change the private key line to a single line 3. Run upgrade and migration commands 4. Revert back changes to original private key in
iStornZ
3 Nov, 2023, 12:44

It seems when the error occur at first time, the .env file is modified to _APP_VCS_GITHUB_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY----- (Note that " is missing at the end)

Drake
3 Nov, 2023, 22:00

uhh so is your private key in 1 line or multiple lines?

iStornZ
4 Nov, 2023, 08:34

Multiple line like this:

TypeScript
//[...]
_APP_VCS_GITHUB_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY----- <--- break line
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX <--- break line
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX <--- break line
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX <--- break line
-----END RSA PRIVATE KEY-----"
//[...]
Drake
4 Nov, 2023, 15:08

It should be single line

Drake
4 Nov, 2023, 15:09
iStornZ
5 Nov, 2023, 09:02

Oh well nice ! Thanks !

iStornZ
5 Nov, 2023, 09:15

[SOLVED] Failed to install Appwrite dockers after each upgrade

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