
Hello all, every time I upgrade Appwrite server I had an error:
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-----" //[...]
By this:
//[...] _APP_VCS_GITHUB_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----" //[...]
- 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 !

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)

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

Multiple line like this:
//[...]
_APP_VCS_GITHUB_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY----- <--- break line
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX <--- break line
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX <--- break line
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX <--- break line
-----END RSA PRIVATE KEY-----"
//[...]

It should be single line



Oh well nice ! Thanks !

[SOLVED] Failed to install Appwrite dockers after each upgrade
Recommended threads
- 1.7.0 Self Hosted Upgrade
Hi, I've tried a fresh install on 1.7.0 and I've also done a fresh install on 1.6.2. 1.6.2 is working fine fresh, update to 1.7.0 and migrate fails Fresh inst...
- Functions not work on Server only Localh...
Hi, I successfully upgraded from 1.4 to 1.7, but I'm having a problem. The functions no longer work with the settings I had. I assume some changes were made. It...
- Console Login after upgrade
Hi, running a small instance self hosted, upgraded from 1.6.0 to 1.74 this morning before spotting the migration guide... When trying to login to the console n...
