Coder Social home page Coder Social logo

Comments (2)

huo-ju avatar huo-ju commented on July 28, 2024

After install the port, you should see the following message about environmental variables.

photoprism_assetspath="%%PHOTOPRISM_DATA_DIR%%/assets"

from photoprism-freebsd-port.

dml33 avatar dml33 commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.