Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main-arm64 Format string python3 #562

Closed
5 tasks
jbc22 opened this issue Sep 12, 2024 · 1 comment
Closed
5 tasks

main-arm64 Format string python3 #562

jbc22 opened this issue Sep 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jbc22
Copy link

jbc22 commented Sep 12, 2024

Describe the bug
When starting zeek:arm-64 (version 4256b0eea590) as a container in Podman, the container shuts down immediately after throwing an error:

usermod: no changes root uid=0(root) gid=0(root) groups=0(root) Error: Format string 'python3 /usr/local/bin/pcap_zeek_processor.py %(ENV_PCAP_PIPELINE_VERBOSITY)s\n--start-sleep 10\n--threads %(ENV_ZEEK_AUTO_ANALYZE_PCAP_THREADS)s\n--publisher "%(ENV_PCAP_MONITOR_HOST)s"\n--pcap-directory /pcap/processed\n--node "%(ENV_PCAP_NODE_NAME)s"\n--zeek /opt/zeek/bin/zeek-offline\n--extra-tags "%(ENV_EXTRA_TAGS)s"\n--autotag "%(ENV_AUTO_TAG)s"\n--autozeek "%(ENV_ZEEK_AUTO_ANALYZE_PCAP_FILES)s"\n--forcezeek "%(ENV_ZEEK_ROTATED_PCAP)s"\n--extract "%(ENV_ZEEK_EXTRACTOR_MODE)s"\n--zeek-directory /zeek/upload' for 'program:pcap-zeek.command' contains names ('ENV_EXTRA_TAGS') which cannot be expanded. Available names: ENV_AUTO_TAG, ENV_BUILD_DATE, ENV_CCACHE_COMPRESS, ENV_CCACHE_DIR, ENV_DEBIAN_FRONTEND, ENV_DEFAULT_GID, ENV_DEFAULT_UID, ENV_HOME, ENV_HOSTNAME, ENV_LC_CTYPE, ENV_MAIL, ENV_MALCOLM_VERSION, ENV_PATH, ENV_PCAP_FILTER, ENV_PCAP_IFACE, ENV_PCAP_IFACE_TWEAK, ENV_PCAP_MONITOR_HOST, ENV_PCAP_NODE_NAME, ENV_PCAP_PIPELINE_VERBOSITY, ENV_PGROUP, ENV_PUSER, ENV_PUSER_CHOWN, ENV_PUSER_PRIV_DROP, ENV_PWD, ENV_PYTHONDONTWRITEBYTECODE, ENV_PYTHONUNBUFFERED, ENV_SHLVL, ENV_SUPERCRONIC_CRONTAB, ENV_SUPERCRONIC_URL, ENV_SUPERCRONIC_VERSION, ENV_TERM, ENV_USER, ENV_VCS_REVISION, ENV_ZEEK_AUTO_ANALYZE_PCAP_FILES, ENV_ZEEK_AUTO_ANALYZE_PCAP_THREADS, ENV_ZEEK_CUSTOM_PATH, ENV_ZEEK_DIR, ENV_ZEEK_DISABLE_BEST_GUESS_ICS, ENV_ZEEK_DISABLE_HASH_ALL_FILES, ENV_ZEEK_DISABLE_LOG_PASSWORDS, ENV_ZEEK_DISABLE_SPICY_IPSEC, ENV_ZEEK_DISABLE_SPICY_LDAP, ENV_ZEEK_DISABLE_SPICY_OPENVPN, ENV_ZEEK_DISABLE_SPICY_QUIC, ENV_ZEEK_DISABLE_SPICY_STUN, ENV_ZEEK_DISABLE_SPICY_TAILSCALE, ENV_ZEEK_DISABLE_SPICY_TFTP, ENV_ZEEK_DISABLE_SPICY_WIREGUARD, ENV_ZEEK_DISABLE_SSL_VALIDATE_CERTS, ENV_ZEEK_DISABLE_STATS, ENV_ZEEK_DISABLE_TRACK_ALL_ASSETS, ENV_ZEEK_EXTRACTOR_MODE, ENV_ZEEK_EXTRACTOR_PATH, ENV_ZEEK_INTEL_FEED_SINCE, ENV_ZEEK_INTEL_FEED_SSL_CERTIFICATE_VERIFICATION, ENV_ZEEK_INTEL_ITEM_EXPIRATION, ENV_ZEEK_INTEL_PATH, ENV_ZEEK_INTEL_REFRESH_CRON_EXPRESSION, ENV_ZEEK_INTEL_REFRESH_ON_DEPLOY, ENV_ZEEK_INTEL_REFRESH_ON_ENTRYPOINT, ENV_ZEEK_INTEL_REFRESH_THREADS, ENV_ZEEK_LIVE_CAPTURE, ENV_ZEEK_PCAP_PROCESSOR, ENV_ZEEK_ROTATED_PCAP, ENV_ZEEK_SYNCHROPHASOR_DETAILED, ENV_ZEEK_THIRD_PARTY_PLUGINS_GREP, ENV_ZEEK_THIRD_PARTY_SCRIPTS_GREP, ENV_ZEEK_VERSION, ENV_container, group_name, here, host_node_name, numprocs, process_num, program_name in section 'program:pcap-zeek' (file: '/etc/supervisord.conf') For help, use /usr/bin/supervisord -h

To Reproduce
Steps to reproduce the behavior:

  1. Open Podman
  2. Click on 'Images'
  3. Click on 'Pull'
  4. Enter "ghcr.io/idaholab/malcolm/zeek:main-arm64" in Image to Pull and click "Pull Image"
  5. Click Done
  6. Click Start Container for zeek main-arm64
  7. Accept default values on the "Run Image" page and click "Start Container"
  8. Navigate to "Logs"
  9. See error

Expected behavior
At step 8 above, I expect to have a tty session to the container.

**Screenshots and/or Logs **
image

Malcolm Version:
(sha256:36633a755fde50af2b2c0a7e1781221df381a5903217500fe2b47b6f8d1b2340)

How are you running Malcolm?

  • ISO installed (on VM or dedicated hardware)
  • via Docker on Linux
  • via Docker on Microsoft Windows
  • via Docker on macOS
  • via Kubernetes (please provide platform details: e.g., on-prem K3s, Amazon AWS EKS, Microsoft Azure AKS, etc.)
  • [ x ] other (please describe): Podman on MacOS M2 chip

Additional context
Add any other context about the problem here.

@jbc22 jbc22 added the bug Something isn't working label Sep 12, 2024
@mmguero mmguero added this to Malcolm Sep 12, 2024
@mmguero
Copy link
Collaborator

mmguero commented Sep 12, 2024

Podman's not supported yet, but we're working on it. I'm not going to chase this down until that's happening. At first glance, though, it looks like supervisord is missing some of the environment variables. I'd recommend checking the docker-compose file for whatever the .env files are that that container needs, and make sure you've set them as described in the documentation.

Once the podman support is done and built into the control scripts, also note that the supported way for starting and stopping malcolm is to use the control scripts.

I'm going to close this issue for now, but once podman is supported if things are still broken feel free to reopen.

@mmguero mmguero closed this as not planned Won't fix, can't repro, duplicate, stale Sep 12, 2024
@github-project-automation github-project-automation bot moved this to Done in Malcolm Sep 12, 2024
@mmguero mmguero moved this from Done to Invalid in Malcolm Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Invalid
Development

No branches or pull requests

2 participants