jacobalberty / unifi-docker

Unifi Docker files
MIT License
2.09k stars 447 forks source link

Latest versions are not available in Docker Hub for arch. linux/arm/v7 #734

Open bmonteiro opened 3 months ago

bmonteiro commented 3 months ago

Operating system

Linux raspberrypi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux

UniFi Tag

v8

Docker run

docker run -d --init --restart=unless-stopped -p 8080:8080 -p 8443:8443 -p 3478:3478/udp -v ~/unifi:/unifi --user unifi --name unifi jacobalberty/unifi:v8.x.x

Bug description

Latest versions are not available in Docker Hub for arch. linux/arm/v7

Maybe related with MongoDB ?

"I do not see much of a path forward for armhf due to the lack of mongodb support for 32 bit arm, but I will support it as long as feasibly possible, for now that date seems to be expiration of support for ubuntu 18.04."

Steps to reproduce

No response

Relevant log output

No response

tylerbergmann commented 2 months ago

Just dropping in to say that I'm also having the same issue, nearly identical specs and details! Linux 6.1.21-v7+

Sysadminfromhell commented 2 months ago

You can See on dockerhub that thee latest an everythign after v7.4 is not build with armv7, I guess thats due to the fact that MongoDB dropped support and after 7,4 (7.5 and up) mongodb needs to be version 3.6 The best way is to migrate to a supported platform like arm64 (Rasperry pi 4 in arm64 mode) or amd64.

Sysadminfromhell commented 2 months ago

If you want you can try to built the dockerimage yourself and see why it isn't prebuilt anymore. use this command in the location where the dockerfile is located to get the build for your desired plattform: docker buildx build -f Dockerfile . --platform linux/arm/v7

Update:

I just did the work for you;

170.0 The following packages have unmet dependencies:
170.2  unifi : Depends: mongodb-server (>= 1:3.6.0) but it is not going to be installed or
170.2                   mongodb-10gen (>= 3.6.0) but it is not installable or
170.2                   mongodb-org-server (>= 3.6.0) but it is not installable
170.2          Depends: mongodb-server (< 1:7.1.0) but it is not going to be installed or
170.2                   mongodb-10gen (< 7.1.0) but it is not installable or
170.2                   mongodb-org-server (< 7.1.0) but it is not installable
170.2 E: Unable to correct problems, you have held broken packages.

its due to the dependencies to 3.6, the last pre build mongodb for v7 is 3.2 so this is the last officially build and supported mongodb version. If you want to Upgrade to 7.5 and higher please use a supported Plattform.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

jacobalberty commented 1 week ago

Unfortunately this is a hard requirement for the latest versions of Unifi. The version of mongodb required does not support arm and it is non-trivial to backport it. I did try a few times before I finally just updated my raspberry pi to arm64