Author Topic: Locus Map - cloud/sync server  (Read 922 times)

Offline Menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11853
  • Thanked: 436 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 2
Locus Map - cloud/sync server
« on: September 08, 2020, 13:06:05 »
It's almost 9 months since we started the work on a cloud/sync solution (since Jan 2020).

And today, we are in a moment that all internal tests were successful and the first public test is possible. Locus Map team currently consists of seven people, but still, a lot of corner cases may not be covered. Because of this, any public tests are more than welcome.

Important: use on own risk!

Important: make a full backup of your database!! This version modifies the database upon start and also may cause a data loss in case of any serious problem in client-server communication.

Version: Google Drive

Privacy: we do not yet have complete "privacy policy" document. Anyway, be aware that based on GDPR regulations, we are trying to work with data as securely as possible. We never share, re-sell etc. any data, never. It's against our deep conviction (I personally guarantee). Once Locus Map 4 will be officially published, all uploaded data on the server (not on your device!) will be deleted.

Usage:
- by default, sync (synchronization between client-server) is disabled
- the best start-point is currently over Data Manager -> in the toolbar is the "Sync" button (will be improved later)
- after the first full sync is done, automatic-sync is enabled. After any change in the database, the sync will be done automatically (with 30 seconds delay). This may be disabled in sync-settings (to work fully manually if needed).

Reporting problems
As usually, best is reproduction of problem on my own device. This means:
- a sharing your original database backup + steps to reproduce problem
- or precise description that may lead to this problem
- or if the app crash, creating a bug report by well-known method here

Known missing functionality & bugs
- automatic notification on other users devices to download new changes

Web route planner & manager of own points/tracks is in preparation (the second part of sync-system). ETA for the Beta test of this part is currently 2-3 months. For now, this tool is mainly about "cloud data backup" and "syncing between own devices".

Looking forward to some feedback ;)
« Last Edit: September 08, 2020, 19:04:45 by menion »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
Support email: locus.map@asamm.com
 
The following users thanked this post: Andrew Heard

Offline balloni55

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 2691
  • Thanked: 126 times
    • View Profile
  • Device: Samsung XCover 4s Android 10
Re: Locus Map - cloud/sync server
« Reply #1 on: September 08, 2020, 13:48:02 »
Hello menion
thanks for neu sync version
My first experiences
- in portrait view not all text is visible
- the error text should show the reason for the error
- after enabeled wifi syc process finished but i get an error report
- if i now click the sync button again locus close
Locus PRO 3.48.2
 

Offline Menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11853
  • Thanked: 436 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 2
Re: Locus Map - cloud/sync server
« Reply #2 on: September 08, 2020, 13:57:06 »
You are fast, thanks for tests!

- cut texts ... hmm, even four lines are not enough. Oki, I'll improve it
- error when wi-fi is not enabled: ah, good point, thanks!
- the last one will be the worst. Error "-1" should never happen, it is something like "well, I really do not know what happens". If the app always crashes, should be possible to create a log for me? Thanks!
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
Support email: locus.map@asamm.com
 

Offline tapio

  • Padavan of Locus
  • ***
  • Posts: 385
  • Thanked: 63 times
    • View Profile
Re: Locus Map - cloud/sync server
« Reply #3 on: September 08, 2020, 14:18:57 »
OK I have my own backup strategy and will not upload my database - in my case my whole movements - unencrypted to a 3rd party. Would only do that if encryption/decryption was transparent and client side.
But I'd participate in testing if I could pick specific folders in my database for syncing - is that possible?
« Last Edit: September 08, 2020, 14:20:55 by tapio »
 

Offline Menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11853
  • Thanked: 436 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 2
Re: Locus Map - cloud/sync server
« Reply #4 on: September 08, 2020, 14:36:18 »
This is not a problem. Whole "sync" system is 100% optional feature, not a requirement.

Selection of groups to sync is currently not possible. This feature is in my "ideas to consideration" list for version 2.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
Support email: locus.map@asamm.com
 
The following users thanked this post: tapio

Offline balloni55

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 2691
  • Thanked: 126 times
    • View Profile
  • Device: Samsung XCover 4s Android 10
Re: Locus Map - cloud/sync server
« Reply #5 on: September 08, 2020, 14:42:04 »
Quote
should be possible to create a log for me? Thanks!
log send just now
Locus PRO 3.48.2
 

Offline janaton

  • Administrator
  • Newbie
  • *****
  • Posts: 6
  • Thanked: 1 times
    • View Profile
Re: Locus Map - cloud/sync server
« Reply #6 on: September 08, 2020, 15:02:54 »
Hi there,
I am main developer of the backend part of synchronization solution. First of all, I would like to thank everyone for participating in the first public test and his/her feedback (positive makes us happy, negative will be pushing us to improve as much as we can ;) ).

@tapio I fully understand your concern. All data are encrypted when transferred between client and server (https, REST API). We use Google Cloud Platform for all our services that are powering synchronization solution (storage encrypted internally by Google). We believe that security provided by Google is good enough. Additionally we try to do our best to have our code as much secure as possible (code review process, up to date libraries, vulnerability scans, ..). Still, no one can guarantee 100% security. Once you upload something to the internet it can be possibly hacked and exposed to third parties ... But again, our biggest concern is keeping your data safe - we are not selling it or sharing with third parties!

Client side encryption/decryption is not possible because we need to have access to it (e.g. web planner - access to your library from web browser, ability to plan track and sync to device, ..).

As already mentioned by Menion, selecting specific folders for sync is not possible (sync all or nothing). If you would like to participate in testing you could
  • Make backup, remove sensitive data and try sync, restore backup
  • Use Android emulator or another device with different DB. E.g. import points/tracks from public available GPX
 
The following users thanked this post: Andrew Heard

Offline tapio

  • Padavan of Locus
  • ***
  • Posts: 385
  • Thanked: 63 times
    • View Profile
Re: Locus Map - cloud/sync server
« Reply #7 on: September 08, 2020, 15:44:32 »
Thx for explaining. Don't get me wrong, I trust you, my basic concern usually is, services get exploited and at some point we may find big data dumps available publicly - it always happens here and there... Well it's all about risk management,,, some stuff is OK for me to reside on the other end, other stuff only in encrypted form (with only me as the key owner).

But hey, since Alpha is having its own db here, I just remove "sensitive" folders and then sync.
« Last Edit: September 08, 2020, 16:19:38 by tapio »
 
The following users thanked this post: janaton

Offline Menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11853
  • Thanked: 436 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 2
Re: Locus Map - cloud/sync server
« Reply #8 on: September 08, 2020, 16:01:28 »
@balloni55
thanks for the log! Version 3.48.0.2/3 had a problem in methods that reported problem ::) so your log only contains info that the app crash when trying to report a problem  :).

New version MapGooglePlay_3.48.0.4_962_beta just uploaded.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
Support email: locus.map@asamm.com
 

Offline tapio

  • Padavan of Locus
  • ***
  • Posts: 385
  • Thanked: 63 times
    • View Profile
Re: Locus Map - cloud/sync server
« Reply #9 on: September 08, 2020, 16:08:47 »
OK I learned client side changes, also deletions, are synced to the server.

A crash happened.

- Everything was in sync.
- I deleted all tracks in a folder
- Locus started auto sync as set
- Locus disappeared
- Started it again, top left notification visible again, crash
- Then it was possible to start

Initial ideas.
a) Track/point/folder overlays if in sync
b) Different modes. "Upload only, download only, mirror device to cloud, mirror cloud to device"

Haha, thx for your effort, I guess you opened a can of worms here. 😉
 

Offline tapio

  • Padavan of Locus
  • ***
  • Posts: 385
  • Thanked: 63 times
    • View Profile
Re: Locus Map - cloud/sync server
« Reply #10 on: September 08, 2020, 16:15:55 »
New version, it happened after track deletions.

And let me add: congrats for going public after probably a lot of hard work.
« Last Edit: September 08, 2020, 16:21:06 by tapio »
 
The following users thanked this post: Menion

Offline Andrew Heard

  • Master of Locus
  • ****
  • Posts: 791
  • Thanked: 46 times
    • View Profile
  • Device: Samsung Galaxy A5 Oreo/8, Lenovo Note 4 Nougat/7.1
Re: Locus Map - cloud/sync server
« Reply #11 on: September 09, 2020, 06:37:08 »
Important: make a full backup of your database!! This version modifies the database upon start and also may cause a data loss in case of any serious problem in client-server communication.
@menion - is the database shared with LM3Pro? I don't want to install this version of LM4 if it modifies the LM3Pro database (unless it stays compatible). It's probably OK because balloni55 & tapio haven't expressed concerns.

Congrats too on this important milestone.
« Last Edit: September 09, 2020, 06:41:47 by Andrew Heard »
 

Offline tapio

  • Padavan of Locus
  • ***
  • Posts: 385
  • Thanked: 63 times
    • View Profile
Re: Locus Map - cloud/sync server
« Reply #12 on: September 09, 2020, 07:14:38 »
Not sure about the defaults. It's in Locus working directory (see misc settings).. /data/database/
I suggest you backup this folder. Or just create a backup.

My Locus instances use distinct paths.

@Menion, Locus UI does not display the  working dir. Just "SD card" is not enough.
 

Offline Menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11853
  • Thanked: 436 times
    • View Profile
    • http://www.asamm.com
  • Device: Pixel 2
Re: Locus Map - cloud/sync server
« Reply #13 on: September 09, 2020, 08:29:21 »
@tapio
may you please try you sync again? We identified and fixed issue on our server.

Ideas:
a) it needs a new "Data manager" screen (planned), but agree, will be useful
b) interesting idea, little dangerous. The question is if really needed. When the first sync after install happens, there is one alternative mode "clear device and download only", that should be enough I believe.

@Andrew Heard
as @tapio wrote, it depends on your settings (btw. full paths are under the "question mark" icon). In most cases, default settings for the Locus directory is currently the root of internal memory, so yes, databases are shared. It should not be a problem to use this shared database, but just to prevent any problems, suggest to keep backup in safe.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
Support email: locus.map@asamm.com
 
The following users thanked this post: tapio

Offline tapio

  • Padavan of Locus
  • ***
  • Posts: 385
  • Thanked: 63 times
    • View Profile
Re: Locus Map - cloud/sync server
« Reply #14 on: September 09, 2020, 08:53:45 »
I waited for an auto sync at first, but it did not do it. I think it should have tried it again.

Manual sync worked, thx.