[BUG] Video Auto uploading not syncing at all
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 4.2k
- Forks
- 3.1k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 7
Description
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"}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the setup on Android 14 with a Pixel 7 Pro, using the listed ownCloud app and server versions, then inspect the Android and server logs around an attempted photo or video upload. Done means configured automatic photo/video synchronization uploads files without requiring adb or the desktop client, while confirming whether storage permissions or background execution are involved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100