On 26-07-17 20:08, Jan Mulder wrote:
Like the title says. Trying to create a new cloud account from the mobile app.


Mobile app session 1)

- using a new email address/passwd
- toast message shows (loading dives from cache failed) => sure, we are creating a new one.
- pin request is correctly shown (and correctly received from server)
- logging is incorrect (says to enter PIN in desktop. Minor issue.
- toast message: failed to open <cloud string>
- a correct empty dive list is shown
- import some (9, before I hit cancel) dives from DC
- now try "manual sync with cloud". Knowing what toast messages are to be expected, it does not seem to get synced with the remote. And indeed, in the log, the message "Cannot save to cloud, without loading first". Obviously, we could not connect to the cloud earlier in this session, so we did not load (the empty dive list). But it is assuring that the log also says: "Save changes to local cache". - Some verification from desktop: try to log-in to the cloud website. results in 404 error. - end of this session. Log of this session is attached as subsurface-s-1.log (used email address is removed, I don't want all my email addresses leaked to the internet. One is enough :-) )

Mobile app session 2)

- start a new mobile session
- to my surprise, the credentials page is shown. Already filled in email/passwd and the "log shows loading dives from cache failed"
- tried the save icon. Nothing happens
- despite the credentials page still open on the page stack, I can navigate to the settings page.
- On the settings page, I re-enter my passwd.
- and exit the app. The session log is attached as subsurface-s-2.log, and does not contain anything relevant (so it seems to me)


Mobile app session 3)

- start a new mobile session
- again the credentials page is shown. Now continue with the "no cloud" button.
- an empty dive list is shown
- ok, download some dives again.
- error toast "unable to open remote", but the are are (4 this time) dives in my list
- toast message "done creating local cache"
- tried "manual sync with cloud". Nothing seems to happen.
- tried numerous things, but always end up at the credential page, or the divelist with 4 dives.
- and exit log is in subsurface-s-3.log

and in the meantime ... try to log-in to the cloud website again. results in 404 error. So finally, it seems that the new account is not created.

End of testing for today.

And, sorry for the testing noise.

Forgot one final session. So here it is.

Mobile session 4).

- as I did not seem to be able to get a working cloud account from session 2) and 3) above
- I deleted the app, and re-installed it.
- And now I can successfully connect to the cloud using the app
- subsurface-s-4.log is the prove of an (empty) cloud log.


So, my current hypothesis of all this. The correct state of the new user account is not carried forward correctly, probably in combination with some delay in creation of a new cloud account on the server. So, the immediate connect (from session 1) fails, as the account does not yet exist. No problem, (in principle) as long as the account details are carried forward correctly. Then a session 2 or 3 would be able to connect to the cloud. A full reset of all the underlying app data (by reinstalling it), brings us to a different use case (new install, but already valid account on the server).

So, this the real end of testing for today.

--jan
"0.000: Successfully opened logfile /storage/emulated/0/subsurface.log at Wed Jul 26 20:15:15 2017"
"0.002: Starting Subsurface-mobile:2.0(4.6.4.516):Android Nougat (7.1):arm:en-US"
"0.002: build with Qt Version 5.9.2, runtime from Qt Version 5.9.2"
"localDevice Wileyfox Swift is valid, starting discovery"
paired Device type 1 with address "00:13:43:25:9B:A3"
paired Device type 2 with address "LE:00:80:25:4A:0F:C3"
Found new device: "DistoX-3587" "00:13:43:25:9B:A3"
Not recognized as dive computer
Found new device: "OSTC 3" "LE:00:80:25:4A:0F:C3"
"this could be a Heinrichs Weikamp OSTC 3"
Paired = "DistoX-3587" "00:13:43:25:9B:A3"
Paired = "OSTC3#0" "LE:00:80:25:4A:0F:C3"
"Created position source android"
"0.043: Created position source android"
"Set GPS service update interval to 600000"
"0.044: Set GPS service update interval to 600000"
"0.044: location service is available"
"0.123: Credential scrn: hide kbd was: invisible"
Both point size and pixel size set. Using pixel size.
qrc:/templates/ApplicationHeader.qml:84:13: QML Heading: Binding loop detected for property "width"
qrc:/templates/ApplicationHeader.qml:84:13: QML Heading: Binding loop detected for property "width"
qrc:/Icon.qml:64:5: QML Image: Cannot open: qrc:/icons/_gps.svg
"3.804: no cloud credentials"
"Set GPS service update interval to 600000"
"3.810: Set GPS service update interval to 600000"
qrc:/templates/ApplicationHeader.qml:84:13: QML Heading: Binding loop detected for property "width"
Using the following font: Roboto
qqwindow devicePixelRatio 2 2
qqwindow screen has ldpi/pdpi 72 147.452
"8.655: AppState changed to active with no save ongoing and no unsaved changes"
qrc:/templates/ApplicationHeader.qml:140: TypeError: Cannot read property of null
"37.587: local save requested with no unsaved changes"
"37.873: Synchronising data file"
"37.879: loading dives from cache failed -1"
"37.890: have cloud credentials, trying to connect"
"37.895: Have credentials, let's see if they are valid"
Completed connection with cloud storage backend, response "[OK]"
"40.201: calling getUserid with user [email protected]"
called getUserid
"40.380: Credential scrn: hide kbd was: invisible"
"received WebserviceID:
"41.296: received WebserviceID:
"41.324: Synchronising data file"
"43.265: Sync with cloud storage"
"44.168: Successful cloud connection, fetch remote"
"45.214: Store data into cloud storage"
"47.249: Done syncing with cloud storage"
"47.285: Cloud sync brought newer data, reloading the dive list"
"47.286: have repository and branch [email protected]"
"47.288: Load dives from local cache"
"47.307: Successfully opened dive data"
"47.321: filename is now https://cloud.subsurface-divelog.org//git/[email protected][[email protected]]";
"47.322: 0 dives loaded"
"88.104: Credential scrn: hide kbd was: invisible"
Both point size and pixel size set. Using pixel size.
qrc:/templates/ApplicationHeader.qml:84:13: QML Heading: Binding loop detected for property "width"
Both point size and pixel size set. Using pixel size.
qrc:/templates/ApplicationHeader.qml:84:13: QML Heading: Binding loop detected for property "width"
Both point size and pixel size set. Using pixel size.
qrc:/templates/ApplicationHeader.qml:84:13: QML Heading: Binding loop detected for property "width"
Both point size and pixel size set. Using pixel size.
qrc:/templates/ApplicationHeader.qml:84:13: QML Heading: Binding loop detected for property "width"
Both point size and pixel size set. Using pixel size.
qrc:/templates/ApplicationHeader.qml:84:13: QML Heading: Binding loop detected for property "width"
"181.898: AppState changed to inactive with no save ongoing and no unsaved changes"
"181.947: AppState changed to suspended with no save ongoing and no unsaved changes"
_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to