nextcloud / ios

📱 Nextcloud iOS App
https://itunes.apple.com/us/app/nextcloud/id1125420102
GNU General Public License v3.0
1.93k stars 871 forks source link

Autoupload how improvement it ? #2225

Open alfwro13 opened 1 year ago

alfwro13 commented 1 year ago

Steps to reproduce

1.Upgrade to the latest iOS version

  1. Autouploads stop working

Expected behaviour

All new photos should auto upload. Also when the app is opened newly taken photos should be listed in the Transfers section

Actual behaviour

Newly taken pictures are not being autouploaded. They are also not showing up in the Transfers (More--> Transfers) section. Manual upload works fine.

Screenshots

If applicable, add a screenshot showing the issue.

Logs

If applicable, you can post the iOS app or server logs (removing any sensitive information).

Reasoning or why should it be changed/implemented?

This was working fine on my phone prior the iOS 16 upgrade. I have removed and reinstalled the app but that has made no difference

Environment data

iOS version: iOS 16.1

Nextcloud iOS app version: see More > Settings 4.5.3.0

Server operating system: debian

Web server: nginx

Database: Ver 10.5.15-MariaDB

PHP version: 8.0

Nextcloud version: see Nextcloud admin page 24.0.6

triggerx commented 11 months ago

Yes… OneDrive photo upload works perfectly. For years… rarely ever have it running. As in… always force closed. No location services hack… just background refresh. It works perfect for me… would just like a non-cloud solution.

fabefour commented 11 months ago

@marinofaggiana Please reopen this issue. There are so many people having problems with this issue. It should be adressed again.

marinofaggiana commented 11 months ago

This discussion has nonsense without information, so:

This is my log and works as excepted

Apri communication

fabefour commented 11 months ago

Just one question. Did you try this with an initial run with a huge amount of files. For example 6GB of files that have to be uploaded initially. In a clean scenario with no files and some files added later on it worked for me as well...

kubrickfr commented 10 months ago

Hey, I just want to say this is still not working in 4.9.1, the logs stop at Application did enter in background and then, nothing overnight (yes background app refresh is enabled).

But even if this was working, that still would not count as "working" in my opinion. Why does the phone have to be charging?

bunk3m commented 10 months ago

I just installed it on my wife's iPhone. There was about 10GB of photo and video files to upload. I ended up here because the autoupload doesn't work unless the app is in the foreground. So saying that it works as expected may be true for the foreground and plugged in case but in my opinion is a ridiculous use case. On Android, the app works in the background as soon as it discovers our home wifi and uploads the photos to Nextcloud. This is, to me, is "works as expected". So using the comparison of features method, the iOS version of the app doesn't work as expected and this is either an enhancement or bug. There are a number of suggestions in other posts of this issue that link to other apps that apparently work in the background to sync or upload files. I also know that the VOIP app Linphone doesn't work in the background on iOS, making it pretty useless. Linphone says it's an iOS problem so perhaps this is also an iOS problem not the app?

n0one42 commented 10 months ago

Sadly, same here. IOS only works when in foreground.

a17uk commented 10 months ago

Having the same issue, uploading large files not possible. With iPhones with FaceID, if the FaceID cannot detect your face, the screen will be locked in seconds. The upload function almost unusable when uploading slightly larger files or small/medium files over a slow network speed. You need to keep the app open, and STARE at the uploading task bar till it finishes. You cannot switch app, you cannot put you iPhone on the table. Once the screen is locked, your upload fails. If the upload takes hours, you need to stare at the app fore hours, it is ridiculous.

n0one42 commented 10 months ago

Having the same issue, uploading large files not possible. With iPhones with FaceID, if the FaceID cannot detect your face, the screen will be locked in seconds. The upload function almost unusable when uploading slightly larger files or small/medium files over a slow network speed. You need to keep the app open, and STARE at the uploading task bar till it finishes. You cannot switch app, you cannot put you iPhone on the table. Once the screen is locked, your upload fails. If the upload takes hours, you need to stare at the app fore hours, it is ridiculous.

I just set the display timer to never lock for this period of time and setting the brightness to 0 but ofc... not ideal

kubrickfr commented 10 months ago

Using PhotoSync to automatically sync in the background using webdav works.

frederikb96 commented 10 months ago

I guess the main problem is that the interface makes the user think that the autoupload feature is functional. But at the same time, the problem is hard to debug due to a lot of problems that arise when developing an app for IOS.

I also set up autoupload for my sister's iPhone (without enabling the initial upload of already available photos) and it is also not working.

As soon as I am at her place again, I will try to follow the debug guide proposed by @marinofaggiana to be able to contribute to fixing this bug.

For now, I would propose to clearly mark in the app that the autoupload is not working as expected. I understand both sides. It is hard to fix this issue, but at the same time there are expectations from the users when providing such a feature.

So, I guess it is best to temporarily clearly mark that it is currently not functional until it is possible to fix this problem.

kdjordjev commented 10 months ago

Completely support this. It needs to be fixed. There so many people complain about this (me including on two phones) and is simply surprising that no action has been taken to put back the original solution (update on GPS) and clearly mark that that app does not track, no privacy issues with that. Otherwise is simply NOT functional app and I can not trust to backup my photos. Effectively NextCloud IOS can not claim it is a “cloud” :) (joking here , but effectively true)

Get Outlook for iOShttps://aka.ms/o0ukef


From: Frederik Berg @.> Sent: Wednesday, November 1, 2023 6:36:04 AM To: nextcloud/ios @.> Cc: kdjordjev @.>; Mention @.> Subject: Re: [nextcloud/ios] Autoupload how improvement it ? (Issue #2225)

I guess the main problem is that the interface makes the user think that the autoupload feature is functional. But at the same time, the problem is hard to debug due to a lot of problems that arise when developing an app for IOS.

I also set up autoupload for my sister's iPhone (without enabling the initial upload of already available photos) and it is also not working.

As soon as I am at her place again, I will try to follow the debug guidehttps://github.com/nextcloud/ios/issues/2225#issuecomment-1727338897 proposed by @marinofaggianahttps://github.com/marinofaggiana to be able to contribute to fixing this bug.

For now, I would propose to clearly mark in the app that the autoupload is not working as expected. I understand both sides. It is hard to fix this issue, but at the same time there are expectations from the users when providing such a feature.

So, I guess it is best to temporarily clearly mark that it is currently not functional until it is possible to fix this problem.

— Reply to this email directly, view it on GitHubhttps://github.com/nextcloud/ios/issues/2225#issuecomment-1788969097, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGLINQAVL2KM3EATBE466GDYCJF4JAVCNFSM6AAAAAARRCB3WWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBYHE3DSMBZG4. You are receiving this because you were mentioned.Message ID: @.***>

Cyberbeni commented 10 months ago

Found this issue on Mastodon. I think a Local Push Connectivity extension could work for uploading stuff when connected to selected networks (home/work/etc.): https://developer.apple.com/documentation/networkextension/local_push_connectivity

marinofaggiana commented 10 months ago

Hi, some improvements and bug fix in the TestFlight version, please try https://testflight.apple.com/join/RXEJbWj9

More detail if is ok look in your communication.log

IMG_4A16E9C2BEAD-1

after put the app in background the log must have :

IMG_382111BF081A-1

and look into the log (remember battery must be on charge or hight status) :

Screenshot 2023-11-02 alle 17 02 35

example on night During the day and with the battery always in good condition, calls will be even more frequent.

pjft commented 9 months ago

EDIT: iPhone 14, iOS 17.0.3.

Feedback based on the latest Testflight version (4.9.2 (7) ):

See logs. I only had 1 picture to upload, but it seems to add all files twice, and the badge shows a larger number.

It tries to upload the file twice - the first goes well, the second parallel attempt failes with "locked resource" as expected.

When I open the app, the file is still listed to be uploaded, and so gets uploaded again.

2023-11-03 09:42:23 [INFO] Clear log with level 1 Nextcloud Liquid for iOS 4.9.2.7 © 2023 (Simulator / TestFlight)
2023-11-03 09:42:25 [INFO] Application will resign active
2023-11-03 09:42:26 [INFO] Application did enter in background
2023-11-03 09:42:26 - Auto upload: true
2023-11-03 09:42:26 - Auto upload in background: true
2023-11-03 09:42:26 - Refresh task: ok
2023-11-03 09:42:26 - Processing task: ok
2023-11-03 09:50:06 - Processing task: ok
2023-11-03 09:50:06 - Refresh task: ok
2023-11-03 09:50:07 [INFO] Automatic upload, new 1 assets found [Init Auto Upload]
2023-11-03 09:50:07 [INFO] Automatic upload, new 1 assets found [Init Auto Upload]
2023-11-03 09:50:07 Network request started: MKCOL https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos
2023-11-03 09:50:07 Network request started: MKCOL https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos
2023-11-03 09:50:08 Network request started: No request created yet.
2023-11-03 09:50:08 Network request started: MKCOL https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023
2023-11-03 09:50:08 Network request started: MKCOL https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11
2023-11-03 09:50:08 Network request started: MKCOL https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11
2023-11-03 09:50:09 [INFO] Automatic upload added 2023-11-03 09-42-28 PIMG_1751.jpg with Identifier 9E9B99BF-A138-4448-A43E-4302DA9A4CC6/L0/001
2023-11-03 09:50:09 [INFO] Automatic upload added 2023-11-03 09-42-28 PIMG_1751.jpg with Identifier 9E9B99BF-A138-4448-A43E-4302DA9A4CC6/L0/001
2023-11-03 09:50:09 [INFO] Start createProcessUploads
2023-11-03 09:50:09 [INFO] Start createProcessUploads
2023-11-03 09:50:09 [INFO] Refresh task auto upload with 1 uploads
2023-11-03 09:50:09 [INFO] Processing task auto upload with 1 uploads
2023-11-03 09:50:09 [INFO] Processing task upload process with 0 uploads
2023-11-03 09:50:09 [INFO] PROCESS-UPLOAD find 2 items
2023-11-03 09:50:09 [INFO] Upload file 2023-11-03 09-42-28 PIMG_1751.jpg with Identifier 9E9B99BF-A138-4448-A43E-4302DA9A4CC6/L0/001 with size 2630297 [CHUNK 0, E2EE false]
2023-11-03 09:50:09 Network start upload file: https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11/2023-11-03 09-42-28 PIMG_1751.jpg
2023-11-03 09:50:09 [INFO] Upload file 2023-11-03 09-42-28 PIMG_1751.jpg with task with taskIdentifier 6
2023-11-03 09:50:09 [INFO] Upload file 2023-11-03 09-42-28 PIMG_1751.jpg with Identifier 9E9B99BF-A138-4448-A43E-4302DA9A4CC6/L0/001 with size 2630297 [CHUNK 0, E2EE false]
2023-11-03 09:50:09 Network start upload file: https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11/2023-11-03 09-42-28 PIMG_1751.jpg
2023-11-03 09:50:09 [INFO] Upload file 2023-11-03 09-42-28 PIMG_1751.jpg with task with taskIdentifier 7
2023-11-03 09:50:09 [INFO] Refresh task upload process with 2 uploads
2023-11-03 09:50:12 [INFO] Start handle Events For Background URLSession: com.nextcloud.session.upload.background
2023-11-03 09:50:12 [SUCCESS] Upload complete https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11/2023-11-03 09-42-28 PIMG_1751.jpg, result: success(2630297 bytes)
2023-11-03 09:50:12 Network completed upload file: https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11/2023-11-03 09-42-28 PIMG_1751.jpg
2023-11-03 09:50:12 Network completed upload file: https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11/2023-11-03 09-42-28 PIMG_1751.jpg with error code 423 and error description 423: WebDAV Locked: Trying to access locked resource
2023-11-03 09:50:12 [INFO] Called urlSessionDidFinishEvents for Background URLSession

=== START FOREGROUND

2023-11-03 09:52:48 [INFO] Application will enter in foreground
2023-11-03 09:52:49 [INFO] Application did become active
2023-11-03 09:52:49 Network request started: GET https://SERVERNAME/status.php
2023-11-03 09:52:49 [INFO] Automatic upload, no new assets found [Init Auto Upload]
2023-11-03 09:52:49 [INFO] Initialize Auto upload with 0 uploads
2023-11-03 09:52:49 Network response request: https://SERVERNAME/status.php, result: success(170 bytes)
2023-11-03 09:52:49 Network request started: GET https://SERVERNAME/ocs/v2.php/cloud/user
2023-11-03 09:52:50 Network response request: https://SERVERNAME/ocs/v2.php/cloud/user, result: success(1115 bytes)
2023-11-03 09:52:50 [INFO] start synchronize Favorite
2023-11-03 09:52:50 Network request started: REPORT https://SERVERNAME/remote.php/dav/files/USERNAME
2023-11-03 09:52:50 Network request started: GET https://SERVERNAME/index.php/avatar/USERNAME/384
2023-11-03 09:52:50 Network request started: GET https://SERVERNAME/ocs/v1.php/cloud/capabilities
2023-11-03 09:52:50 Network request started: GET https://SERVERNAME/ocs/v2.php/apps/dashboard/api/v1/widgets
2023-11-03 09:52:50 Network response request: https://SERVERNAME/ocs/v2.php/apps/dashboard/api/v1/widgets, result: success(1395 bytes)
2023-11-03 09:52:50 Network request started: GET https://SERVERNAME/apps/calendar/img/calendar-dark.svg
2023-11-03 09:52:50 Network request started: GET https://SERVERNAME/ocs/v2.php/apps/files/api/v1/directEditing
2023-11-03 09:52:50 Network request started: GET https://SERVERNAME/ocs/v2.php/apps/user_status/api/v1/user_status
2023-11-03 09:52:50 Network request started: GET https://SERVERNAME/apps/user_status/img/app-dark.svg
2023-11-03 09:52:50 Network request started: GET https://SERVERNAME/apps/activity/img/activity-dark.svg
2023-11-03 09:52:50 Network response request: https://SERVERNAME/remote.php/dav/files/USERNAME, result: success(20842 bytes)
2023-11-03 09:52:50 Network response request: https://SERVERNAME/ocs/v2.php/apps/user_status/api/v1/user_status, result: success(224 bytes)
2023-11-03 09:52:50 Network response request: https://SERVERNAME/ocs/v2.php/apps/files/api/v1/directEditing, result: success(753 bytes)
2023-11-03 09:52:50 [INFO] end synchronize Favorite
2023-11-03 09:52:50 [INFO] start synchronize Offline
2023-11-03 09:52:50 [INFO] end synchronize offline
2023-11-03 09:52:54 [INFO] PROCESS-UPLOAD find 1 items
2023-11-03 09:52:54 [INFO] Upload file 2023-11-03 09-42-28 PIMG_1751.jpg with Identifier 9E9B99BF-A138-4448-A43E-4302DA9A4CC6/L0/001 with size 2630297 [CHUNK 0, E2EE false]
2023-11-03 09:52:54 Network start upload file: https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11/2023-11-03 09-42-28 PIMG_1751.jpg
2023-11-03 09:52:54 [INFO] Upload file 2023-11-03 09-42-28 PIMG_1751.jpg with task with taskIdentifier 8
2023-11-03 09:52:56 [SUCCESS] Upload complete https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11/2023-11-03 09-42-28 PIMG_1751.jpg, result: success(2630297 bytes)
2023-11-03 09:52:56 Network completed upload file: https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11/2023-11-03 09-42-28 PIMG_1751.jpg

On separate tests, chunked files get added to the list, but not uploaded - as expected.

kubrickfr commented 9 months ago

Ciao @marinofaggiana , Too early for me to cry victory yet, still testing... Is there a PR we can look at? Thanks for the work.

marinofaggiana commented 9 months ago

See logs. I only had 1 picture to upload, but it seems to add all files twice, and the badge shows a larger number.

Yes as excepted, fix next build. thanks

marinofaggiana commented 9 months ago

Ciao @marinofaggiana , Too early for me to cry victory yet, still testing... Is there a PR we can look at? Thanks for the work.

Hi sorry, its' in more PR .. and I still have some perplexity ...

kubrickfr commented 9 months ago

So for me it finds items but doesn't upload them:

2023-11-03 12:18:51 - Refresh task: ok
2023-11-03 12:18:51 [INFO] Automatic upload, no new assets found [Init Auto Upload]
2023-11-03 12:18:51 [INFO] Refresh task auto upload with 0 uploads
2023-11-03 12:18:51 [INFO] PROCESS-UPLOAD find 3 items
2023-11-03 12:18:51 [INFO] Refresh task upload process with 0 uploads

Maybe it's because they were big files that required them uploading in chunks?

But at least I see some background activity now which I had never seen before!

pjft commented 9 months ago

That is correct, it's likely related to the chunks - meaning, they will be counted, but only queued for upload when the app is open.


2023-11-03 09:02:50 - Auto upload: true 
2023-11-03 09:02:50 - Auto upload in background: true 
2023-11-03 09:02:50 - Refresh task: ok 
2023-11-03 09:02:50 - Processing task: ok 
2023-11-03 09:10:25 - Processing task: ok 
2023-11-03 09:10:25 - Refresh task: ok 
2023-11-03 09:10:25 [INFO] Automatic upload, new 3 assets found [Init Auto Upload] 
2023-11-03 09:10:25 [INFO] Automatic upload, new 3 assets found [Init Auto Upload] 
2023-11-03 09:10:25 Network request started: MKCOL https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos 
2023-11-03 09:10:25 Network request started: MKCOL https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos 
2023-11-03 09:10:27 Network request started: No request created yet. 
2023-11-03 09:10:27 Network request started: MKCOL https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023 
2023-11-03 09:10:27 Network request started: MKCOL https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11 
2023-11-03 09:10:27 Network request started: MKCOL https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11 
2023-11-03 09:10:28 [INFO] Automatic upload added 2023-11-03 09-02-59 PIMG_1748.jpg with Identifier 2DD9BC0F-06C0-4240-B186-9F049623A653/L0/001 
2023-11-03 09:10:28 [INFO] Automatic upload added 2023-11-03 09-02-59 PIMG_1748.jpg with Identifier 2DD9BC0F-06C0-4240-B186-9F049623A653/L0/001 
2023-11-03 09:10:28 [INFO] Automatic upload added 2023-11-03 09-03-03 PIMG_1749.mov with Identifier 5244D9E3-DDD0-4CD7-A0A2-B5F0E1C4E440/L0/001 
2023-11-03 09:10:28 [INFO] Automatic upload added 2023-11-03 09-03-03 PIMG_1749.mov with Identifier 5244D9E3-DDD0-4CD7-A0A2-B5F0E1C4E440/L0/001 
2023-11-03 09:10:29 [INFO] Automatic upload added 2023-11-03 09-03-49 PIMG_1750.mov with Identifier 2C628659-73E7-4257-B59C-1151BD57ABF3/L0/001 
2023-11-03 09:10:29 [INFO] Start createProcessUploads 
2023-11-03 09:10:29 [INFO] Automatic upload added 2023-11-03 09-03-49 PIMG_1750.mov with Identifier 2C628659-73E7-4257-B59C-1151BD57ABF3/L0/001 
2023-11-03 09:10:29 [INFO] Refresh task auto upload with 3 uploads 
2023-11-03 09:10:29 [INFO] Start createProcessUploads 
2023-11-03 09:10:29 [INFO] Processing task auto upload with 3 uploads 
2023-11-03 09:10:29 [INFO] Processing task upload process with 0 uploads 
2023-11-03 09:10:29 [INFO] PROCESS-UPLOAD find 6 items 
2023-11-03 09:10:29 [INFO] Upload file 2023-11-03 09-02-59 PIMG_1748.jpg with Identifier 2DD9BC0F-06C0-4240-B186-9F049623A653/L0/001 with size 2408279 [CHUNK 0, E2EE false] 
2023-11-03 09:10:29 Network start upload file: https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11/2023-11-03 09-02-59 PIMG_1748.jpg 
2023-11-03 09:10:29 [INFO] Upload file 2023-11-03 09-02-59 PIMG_1748.jpg with task with taskIdentifier 3 
2023-11-03 09:10:29 [INFO] Upload file 2023-11-03 09-02-59 PIMG_1748.jpg with Identifier 2DD9BC0F-06C0-4240-B186-9F049623A653/L0/001 with size 2408279 [CHUNK 0, E2EE false] 
2023-11-03 09:10:29 Network start upload file: https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11/2023-11-03 09-02-59 PIMG_1748.jpg 
2023-11-03 09:10:29 [INFO] Upload file 2023-11-03 09-02-59 PIMG_1748.jpg with task with taskIdentifier 4 
2023-11-03 09:10:30 [INFO] Refresh task upload process with 2 uploads 
2023-11-03 09:10:31 Network completed upload file: https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11/2023-11-03 09-02-59 PIMG_1748.jpg with error code 423 and error description 423: WebDAV Locked: Trying to access locked resource 
2023-11-03 09:10:32 [INFO] Start handle Events For Background URLSession: com.nextcloud.session.upload.background 
2023-11-03 09:10:32 [SUCCESS] Upload complete https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11/2023-11-03 09-02-59 PIMG_1748.jpg, result: success(2408279 bytes) 
2023-11-03 09:10:32 Network completed upload file: https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11/2023-11-03 09-02-59 PIMG_1748.jpg 
2023-11-03 09:10:32 [INFO] Called urlSessionDidFinishEvents for Background URLSession 

=== END BACKGROUND

2023-11-03 09:23:44 [INFO] Application will enter in foreground 
2023-11-03 09:23:44 [INFO] Application did become active 
2023-11-03 09:23:44 Network request started: GET https://SERVERNAME/status.php 
2023-11-03 09:23:44 [INFO] Automatic upload, no new assets found [Init Auto Upload] 
2023-11-03 09:23:44 [INFO] Initialize Auto upload with 0 uploads 
2023-11-03 09:23:45 Network response request: https://SERVERNAME/status.php, result: success(170 bytes) 
2023-11-03 09:23:45 Network request started: GET https://SERVERNAME/ocs/v2.php/cloud/user 
2023-11-03 09:23:46 Network response request: https://SERVERNAME/ocs/v2.php/cloud/user, result: success(1115 bytes) 
2023-11-03 09:23:46 [INFO] start synchronize Favorite 
2023-11-03 09:23:46 Network request started: REPORT https://SERVERNAME/remote.php/dav/files/USERNAME 
2023-11-03 09:23:46 Network request started: GET https://SERVERNAME/index.php/avatar/USERNAME/384 
2023-11-03 09:23:46 Network request started: GET https://SERVERNAME/ocs/v1.php/cloud/capabilities 
2023-11-03 09:23:46 Network request started: GET https://SERVERNAME/ocs/v2.php/apps/dashboard/api/v1/widgets 
2023-11-03 09:23:46 Network response request: https://SERVERNAME/ocs/v2.php/apps/dashboard/api/v1/widgets, result: success(1395 bytes) 
2023-11-03 09:23:46 Network request started: GET https://SERVERNAME/apps/user_status/img/app-dark.svg 
2023-11-03 09:23:46 Network request started: GET https://SERVERNAME/ocs/v2.php/apps/files/api/v1/directEditing 
2023-11-03 09:23:46 Network request started: GET https://SERVERNAME/ocs/v2.php/apps/user_status/api/v1/user_status 
2023-11-03 09:23:46 Network request started: GET https://SERVERNAME/apps/calendar/img/calendar-dark.svg 
2023-11-03 09:23:46 Network response request: https://SERVERNAME/ocs/v2.php/apps/files/api/v1/directEditing, result: success(753 bytes) 
2023-11-03 09:23:46 Network request started: GET https://SERVERNAME/apps/activity/img/activity-dark.svg (200) 
2023-11-03 09:23:46 Network response request: https://SERVERNAME/ocs/v2.php/apps/user_status/api/v1/user_status, result: success(224 bytes) 
2023-11-03 09:23:46 Network response request: https://SERVERNAME/remote.php/dav/files/USERNAME, result: success(20842 bytes) 
2023-11-03 09:23:47 [INFO] end synchronize Favorite 
2023-11-03 09:23:47 [INFO] start synchronize Offline 
2023-11-03 09:23:47 [INFO] end synchronize offline 
2023-11-03 09:23:49 [INFO] PROCESS-UPLOAD find 4 items 
2023-11-03 09:23:49 [INFO] Upload file 2023-11-03 09-03-03 PIMG_1749.mov with Identifier 5244D9E3-DDD0-4CD7-A0A2-B5F0E1C4E440/L0/001 with size 194619055 [CHUNK 100000000, E2EE false] 
2023-11-03 09:23:49 Network request started: PROPFIND https://SERVERNAME/remote.php/dav/uploads/USERNAME/E97B4306-5E2F-46B5-9A17-BAC76971B186 
2023-11-03 09:23:50 Network response request: https://SERVERNAME/remote.php/dav/uploads/USERNAME/E97B4306-5E2F-46B5-9A17-BAC76971B186, result: failure(Alamofire.AFError.responseValidationFailed(reason: Alamofire.AFError.ResponseValidationFailureReason.unacceptableStatusCode(code: 404))) 
2023-11-03 09:23:50 Network request started: MKCOL https://SERVERNAME/remote.php/dav/uploads/USERNAME/E97B4306-5E2F-46B5-9A17-BAC76971B186 
2023-11-03 09:23:51 Network request started: PUT https://SERVERNAME/remote.php/dav/uploads/USERNAME/E97B4306-5E2F-46B5-9A17-BAC76971B186/1 
2023-11-03 09:24:05 Network request started: PUT https://SERVERNAME/remote.php/dav/uploads/USERNAME/E97B4306-5E2F-46B5-9A17-BAC76971B186/2 
2023-11-03 09:24:16 Network request started: MOVE https://SERVERNAME/remote.php/dav/uploads/USERNAME/E97B4306-5E2F-46B5-9A17-BAC76971B186/.file 
2023-11-03 09:24:19 Network request started: PROPFIND https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11/2023-11-03%2009-03-03%20PIMG_1749.mov 
2023-11-03 09:24:20 Network response request: https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11/2023-11-03%2009-03-03%20PIMG_1749.mov, result: success(1772 bytes) 
2023-11-03 09:24:20 [SUCCESS] Upload complete https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11/2023-11-03 09-03-03 PIMG_1749.mov, result: success(194619055 bytes) 
2023-11-03 09:24:20 [INFO] PROCESS-UPLOAD find 3 items 
2023-11-03 09:24:20 [INFO] Upload file 2023-11-03 09-03-03 PIMG_1749.mov with Identifier 5244D9E3-DDD0-4CD7-A0A2-B5F0E1C4E440/L0/001 with size 194619055 [CHUNK 100000000, E2EE false] 
2023-11-03 09:24:20 Network request started: PROPFIND https://SERVERNAME/remote.php/dav/uploads/USERNAME/AEF17FA6-35BA-404E-9498-AFA0CFFDB56C 
2023-11-03 09:24:20 Network response request: https://SERVERNAME/remote.php/dav/uploads/USERNAME/AEF17FA6-35BA-404E-9498-AFA0CFFDB56C, result: failure(Alamofire.AFError.responseValidationFailed(reason: Alamofire.AFError.ResponseValidationFailureReason.unacceptableStatusCode(code: 404))) 
2023-11-03 09:24:20 Network request started: MKCOL https://SERVERNAME/remote.php/dav/uploads/USERNAME/AEF17FA6-35BA-404E-9498-AFA0CFFDB56C 
2023-11-03 09:24:22 Network request started: PUT https://SERVERNAME/remote.php/dav/uploads/USERNAME/AEF17FA6-35BA-404E-9498-AFA0CFFDB56C/1 
2023-11-03 09:24:36 Network request started: PUT https://SERVERNAME/remote.php/dav/uploads/USERNAME/AEF17FA6-35BA-404E-9498-AFA0CFFDB56C/2 
2023-11-03 09:24:49 Network request started: MOVE https://SERVERNAME/remote.php/dav/uploads/USERNAME/AEF17FA6-35BA-404E-9498-AFA0CFFDB56C/.file 
2023-11-03 09:24:57 Network request started: PROPFIND https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11/2023-11-03%2009-03-03%20PIMG_1749.mov 
2023-11-03 09:24:58 Network response request: https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11/2023-11-03%2009-03-03%20PIMG_1749.mov, result: success(1772 bytes) 
2023-11-03 09:24:58 [INFO] PROCESS-UPLOAD find 2 items 
2023-11-03 09:24:58 [SUCCESS] Upload complete https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11/2023-11-03 09-03-03 PIMG_1749.mov, result: success(194619055 bytes) 
2023-11-03 09:24:58 [INFO] Upload file 2023-11-03 09-03-49 PIMG_1750.mov with Identifier 2C628659-73E7-4257-B59C-1151BD57ABF3/L0/001 with size 520404266 [CHUNK 100000000, E2EE false] 
2023-11-03 09:24:58 Network request started: PROPFIND https://SERVERNAME/remote.php/dav/uploads/USERNAME/AB7F7F36-190D-4ECF-9F9F-A95ECC10EC5E 
2023-11-03 09:24:58 Network response request: https://SERVERNAME/remote.php/dav/uploads/USERNAME/AB7F7F36-190D-4ECF-9F9F-A95ECC10EC5E, result: failure(Alamofire.AFError.responseValidationFailed(reason: Alamofire.AFError.ResponseValidationFailureReason.unacceptableStatusCode(code: 404))) 
2023-11-03 09:24:58 Network request started: MKCOL https://SERVERNAME/remote.php/dav/uploads/USERNAME/AB7F7F36-190D-4ECF-9F9F-A95ECC10EC5E 
2023-11-03 09:25:03 Network request started: PUT https://SERVERNAME/remote.php/dav/uploads/USERNAME/AB7F7F36-190D-4ECF-9F9F-A95ECC10EC5E/1 
2023-11-03 09:25:18 Network request started: PUT https://SERVERNAME/remote.php/dav/uploads/USERNAME/AB7F7F36-190D-4ECF-9F9F-A95ECC10EC5E/2 
2023-11-03 09:25:29 Network request started: PUT https://SERVERNAME/remote.php/dav/uploads/USERNAME/AB7F7F36-190D-4ECF-9F9F-A95ECC10EC5E/3 
2023-11-03 09:25:42 [INFO] Application will resign active 
2023-11-03 09:25:42 [INFO] Application did enter in background 
2023-11-03 09:25:42 - Auto upload: true 
2023-11-03 09:25:42 - Auto upload in background: true 
2023-11-03 09:25:42 - Refresh task: ok 
2023-11-03 09:25:42 - Processing task: ok 
2023-11-03 09:25:49 [INFO] Application will enter in foreground 
2023-11-03 09:25:50 [INFO] Application did become active 
2023-11-03 09:25:50 Network request started: GET https://SERVERNAME/status.php 
2023-11-03 09:25:50 [INFO] Automatic upload, no new assets found [Init Auto Upload] 
2023-11-03 09:25:50 [INFO] Initialize Auto upload with 0 uploads 
2023-11-03 09:25:50 Network response request: https://SERVERNAME/status.php, result: success(170 bytes) 
2023-11-03 09:25:50 Network request started: GET https://SERVERNAME/ocs/v2.php/cloud/user 
2023-11-03 09:25:51 Network response request: https://SERVERNAME/ocs/v2.php/cloud/user, result: success(1115 bytes) 
2023-11-03 09:25:51 [INFO] start synchronize Favorite 
2023-11-03 09:25:51 Network request started: REPORT https://SERVERNAME/remote.php/dav/files/USERNAME 
2023-11-03 09:25:51 Network request started: GET https://SERVERNAME/index.php/avatar/USERNAME/384 
2023-11-03 09:25:51 Network request started: GET https://SERVERNAME/ocs/v1.php/cloud/capabilities 
2023-11-03 09:25:51 Network request started: GET https://SERVERNAME/ocs/v2.php/apps/dashboard/api/v1/widgets 
2023-11-03 09:25:51 Network response request: https://SERVERNAME/ocs/v2.php/apps/dashboard/api/v1/widgets, result: success(1395 bytes) 
2023-11-03 09:25:51 Network request started: GET https://SERVERNAME/apps/activity/img/activity-dark.svg 
2023-11-03 09:25:51 Network request started: GET https://SERVERNAME/apps/calendar/img/calendar-dark.svg 
2023-11-03 09:25:51 Network request started: GET https://SERVERNAME/ocs/v2.php/apps/files/api/v1/directEditing 
2023-11-03 09:25:51 Network request started: GET https://SERVERNAME/ocs/v2.php/apps/user_status/api/v1/user_status 
2023-11-03 09:25:52 Network request started: GET https://SERVERNAME/apps/user_status/img/app-dark.svg 
2023-11-03 09:25:52 Network response request: https://SERVERNAME/ocs/v2.php/apps/files/api/v1/directEditing, result: success(753 bytes) 
2023-11-03 09:25:52 Network response request: https://SERVERNAME/ocs/v2.php/apps/user_status/api/v1/user_status, result: success(224 bytes) 
2023-11-03 09:25:52 Network response request: https://SERVERNAME/remote.php/dav/files/USERNAME, result: success(20842 bytes) 
2023-11-03 09:25:52 [INFO] end synchronize Favorite 
2023-11-03 09:25:52 [INFO] start synchronize Offline 
2023-11-03 09:25:52 [INFO] end synchronize offline 
2023-11-03 09:25:55 [INFO] PROCESS-UPLOAD find 1 items 
2023-11-03 09:25:55 [INFO] Upload file 2023-11-03 09-02-59 PIMG_1748.jpg with Identifier 2DD9BC0F-06C0-4240-B186-9F049623A653/L0/001 with size 2408279 [CHUNK 0, E2EE false] 
2023-11-03 09:25:55 Network start upload file: https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11/2023-11-03 09-02-59 PIMG_1748.jpg 
2023-11-03 09:25:55 [INFO] Upload file 2023-11-03 09-02-59 PIMG_1748.jpg with task with taskIdentifier 5 
2023-11-03 09:25:57 [SUCCESS] Upload complete https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11/2023-11-03 09-02-59 PIMG_1748.jpg, result: success(2408279 bytes) 
2023-11-03 09:25:57 Network completed upload file: https://SERVERNAME/remote.php/dav/files/USERNAME/Root/photos/2023/11/2023-11-03 09-02-59 PIMG_1748.jpg

What happens when you open the app then? Do you see items in the transfer list? Do they stay there if the phone goes to sleep again?

kubrickfr commented 9 months ago

Yes, they get uploaded when I open the app, and I actually see a badge indicating the number of files pending upload.

pjft commented 9 months ago

Perfect. Since you're here and testing, could you test and share what happens when you're trying to upload a large file that needs to be chunked, and then put the phone to sleep as it's processing? I'm trying to assess whether #2647 is more widespread or just a one off. Thanks.

psimona commented 9 months ago

Hi have been having the issue for a long time too. Have some time on my hands can I help? (Fullstack SW Eng background)

ne20002 commented 9 months ago

I see a lot of other (for sure also important) work going on but I'm desperate for a 4.9.1 version plus only the auto upload fixed. Users are complaining about this not working.

But besides this it seems to be already fixed in Testflight.

henrik0488 commented 9 months ago

I am on iOS 17.1.1 and tried the TestFlight version 4.9.2 and can confirm it works with the background upload. I did plug my phone in the charger while I tried, so I don’t know if it will background auto-upload without the charger. However if you want the function of auto-deleting photos taken and a prompt to ask you if you want them deleted this only happens when you open the app, not right after the photo is taken. But I am not sure which option would be preferable. Good job to the developer for working on the issue!!

Edit: It does also work without the charger. The upload to NextCloud is not instantenious, so I dont know what triggers it. But its good enough for me.

ne20002 commented 8 months ago

With version 4.9.2 the auto upload starts automatically every morning. @marinofaggiana, thank you very much

One thing still not ok: the auto upload runs only three times eight uploads aka 24 files per day. As my friend/user is heavily shooting photos this still results in a growing upload queue which is not processed completely in background. Is there any chance to increase the number of files in background upload? The queue size is at 900 files at the moment.

ne20002 commented 8 months ago

As in #2697 it seems auto uploads stopped working again in 4.9.3. :(

brewer-michael commented 3 months ago

I too implemented Nextcloud primarily to have a photo sync option to sync photos as soon as they get taken. While if I go to the Transfers tab the files will all start syncing, as others have said the app has to be in the foreground to sync. I am on app version 5.2.7 and server version 29.0.0.0

n0one42 commented 1 month ago

nearly 2 years later and still no fix...

tassoman commented 1 month ago

Most of the people is asking for this. Not constructive comments, should be avoided because can poison the entire community's happiness. Actually a constructive discussion is being hold by developers and beta testers https://github.com/nextcloud/ios/issues/2697 This issue can be probably related or closed.

ASC-DE commented 1 month ago

Hi,since the last update it is not possible anymore to upload automatically or manually videos files nor other files. Only the Camera Pictures are uploaded when open the ios app.The issue is known and the nextcloud server logs shows a lot of errors as soon I open the ios app  and upload files manually or automaticallyAm 08.07.2024 um 12:39 schrieb Tassoman @.***>: Most of the people is asking for this. Not constructive comments, should be avoided because can poison the entire community's happiness. Actually a constructive discussion is being hold by developers and beta testers #2697 This issue can be probably related or closed.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>