After clicking the "Start" button for an environment, the process seems to freeze at a certain step and does not progress after several minutes.
Start by displaying the logs to see at which step the process is stuck and what the command outputs are.
The most common case is a blocking command in the project lifecycle, such as the compilation of a JavaScript application.
version: '3.8'
services:
app:
image: node:16
volumes:
- .:/app
working_dir: /app
ports:
- '80'
environment:
VIRTUAL_HOST: "app-my-repository.${ENVIRONMENT_URL}"
command: npm run dev # The command will no longer block the lifecycle
👉 Alternative: Run the command manually from your IDE's terminal once the environment is up.
If a large number of users launch environments at the same time, Protocode may need to provision a new server. This step usually takes about 90 seconds.
If the server is still not ready after 5 minutes, contact support.
If after clicking "Start", the process stops abruptly and a red icon appears, this means that an error prevented the launch.
View the logs by clicking the red icon to identify the source of the problem.
The most frequent error is due to an incorrect command in the lifecycle steps.
Check the logs, identify the error, and correct the corresponding script.
If the registry (the service that stores the Docker images for the project) is temporarily inaccessible for maintenance, the start may fail.
If the problem persists, contact support.