Open johannesparty opened 8 months ago
It looks like your jail cannot access the internet. I just ran the script without issues.
Can you confirm that your default gateway and dns is set on your TrueNAS CORE host?
Yes; the jail shell seems to be able to access the internet no problems.
I'm still thinking maybe version 12 pkg stuff just isn't available on the mirror anymore.
This works: http://pkg.freebsd.org/FreeBSD:13:amd64/ This does returns 404: http://pkg.freebsd.org/FreeBSD:12:amd64/ This page only lists versions 13, 14, 15: http://pkg.freebsd.org
When I force RELEASE=13.2-RELEASE (uncommented this line; commented out the other line), then the installation seems to work. However, when I try to connect, I always get 502 error.
I do see these errors during install; not sure it is related or not.
Failed to install the following 1 package(s): https://github.com/psa/libtensorflow1-freebsd-port/releases/download/1.15.5/libtensorflow1-1.15.5-FreeBSD-12.2-noAVX.pkg
Command: /bin/sh -c pkg add https://github.com/psa/libtensorflow1-freebsd-port/releases/download/1.15.5/libtensorflow1-1.15.5-FreeBSD-12.2-noAVX.pkg failed!
add separatedTensorflow
[photoprism] Fetching photoprism-g20230719-FreeBSD-12.3-separatedTensorflow.pkg: 100% 209 MiB 54.7MB/s 00:04
[photoprism] Installing photoprism-g20230719...
pkg: wrong architecture: FreeBSD:12:amd64 instead of FreeBSD:13:amd64
Failed to install the following 1 package(s): https://github.com/psa/photoprism-freebsd-port/releases/download/2023-07-19/photoprism-g20230719-FreeBSD-12.3-separatedTensorflow.pkg
To answer your question, I have two name servers set: 8.8.8.8 and 192.168.5.1 which is my router. I am confident this is not the problem though. Thanks in advance for your help!
I don't mind using 13.2-RELEASE version, but not usable now because of 502 error and probably need to fix up the tensorflow version too.
The script installs photoprism that was compiled for the 12 release, so it won't work on 13.
I haven't been able to compile or use the photoprism port for the 13 release because of different issues and errors. But for now, the script requires a 12 jail.
I'm having no issue running the script.
You could try to edit the photoprism and libtensorflow lines in the scirpt to use the photoprism 13 port from here and the libtensorflow 13 port from here
Make sure you edit the script to create a 13 jail also, and make sure to select the 13 pkg from the above links.
I have the exact same issue. It looks like FreeBSD 12.4 reached the EOL state with the end of year 2023 and packages now aren't available through the standard way. Could it maybe be possible to set the source to archives instead of current releases, if something like that exists?
I’m not sure. I’ve been trying to compile for FreeBSD 13, but haven’t had much luck.
Try using this FreeBSD 12 mirror instead: http://mirror.sg.gs/freebsd-pkg/FreeBSD:12:amd64/latest
Script used to work (one month ago), but not it is failing as follows. I am running TrueNAS Core: "TrueNAS-13.0-U6.1" I've done a tiny bit debugging (see end this report), but I don't really know enough freebsd/pkg stuff to get far. I appreciate your help!
I'm not super knowledgable about freebsd, so following is conjecture. It sounds like "pkg" isn't available in the jail. From the jail itself: