[BUG] Video Auto uploading not syncing at all
Actual behaviour
Auto upload Photos/Videos does not work. Last synchronization field shows a date and time of when the last supposed sync occurred however pictures/videos are not uploaded. I've had to use adb to pull the files onto a mac and upload via the desktop client successfully. I've let this run overnight with no luck at all. Logs do not seem to show any issues at all.
Another thing I found odd is when sharing the Camera folder with the app during the initial config; I hit "Use this folder" and I give it access by clicking "allow" but when viewing the app info in system settings and clicking on permissions it doesn't seem like the app has requested any other permissions. My hunch is this is a permissions related issue with stock Pixel OS. I have not tested this on other Androids but will do so and circle back with an update.
Expected behaviour
After setting up the auto uploading parameters the photos and videos should be uploaded automatically.
Steps to reproduce
- Install ownCloud app
- Login and configure account
- Setup photo/video sync
Can this problem be reproduced with the official owncloud server? (url: https://demo.owncloud.org, user: test, password: test)
Not sure, I'd imagine this is app related as I can sync from a desktop client.
Environment data
Android version: 14 (Build: AP1A.240505.005)
Device model: Pixel 7 Pro
Stock or customized system: Stock
ownCloud app version: 4.2.2 (5b2a42e26)
ownCloud server version: Docker 10.14.0.3
Logs
Web server error log
Too much to list here, no errors that I can see but can provide specifics if needed.
ownCloud log (data/owncloud.log)
I grabbed this through the URI and obfuscated username. I do not see anything of value here either.
{"reqId":"gWH7MzLn9RdZev7OOmeG","level":3,"time":"2024-05-30T23:43:01+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"Exception: {\"Exception\":\"OCP\\\\AppFramework\\\\QueryException\",\"Message\":\"Could not resolve OCA\\\\Federation\\\\SyncJob! Class OCA\\\\Federation\\\\SyncJob does not exist\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(109): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->resolve()\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/ServerContainer.php(86): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query()\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/BackgroundJob\\\/JobList.php(282): OC\\\\ServerContainer->query()\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/BackgroundJob\\\/JobList.php(218): OC\\\\BackgroundJob\\\\JobList->buildJob()\\n#4 \\\/var\\\/www\\\/owncloud\\\/core\\\/Command\\\/System\\\/Cron.php(115): OC\\\\BackgroundJob\\\\JobList->getNext()\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Command\\\/Command.php(298): OC\\\\Core\\\\Command\\\\System\\\\Cron->execute()\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(1040): Symfony\\\\Component\\\\Console\\\\Command\\\\Command->run()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(301): Symfony\\\\Component\\\\Console\\\\Application->doRunCommand()\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(171): Symfony\\\\Component\\\\Console\\\\Application->doRun()\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Console\\\/Application.php(165): Symfony\\\\Component\\\\Console\\\\Application->run()\\n#10 \\\/var\\\/www\\\/owncloud\\\/console.php(94): OC\\\\Console\\\\Application->run()\\n#11 \\\/var\\\/www\\\/owncloud\\\/occ(11): require_once('\\\/var\\\/www\\\/ownclo...')\\n#12 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php\",\"Line\":95}"}
{"reqId":"c50422d3-7bc5-4885-827e-83fd3fa4b295","level":2,"time":"2024-05-31T09:16:08+00:00","remoteAddr":"172.20.0.5","user":"<hidden user name>","app":"dav","method":"DELETE","url":"\/remote.php\/dav\/uploads\/<hidden user name>\/618311198","message":"Could not get node for path: \"uploads\/<hidden user name>\/618311198\" : File with name \/\/618311198 could not be located"}
{"reqId":"6c87c91d-05a8-40f1-bafd-a33c5f4713a1","level":2,"time":"2024-05-31T09:16:08+00:00","remoteAddr":"172.20.0.5","user":"<hidden user name>","app":"dav","method":"DELETE","url":"\/remote.php\/dav\/uploads\/<hidden user name>\/146790153","message":"Could not get node for path: \"uploads\/<hidden user name>\/146790153\" : File with name \/\/146790153 could not be located"}
{"reqId":"d8c23c53-80e8-40a0-99d5-d8cb143f35d5","level":2,"time":"2024-05-31T09:47:49+00:00","remoteAddr":"172.20.0.5","user":"<hidden user name>","app":"dav","method":"DELETE","url":"\/remote.php\/dav\/uploads\/<hidden user name>\/1765970370","message":"Could not get node for path: \"uploads\/<hidden user name>\/1765970370\" : File with name \/\/1765970370 could not be located"}
{"reqId":"6GCd2QkIG1xSqlRbqEYw","level":3,"time":"2024-05-31T11:43:01+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"Exception: {\"Exception\":\"OCP\\\\AppFramework\\\\QueryException\",\"Message\":\"Could not resolve OCA\\\\Federation\\\\SyncJob! Class OCA\\\\Federation\\\\SyncJob does not exist\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(109): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->resolve()\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/ServerContainer.php(86): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query()\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/BackgroundJob\\\/JobList.php(282): OC\\\\ServerContainer->query()\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/BackgroundJob\\\/JobList.php(218): OC\\\\BackgroundJob\\\\JobList->buildJob()\\n#4 \\\/var\\\/www\\\/owncloud\\\/core\\\/Command\\\/System\\\/Cron.php(115): OC\\\\BackgroundJob\\\\JobList->getNext()\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Command\\\/Command.php(298): OC\\\\Core\\\\Command\\\\System\\\\Cron->execute()\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(1040): Symfony\\\\Component\\\\Console\\\\Command\\\\Command->run()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(301): Symfony\\\\Component\\\\Console\\\\Application->doRunCommand()\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/symfony\\\/console\\\/Application.php(171): Symfony\\\\Component\\\\Console\\\\Application->doRun()\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Console\\\/Application.php(165): Symfony\\\\Component\\\\Console\\\\Application->run()\\n#10 \\\/var\\\/www\\\/owncloud\\\/console.php(94): OC\\\\Console\\\\Application->run()\\n#11 \\\/var\\\/www\\\/owncloud\\\/occ(11): require_once('\\\/var\\\/www\\\/ownclo...')\\n#12 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php\",\"Line\":95}"}
{"reqId":"osWZx9Nfi8lKjM3qCgTA","level":3,"time":"2024-05-31T12:21:46+00:00","remoteAddr":"172.20.0.5","user":"<hidden user name>","app":"PHP","method":"GET","url":"\/apps\/configreport\/report","message":"phpinfo() has been disabled for security reasons at \/var\/www\/owncloud\/apps\/configreport\/lib\/ReportDataCollector.php#475"}
@zgjimgjonbalaj did you check the uploads view? (up-arrow icon on the bottom bar of the file list). There, you can check in which status the uploads are. If they failed, the reason is there.
@jesmrec No uploads ever appeared there, at least none that I saw. Those I initiated manually however do work and upload successfully.
Hi @zgjimgjonbalaj! That's weird! 🤔 Do you have a battery-save mode enabled maybe? This can sometimes collide with the workers (background processes) that take care of uploading new pics every 15 minutes. You'll let us know 😄
@JuancaG05
Nope, no battery save mode. I have been testing various platforms including seafile and haven't come across issues with others.
Edit: To clarify I can upload and download just fine, the auto uploading features however do not work.
Edit 2: For context. I've got over 9000 files in that directory, am not sure if this could cause issues. In total it's about 46GB of data. Not a huge amount but also not insignificant. When I opened up the folder initially it was blank, I pulled down to refresh (still within the folder selection step) and the images began to appear. That initial blank state however seemed to me like an indication with permissions or something else related. If I go back to re-select the folder this initial blank state is always present.
Update: Attempted creating a new folder and syncing a separate folder on my Pixel 7 Pro containing images like WhatsApp, Messenger or other. Each time I update the folder to sync I leave it for a minute come back check the folder and the uploads tab with no changes. In the web server logs output to STDOUT in docker I do not see errors and only see 200 HTTP codes for routes index.php and remote.php. I've tried a variety of configurations (Charging, Disabling WiFi etc) with no luck.
I do not see errors anywhere, the app just simply doesn't want to upload anything from auto upload folder.
@JuancaG05 @jesmrec - I may have misunderstood how this works but not 100%. After allowing background processes for the app on two separate phones (and taking new pictures) I do see new photos uploading. I guess the question I have is does this not backup old photos as well? If not, I guess I would suggest maybe a sort of note or disclaimer somewhere that could indicate that. I might have been influenced by previous backup apps that were doing exactly that (uploading all photos) and expected this to happen with ownCloud as well.
@zgjimgjonbalaj it does not backup old photos. Auto uploads feature uploads pictures & videos from the camera folder (not other folders) that are taken from the moment it is enabled on.
Hi @zgjimgjonbalaj! Exactly, just as @jesmrec says, the feature is not intended to backup old pictures or videos. There are already some issues related to that, you can check https://github.com/owncloud/android/issues/3867
Got it, well thank you @jesmrec @JuancaG05 both for indulging me here and helping out appreciate it. I will close this out since it also looks like you already have a feature request for this.
so i face similar issue , photos can be uploaded via android phone , but videos no, it saus server configuration is broken...
so i face similar issue , photos can be uploaded via android phone , but videos no, it saus server configuration is broken...
where does this message appears? in uploads view?
are videos enqueued? (check that in uploads view, in the bottom side of the screen)
so i face similar issue , photos can be uploaded via android phone , but videos no, it saus server configuration is broken...
where does this message appears? in uploads view?
are videos enqueued? (check that in uploads view, in the bottom side of the screen)
I have the same issue. Photo auto upload seems to work file, but video files seem to get stuck in the "Enqueued" state.
Let's reopen then
If I can help you in any way, please let me know.
Android app version: ownCloud release version 4.6.2 (e36c21fa5) Backend: owncloud/server:10.15 in Docker compose
Backend is running on RPi4 on dietpi os (Debian).
CameraUpload and VideoUpload directories both exist on the server. AutoUploading videos to CameraUpload also doesn't work.
On the device, CameraUpload and VideoUpload are both fed from the DCIM/Camera directory.
Tried to reproduce this one with a 10.15.3 and it worked fine. Uploads are done by a upload service that's the same for both images and videos, so, it looks weird. Could you catch logs from the app? we might find something about the case. Here is our troubleshooting guide: https://doc.owncloud.com/android/4.6/appendices/troubleshooting.html
The issue may have been something else. I noticed that deploying the owncloud backend with a docker compose file to an RPi4 cause system slowdowns. So, I stopped using it altogether. Might have been user error, maybe not. The app is probably file.
Hello, on my Pixel 7 (Android 16) the automatic upload of photos is barely working. Sometimes it works, but most of the time there is no upload happening. I disabled all "battery optimization" on Owncloud app. Owncloud is also not listed in the list of "active apps" - i would expect Owncloud to be listed there if it monitors some folder!? Manuel
Hello, on my Pixel 7 (Android 16) the automatic upload of photos is barely working. Sometimes it works, but most of the time there is no upload happening. I disabled all "battery optimization" on Owncloud app. Owncloud is also not listed in the list of "active apps" - i would expect Owncloud to be listed there if it monitors some folder!?
it shouldn't affect since the system is who checks the source folder programatically, under the hood. The ownCloud app to be open is not required for the automatic uploads to work. Automatic upload process runs every 15 minutes (at least) and checks for new pictures/videos since the last run, and then, new ones are enqueued and listed in the uploads view to be pushed to the server. Are your pictures/videos listed there? (Uploads is an option in the bottom bar). You can check the last run on the process in the automatic pictures set up (in Settings) as Last synchronization.