Run PhotoPrism CLI commands inside LXC? #2138
-
Hello! Is there a way to run PhotoPrism commands within the LXC? From what I understand, these commands can only be ran inside Docker Compose? Is that the case?
Here's what happens when I run the help command: I'm kind of new to this, so I might be asking a dumb question. Sorry! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 11 replies
-
Those are Docker commands |
Beta Was this translation helpful? Give feedback.
-
The solution for this is to use a symlink like: sudo ln -sf /opt/photoprism/bin/photoprism /usr/local/bin/photoprism and you can use as a command, the problem is that everything I tried to run I got this error:
and commands like create a user , or photoprism users ls. but all of them will fail in my case :/ |
Beta Was this translation helpful? Give feedback.
-
Just create a user using cli while I don't have a plus subscription
The command tried is
photoprism users add ....
Em qua., 17 de jan. de 2024, 17:52, tteckster ***@***.***>
escreveu:
… What exactly are you trying to do?
—
Reply to this email directly, view it on GitHub
<#2138 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJJEXK22YRYIETGOHSBPOLYO76WLAVCNFSM6AAAAABADXEKCGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DCNJZGM3TI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Yes that is my problem, all the cli commands fail when using on this lxc
container :/
Em qui., 18 de jan. de 2024, 09:34, Puncake ***@***.***>
escreveu:
… Huh, never thought this thread would be revived again 😅
Anyway, those web UI options will only appear if we have paid for the
PhotoPrism Plus subscription:
PhotoPrism® Plus <https://www.photoprism.app/editions#compare> includes a
web user interface for account and session management, in addition to the command-line
interface <https://docs.photoprism.app/user-guide/users/cli/> available
in all editions.
For free users, the command-line interface
<https://docs.photoprism.app/user-guide/users/cli/> can apparently still
create/manage users:
Managing User Accounts¶
<https://docs.photoprism.app/user-guide/users/cli/#managing-user-accounts>
As an alternative to the web user interface
<https://docs.photoprism.app/user-guide/users/>, you can run the
following commands in a terminal
<https://docs.photoprism.app/getting-started/docker-compose/#command-line-interface>
to perform tasks such as adding, viewing, editing and deleting user
accounts:
From what I understand on that page, it seems the commands can only be ran
only from Docker.
—
Reply to this email directly, view it on GitHub
<#2138 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJJEXOZUMT7V7JFFKT5JULYPDM7VAVCNFSM6AAAAABADXEKCGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DCNRWGM2TK>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
If you run
in the LXC console, you can run all CLI commands including user managing (https://docs.photoprism.app/user-guide/users/cli/#managing-user-accounts) through
|
Beta Was this translation helpful? Give feedback.
I see, now it works!
So the commands to run (for me at least) are:
Thanks so much for looking into this!