Thanks for the report!
I'll add the dependency. Should find the time early next week!
Git Clone URL: | https://aur.archlinux.org/photoprism-bin.git (read-only, click to copy) |
---|---|
Package Base: | photoprism-bin |
Description: | Personal Photo Management powered by Go and Google TensorFlow |
Upstream URL: | https://github.com/photoprism/photoprism |
Keywords: | photography private-cloud self-hosted tensorflow |
Licenses: | AGPL-3.0-only |
Conflicts: | photoprism |
Provides: | photoprism |
Submitter: | thomaseizinger |
Maintainer: | thomaseizinger |
Last Packager: | thomaseizinger |
Votes: | 12 |
Popularity: | 0.000470 |
First Submitted: | 2024-05-18 15:06 (UTC) |
Last Updated: | 2024-06-25 11:27 (UTC) |
Thanks for the report!
I'll add the dependency. Should find the time early next week!
Hi, from yay -Sy photoprism
, I got:
[...]
# github.com/mattn/go-sqlite3
sqlite3-binding.c: In function ‘sqlite3SelectNew’:
sqlite3-binding.c:125801:10: warning: function may return address of local variable [-Wreturn-local-addr]
125801 | return pNew;
| ^~~~
sqlite3-binding.c:125761:10: note: declared here
125761 | Select standin;
| ^~~~~~~
39M ./photoprism
Done.
node: error while loading shared libraries: libicui18n.so.71: cannot open shared object file: No such file or directory
==> ERROR: A failure occurred in build().
Aborting...
-> error making: photoprism
... which seemed to indicate I was missing the icu
package. I installed it with pacman -Sy icu
and that got the installation working properly.
It sounds like icu
should be a dependency?
Edit: removed useless log line
Hi, I cannot start service after installing package :-(
Got error in journal:
level=fatal msg="cannot create /.photoprism/storage: please check configuration and permissions"
Package version 220107
Also by default photoprism uses sqlite. Switching to mariadb should boost performance on instances with lots of photos
Yes. This can easily be enabled by editing the provided options.yml
file:
DatabaseDriver: mysql
I agree that this is not particularly discoverable. I might add more keys to the config file and comment them out by default.
Patches welcome: https://github.com/thomaseizinger/pkgbuilds/tree/master/photoprism
Maybe it would be a good idea to make manpages with some config snippets? For example it's possible to enable AVX2 + intel graphics support for tensorflow by adding
PHOTOPRISM_INIT: "intel-graphics tensorflow-amd64-avx2"
to docker-compose. There are no instructions on how to do it by editing config files manually. Also by default photoprism uses sqlite. Switching to mariadb should boost performance on instances with lots of photos
Please update
Latest update should fix permission issues within /var/lib/photoprism.
Anything in that directory is now set to be owned by the photoprism user.
Package is now updated to the latest release which includes face recognition!
I am working on updating the package to the latest release. I am doing some testing against my own instance to make sure face recognition works as expected before publishing the update here. Stay tuned!
Thanks for maintaining this package.
FYI here is my /etc/photoprism/options.yml as it shows a few settings that others may find useful, particularly the configuration of other Arch Linux packages so that PhotoPrism can properly index and convert from raw files etc. It may be useful to modify PKGBUILD to depend on those packages and amend the default options.yml to help new users get started.
# Bound to localhost as reverse proxied by Traefik
HttpPort: 2342
HttpHost: 127.0.0.1
SiteUrl: https://photos.mydomain.com
SiteTitle: "Photos"
AdminPassword: redacted
AssetsPath: /var/lib/photoprism/assets
ConfigPath: /mnt/data_0/photoprism/config
StoragePath: /mnt/data_0/photoprism/storage
OriginalsPath: /mnt/data_0/photoprism/samba/originals
ImportPath: /mnt/data_0/photoprism/samba/import
# pacman -S --noconfirm darktable rawtherapee libheif ffmpeg perl-image-exiftool
DarktableBin: /usr/bin/darktable-cli
RawtherapeeBin: /usr/bin/rawtherapee-cli
HeifConvertBin: /usr/bin/heif-convert
FFmpegBin: /usr/bin/ffmpeg
Also hot backups of the database can be performed using a command such as /usr/bin/photoprism --config-file=/etc/photoprism/options.yml backup /mnt/data_0/photoprism/storage/backup.sql
.
Pinned Comments
thomaseizinger commented on 2024-05-18 15:13 (UTC) (edited on 2024-05-19 11:56 (UTC) by thomaseizinger)
The
photoprism
package has been merged into thisphotoprism-bin
package which uses the pre-built binaries supplied by the project: https://aur.archlinux.org/packages/photoprism-bin