-
Notifications
You must be signed in to change notification settings - Fork 245
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
Change python37 to python38 #321
Comments
thank you btw did Unifi run? |
Yes, ran fine. |
#311 |
Works great, used it a few times now. |
Not working for me on PFSense 2.7.0. The script runs to completion but there is an error part way up "Could not locate a valid mongodb package" and no version of MongoDB is installed and running at the end. (Why does the script continue when an essential package can't be installed instead of stopping with a critical error ?) This results in "HTTP Status 404 – Not Found" when trying to log in. PFSense 2.7.0 switched to a FreeBSD 14 base instead of FreeBSD 12.3 in 2.6.0.
|
Looking further the FreeBSD repository used by PFSense 2.7.0 does have a mongodb44, so adding it to the following line does allow the package to install:
However the wrong version of libcrypto.so and libssl.so are on the system:
The version on the system is libcrypto.so.111 etc. I did try to fudge it with symlinks however it then complained about the version of OpenSSL:
A bit stuck at the moment. What is the latest version of mongodb compatible with unifi ? Or are we just missing a package that includes older versions of crypto libraries ? |
I also noted that there appears to be an up to date version of the Unifi controller software (package name, Unifi7) in the freebsd 14 repo:
Are we unable to get this version working on PFSense ? I note that it uses mongodb44. |
@DBMandrake a code has been added for the script to stop/exit, supposedly on package failure. maybe that is not working as it is. currently I dont have pfsense 2.7, but I will be taking input of your progress. |
btw for 404 not found, try reinstalling script twice or 3 times before running. or waiting for 3 to 5 minutes before loading the site. sometimes unifi takes awhile to load. could you confirm that by adding mongodb44 there where no error in the script and i run completely? |
It installed mongodb44 and ran to completion, but mongodb cannot run due to the version of libcrypto it is looking for not existing, as shown in the error trying to run mongod directly.
That doesn't help - if mongodb is not running I can't see how it could work.
No, not found:
There is something unusual about PFSense 2.7.0 compared to previous versions - 2.6.0 was based on FreeBSD 12.3 Stable, however 2.7.0 is based on 14.0 Current, and the ABI of the packages in the PFSense repository does not seem to match the ABI of the FreeBSD 14 repository. Refer to the following page: https://docs.netgate.com/pfsense/en/latest/recipes/freebsd-pkg-repo.html When I try enabling the FreeBSD repo as documented (this documentation pre-dates PFSense 2.7.0 I think) and try to install any packages directly from the FreeBSD repo like libcrypto they are the wrong versions - they are version .30 so's while the packages from the PFSense repo are version .111. So there is a mismatch - this even breaks pkg itself - I had to disable the FreeBSD repo again and run I'm afraid my knowledge of the FreeBSD / PFSense package system is limited, I'm a Linux guy... 🙂 |
no more update |
Python37 no longer appears on FreeBSD official repos so installer stopped working for me on pfSense 2.6 base.
Changed to "python38" in the package script, ran locally and now it installs fine. You might also consider the python3 meta port/package, not sure if differences between 3.x versions are a problem or not.
Changed to:
AddPkg python38
at line 137.
The text was updated successfully, but these errors were encountered: