INSTALL GUIDE: PhotoPrism in a Jail on TrueNAS Core 13.0

nikinp

Contributor
Joined
Sep 7, 2014
Messages
116
I cannot get the videos to playback. Error message as:
1694775759079.png
 

nikinp

Contributor
Joined
Sep 7, 2014
Messages
116
I see the port got updated last week. I have modified the script to use latest version. Can you try it with that?
I did that but sadly, no luck - still no video playback.
 

victort

Guru
Joined
Dec 31, 2021
Messages
973
Wondering if it has anything to do with the 12.4 Release.
I changed the script to use 13.2
Can you try that?

Although at this point I'm assuming it might have something to do with your hardware, because I haven't seen that issue. I don't use PhotoPrism so that might be why, but I did do some testing while creating the script.
 

nikinp

Contributor
Joined
Sep 7, 2014
Messages
116
Wondering if it has anything to do with the 12.4 Release.
I changed the script to use 13.2
Can you try that?

Although at this point I'm assuming it might have something to do with your hardware, because I haven't seen that issue. I don't use PhotoPrism so that might be why, but I did do some testing while creating the script.
someone else noted not being able to play videos earlier in this thread.
 

nikinp

Contributor
Joined
Sep 7, 2014
Messages
116

Toadlips

Dabbler
Joined
Jan 29, 2015
Messages
20
Hi nikinp, I originally followed this guide and was having issues with transcoding via ffmpeg. If your issue is the same as mine, then I can say that the issue has been fixed in the latest version (230923-230923)!

The issue was related to the -r option being used in conjunction with the -vsync option -- that's a no-no, at least with the version of ffmpeg I was using. I am not a freebsd or ffmpeg expert, but I'm sure that whatever ffmpeg is currently shipping with the 12.4 jail is what I used. Here's some more info on that issue and the resolution: https://github.com/photoprism/photoprism/issues/3659#event-10455019855..

In any case, all of my issues were resolved by installing to a 13.2 jail, setting my repository to "daily" rather than quarterly (in order to get the very latest gettext and ffmpeg), and compiling using the makefile at https://github.com/huo-ju/photoprism-freebsd-port
 

victort

Guru
Joined
Dec 31, 2021
Messages
973
I just updated my script to use 13.2 release. Was wondering if anyone want to give it a shot and see it the issue is still there. I'm also using the binary that was released 3 weeks ago from the link you posted above.
 

milosbabovic

Cadet
Joined
Oct 21, 2023
Messages
6
"Hit ENTER at the root password prompt"

only if you didn't create a password for your True Nas root user.
 

exeter_acres

Explorer
Joined
Oct 8, 2020
Messages
54
Well shoot... following the guide and I am at this step:
Edit a file called /mnt/photos/options.yml:
micro /mnt/photos/options.yml

I'm in the editor and put all the info in:
# options.yml
---
AuthMode: public #[OPTIONAL]
AssetsPath: /var/db/photoprism/assets
StoragePath: /mnt/photos
OriginalsPath: /mnt/photos/originals
ImportPath: /mnt/photos/import
# The following lines are only needed if you set up the
# optional MariaDB server
DatabaseDriver: mysql
DatabaseName: photoprism
DatabaseServer: "127.0.0.1:3306"
DatabaseUser: photoprism
DatabasePassword: CHANGEME
...


But when I try to exit the editor I get:
"Parent dirs don't exist, enable 'mkparents' for auto creation"

Not sure what next... I'm sure it's simple!
Any guidance?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Well shoot... following the guide and I am at this step:
Edit a file called /mnt/photos/options.yml:
micro /mnt/photos/options.yml
Are you inside the jail? iocage console <jailname>?
 
Last edited:

victort

Guru
Joined
Dec 31, 2021
Messages
973
Well shoot... following the guide and I am at this step:
Edit a file called /mnt/photos/options.yml:
micro /mnt/photos/options.yml

I'm in the editor and put all the info in:
# options.yml
---
AuthMode: public #[OPTIONAL]
AssetsPath: /var/db/photoprism/assets
StoragePath: /mnt/photos
OriginalsPath: /mnt/photos/originals
ImportPath: /mnt/photos/import
# The following lines are only needed if you set up the
# optional MariaDB server
DatabaseDriver: mysql
DatabaseName: photoprism
DatabaseServer: "127.0.0.1:3306"
DatabaseUser: photoprism
DatabasePassword: CHANGEME
...


But when I try to exit the editor I get:
"Parent dirs don't exist, enable 'mkparents' for auto creation"

Not sure what next... I'm sure it's simple!
Any guidance?
You can try to install photo prism using the script linked to in my signature.

Otherwise the command to create a directory would be mkdir -p /mnt/photos
 

exeter_acres

Explorer
Joined
Oct 8, 2020
Messages
54
You can try to install photo prism using the script linked to in my signature.

Otherwise the command to create a directory would be mkdir -p /mnt/photos
Getting further... appears the mkdir for the photos and originals is getting me further..

My bad...thought all folders were created by the pkg install
 
Last edited:

exeter_acres

Explorer
Joined
Oct 8, 2020
Messages
54
Ok... made it through!! Webpage up and running.. now to load some of my photos and play around a bit! Thanks for the guide and thanks for the assist!
 

exeter_acres

Explorer
Joined
Oct 8, 2020
Messages
54
Ugg... now when I try to scan Photos it says the Originals folder is empty.......... if I navigate to the originals folder via Sharing, it shows everything there.....
Destination for the mount points is /mnt/MyNas/iocage/jails/photos/root/photos/originals
 

milosbabovic

Cadet
Joined
Oct 21, 2023
Messages
6
Ugg... now when I try to scan Photos it says the Originals folder is empty.......... if I navigate to the originals folder via Sharing, it shows everything there.....
Destination for the mount points is /mnt/MyNas/iocage/jails/photos/root/photos/originals
You should set "/mnt/MyNas/iocage/jails/photos/root/photos" as destination on mount.
 

milosbabovic

Cadet
Joined
Oct 21, 2023
Messages
6
Successfully tested now that it is possible to use newer Photoprism release.

Use link: https://github.com/psa/photoprism-f...20230719-FreeBSD-12.3-separatedTensorflow.pkg.

This release allows connecting membership account from https://my.photoprism.app/ to private Photoprism instances, which I tested with Essentials Tier.

The only difference is that command for changing admin password doesn't work, so I put new admin password in options.yml file with AdminPassword: PASSWORD line, as in Authentication section of https://docs.photoprism.app/getting-started/config-files/
 
Top