Troubleshoot import error or invalid syntax error for an engine.
When running an integration on an engine, the most common errors are:
Broken PipeImportError: No module named...Invalid syntaxScript failed to run: exec: “python”: executable file not found in $PATH (2603)
These errors could indicate that the engine is not using Docker.
Use SSH to access the engine server.
Make sure Docker is healthy.
Ensure that Docker is installed and is running.
sudo systemctl status dockerIf the Docker status is not good, restart your Docker.
sudo systemctl restart dockerEnsure Docker can run a container.
sudo docker run hello-worldIf this fails, reinstall your Docker.
Access the d1.conf file on the engine server.
sudo vi /usr/local/demisto/d1.confAdd the
"python.engine.docker": trueconfiguration to the d1.conf file and remove any other configurations related to python and Docker, such as “python.executable.no.docker”.Restart the system on the engine server.
sudo systemctl restart d1Retest the integration from the user interface. This may take a few minutes since it may need to pull the relevant Docker image.