docker-mtgo icon indicating copy to clipboard operation
docker-mtgo copied to clipboard

Podman can't download .application file

Open AlexChalk opened this issue 10 months ago • 2 comments

Image runs fine with docker on my machine, but breaks with podman.

Modifications to run-mtgo:

docker_client=podman
limit_cpus=0
opts="--userns=keep-id"

I can then run the image, but the mtgo setup fails with error "An error occurred trying to download 'http://mtgo.patch.daybreakgames.com/patch/mtg/live/client/MTGO.application'"

OS: Linux (nixos 25.05) Desktop environment (for Linux): swaywm Graphics card: Intel Corporation UHD Graphics 620 (rev 07)

Output of podman info:

host:
  arch: amd64
  buildahVersion: 1.38.0
  cgroupControllers:
  - cpu
  - io
  - memory
  - pids
  cgroupManager: systemd
  cgroupVersion: v2
  conmon:
    package: Unknown
    path: /nix/store/nfsp945njcvf5rxqryyd4ghap3kh8838-podman-helper-binary-wrapper/bin/conmon
    version: 'conmon version 2.1.12, commit: '
  cpuUtilization:
    idlePercent: 89.56
    systemPercent: 3.4
    userPercent: 7.04
  cpus: 8
  databaseBackend: sqlite
  distribution:
    codename: warbler
    distribution: nixos
    version: "25.05"
  eventLogger: journald
  freeLocks: 2047
  hostname: my-device
  idMappings:
    gidmap:
    - container_id: 0
      host_id: 100
      size: 1
    - container_id: 1
      host_id: 231072
      size: 65536
    uidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 231072
      size: 65536
  kernel: 6.12.12
  linkmode: dynamic
  logDriver: journald
  memFree: 8568586240
  memTotal: 16508067840
  networkBackend: netavark
  networkBackendInfo:
    backend: netavark
    dns:
      package: Unknown
      path: /nix/store/0g60082fnk69rwmcmz9px42sfxwpm6pc-podman-5.3.1/libexec/podman/aardvark-dns
      version: aardvark-dns 1.13.1
    package: Unknown
    path: /nix/store/0g60082fnk69rwmcmz9px42sfxwpm6pc-podman-5.3.1/libexec/podman/netavark
    version: netavark 1.13.1
  ociRuntime:
    name: crun
    package: Unknown
    path: /nix/store/nfsp945njcvf5rxqryyd4ghap3kh8838-podman-helper-binary-wrapper/bin/crun
    version: |-
      crun version 1.19.1
      commit: 1.19.1
      rundir: /run/user/1000/crun
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +YAJL
  os: linux
  pasta:
    executable: /nix/store/0g60082fnk69rwmcmz9px42sfxwpm6pc-podman-5.3.1/libexec/podman/pasta
    package: Unknown
    version: |
      pasta 2024_12_11.09478d5
      Copyright Red Hat
      GNU General Public License, version 2 or later
        <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law.
  remoteSocket:
    exists: true
    path: /run/user/1000/podman/podman.sock
  rootlessNetworkCmd: pasta
  security:
    apparmorEnabled: false
    capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
    rootless: true
    seccompEnabled: true
    seccompProfilePath: ""
    selinuxEnabled: false
  serviceIsRemote: false
  slirp4netns:
    executable: ""
    package: ""
    version: ""
  swapFree: 15999168512
  swapTotal: 15999168512
  uptime: 0h 17m 17.00s
  variant: ""
plugins:
  authorization: null
  log:
  - k8s-file
  - none
  - passthrough
  - journald
  network:
  - bridge
  - macvlan
  - ipvlan
  volume:
  - local
registries:
  search:
  - docker.io
  - quay.io
store:
  configFile: /home/me/.config/containers/storage.conf
  containerStore:
    number: 0
    paused: 0
    running: 0
    stopped: 0
  graphDriverName: overlay
  graphOptions: {}
  graphRoot: /home/me/.local/share/containers/storage
  graphRootAllocated: 967098630144
  graphRootUsed: 487605751808
  graphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
    Supports shifting: "false"
    Supports volatile: "true"
    Using metacopy: "false"
  imageCopyTmpDir: /var/tmp
  imageStore:
    number: 1
  runRoot: /run/user/1000/containers
  transientStore: false
  volumePath: /home/me/.local/share/containers/storage/volumes
version:
  APIVersion: 5.3.1
  Built: 315532800
  BuiltTime: Mon Dec 31 19:00:00 1979
  GitCommit: ""
  GoVersion: go1.23.4
  Os: linux
  OsArch: linux/amd64
  Version: 5.3.1

output.log

AlexChalk avatar Feb 05 '25 21:02 AlexChalk

I was having the same issue, I fixed it by changing my opts to "--userns=keep-id:uid=$(id -u),gid=$(id -g)" as I noticed that --userns=keep-id was still not mapping my uid properly.

I'm not sure if it is needed, but I also ran ./run-mtgo --reset first.

apd-f avatar Mar 26 '25 20:03 apd-f

I had something similar where what made it work was to first delete my .local/share/mtgo host repository (in addition to the --reset). Work with just the --userns=keep-id though

etchevef avatar Jun 27 '25 13:06 etchevef