Comments (2)
After install the port, you should see the following message about environmental variables.
from photoprism-freebsd-port.
Hi.
Those two variables in /etc/rc.conf are used to launch the photoprism server properly at startup.
photoprism_assetspath
photoprism_storagepath
But, afterwards, if you just want to run the photoprism command for any purpose (manually index your files, get the configuration, purge, cleanup, backup, etc...), an error is given, since those folders are not found.
For example:
photoprism config
....
ERRO[2021-05-24T04:54:17Z] config: failed creating /.photoprism/storage/serial: open /.photoprism/storage/serial: no such file or directory
...
Another example:
root@Emby2:/ # photoprism purge
ERRO[2021-05-24T05:01:14Z] assets path not found, run 'photoprism config' to check configuration options
root@Emby2:/ # photoprism cleanup
ERRO[2021-05-24T05:02:37Z] assets path not found, run 'photoprism config' to check configuration options
But, if they are given as parameters to photoprism command every time, it works fine:
photoprism --assets-path=/var/db/photoprism/assets --storage-path=/var/db/photoprism/storage --originals-path=/var/db/photoprism/storage/originals --import-path=/var/db/photoprism/storage/import config
Another option is to set those environment variables and no extra parameters must be given to photoprism
command to work properly:
setenv PHOTOPRISM_ASSETS_PATH "/var/db/photoprism/assets"
setenv PHOTOPRISM_STORAGE_PATH "/var/db/photoprism/storage"
setenv PHOTOPRISM_ORIGINALS_PATH "/var/db/photoprism/storage/originals"
https://docs.photoprism.org/getting-started/config-options/
Thanks.
from photoprism-freebsd-port.
Related Issues (20)
- Update to Release 220901-f493607b0 HOT 2
- heif-convert binary is missing HOT 2
- libtensorflow1 dependency via FreshPorts broken HOT 4
- GO error when compiling HOT 3
- Registering installation step failing HOT 5
- Update port to Release 221118-e58fee0fb HOT 12
- Upgrade guidelines HOT 2
- Node fails to install maplibre-gl HOT 1
- Cannot build: USES=go has invalid arguments: 1.19 HOT 3
- latest prebuilt binary are missing several tabs in Settings HOT 3
- Develop version of makefile HOT 3
- Upgrade port to new version (230502-c405f6eff) HOT 2
- multimedia/ffmpeg updated to version 6, not compatible with Photoprism HOT 2
- libheif problem HOT 7
- photoprism cli "invalid assets path, check configuration and permissions" HOT 7
- NPM errror building in poudriere HOT 2
- Photoprism not starting using new FreeBSD 13.1 build HOT 15
- FreeBSD 14 Binary Packages HOT 13
- Duplicate plist file HOT 1
- Build error g20240420 in FreeBSD 13.3 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photoprism-freebsd-port.