Skip to content

Errors in the process

Vic Shóstak edited this page Sep 12, 2021 · 14 revisions

In creating the project

Empty the frontend folder after create command

If in the second step of the cgapp create command you selected some frontend framework or library, but the ./frontend folder is empty (or there were errors during the creation process), it means that your local machine has too old Node.js with version 6.x (or lower).

Correct creation of the frontend part of the project is only possible if you have Node.js version 12.x (or higher) and npm version 7.x (or higher).

Just install a newer version of Node.js or update npm manually:

npm install -g npm@latest

Or you can use our pre-built isolated Docker container with pre-installed dependencies to leave your system untouched. To do so, run this command (you must have Docker version 19.x or higher installed):

docker run --rm -it -v ${PWD}:${PWD} -w ${PWD} koddr/cgapp create

In deploying the project

The authenticity of host can't be established

At the beginning, you may encounter a message like this:

The authenticity of host '<YOUR SERVER IP> (<YOUR SERVER IP>)' can't be established.
ECDSA key fingerprint is SHA256:<HASH>.
Are you sure you want to continue connecting (yes/no)?

Don't worry, this is a standard process if this is your first time accessing a remote server via SSH. Answer yes and the process will continue.

Permission denied (publickey)

If you get the error Permission denied (publickey) at the beginning, just add your private key (which you previously created and specified when creating the droplet) to the ssh-agent in your computer with the following command:

ssh-add -K ~/.ssh/id_rsa

COPY failed: stat build/.env: file does not exist

If the container with the backend does not start or starts with an error COPY failed: stat build/.env: file does not exist, check the .env file in the directory with the backend.

Clone this wiki locally