Sync difficulty

107 views
Skip to first unread message

Richard Loewenstein

unread,
May 21, 2020, 1:14:01 PM5/21/20
to Subsurface Divelog
Is there a glitch in syncing with the cloud at present?
I have edited some dive information on my phone, these changes do not seem to appear when I inspect the cloud account with my desktop machine
W10, Subsurface v 4.9.4
S7Edge Android 8.0.0,
Subsurface-mobile 3.0.5(4.9.3.1486)

Dirk Hohndel

unread,
May 21, 2020, 1:53:47 PM5/21/20
to subsurfac...@googlegroups.com
That's fairly vague and very hard to respond to.
From a quick test one minute ago it seems that cloud storage is working as expected, both from a Mac and from Android

Could you trigger a manual sync on the mobile device right after you do that send a support request from within the app (which should attach a log file to an email to me)?
That will help narrow down what is happening.

/D

Richard Loewenstein

unread,
May 21, 2020, 2:03:27 PM5/21/20
to Subsurface Divelog
Thank you for your very quick response

Sync triggered, support requested, email sent.

Richard Loewenstein

unread,
May 21, 2020, 2:08:01 PM5/21/20
to subsurfac...@googlegroups.com

---------- subsurface.log ----------
"0.011: Failed to open logfile /storage/emulated/0/subsurface.log at Thu May 21 19:05:07 2020 error: Permission denied"
"0.011: Failed to open logfile /storage/emulated/0/Documents/subsurface.log at Thu May 21 19:05:07 2020 error: Permission denied"
"0.012: Successfully opened logfile /storage/emulated/0/Android/data/org.subsurfacedivelog.mobile/files/Documents/subsurface.log at Thu May 21 19:05:07 2020"
"0.012: Starting Subsurface-mobile:3.0.6(4.9.4.103):Android Oreo (8.0):arm64:en-GB"
"0.012: built with libdivecomputer v0.7.0-devel-Subsurface-NG (48e46cf7775452740f67ba72d9c5a0960ebf3718)"
"0.012: built with Qt Version 5.13.2, runtime from Qt Version 5.13.2"
"0.012: built with libgit2 0.26.0"
"0.012: Running on Android Oreo (8.0)"
"0.012: SM-G935F/samsung/hero2ltexx"
BTDiscoveryReDiscover: localBtDevice.isValid() true
"BTDiscoveryReDiscover: localDevice Galaxy S7 edge is powered on, starting discovery"
paired BT classic device type 1 with address "E4:04:39:60:C1:0C"
paired BT classic device type 1 with address "12:58:56:07:7B:34"
paired BT classic device type 1 with address "A0:60:90:06:A0:C1"
Found new device: "TomTom GO 610" "E4:04:39:60:C1:0C"
Not recognized as dive computer
Found new device: "BT BIAO-TA" "12:58:56:07:7B:34"
Not recognized as dive computer
Found new device: "Level Box Slim (A0C1)" "A0:60:90:06:A0:C1"
Not recognized as dive computer
Paired = "TomTom GO 610" "E4:04:39:60:C1:0C"
Paired = "BT BIAO-TA" "12:58:56:07:7B:34"
Paired = "Level Box Slim (A0C1)" "A0:60:90:06:A0:C1"
"0.042: Created position source android"
"0.042: Set GPS service update interval to 300 s"
"0.042: location service is not available"
qrc:/qml/TripDetails.qml:30: TypeError: Cannot read property 'width' of null
"0.113: download page -- looking for known BT/BLE device"
qrc:/org/kde/kirigami/ScrollablePage.qml:187: TypeError: Cannot assign to read-only property "parent"
"0.125: Window width changed to 570 orientation 1"
"0.125: Screen rotated, no action necessary"
"0.126: 1 columns with column width of 570"
"0.126: width in Grid Units 30 original gridUnit 19 now 19"
"0.126: Done setting up sizes"
"0.242: StartPage visibility changed to false"
"0.242: not yet initialized, show busy spinner"
"1.188: finished setting up the diveListView"
"1.189: StartPage completed -- initialized is false"
"1.189: screenSizeObject constructor completed, initial width 570"
"1.189: 1 columns with column width of 570"
"1.189: width in Grid Units 30 original gridUnit 19 now 19"
"1.189: Done setting up sizes"
qrc:/org/kde/kirigami/AbstractApplicationHeader.qml:57: TypeError: Cannot read property 'header' of null
qrc:/org/kde/kirigami/ContextDrawer.qml:92: TypeError: Cannot call method 'hasOwnProperty' of null
loaded main.qml
qqwindow devicePixelRatio 3 3
qml_window reports width as 570 associated screen width 360 Qt screen reports width as 360
QMLManager received screen changed notification (360,640)
qqwindow screen has ldpi/pdpi 72 133.858
"1.380: Window width changed to 360 orientation 1"
"1.380: first real change, so recalculating units and recording size as 360 x 616"
"1.386: 1 columns with column width of 360"
"1.386: width in Grid Units 21 original gridUnit 19 now 17"
"1.403: Done setting up sizes"
"1.726: Window width changed to 510 orientation 1"
"1.727: size change without rotation to 510 x 765"
"1.727: resetting to initial width 360 and height 616"
"1.847: Window width changed to 360 orientation 1"
"1.848: size change without rotation to 360 x 616"
"2.033: AppState changed to active with no unsaved changes"
"2.033: finishSetup called"
"2.034: showProgress: populate data model"
"2.035: showProgress: start processing"
"2.035: showProgress: 0 dives processed"
"2.036: showProgress: finish populating data store"
"2.038: showProgress: setting up internal data structures"
"2.051: showProgress: done setting up internal data structures"
"2.068: ============diveListProcessing is true"
"2.068: showProgress: Open local dive data file"
"2.084: showProgress: Synchronising data file"
"2.108: showProgress: Load dives from local cache"
"2.946: showProgress: Successfully opened dive data"
"2.980: showProgress: Processing 741 dives"
"3.003: showProgress: Create full text index"
"3.016: showProgress: start processing"
"3.098: showProgress: 741 dives processed"
"3.115: showProgress: populate data model"
"3.131: showProgress: start processing"
"3.298: showProgress: 741 dives processed"
"3.310: showProgress: finish populating data store"
"3.459: showProgress: setting up internal data structures"
"3.791: showProgress: done setting up internal data structures"
"3.843: showProgress: 741 dives loaded from local dive data file"
"3.858: have cloud credentials, but user asked not to connect to network"
"3.882: ============diveListProcessing is false"
"3.883: initialization completed - showing the dive list"
"3.940: pageStack switched to DiveList"
"4.032: switched to page Dive list"
index 0 select changed to true
updated view.currentIndex
"4.332: if we got started by a plugged in device, switch to download page -- pluggedInDeviceName = "
checkPendingIntents 
"25.714: endEditMode called with state view"
"25.718: showProgress: Save changes to local cache"
"25.728: local save requested with no unsaved changes"
"25.729: showProgress: Synchronising data file"
"25.736: showProgress: Sync with cloud storage"
"26.823: showProgress: Successful cloud connection, fetch remote"
"27.961: showProgress: Done syncing with cloud storage"
"27.983: Cloud sync shows local cache was current"
qrc:/org/kde/kirigami/templates/private/ScrollView.qml:113:9: QML ScrollBar: Binding loop detected for property "visible"
"45.127: pageStack switched to "
"45.131: switched to page About Subsurface-mobile"
"45.131: endEditMode called with state view"
---------- finish ----------







