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

Podman Artifact broken #533

Closed
TheGeka opened this issue Apr 16, 2023 · 3 comments
Closed

Podman Artifact broken #533

TheGeka opened this issue Apr 16, 2023 · 3 comments

Comments

@TheGeka
Copy link

TheGeka commented Apr 16, 2023

Describe the bug
The podman artifact is broken the included crun files content is just the output of wget.
https://github.com/unifi-utilities/unifios-utilities/actions/runs/4519526074

root@Dream-Machine-Pro:~# cat podman-v4.4.2-UDM-Pro-SE/usr/bin/crun 

--2023-03-23 14:18:20--  https://github.com/containers/crun/releases/download/1.8.2/crun-1.8.2-linux-arm64
Resolving github.com (github.com)... 140.82.112.4
Connecting to github.com (github.com)|140.82.112.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/103446460/2f1bb72b-0db4-4793-874b-5db257a1e883?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230323%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230323T141820Z&X-Amz-Expires=300&X-Amz-Signature=10227fd3f23080c29b74821287ac4c653b11eaa5f2e48bd473a72e464fed212c&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=103446460&response-content-disposition=attachment%3B%20filename%3Dcrun-1.8.2-linux-arm64&response-content-type=application%2Foctet-stream [following]
--2023-03-23 14:18:20--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/103446460/2f1bb72b-0db4-4793-874b-5db257a1e883?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230323%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230323T141820Z&X-Amz-Expires=300&X-Amz-Signature=10227fd3f23080c29b74821287ac4c653b11eaa5f2e48bd473a72e464fed212c&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=103446460&response-content-disposition=attachment%3B%20filename%3Dcrun-1.8.2-linux-arm64&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.108.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2446160 (2.3M) [application/octet-stream]
Saving to: 'crun-1.8.2-linux-arm64'

But even when i manually download crun and put it in the correct folder i can't run any container because /proc/self/setgroups is missing
I tried with haproxy and ntopng, both fail with the same error

root@Dream-Machine-Pro:/# podman run -d --net=host --restart always    --name ntopng    -v /data/ntopng/GeoIP.conf:/etc/GeoIP.conf    -v /data/ntopng/ntopng.conf:/etc/ntopng/ntopng.conf    -v /data/ntopng/redis.conf:/etc/redis/redis.conf    -v /data/ntopng/lib:/var/lib/ntopng    docker.io/tusc/ntopng-udm:latest
WARN[0000] Failed to read current user namespace mappings 
Trying to pull docker.io/tusc/ntopng-udm:latest...
Getting image source signatures
Copying blob cb21d5ceda7a done  
Copying blob 60197a4c18d4 done  
Copying blob 9fa4e4007bc8 done  
Copying blob 18ba9b1a3bd9 done  
Copying config 940c27d07a done  
Writing manifest to image destination
Storing signatures
Error: crun: error opening file `/proc/self/setgroups`: No such file or directory: OCI runtime attempted to invoke a command that was not found

UDM Information

  • Variant: Dream Machine Pro
  • Firmware Version: 2.5.17 & 2.4.47
@JoeOIVOV
Copy link

JoeOIVOV commented Apr 17, 2023

Had a similar issue,

Had to change line 68 in 00-podman.sh to:

URL="https://box.msp-austria.cloud/s/podman/download/${DESIRED_ZIPFILE}"

and rerun the script, it downgraded podman to 4.4.2 to 3.4.4 and works perfectly on 2.5.17.

@boostchicken
Copy link
Member

Fixing now

@dokicro
Copy link

dokicro commented Apr 4, 2024

Had a similar issue,

Had to change line 68 in 00-podman.sh to:

URL="https://box.msp-austria.cloud/s/podman/download/${DESIRED_ZIPFILE}"

and rerun the script, it downgraded podman to 4.4.2 to 3.4.4 and works perfectly on 2.5.17.

Thanks for this!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants