IBM Support

Container is marked for removal and cannot be started - Driver "windowsfilter" failed to remove root filesystem: hcsshim::GetComputerSystems

Troubleshooting


Problem

When starting up Planning Analytics Workspace containers, the following errors occur in Powershell:
Error: for <container_name>  Cannot start service monitor: container is marked for removal and cannot be started.
Or
Exception occurred:
Execution failed with exit code 1:
ERROR: for <container_name> <GUID>:
driver "windowsfilter" failed to remove root filesystem:
hcsshim::GetComputerSystems: The requested compute system operation is not valid in the current state.
Encountered errors while bringing up the project.

Resolving The Problem

Before going further, back up Planning Analytics Workspace databases by running these commands in Powershell:
cd <PAWorkspacePath>
./scripts/backup.ps1
Some errors might occur while stopping and restarting containers, nevertheless the backup itself should be valid.
Verify the databases were correctly backed up, by checking the files in this folder:
<PAWorkspacePath>\backup\backup_<date_and_time>
Here is the list of files:
bss.zip
couchdb.zip
mongo.zip
mongo_db.zip
mysql.zip
redis.zip
Now that a backup is done, we can go on.
Step 1: Re-create containers.
Open Powershell as an administrator (right-click, "Run as administrator") and run these commands:
cd <PAWorkspacePath>
./scripts/paw.ps1 stop
docker rm $(docker ps -a -q)
stop-service docker
start-service docker
./scripts/paw.ps1    (with no command-line options)
Wait about 2 - 3 minutes and run this command to show container states:
./scripts/paw.ps1 ps
For Workspace to work, all containers should be "Up" except "bss-init" and "couchdb-init" that should be in "Exit" state.
Step 2: If the previous step did not work, then delete container files manually.
Open Powershell as an administrator (right-click, "Run as administrator") and run this command:
stop-service docker
Open Windows Explorer and check whether "daemon.json" file exists in "C:\ProgramData\docker\config" folder
If yes, then open this file and check the value of "data-root" parameter if it is defined.
--> If there is no "data-root" parameter or no "daemon.json" file, then delete all files and all subfolders from "C:\ProgramData\docker\containers\" directory.
--> If there is a "data-root" parameter, then delete all files and all subfolders from "<data-root>\docker\containers\"
Get back to the Powershell window and run these commands:
start-service docker
./scripts/paw.ps1    (with no options)
Wait about 2 - 3 minutes and run this command to show containers state:
./scripts/paw.ps1 ps
For Workspace to work, all containers should be "Up" except "bss-init" and "couchdb-init" that should be in "Exit" state.
Step 3: if it is still not working
If there is an antivirus, then exclude these folders (and subfolders) and applications from being scanned:
  Folders:
          <PAWorkspacePath>
    C:\ProgramData\Microsoft\Windows\HNS
    C:\ProgramData\docker
    <data-root>\containers
    <data-root>\windowsfilter
    C:\Program Files\Docker

  Applications/Executables:
          C:\Program Files\Docker\docker.exe
    C:\Program Files\Docker\dockerd.exe
    C:\Program Files\Docker\docker-compose.exe
From Windows Start menu go to the Control Panel :
  - Click System and Security
  - Click System
  - Click Advanced system settings
  - A dialog shows up: click the Advanced tab
  - In Performance section, click "Settings..."
  - Another dialog shows up: click the "Data Execution Prevention" tab
  - Select "Turn on DEP for essential Windows programs and services only"
Step 4: if all the previous steps failed
There is some environmental issue, or some third-party tool, that prevents Docker from working properly.
As a test, stop as many third-party applications and services as possible, and go through Step 1 again.
If nothing helps, then follow this document and provide the audit log to IBM Support:

Document Location

Worldwide

[{"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 Workspace"},{"code":"a8m50000000KzKqAAK","label":"Planning Analytics Workspace-\u003EDocker"},{"code":"a8m0z000000blfjAAA","label":"Troubleshooting"}],"ARM Case Number":"","Platform":[{"code":"PF033","label":"Windows"}],"Version":"All Version(s)"}]

Document Information

Modified date:
01 February 2022

UID

ibm16407826