shinebayar-g / ufw-docker-automated

Manage docker containers firewall with UFW!
Apache License 2.0
198 stars 31 forks source link

Does not run on a Raspberry Pi @ Debian #41

Closed florie1706 closed 2 years ago

florie1706 commented 2 years ago

I ran this on a linux machine for several month without problems. Now I tried it on 2 Debian RPIs but without success:

sudo ./ufw-docker-automated

./ufw-docker-automated: 1: ELF: not found
./ufw-docker-automated: 2: @$: not found
./ufw-docker-automated: 2: @?: not found
./ufw-docker-automated: 2: ?: not found
./ufw-docker-automated: 2: ?{?{??: not found
./ufw-docker-automated: 2: ?: not found
./ufw-docker-automated: 2: p?{?: not found
./ufw-docker-automated: 2: b?: not found
./ufw-docker-automated: 1: z?: not found
./ufw-docker-automated: 3:?zR?
                             v: not found
./ufw-docker-automated: 4: Syntax error: ")" unexpected

sudo journalctl -u ufw-docker-automated -f

-- Journal begins at Thu 2019-02-14 11:11:59 CET. --
Dec 26 21:03:12 pi-docker systemd[1]: Started Ufw docker automated.
Dec 26 21:03:12 pi-docker systemd[23123]: ufw-docker-automated.service: Failed to execute /usr/lib/ufw-docker/ufw-docker-automated: Exec format error
Dec 26 21:03:12 pi-docker systemd[23123]: ufw-docker-automated.service: Failed at step EXEC spawning /usr/lib/ufw-docker/ufw-docker-automated: Exec format error
Dec 26 21:03:12 pi-docker systemd[1]: ufw-docker-automated.service: Main process exited, code=exited, status=203/EXEC
Dec 26 21:03:12 pi-docker systemd[1]: ufw-docker-automated.service: Failed with result 'exit-code'.
Dec 26 21:03:12 pi-docker systemd[1]: ufw-docker-automated.service: Scheduled restart job, restart counter is at 5.
Dec 26 21:03:12 pi-docker systemd[1]: Stopped Ufw docker automated.
Dec 26 21:03:12 pi-docker systemd[1]: ufw-docker-automated.service: Start request repeated too quickly.
Dec 26 21:03:12 pi-docker systemd[1]: ufw-docker-automated.service: Failed with result 'exit-code'.
Dec 26 21:03:12 pi-docker systemd[1]: Failed to start Ufw docker automated.

Any hint on this?

shinebayar-g commented 2 years ago

Hi. That's expected. Currently ufw-docker-automated is compiled to target only x86_64 architecture. Means it supports traditional computer CPUs, but doesn't support ARM based computers like Raspberry PI or Mac M1 etc. I can add build support for this. Hold on.

By the way, newer versions don't require sudo prefix. sudo is builtin directly inside binary now.

shinebayar-g commented 2 years ago

Hey I've just cut a new release to support Raspberry Pi systems. It also includes startup sync feature. Give this version a shot and let me know if it works!

florie1706 commented 2 years ago

@shinebayar-g Yes it works, thank you very much :)