Troubleshoot Podman

Troubleshoot installation and script errors for Podman for Cortex XSOAR
Installation Error
Before you install Cortex XSOAR (or engine) on RHEL 8 or CentOS 8, you need to run the Podman required commands, otherwise installation may fail and you may receive the following error message.
time="2021-06-03T17:03:28+02:00" level=debug msg="Starting /usr/sbin/usermod --add-subuids 200000-265535 --add-subgids 200000-265535 demisto " time="2021-06-03T17:03:28+02:00" level=info msg="Failed to update subordinates for Podman:" time="2021-06-03T17:03:28+02:00" level=info msg="exit status 2"
If you ignore the installation error (or install with
-y
), it can cause errors later while running container scripts, such as:
Script failed to run: Docker code runner got container error: [Docker code script is in inconsistent state, expected pong but didn't got any response, exit error: Container exit with error. container name: [demistoserver_pyexec-72ede329-ba1c-43f4-845c-6bfa6a765220-demistopython33.9.4.18682--6] error: [exit status 125] stderr: [Resolving "demisto/python3" using unqualified-search registries (/etc/containers/registries.conf) Trying to pull docker.io/demisto/python3:3.9.4.18682... ... Error processing tar file(exit status 1): potentially insufficient UIDs or GIDs available in user namespace (requested 0:42 for /etc/shadow): Check /etc/subuid and /etc/subgid: lchown /etc/shadow: invalid argument ...
To fix this error:
  1. Run the following command:
    sudo touch /etc/subuid /etc/subgid
  2. Uninstall and reinstall the Cortex XSOAR Server or engine.
Container Script Errors
After installing Cortex XSOAR (server or engine) on RHEL 8 or CentOS 8, you may encounter errors while running container scripts, such as:
Failed to execute script [error 'Script failed to run: Docker code runner got container error: [Docker code script is in inconsistent state, expected pong but didn't got any response, exit error: Container exit with error. container name: [demistoserver_pyexec-305c07c2-63f6-47c6-8a8c-518ab80f98b0-demistopython1.3-alpine--30] error: [exit status 126] stderr: [Error: OCI runtime error: container_linux.go:345: starting container process caused "error adding seccomp rule for syscall socket: requested action matches default action of filter"
To fix this error:
  1. Run the following command:
    sudo yum -y module install container-tools
  2. Restart Cortex XSOAR or engine by running the following command.
    sudo systemctl restart demisto
    Replace
    demisto
    with
    d1
    for an engine.

Recommended For You