Photoprism will not upload large videos - PHOTOPRISM_ORIGINALS_LIMIT

canosgmk

Dabbler
Joined
Dec 4, 2022
Messages
32
Hello,

went through 3 pages of “photoprism” Search and didn’t see a fix for truenas scale.

per the title, any video above 100mb, I get an error that the file is too big or it goes through the motion and just, stops.
I went on photoprism‘s and they told me I need to edit the following line to this: PHOTOPRISM_ORIGINALS_LIMIT -1.

I can’t for the life of me find out how to do this in scale.
to be fair, nextcloud gives me the same issue
 

Daisuke

Contributor
Joined
Jun 23, 2011
Messages
1,041
@canosgmk, I only use TrueCharts apps, I don't know the answer for the official apps. First you need to look at the variables set into chart, if the variable is not present there, then you can set it into app UI. As far as I know, you cannot change pre-defined chart variables, not unless they are defined as option in UI. Luckily for us, PHOTOPRISM_ORIGINALS_LIMIT is not pre-defined into chart. Transcoding is not supported into application, since is sponsor based. You can apply the same login for NextCloud, see my related Photoprism app settings, below.

Extra Environment Variables:

1671500063235.png


Storage and Persistence:
  • All /tmp related directories as ramdisk
1671500243044.png


Resources and Devices:
  • 16Gi of dynamically allocated RAM
1671508154010.png
 
Last edited:

canosgmk

Dabbler
Joined
Dec 4, 2022
Messages
32
@canosgmk, I only use TrueCharts apps, I don't know the answer for the official apps. First you need to look at the variables set into chart, if the variable is not present there, then you can set it into app UI. As far as I know, you cannot change pre-defined chart variables, not unless they are defined as option in UI. Luckily for us, PHOTOPRISM_ORIGINALS_LIMIT is not pre-defined into chart. Transcoding is not supported into application, since is sponsor based. You can apply the same login for NextCloud, see my related Photoprism app settings, below.

Extra Environment Variables:

View attachment 61239

Storage and Persistence:
  • All /tmp related directories as ramdisk
View attachment 61240

Resources and Devices:
  • 16Gi of dynamically allocated RAM
View attachment 61247
Thank you for the feed back. I went a head and tried the settings you gave me. couldn't verify the variables in Scale. my knowledge of 'shell' is super limited and everything i do says i don't have permission.

anyway, so not the 9min video "uploads" to photoprism directly (photosync still gives me code 413 - request is too large). it says the upload is complete with no error message, but the file never shows up. I allowed over an hour for the video to populate.

any ideas?
 

canosgmk

Dabbler
Joined
Dec 4, 2022
Messages
32
Update:

Found the issue!!!

So, I am using a domain from Cloudflare and i didn't even think about reading the "limitations" of data transfer. Would never thought moving my iphone videos and photos would be an issue (as well as jellyfin and nextcloud).

Cloudflare, how we like to nickel and dime you.

found a thread (reddit thread) that talked about this, so i put in my network IP and port directly to photoprism, an BOOM. no issues. I also did the same with photosync and again, no problems. Then i connected to nextcloud via IP/port and once again, no problems transferring/uploading a 9min video from my phone to the server.

Sadly, I already paid for my domain for 10 years and stuck with it.

I'm guessing i'll just program the family's devices with photosync with the home network information for updating and use the domain for view/sharing.
 

Daisuke

Contributor
Joined
Jun 23, 2011
Messages
1,041
@canosgmk You could also use a photoprism.lan address, like I do, and access it from everywhere with a VPN if needed.

With Cloudflare eliminated from equation, applying the setting fixed your issue? What happens if you import the video through IP directly without the PHOTOPRISM_ORIGINALS_LIMIT setting enabled? I think that setting might be default, I don’t have a large video to test. Do you mind trying please?
 
Last edited:
Top