tschettervictor / truenas-iocage-photoprism

GNU General Public License v3.0
9 stars 0 forks source link

pkg-static: http://pkgmir.geo.freebsd.org/FreeBSD:12:amd64/quarterly/meta.txz: Not Found #1

Open johannesparty opened 8 months ago

johannesparty commented 8 months ago

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!

Script started, output file is photoprism.log
JAIL_INTERFACES not set, defaulting to: vnet0:bridge0
No existing database detected. Starting full install.
Default mac_prefix specified in defaults.json '0c9d92' is invalid. Using '9ab785' mac prefix instead.
photoprism successfully created!

Testing Host DNS response to pkg.freebsd.org
Testing photoprism's SRV response to pkg.freebsd.org
Testing photoprism's DNSSEC response to pkg.freebsd.org

Installing pkg...
pkg failed to install, retry #1
pkg failed to install, retry #2
pkg failed to install, retry #3

pkg error:
  - pkg-static: http://pkgmir.geo.freebsd.org/FreeBSD:12:amd64/quarterly/meta.txz: Not Found
pkg-static: http://pkgmir.geo.freebsd.org/FreeBSD:12:amd64/quarterly/packagesite.pkg: Not Found
pkg-static: http://pkgmir.geo.freebsd.org/FreeBSD:12:amd64/quarterly/packagesite.txz: Not Found

Please check your network
Failed to create jail

Script done, output file is photoprism.log

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:

root@photoprism:~ # pkg
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:12:amd64/quarterly, please wait...
pkg: Error fetching http://pkg.FreeBSD.org/FreeBSD:12:amd64/quarterly/Latest/pkg.txz: Not Found
A pre-built version of pkg could not be found for your system.
Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.
tschettervictor commented 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?

johannesparty commented 8 months ago

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
johannesparty commented 8 months ago

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!

johannesparty commented 8 months ago

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.

tschettervictor commented 8 months ago

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.

MatejKocourek commented 6 months ago

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?

tschettervictor commented 6 months ago

I’m not sure. I’ve been trying to compile for FreeBSD 13, but haven’t had much luck.

jakepog commented 4 months ago

Try using this FreeBSD 12 mirror instead: http://mirror.sg.gs/freebsd-pkg/FreeBSD:12:amd64/latest