Backup and Restore Errors
This guide helps you address common errors encountered while using appsmithctl
, a command-line utility for backup and restore operations.
Service 'appsmith' is not running container
When attempting to execute appsmithctl
commands, you may face this error even if the appsmith service is up and running.
Error Message
Cause
This error may occur even if the Appsmith service is up and running because the docker-compose
command was not used to start the Appsmith container. Hence, Appsmith is not registered with Docker Compose, making it inaccessible while running theappsmithctl
commands.
Solution
To resolve this issue, follow these steps:
- Stop the current Appsmith container with:
docker stop appsmith
Wait for the container to stop before proceeding.
- Go to the directory containing the
docker-compose.yml
file using thecd
command :
cd /path/to/docker-compose/directory
Replace /path/to/docker-compose/directory
with the actual path to the file.
- Start Appsmith with Docker-Compose using the
docker-compose.yml
file in the current directory. Run the below command to start the Appsmith container:
docker-compose up -d
The -d
flag runs the containers in detached mode, allowing them to run in the background.
After completing these steps, Docker Compose will register the Appsmith container, resolving the error. The appsmithctl
commands should now work as expected.