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 install on UDM Pro 2.5.17 #537

Open
MarQuez-Mr opened this issue Apr 23, 2023 · 3 comments
Open

Podman install on UDM Pro 2.5.17 #537

MarQuez-Mr opened this issue Apr 23, 2023 · 3 comments

Comments

@MarQuez-Mr
Copy link

I'm trying to install podman on a UDM Pro which I today upgraded from latest 1.x to 2.4 and then directly to 2.5.17.

I succesfully installed the on_boot script following link

From there I went to the following instructions podman install.

First thing I notice is that the filenames on https://unifi.boostchicken.io/ are not the same as in the script, in the script is referred to "udmpro-podman-install.zip" where on the website the different names are used.

This i resolved by changing the script to reflext to download the correct file link at least i think this is the correct one, is it? Or should is use the one in the 2.5.17 folder?

What is notice when I execute 00-podman.sh is that it creates a folder "podman-v4.5.0-UDM-Pro-SE" in the root directry of the udm pro, which then contains simlinks to the folder "/data/podman/install/podman-v4.5.0-UDM-Pro-SE/" folder like below.

lrwxrwxrwx 1 root root 58 Apr 23 20:59 crun -> /data/podman/install/podman-v4.5.0-UDM-Pro-SE/usr/bin/crun lrwxrwxrwx 1 root root 58 Apr 23 20:59 runc -> /data/podman/install/podman-v4.5.0-UDM-Pro-SE/usr/bin/runc lrwxrwxrwx 1 root root 60 Apr 23 20:59 podman -> /data/podman/install/podman-v4.5.0-UDM-Pro-SE/usr/bin/podman

lrwxrwxrwx 1 root root 76 Apr 23 20:59 registries.conf -> /data/podman/install/podman-v4.5.0-UDM-Pro-SE/etc/containers/registries.conf lrwxrwxrwx 1 root root 76 Apr 23 20:59 containers.conf -> /data/podman/install/podman-v4.5.0-UDM-Pro-SE/etc/containers/containers.conf lrwxrwxrwx 1 root root 72 Apr 23 20:59 policy.json -> /data/podman/install/podman-v4.5.0-UDM-Pro-SE/etc/containers/policy.json lrwxrwxrwx 1 root root 73 Apr 23 20:59 storage.conf -> /data/podman/install/podman-v4.5.0-UDM-Pro-SE/etc/containers/storage.conf

The script fails with the message "something went wrong" as it can't detect that podman is installed.

DreamMachinePro:/# podman version
-bash: podman: command not found

Should podman and the other files not be placed in /usr/bin/" and the other related folders?

Thanks in advance, let me know if more information is needed.

@whoacowboy
Copy link

@MarQuez-Mr Hey check out #537

@whoacowboy
Copy link

HA! @MarQuez-Mr Try this one. #533 (comment)

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.

This got it to almost install but there was an error that the policy.json file was missing. I got a copy of that file from a newer download and added it my conf directory. I can't find a link right now but the contents are below.

/data/podman/conf/policy.json

{
    "default": [{"type": "insecureAcceptAnything"}]
}

Podman isn't reinstalling on reboot at this point but it is up and running.

@Mike-de-bike
Copy link

HA! @MarQuez-Mr Try this one. #533 (comment)

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.

This got it to almost install but there was an error that the policy.json file was missing. I got a copy of that file from a newer download and added it my conf directory. I can't find a link right now but the contents are below.

/data/podman/conf/policy.json

{
    "default": [{"type": "insecureAcceptAnything"}]
}

Podman isn't reinstalling on reboot at this point but it is up and running.

Thx

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

3 participants