On Thu, 21 May 2020, 7:03 pm Richard Loewenstein, <richard.l...@gmail.com> wrote:
Thank you for your very quick response

Sync triggered, support requested, email sent.

--
You received this message because you are subscribed to a topic in the Google Groups "Subsurface Divelog" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/subsurface-divelog/J9gESEsMhHQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to subsurface-dive...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subsurface-divelog/72b88d97-2c58-46a5-98b3-8fe2711f423e%40googlegroups.com.

Dirk Hohndel

unread,
May 21, 2020, 2:35:41 PM5/21/20
to Subsurface Divelog


On May 21, 2020, at 11:07 AM, Richard Loewenstein  wrote:


---------- subsurface.log ----------
"0.012: Starting Subsurface-mobile:3.0.6(4.9.4.103):Android Oreo (8.0):arm64:en-GB"

Current version. Good

"25.718: showProgress: Save changes to local cache"
"25.728: local save requested with no unsaved changes"
"25.729: showProgress: Synchronising data file"
"25.736: showProgress: Sync with cloud storage"
"26.823: showProgress: Successful cloud connection, fetch remote"
"27.961: showProgress: Done syncing with cloud storage"
"27.983: Cloud sync shows local cache was current"

It seems to show that the local cache is consistent with the remote server.

Do you see the missing dives if you log in (with the same credentials) to


Thanks

/D

Richard Loewenstein

unread,
May 21, 2020, 2:51:56 PM5/21/20
to subsurfac...@googlegroups.com
Dirk,

Yes, logging in as you suggested I see the edits I have made with the mobile app to the dives perfectly there.

That is what I would like to see when I log in on my windows desktop.


(No dives are missing when I look on the windows version, just edits, mostly in the remarks space, and buddy names)



You have my permission to look at my data, should you wish.

Richard


--
You received this message because you are subscribed to a topic in the Google Groups "Subsurface Divelog" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/subsurface-divelog/J9gESEsMhHQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to subsurface-dive...@googlegroups.com.

Jason Bramwell

unread,
May 21, 2020, 3:15:59 PM5/21/20
to subsurfac...@googlegroups.com
Are you sure you’d desktop software is set to open the cloud version of your data rather than a local version. I’ve seen similar behaviour when I moved from using a local copy to a cloud based copy. In my case Subsurface wasn’t doing anything wrong I just had to update my preferences,

Jb

Sent from my iPhone

On 21 May 2020, at 19:51, Richard Loewenstein <richard.l...@gmail.com> wrote:


You received this message because you are subscribed to the Google Groups "Subsurface Divelog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to subsurface-dive...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subsurface-divelog/CAKoCzdfVMiOAayFvdR9yrms59D6cx9PCMDhC3Xq9hsOyRW-27w%40mail.gmail.com.

Richard Loewenstein

unread,
May 21, 2020, 3:33:11 PM5/21/20
to Subsurface Divelog
Thanks JB2Cool - I believe that my desktop is correctly set to open the cloud version, the correct file is described at the top of the desktop window.
RDL
To unsubscribe from this group and all its topics, send an email to subsurface-divelog+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Subsurface Divelog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to subsurface-divelog+unsub...@googlegroups.com.

Dirk Hohndel

unread,
May 21, 2020, 4:21:43 PM5/21/20
to subsurfac...@googlegroups.com
But it's not synching with the cloud

So. File->open cloud storage
any error messages?
Ensure that there is a checkmark by "Cloud storage online" in the File menu - if not, click on that menu entry.

Any error messages?

/D

Richard Loewenstein

unread,
May 21, 2020, 5:24:54 PM5/21/20
to subsurfac...@googlegroups.com
No error messages.
Cloud storage online is ticked.

I have been careful to only look at the cloud with either the desktop or the mobile app, never both at the same time

Richard

Richard


--
You received this message because you are subscribed to a topic in the Google Groups "Subsurface Divelog" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/subsurface-divelog/J9gESEsMhHQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to subsurface-dive...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subsurface-divelog/2742247D-B66D-415C-A048-C5D8300EC26F%40hohndel.org.

Dirk Hohndel

unread,
May 21, 2020, 6:21:24 PM5/21/20
to Subsurface Divelog
So this is interesting. Because if the desktop app shows that tick mark and no error, that means it successfully talked to the cloud.
... which leads us to the question "why isn't it showing the same things that you see when you are looking at cloud.subsurface-divelog.org?"

I assume it would be insulting to ask you to check that you are indeed using the same email address on both sides.
So, next step.

On the Windows machine, start Subsurface, open cloud storage, make an insubstantial change (add a new line in the notes of the first dive - something like that) and then save to the cloud.
Does this change become visible on cloud.subsurface-divelog.org?

/D


You received this message because you are subscribed to the Google Groups "Subsurface Divelog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to subsurface-dive...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subsurface-divelog/CAKoCzdcj0x%3D9qGMiiZJoS61PVEyOJHLNSNzc5qmXANVPHVm9BQ%40mail.gmail.com.

Richard Loewenstein

