Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] No Sync with Nextclous possible #2588

Open
1 task done
Dave2526 opened this issue Apr 10, 2024 · 3 comments
Open
1 task done

[BUG] No Sync with Nextclous possible #2588

Dave2526 opened this issue Apr 10, 2024 · 3 comments
Labels

Comments

@Dave2526
Copy link

Checks

  • I have read the FAQ section, searched the open issues, and still think this is a new bug.

Describe the bug you encountered:

Hi,
with Nextcloud there is no saving possible. K2A reads the File but after a change it connot save them, it occurs with an timeout.
Nextcloud Version 28.0.4 on docker on ubuntu
K2A Version 1.10-pre

The last sextion of the log file, my data is ---- out

10.04.2024 17:20:30:402 -- status message: Speichere Datenbank…
10.04.2024 17:20:30:402 -- Conflict. True True True
10.04.2024 17:20:32:671 -- status submessage: Führe Änderungen zusammen…
10.04.2024 17:20:33:705 -- ReadXmlStreamed: 934ms
10.04.2024 17:20:33:800 -- status submessage: 
10.04.2024 17:20:35:167 -- Xml WriteDocument: 1300ms
10.04.2024 17:20:35:302 -- https://------------------------/remote.php/webdav/keepass.kdbx isCached = True
10.04.2024 17:21:02:616 -- timeout
10.04.2024 17:21:02:618 -- couldn't save to remote https://------------------------/remote.php/webdav/keepass.kdbx
10.04.2024 17:21:02:619 -- System.Exception: timeout ---> Java.Net.SocketTimeoutException: timeout ---> Java.Net.SocketException: Socket closed
   --- End of inner exception stack trace ---
  at Java.Interop.JniEnvironment+InstanceMethods.CallVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x0006e] in <6fb1725a77344b3e81b15cb69a959b5c>:0 
  at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00036] in <6fb1725a77344b3e81b15cb69a959b5c>:0 
  at Keepass2android.Javafilestorage.WebDavStorage.UploadFile (System.String path, System.Byte[] data, System.Boolean writeTransactional) [0x00059] in <8c6bb6e6ee5d44ad91d9ee9c1a43f965>:0 
  at keepass2android.Io.JavaFileStorage+JavaFileStorageWriteTransaction.CommitWrite () [0x0001c] in <4387dcce18dd490eadd43a838bbc0f3d>:0 
   --- End of inner exception stack trace ---
  at keepass2android.Io.JavaFileStorage+JavaFileStorageWriteTransaction.CommitWrite () [0x00036] in <4387dcce18dd490eadd43a838bbc0f3d>:0 
  at keepass2android.Io.CachingFileStorage.UpdateRemoteFile (System.IO.Stream cachedData, KeePassLib.Serialization.IOConnectionInfo ioc, System.Boolean useFileTransaction, System.String hash) [0x00022] in <4387dcce18dd490eadd43a838bbc0f3d>:0 
  at keepass2android.Io.CachingFileStorage.TryUpdateRemoteFile (System.IO.Stream cachedData, KeePassLib.Serialization.IOConnectionInfo ioc, System.Boolean useFileTransaction, System.String hash) [0x00000] in <4387dcce18dd490eadd43a838bbc0f3d>:0 
10.04.2024 17:21:02:660 -- Populating group view False Alt / Gekündigt
10.04.2024 17:21:02:663 -- Populating group view False Arbeit
10.04.2024 17:21:02:664 -- Populating group view False Auto
10.04.2024 17:21:02:666 -- Populating group view False Diabetes
10.04.2024 17:21:02:668 -- Populating group view False E-Mail
10.04.2024 17:21:02:669 -- Populating group view False Fhem
10.04.2024 17:21:02:670 -- Populating group view False Handy / Tablet
10.04.2024 17:21:02:672 -- Populating group view False Karten
10.04.2024 17:21:02:674 -- Populating group view False Lizenzen / Serials
10.04.2024 17:21:02:675 -- Populating group view False Network
10.04.2024 17:21:02:676 -- Populating group view False o2
10.04.2024 17:21:02:677 -- Populating group view False Papierkorb
10.04.2024 17:21:09:763 -- Populating group view False Raiffeisen / Payments
10.04.2024 17:21:15:76 -- GroupActivity.OnPause 33
10.04.2024 17:21:15:76 -- Timeout start
10.04.2024 17:21:15:88 -- DatabaseSettingsActivity.OnCreate 35
10.04.2024 17:21:15:89 -- DatabaseSettingsActivity:apptask= 35
10.04.2024 17:21:15:117 -- DatabaseSettingsActivity.OnStart 35
10.04.2024 17:21:15:118 -- DatabaseSettingsActivity.OnResume 35
10.04.2024 17:21:15:119 --  DatabaseIsUnlocked=True 35
10.04.2024 17:21:15:119 -- Timeout cancel
10.04.2024 17:21:15:685 -- GroupActivity.OnStop 33

Describe what you expected to happen:

Sync the file

What version of Keepass2Android are you using?

1.10-pre

Which version of Android are you on?

13

@Dave2526 Dave2526 added the bug label Apr 10, 2024
@Dave2526
Copy link
Author

Dave2526 commented Apr 10, 2024

Update:

If i create a new empty databse it sync (2kB)

If i try it with my Standard, it wont work (7,2MB)

@Gronkdalonka
Copy link

Same here but with seafile as webdav backend. Other webdav clients are able to sync the keepass db just fine and it works if the db file is fresh and has not too many entries.
My default db is just ~ 700 kB in size and from the logs i could only gather that the
request results in a 502 error because the upstream wsgidav server behind an apache2 reverse proxy notices a sudden end of the data stream.

@Dave2526
Copy link
Author

Ok, after trying something this weekend, I get the following solution:
With nextcloud-aio it won't work,
but with a simple nextcloud it works... It seems to be an issue in nextcloud.. so done for me...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants