XSOAR: Error: "Unable to clean up network for container" while running podman system migrate command

XSOAR: Error: "Unable to clean up network for container" while running podman system migrate command

8531
Created On 08/23/24 09:10 AM - Last Modified 10/16/24 20:56 PM


Symptom


  • When trying Integration using the CLI command "sudo -u demisto podman system migrate"  it fails with the error message "Unable to clean up network for container"
     
  • Unable to clean up network for container ce01c78345c60225f2f4bfd73a50b18fe464393426191623e9b850111c0b1846: "unmounting network namespace for container ce01c78345c60225f2f4bfd73a50b18fe464393426191623e9b850111c0b1846: failed to unmount NS: at /tmp/podman-run-988/netns/netns-0a0ed421-1a06-6cd3-17aa-0789fcceace9: operation not permitted"


Environment


  • Cortex XSOAR
  • Version 6.x
  • Podman


Cause


The error message is displayed when

  • Podman is having trouble unmounting a network namespace for a container due to permission issues, OR
  • corrupted Podman's data directories.


Resolution


  1. Try to check for permission on tmp folder. This should have excute permissions for demisto user.
  2. If that does not help then try to remove the podman data-directory. To do so, fo follow the below steps:
    •  Change the OS user to demisto : sudo su - -s /bin/bash demisto
    • Delete the folder using command: rm -rf /tmp/podman-run-$(id -u)/libpod/tmp
    • Run podman ps,  one should not see any more errors.

Note: $(id -u demisto) is used to get the demisto user ID, which is part of the directory name. For example, /tmp/podman-run-993



Additional Information


Podman System migrate

Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u000000schfCAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Choose Language