Ios: File content lost in offline mode when using microsoft word app. Potential reason: Files App does not allow access to offline synced nextcloud folders. Debugging help needed!

Created on 13 Aug 2020  Ā·  18Comments  Ā·  Source: nextcloud/ios

Expected behaviour

File content is stored on ipad and synced with nextcloud after wifi connection recovery.

Actual behaviour

File content written in offline mode was completely lost and file was resetted to old content.
I think...but i have no really facts that support my thesis: In Files App i can not open the offline synced folder from nextcloud storage. This is reproducable when turning wifi off AND activating flight mode. Activate flight mode only did not cause this issue: i was able to open the folder.
Open files & folder in nextcloud app was working!

The detailled reason is not really clear. And...it was only one time reproducable and i am not 100% sure that i describe everything correct.
Thats why i need help with this issue, maybe someone has some more idea to reproduce this or find some logs or maybe a shadow copy of the file change. And it was also not myself who lost the data on his ipad (i'm also an apple newbie)

Steps to reproduce

  • got new ipad pro
  • Installed Nextcloud app a week ago and synced ~20GB of data with the option "offline available favourites"
  • installed Word, Outlook, Teams etc and activated product with company license (onedrive and sharepoint storage is enabled, but not used)
  • Created a new word document in Word, add some lines of text and save with "save", then select the "Files App", then nextcloud, the folder of choice and chnage the filename. Then press the button "move". Wifi was enabled and the file was synced to nextcloud server. Swipe back to "desktop" and close ipad. Autosave was enabled in Word

  • Next day, open ipad withour wifi or mobile connectivity. Open Word. Add some other text (4 hours, was a lot of text)

  • Former Windows User: Try to save and press in menu bar the "left arrow" to open the menu with file history, open file etc.
  • the file history did NOT show the current edited file
  • user did nothing else, closed ipad cover
  • user went home, opened ipad (with wifi connectivity) and asked my "my file is gone". I know....not really a good error message
  • me opened files app, searched the file and opened it. Content was same content then in the evening before. All text created was not there.
  • Checked Nextcloud synclog. The file with the issue was synced in the same time i

Then: played around much and figured out:

  • Open documents from word, from files app etc, save documents, edit, close (and really close) word app, etc all with some new created files in nextcloud folders
  • Try to test every action in online and /or offline mode
    Results:
  • found 2 or 3 times word crashing (try to open and closed after that)
  • Now the nextcloud issue i think i found: In Files App i can not open the offline synced folder from nextcloud storage. This is reproducable when turning wifi off. Activate flight mode only did not cause this issue: i was able to open the folder.
    Open files & folder in nextcloud app was working!
  • 1 time i got same issue: new docx, edit text, switch to flight mode, edit again, open same docx from files app and got the old content. But i didn't find a reason the reproduce this again.

Sorry for the much details, but i am not sure what is really important to trace this issue. Maybe someone has an idea (grab a hidden log file, app crash protocol, whatever.) I don't know much about iOS troubleshooting.

Reasoning or why should it be changed/implemented?

Annoying User won't work with her new ipad until this is fixed.

iOS version

13.6

App version

3.0.4.11

Server configuration

Operating system:
Debian Linux 10.5
Web server:
Apache 2.4.38 (builtin)
Database:
mysqld 10.3.23-MariaDB-0+deb10u1
PHP version:
7.4
Nextcloud version: (see Nextcloud admin page)
19.01

3. to review bug

Most helpful comment

No, I've stopped using the Nextcloud Apple Files integration as it is completely useable due to consistent data loss. I don't receive any errors or and there are no problems in the app log, so I assume it is a bug.

All 18 comments

Some update in investigation: Maybe the issue happens when trying to work on documents that was initially created within word and the saved in nextcloud folder.

Because:
Furch such file you find 1 item in document history. When trying to access this item it shows an error: "Die Datei ist an einem leider nicht unterstützten Serverspeicherort gespeichert"

Big question: Word/Microsoft issue or nextcloud issue?

Hi @MarkusKepert we (and more customer) have several ticket open for issue with Microsoft Office and the Files App, unfortunately we are not in control of what happens.

@marinofaggiana Thanks for the answer. I havent an idea where to deep dive into this issue.

What about open my test: The folder synced for offline use i was not able to open in files app? Is this a related topic or should i open a new issue for this?

Regards,
Markus

What's do you mean for "offline" folder in Files app ?

I've setup the file sync for the user in nextcloud add and choosed the option "offline available favorites". One folder is set as fav. In owncloud app i can view the content of this folder. In files app i can't view the folder content and i get the same error like i want to try to open a folder that is not synced.

Always in Files app ?

Yes, tried several times.

I have try now and works ...
so download the latest version in TestFlight, then, disable Nextcloud on Files app and re-enable him.

Let me test this on afternoon! Thanks

@marinofaggiana Iā€˜ve Tested like you described, but i have still this error with the Felder ā€žSchuleā€œ. This folder is explizit set as offline available and is starrend with option ā€žFavoriten offline availā€œ

But it is Not Accessible via Files app. Iā€˜ve disabled and enabled Nextcloud Storage in files App After installing the TestFlight Version.

Bildschirmfoto 2020-08-26 um 21 27 33
Bildschirmfoto 2020-08-26 um 21 25 09
Bildschirmfoto 2020-08-26 um 21 26 02

I am having a similar problem with an app called Write.

In the few weeks, the iPad Write app has lost content within my notes. It’s become a big problem for me as this now happens regularly, but not consistently. A loss of network connectivity is definitely possible.

From memory today:
Today, I created a note on my iPad in the morning and wrote some content. I saved it. During the afternoon, I open the file again, add more notes. Then I created a new note. From memory, the content from the previous session was still there. Finally, I opened the original note, but everything I wrote in the afternoon is gone. The only content is from the first session in the morning.

Recent files shows that the most recent document was the note, but the timestamp is from the morning. I am using Nextcloud, so I assume there is some sort of failure happening with the Apple Files, but there is no warning or error - as though the afternoon session never happened. I wrote more on the note and it worked as expected. Nextcloud has revision history, but it only has the morning session, so it seems the save never took place. Usually when this problem occurs, I didn’t change notes, the app opens to an previous version of the note.

@heluca Thats exact the behaviour we faced here (but not really reproducable). For me it seems that something is weired with the nextcloud <-> files integration and it's not related to the edit application (word, files, excel, whatever...)

Has this been solved or is this still under investigation?

Has this been solved or is this still under investigation?

From my point of view this issue is not resolved.

No, I've stopped using the Nextcloud Apple Files integration as it is completely useable due to consistent data loss. I don't receive any errors or and there are no problems in the app log, so I assume it is a bug.

What is your alternate solution to have files synced on your ios device? Or do you haven't offline usage?

I still read my Nextcloud files with my iPad, but I don't write to them. Thankfully, I kept my MS Surface Go after I bought the iPad, so I am still using it. Not much of a workaround.

Thats not an option for me @heluca Thanks.
I'll found similar bug description here: https://keepassium.com/articles/sync-ios-keepass-with-nextcloud/
And this is plain old....it's from 2018 when iOS 13 was released.... Very annoying.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

k-matti picture k-matti  Ā·  4Comments

khlschrnk picture khlschrnk  Ā·  5Comments

jancborchardt picture jancborchardt  Ā·  5Comments

MarkusKepert picture MarkusKepert  Ā·  4Comments

helmut72 picture helmut72  Ā·  4Comments