Closed war59312 closed 2 months ago
This doesn't seem to occur when installing on an amd64 build of pfSense Plus 24.03 (which is what the package was tested on). Both v1 and v2 install and operate normally. I believe the 3100 has a 32-bit CPU which may not be able to handle some of the larger integers used in the package. To confirm, can you run uname -a
from the pfSense command line?
You are correct, has a 32bit ARM CPU.
[24.03-RELEASE][admin@pfSense.localdomain]/root: uname -a
FreeBSD pfSense.localdomain 15.0-CURRENT FreeBSD 15.0-CURRENT #1 plus-RELENG_24_03-n256311-e71f834dd81: Fri Apr 19 00:24:55 UTC 2024 root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-24_03-main/obj/armv7/07ElPskS/var/jenkins/workspace/pfSense-Plus-snapshots-24_03-main/sources/FreeBSD-src-plus-RELENG_24_03/arm.armv7/sys/pfSense-3100 arm
Friendly suggestion, if not planning to support 32bit arm for version 2, then recommend stating so in the README and tell users to use version 1 instead.
And put a check in the version 2 package that first verifies not running on 32bit and if it is, stop and give an error.
I was under the impression that 24.03 would not support 32-bit ARM since it was based on FreeBSD 15 (https://forum.netgate.com/topic/183472/3100-will-reach-end-of-life-in-5-days/6) so it was not considered during development. That was an error on my part.
Friendly suggestion, if not planning to support 32bit arm for version 2, then recommend stating so in the README and tell users to use version 1 instead.
And put a check in the version 2 package that first verifies not running on 32-bit and if it is, stop and give an error.
Short term, I will add some safety checks for this in the next patch and add a warning in the documentation specifically about 32-bit support, there is a general 'Not tested on anything but amd64' warning but I agree this probably warrants more.
Long term, I'm not opposed to making changes to allow the package to install cleanly on 32-bit systems assuming there's enough demand for it and there are enough Netgate 3100 users willing to test it out.
I'll also leave some instructions here in case anybody else runs into this issue or an issue similar where the package can't be removed via pfsense-restapi delete
:
pkg-static delete pfSense-pkg-RESTAPI
. This should remove the package directly without calling PHP to execute any helper functions.If that doesn't remove the package, you can try the following:
rm -rf /usr/local/pkg/RESTAPI
rm -rf /usr/local/www/api/v2
rm /etc/inc/priv/restapi.priv.inc
pkg-static delete pfSense-pkg-RESTAPI
, you will likely see lots of errors that expected files were missing, but that's to be expected since they were manually removed.Sounds good. Much appreciated.
Yea the FeeBSD team decided to keep a little 32bit support going for now. :)
Per https://lists.freebsd.org/archives/freebsd-announce/2024-February/000117.html
FreeBSD is deprecating 32-bit platforms over the next couple of major releases. We anticipate FreeBSD 15.0 will not include the armv6, i386, and powerpc platforms, and FreeBSD 16.0 will not include armv7. Support for executing 32-bit binaries on 64-bit kernels will be retained through at least the lifetime of the stable/16 branch if not longer. (There is currently no plan to remove support for 32-bit binaries on 64-bit kernels.)
The pfsense 3100 is armv7 so good for now at least.
Describe the bug Attempted install of v2 on my pfsense 3100. Already had working v1.
To Reproduce Steps to reproduce the behavior:
pfsense then craashes:
The web server encountered an error processing this request. 50x error
Expected behavior Install cleanly without crashing
Response
pfSense Version & Package Version:
Sadly webui is now hard down.
Tried via SSH:
11 Restart GUI 16 Restart PHP-FPN 15 Restore recent configuration
Sadly GUI is still down with 500 error.
Tried to remove via SSH but stil 500 error and remove failed too:
Alright managed to get webui back up and removed the package for now. See it removed both v1 and v2.