IBM Support

Execution failed with exit code 1 or Windows named pipe error when trying to start containers by using /scripts/paw.ps1

Troubleshooting


Problem

One of these errors occurs when containers are started by using /scripts/paw.ps1 script:
Execution failed with exit code 1:
At C:\ibm\PAW\scripts\init.ps1:78 char:13
+             throw "Execution failed with exit code ${LASTEXITCODE}: $ ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Execution failed with exit code 1: :String) [], RuntimeException
    + FullyQualifiedErrorId : Execution failed with exit code 1:

    
ERROR: Windows named pipe error: The system cannot find the file specified. (code: 2)
Windows named pipe error: The system cannot find the file specified. (code: 2)
Execution failed with exit code 1: Windows named pipe error: The system cannot find the file specified. (code: 2)
At D:\paw\paw_2062\scripts\init.ps1:85 char:13
+       throw "Execution failed with exit code ${LASTEXITCODE}: $ ...
+       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  + CategoryInfo     : OperationStopped: (Execution faile...ed. (code: 2)
:String) [], RuntimeException
  + FullyQualifiedErrorId : Execution failed with exit code 1: Windows named pipe error: The system cannot find the file specified. (code: 2)

Cause

 Docker service is either not started or is not in a stable state.

Resolving The Problem

Open the Windows services (go to "Start" / "Run" menu, and type "services.msc"):
--> If "docker" or "docker engine" service is stopped, then start it.
--> If "docker" or "docker engine" is started, then stop it and restart it.
--> If issues are still happening after the service was restarted, then open Powershell with elevated administrator's rights (by right-clicking Powershell, and selecting "Run as administrator"), and run the following commands (replace <PAW_path> by the correct installation path):
# These commands start docker if needed, stop and delete containers (which does not impact 
# existing images and databases), restart docker again, and recreate containers.
Start-Service docker
cd <PAW_path>
./scripts/paw.ps1 stop
docker rm $(docker ps -a -q)
# If the above command fails with error "You cannot remove a running container", then it indicates
# the presence of temporary containers with a random name such like b2ad590c7_<container_name>
# In that case, display the name and status of remaining containers by using this command:
# ./scripts/paw.ps1 ps
# Then stop each of these containers by using this command:
# docker stop <temp_container_name>
# Then run the "docker rm $(docker ps -a -q)" command again before going to the next steps.
Stop-Service docker
Start-Service docker
./scripts/paw.ps1

 

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSCTEW","label":"IBM Planning Analytics Local"},"ARM Category":[{"code":"a8m50000000KzIzAAK","label":"Planning Analytics-\u003EPlanning Analytics Workspace"}],"ARM Case Number":"","Platform":[{"code":"PF033","label":"Windows"}],"Version":"All Versions"}]

Document Information

Modified date:
14 July 2022

UID

ibm16603975