Troubleshooting
Problem
Execution failed with exit code 1
Resolving The Problem
Folders:
C:\ProgramData\Microsoft\Windows\HNS
C:\ProgramData\Docker
C:\Program Files\Docker
C:\Program Files\Docker\docker.exe
C:\Program Files\Docker\dockerd.exe
C:\Program Files\Docker\docker-compose.exe
cd <Your_PAW_install_path>
./scripts/paw.ps1 down
6) Download and use the "WindowsContainerNetworking-LoggingAndCleanupAide.ps1" script.
Here is the IBM Documentation about this tool:
How do I handle errors with the Host Network Service (HNS)?
Copy the whole content and paste it into a text editor. Save the file as WindowsContainerNetworking-LoggingAndCleanupAide.ps1
7) Check the priority order of the network adapters. Run this command in Powershell:
Get-NetIPInterface
It shows the Interface Metric Number of each network card, for example:
ifIndex InterfaceAlias AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp ConnectionState PolicyStore ------- -------------- ------------- ------------ --------------- ---- --------------- ----------- 6 Ethernet0 IPv4 1500 25 Disabled Connected ActiveStore 8 vEthernet (HNS Internal NIC) IPv4 1500 15 Enabled Connected ActiveStore ...
The network adapter having the lowest Interface Metric number has priority. That means that, if the "vEthernet (HNS internal NIC)" card has the smaller Interface Metric number, then Planning Analytics Workspace cannot be accessible from outside the host.
In that case, modify the Interface Metric Number of the ipv4 "vEthernet (HNS internal NIC)" card so that it is higher or equal to the Interface Metric Number of the ipv4 Ethernet card (here "Ethernet0"). For example, in that case, we could try this command:
Set-NetIPInterface -InterfaceIndex 8 -InterfaceMetric 35
The result is as follows:
ifIndex InterfaceAlias AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp ConnectionState PolicyStore ------- -------------- ------------- ------------ --------------- ---- --------------- ----------- 6 Ethernet0 IPv4 1500 25 Disabled Connected ActiveStore 8 vEthernet (HNS Internal NIC) IPv4 1500 35 Enabled Connected ActiveStore ...
It is now necessary to reboot the machine.
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
17 January 2023
UID
ibm11101933