<div dir="ltr">Hi guys,<div><br></div><div>First of all, I'd like to thank you all for the job well done, though many improvements and features are to come, subsurface is quite complete and useful. I could add that in my case importing logs from dive computer actually works better than computer's proprietary software! (There I have to sync multiple times before all my logs actually get imported while with subsurface it works in one shot and "out of the box"...)</div><div><br></div><div>I have several ideas for features and improvements (that I could help coding) and am more willing to participate with translation effort, (my mother tongue is French). I'd like to deal with one issue that is pretty important for me since I want to use the mobile app too, the "cloud storage".</div><div><br></div><div>In the current state, on my Windows 10 machine, whenever I try to: "Open cloud storage" in end up with a "Error connecting to Subsurface cloud storage". Same thing if I log some dives and try to "Save to cloud storage". Using an Ubuntu virtual machine, the same operations succeeds. (So no issue with credentials or unregistered account)</div><div><br></div><div>Starting the app with logging options (--win32console --verbose -v -v), I get such messages (for the "Open Cloud Storage")</div><div><br></div><div><div>git_remote_repo: accessing <a href="https://cloud.subsurface-divelog.org//git/xxxxx@xxx.xxx">https://cloud.subsurface-divelog.org//git/xxxxx@xxx.xxx</a></div><div>git storage: 0 % ( start git interaction )</div><div>git storage: create_local_repo</div><div>Cloud storage: checking connection to cloud server</div><div>Checking cloud connection...</div><div>git storage: 0 % ( waited 1 sec for cloud connetion )</div><div>Cloud storage: successfully checked connection to cloud server</div><div>git storage: 0 % ( successfully checked cloud connection )</div><div>git storage: calling git_clone()</div><div><b>git storage: returned from git_clone() with error -4</b></div></div><div><br></div><div>According to libgit2 git2/errors.h this is</div><div> <span style="color:rgb(51,51,51);font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre">GIT_EEXISTS    = -</span><span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,134,179);font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre">4</span><span style="color:rgb(51,51,51);font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre">,         </span><span class="gmail-pl-c" style="box-sizing:border-box;color:rgb(150,152,150);font-family:sfmono-regular,consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre"><span class="gmail-pl-c" style="box-sizing:border-box">/*</span>*< Object exists preventing operation <span class="gmail-pl-c" style="box-sizing:border-box">*/</span></span></div><div><br></div><div>This lead me to navigate to  C:\Users\xxxx\AppData\Roaming\Subsurface\cloudstorage and delete the contained git repo.</div><div>At that point I can actually get my cloud stored dives locally. If I try the "Open cloud storage" again the original error comes again unless I delete the git repo again.</div><div><br></div><div>Now if I edit or add a dive, and "Save to cloud storage", same error.</div><div>I delete the git repo, then "Save to cloud storage"</div><div><br></div><div><div>git_remote_repo: accessing <a href="https://cloud.subsurface-divelog.org//git/xxxxx@xxx.xxx">https://cloud.subsurface-divelog.org//git/xxxxx@xxx.xxx</a></div><div>git storage: 0 % ( start git interaction )</div><div>git storage: create_local_repo</div><div>Cloud storage: checking connection to cloud server</div><div>Checking cloud connection...</div><div>git storage: 0 % ( waited 1 sec for cloud connetion )</div><div>Cloud storage: successfully checked connection to cloud server</div><div>git storage: 0 % ( successfully checked cloud connection )</div><div>git storage: calling git_clone()</div><div>delete proxy setting</div><div>cloud certificate considered valid, forcing it valid</div><div>cloud certificate considered valid, forcing it valid</div><div>cloud certificate considered valid, forcing it valid</div><div>git storage: returned from git_clone() with error 0</div><div>git storage: do git save</div><div>git storage: 0 % ( start git save )</div><div>git storage: 0 % ( start create git tree )</div><div>git storage: 0 % ( start saving dives )</div><div>git storage: 0 % ( done creating git tree )</div><div>git storage, write git tree</div><div>existing filename <a href="https://cloud.subsurface-divelog.org//git/xxxxx@xxx.xxx[xxxxx@xxx.xxx]">https://cloud.subsurface-divelog.org//git/xxxxx@xxx.xxx[xxxxx@xxx.xxx]</a></div></div><div><br></div><div>Then I open again (with a deletion of local repo in between) and nothing was actually saved to cloud.</div><div><br></div><div>The same operations (excluding deletion of local repo) works under Ubuntu.</div><div><br></div><div>My best guess is that checking the presence of local repo somehow fails and fresh clone is always attempted (resulting in the GIT_EEXISTS error since the folder is already present). Further investigation would need deeper code investigation. This issue do not seem to be reported in github so I preferred to contact you before creating the ticket...</div><div><br></div><div>Best regards,</div><div><br></div><div>Jeremie</div><div><br></div><div>OS</div><div>Windows 10 Home</div><div>Version: 1607</div><div>Build: 14393.693</div><div><br></div><div>Subsurface</div><div>Version: 4.6.1</div><div><br></div></div>