unread,
May 22, 2020, 4:32:09 AM5/22/20
to subsurfac...@googlegroups.com
Hi,
I am indeed using the same email account for both android and desktop.  Carefully checked.
Added a small comment to a dive using the desktop, this small change does not appear in the webview of the cloud.
So it would seem that my desktop is somehow not properly talking to the cloud file.
Upon opening the desktop after looking with webview, my small edit is still there..
Richard



--
No Apple devices were knowingly used during the preparation of this email.

Jason Bramwell

unread,
May 22, 2020, 5:17:38 AM5/22/20
to subsurfac...@googlegroups.com
Can you tell us what the Dive Log page in preferences looks like, specifically the radio button at the top.

Jb

Sent from my iPhone

On 22 May 2020, at 09:32, Richard Loewenstein <richard.l...@gmail.com> wrote:



Richard Loewenstein

unread,
May 22, 2020, 6:41:19 AM5/22/20
to subsurfac...@googlegroups.com
Preferences/Dive log
Cloud storage default file radio button selected.
The local dive log file below the radio buttons is greyed out


Dirk Hohndel

unread,
May 22, 2020, 12:55:57 PM5/22/20
to subsurfac...@googlegroups.com
So...

You're on Windows, which always makes this harder to debug...

Run Subsurface, make another change (so there's an unsaved change) and save it to the cloud.
Quit Subsurface and send us the subsurface_out.log and subsurface_err.log in C:\Users\<your login name>\AppData\Roaming\Subsurface

/D

Richard Loewenstein

unread,
May 22, 2020, 2:28:53 PM5/22/20
to subsurfac...@googlegroups.com
Dirk,

Attached are the files I hope will help.
This time, I also got a new message in a red bar at the bottom of the screen

"Moved cache data to C:\Users\OldGit\AppData\Roaming\Subsurface/cloudstorage/afcaed0c016fe61b.1. Please try the operation again."


--
You received this message because you are subscribed to a topic in the Google Groups "Subsurface Divelog" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/subsurface-divelog/J9gESEsMhHQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to subsurface-dive...@googlegroups.com.
subsurface_err.log
subsurface_out.log

Richard Loewenstein

unread,
Jun 9, 2020, 4:19:50 PM6/9/20
to Subsurface Divelog

Richard Loewenstein

unread,
Jun 9, 2020, 4:20:18 PM6/9/20
to Subsurface Divelog
Have you had a chance to have a look at the files and deduuce anything from them?
I am still unable to to persuade my windows desktop to access the cloud.
My android phone works fine, however.
thak you for your time

Richard


On Friday, 22 May 2020 19:28:53 UTC+1, Richard Loewenstein wrote:
Dirk,

Attached are the files I hope will help.
This time, I also got a new message in a red bar at the bottom of the screen

"Moved cache data to C:\Users\OldGit\AppData\Roaming\Subsurface/cloudstorage/afcaed0c016fe61b.1. Please try the operation again."


On Fri, May 22, 2020 at 5:55 PM Dirk Hohndel <di...@hohndel.org> wrote:
So...

You're on Windows, which always makes this harder to debug...

Run Subsurface, make another change (so there's an unsaved change) and save it to the cloud.
Quit Subsurface and send us the subsurface_out.log and subsurface_err.log in C:\Users\<your login name>\AppData\Roaming\Subsurface

/D

--
You received this message because you are subscribed to a topic in the Google Groups "Subsurface Divelog" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/subsurface-divelog/J9gESEsMhHQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to subsurface-divelog+unsub...@googlegroups.com.

Dirk Hohndel

unread,
Jun 9, 2020, 5:59:14 PM6/9/20
to Subsurface Divelog
I can see that you successfully connected to the cloud from a Windows 10 system about a week ago.
Lots of changes to tags (as far as I can tell from the meta data) last week Tue/Wed.

So to me it looks like you are successfully syncing to the cloud.

/D

You received this message because you are subscribed to the Google Groups "Subsurface Divelog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to subsurface-dive...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subsurface-divelog/cf5ada62-5dbf-4bc7-8127-caf161e41224o%40googlegroups.com.

Richard Loewenstein

unread,
Jun 10, 2020, 3:22:27 AM6/10/20
to subsurfac...@googlegroups.com
Yes, I have been able to successfully connect to the cloud, using my sons laptop (not always available to me)
I am still unable to connect with my desktop machine, and would appreciate any suggestions as to what I might be doing wrong.
Regards
Richard

/D

To unsubscribe from this group and all its topics, send an email to subsurface-dive...@googlegroups.com.


-- 
No Apple devices were knowingly used during the preparation of this email.

-- 
You received this message because you are subscribed to the Google Groups "Subsurface Divelog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to subsurface-dive...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subsurface-divelog/cf5ada62-5dbf-4bc7-8127-caf161e41224o%40googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Subsurface Divelog" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/subsurface-divelog/J9gESEsMhHQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to subsurface-dive...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subsurface-divelog/D7E7F712-B3A6-4107-AA02-46184ABAADA9%40hohndel.org.

Dirk Hohndel

unread,
Jun 10, 2020, 2:17:22 PM6/10/20
to subsurfac...@googlegroups.com
So the fact that this works from one Windows box but not the other makes me think that the issue is NOT on the backend, but in the setup of your Windows system.
The first thing of course is to check for typos in the email address / password.
When you look at the cloud section of the preferences - what's the status that Subsurface shows for your account? You should see something like this (screenshot from a Mac)


/D

Richard Loewenstein

unread,
Jun 10, 2020, 5:14:10 PM6/10/20
to subsurfac...@googlegroups.com
Hi,
Yes, I agree, it seems to be something wrong with my desktop setup.
I see in Preferences/Cloud that my credentials are verified.
Carefully checked - no typos.
When I attempt to save to the cloud, I get the following message in a red bar at the bottom of the screen:-

Moved cache data to C:\Users\OldGit\AppData\Roaming\Subsurface/cloudstorage/afcaed0c016fe61b.1. Please try the operation again.


Richard

screen.jpg

Dirk Hohndel

unread,
Jun 10, 2020, 7:43:21 PM6/10/20
to Subsurface Divelog
That message indicates that Subsurface failed to combine the local cache of your cloud storage with what's on the back end and ended up giving up, simply copying what was on the backend (but it kept a copy of the data that you had previously).

So the question now becomes... do you have the dive data that you wanted on that computer, or are you missing dives?Did you get that error just once or every time?

Problems like this one are actually fairly rare, but at least we know how to fix them.

If you can tell me more about the state of things I can propose next steps...

/D

Richard Loewenstein

unread,
Jun 11, 2020, 5:50:59 AM6/11/20
to subsurfac...@googlegroups.com
Hi,
The data I have in the cloud is my most up to date data (edited using sons laptop) and that is the version I would most like to keep.
I get that message in the red bar every time I try to save to the cloud.
Richard


Screen Shot 2020-06-10 at 11.16.40 AM.png
screen.jpg

Miika Turkia

unread,
Jun 11, 2020, 10:00:14 AM6/11/20
to subsurfac...@googlegroups.com
Would it suffice to remedy the issue, if you moved the cloud storage directory to backup location and let Subsurface sync a fresh copy from cloud? (Removing it completely should be ok, but moving is obviously safer option.)

On 11. Jun 2020, at 12.50, Richard Loewenstein <richard.l...@gmail.com> wrote:


To view this discussion on the web visit https://groups.google.com/d/msgid/subsurface-divelog/CAKoCzddYwNZAh_%3DdrNSE0xdKbdhgb3jBeJ1OCNKonZ%3DDc85Ctg%40mail.gmail.com.
<Screen Shot 2020-06-10 at 11.16.40 AM.png>
<screen.jpg>

Dirk Hohndel

unread,
Jun 11, 2020, 1:21:58 PM6/11/20
to subsurfac...@googlegroups.com

I think this may be the easiest approach since you do have the data
that you care about.

You could simply rename the cloudstorage directory - so open this
directory in the File Browser:

C:\Users\OldGit\AppData\Roaming\Subsurface

and rename 'cloudstorage' to 'broken-cloudstorage'

I'm reasonably optimistic that the errors will go away with that.

/D

Richard Loewenstein

unread,
Jun 11, 2020, 5:02:45 PM6/11/20
to subsurfac...@googlegroups.com
Hi,
File renamed as you suggested, and all seems to be now working perfectly.
I am delighted.
Thank you for for all your help.

Regards

Richard Loewenstein

--
You received this message because you are subscribed to a topic in the Google Groups "Subsurface Divelog" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/subsurface-divelog/J9gESEsMhHQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to subsurface-dive...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages