unifi-utilities / unifios-utilities

A collection of enhancements for UnifiOS based devices
GNU General Public License v3.0
3.9k stars 418 forks source link

Podman Artifact broken #533

Closed TheGeka closed 1 year ago

TheGeka commented 1 year ago

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

JoeOIVOV commented 1 year ago

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 commented 1 year ago

Fixing now

dokicro commented 5 months ago

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!!