Using family dashboard

I need help setting up ente family for my self hosted environment, on the docs there's instructions for setting the photos, accounts, albums, auth and cast parts of the web app, but I couldn't find nothing on the families Does anybody has any insight on this topic? Thanks in advance! 🦆
26 Replies
Ducky
Ducky•5mo ago
Remember to use /solved to mark your thread as solved once your question is answered.
TickleMeWalrus
TickleMeWalrus•5mo ago
Not sure if it’s a feature on self hosting given its primary function is to share a plan you’re paying for
zeonce
zeonceOP•5mo ago
ah bummer, I figured that it would be easier to manage my girl account with the family dashboard to see the space she uses and all, and not having to log into the postgres database to change her quota and all, but yea I thought that it wasn't possible because the code for the families app is on another repo (maybe after they merge with the other web apps would be possible?)
Hao
Hao•5mo ago
I also would love this since it helps visualize how much storage family is using total.
O'Neill
O'Neill•4mo ago
In https://github.com/ente-io/ente/discussions/2623 the "payment-provider" attribute is mentioned. So I searched within the postgresdatabase:
SELECT table_schema, table_name, column_name
FROM information_schema.columns
WHERE column_name ILIKE '%payment_provider%';
SELECT table_schema, table_name, column_name
FROM information_schema.columns
WHERE column_name ILIKE '%payment_provider%';
That found something in the table "subscriptions" : A "column_name" "product_id" which is set to "free" for each user right next to "payment_provider" I bet we need to change from "free" to something else, but all I tested didn't result in success.
O'Neill
O'Neill•4mo ago
Here is a screenshot of both columns
No description
O'Neill
O'Neill•4mo ago
@Staff is there a hidden ente cli flag we could use in "admin update-subscription"? If not, which values are valid in "product_id" and "payment_provider"? Thanks ahead and continue the great work! :duckyheart:
Brogio
Brogio•4mo ago
Please don't ping Staff
O'Neill
O'Neill•4mo ago
sorry
Brogio
Brogio•4mo ago
No problem 💚
vishnu
vishnu•4mo ago
free and None should work
O'Neill
O'Neill•4mo ago
sadly, neither "none" nor "None" seem to work. Column "product_id" and "payment_provider" tested.
vishnu
vishnu•4mo ago
What if you skip the param? If you have access to the DB, you could connect to it and change the rows directly as well
O'Neill
O'Neill•4mo ago
leaving empty didnt help. Yes, I am editing the DB.
vishnu
vishnu•4mo ago
curl -X PUT 'https://your-ente.io/admin/user/subscription' \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: ADMIN_TOKEN' \
--data '{
"userID": 5,
"productID": "free",
"storage": 2147483648000,
"transactionID": "xyz",
"expiryTime": 2036507111000000,
"paymentProvider": "",
"attributes": {}
}'
curl -X PUT 'https://your-ente.io/admin/user/subscription' \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: ADMIN_TOKEN' \
--data '{
"userID": 5,
"productID": "free",
"storage": 2147483648000,
"transactionID": "xyz",
"expiryTime": 2036507111000000,
"paymentProvider": "",
"attributes": {}
}'
There's no constraint on the payment_provider column, you can enter any non-empty value
O'Neill
O'Neill•4mo ago
This is an export of the row from the user: Looks pretty similar to what you sent 3,1580559962386440,536870912000,cli-on-1754399615,32503593600000000,2025-02-14 08:32:10.518527,free,"",,{},"0" What would be an appropriate Curl GET command to get everything from a specific user? curl -X GET 'https://my-ente.io/admin/user/subscription?userID=3' doesnt seem to work
O'Neill
O'Neill•4mo ago
Well, i don't get any errors using
curl -X GET 'https://my.ente.io/admin/user?userID=5' \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: ADMIN_TOKEN'
curl -X GET 'https://my.ente.io/admin/user?userID=5' \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: ADMIN_TOKEN'
But I get also no json object. Just nothing The same goes for the PUT command you sent. But at least the PUT does make changes. So that works. Should I get anything back?
Ducky
Ducky•4mo ago
Here are the cleaned links without tracking parameters:
O'Neill
O'Neill•4mo ago
Confirmed I set "productID": "none" via curl, but that doesn't work. The user is then not able to login anymore.
vishnu
vishnu•4mo ago
Product ID should be "free"
O'Neill
O'Neill•4mo ago
okay, it is. But how to apply a family plan then? I need to be in the "paid" subscription to use the family plan, correct? But which would that be?
O'Neill
O'Neill•4mo ago
No description
vishnu
vishnu•4mo ago
Got it, sorry I misunderstood your previous question Family plans aren't designed for our self hosted setup at the moment, since you get to administer the storage variables with less restrictions on your own server Is there a reason you're looking to use family plans instead of individual accounts?
O'Neill
O'Neill•4mo ago
Ah, get it! Thanks! I just recently introduced my wife to the product and while administering her and starting to share albums I stumbled accross the "family" option. I was then curious how other people manage that and got to this discussion: https://github.com/ente-io/ente/discussions/2623 which led me to a search in discord. I think managing individual accounts is just fine for self hosted if nothing else is implemented yet. So, @zeonce this post could be probably marked as solved?
vishnu
vishnu•4mo ago
Got it, thanks for sharing, and yes right now we don't have an easy way to configure family plans on self hosted instances, but I've made a note of this. If nothing, this will make it easier to re-configure storage limits (without using the CLI / poking the DB)

Did you find this page helpful?