Skip to content
This repository has been archived by the owner on Jan 7, 2024. It is now read-only.

What platforms support arm64, if any? #39

Closed
paul-theorem opened this issue Apr 23, 2020 · 8 comments
Closed

What platforms support arm64, if any? #39

paul-theorem opened this issue Apr 23, 2020 · 8 comments

Comments

@paul-theorem
Copy link

I am running unifi-controller on a raspberry pi 3B+. It was running successfully in 32 bit mode for a couple weeks - but then i ran into the mongodb 32bit data size problem:


Expected Behavior

unifi-controller should start in docker-compose.

Current Behavior

pi@unifi-controller:~/unifi $ docker-compose up
Starting unifi-controller ... done
Attaching to unifi-controller
unifi-controller exited with code 159

Steps to Reproduce

On the rpi, running raspbian, update and enable arm64

sudo apt-get update
sudo apt-get upgrade

vi /boot/config.txt:
add:
arm_64bit=1

sudo reboot

validate running arm64:

pi@unifi-controller:~ $ uname -a
Linux unifi-controller 4.19.97-v8+ #1294 SMP PREEMPT Thu Jan 30 13:27:08 GMT 2020 aarch64 GNU/Linux

Now, docker pull the arm64 version:

docker pull linuxserver/unifi-controller:arm64v8-latest
docker-compose up

docker-compose.yaml:

Environment

**OS: raspbian

pi@unifi-controller:~/unifi $ lsb_release -a
No LSB modules are available.
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 10 (buster)
Release:	10
Codename:	buster

CPU architecture: x86_64/arm32/arm64
arm64, aarch64:

uname -a
Linux unifi-controller 4.19.97-v8+ #1294 SMP PREEMPT Thu Jan 30 13:27:08 GMT 2020 aarch64 GNU/Linux

How docker service was installed:
docker pull command above, as well as docker-compose.yaml

Command used to create docker container (run/create/compose/screenshot)

---
version: "2"
services:
  unifi-controller:
    image: linuxserver/unifi-controller:arm64v8-latest
    container_name: unifi-controller
    environment:
      - PUID=1000
      - PGID=1000
      - MEM_LIMIT=768M #optional
    volumes:
      - /home/pi/unifi/data:/config
    ports:
      - 3478:3478/udp
      - 10001:10001/udp
      - 80:8080
      - 8080:8080
      - 8081:8081
      - 443:8443
      - 8843:8843
      - 8880:8880
      - 6789:6789
      - 27117:27117
    restart: unless-stopped

Docker logs

docker-compose up
Starting unifi-controller ... done
Attaching to unifi-controller
unifi-controller exited with code 159
@tobbenb
Copy link
Member

tobbenb commented Apr 23, 2020

Have you tried using a clean setup, not reusing your existing config from the 32bit setup?
You don't have to specify the arch when pulling the container. Use linuxserver/unifi-controller and docker will pull the correct arch.

On second thoughts, I'm not sure if I understand your 32 to 64 bit upgrade. Are you saying you only enable it in the boot file and then only ran apt-get update and upgrade? You have to install a 64 bit os to get it to work. I'm not sure raspbian have a 64 bit release for the pi 3.

@paul-theorem
Copy link
Author

I have not, but i can do pretty easy. Let me try that and get back to you. I'll start with a completely empty data directory. I only care about the config (trivial to backup), not the history data anyway.

@paul-theorem
Copy link
Author

First - trying with a clean setup, it does seem to error in the same way:

pi@unifi-controller:~/unifi64 $ docker-compose up
Creating unifi-controller64 ... done
Attaching to unifi-controller64
unifi-controller64 exited with code 159
pi@unifi-controller:~/unifi64 $ ls -la data/
total 8
drwxr-xr-x 2 pi pi 4096 Apr 23 09:26 .
drwxr-xr-x 3 pi pi 4096 Apr 23 11:16 ..

@paul-theorem
Copy link
Author

Regarding "a 64 bit os" - raspbian seems to be in a mixed mode - with a 64 bit kernel, and some 32, some 64 bit packages. Clearly the kernel is running in 64 bit mode

pi@unifi-controller:~/unifi64 $ uname -a
Linux unifi-controller 4.19.97-v8+ #1294 SMP PREEMPT Thu Jan 30 13:27:08 GMT 2020 aarch64 GNU/Linux

aarch64

That said - i'm totally open to another OS, and is sort of what i was asking in the title.

Can you suggest an OS that is 64 bit arm? Ie - i'm happy to try a complete OS upgrade (i have several rpis) - but i don't know what OS to choose. I'd like to choose an OS where you might know and/or have tested or developed the 64 bit arm docker images?

What OS do you suggest for me - Raspberry PI 3B+

@tobbenb
Copy link
Member

tobbenb commented Apr 23, 2020

I found out after my last comment that the is is still 32 bit but you can run 64 bit binaries in a special mode.

I'm not sure which distros is true aarch64, but I think Ubuntu is.

@aptalca
Copy link
Member

aptalca commented Apr 23, 2020

yeah, I recommend the official ubuntu. That one has 64 bit versions

@paul-theorem
Copy link
Author

I will build out a new controller with ubuntu, and give it a try. Thanks for the recommendation. I think many (maybe most) running arm are on RPI 3 or 4 - so you might throw an OS recommendation on the default documentation. But i appreciate the response. Feel free to close this - or leave it open and I can comment in the next 24 hours when i give it a try w/ ubuntu.

@paul-theorem
Copy link
Author

I can confirm ubuntu 64 bit works on rpi3 using (essentially) the same dockerfile as above.

Thanks.

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

No branches or pull requests

3 participants