Troubleshooting

Start a Bash session

Docker

  1. Find the CONTAINER ID by command
docker
Copy

E.g: the container ID = d1769cb64afe

  1. Start a Bash session with the command docker exec -it <container id> bash
docker
Copy

Kubernetes

  1. Find the MetaDefenteder ICAP Server pod with the command
cmd
Copy

→ pod name: md-icapsrv-77c4654f4b-bkclc

→ namespace: default

  1. Start a Bash session
cmd
Copy

Default container name when you use MetaDefender ICAP Server’s Helm chart is md-icapsrv

Execute the collect support packages script

To create a package you must start the script found under

cmd
Copy

As the script processes the necessary information, the script generates the support package output.

The package file is a tar.gz archive with the following name:

cmd
Copy

Where the timestamp was the date when the package was generated.

Example:

cmd
Copy

The generated package will be placed in the same location as the script that was called.

If you run container with read-only file system mode or non-root user make sure you have write permission to the working directory when you execute collect support packages script

Copy the support package from the container to outside

Docker

Use docker cp | Docker Documentation docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|-

Example:

cmd
Copy

Kubernetes

Use kubectl cp Kubectl Reference Docs (kubernetes.io)

cmd
Copy

Example:

cmd
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard