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

Failed to sync project due to an unhandled exception. #629

Open
ulfboge opened this issue Oct 4, 2024 · 2 comments
Open

Failed to sync project due to an unhandled exception. #629

ulfboge opened this issue Oct 4, 2024 · 2 comments
Labels
bug Something isn't working support question to be handled by the support team
Milestone

Comments

@ulfboge
Copy link

ulfboge commented Oct 4, 2024

Dear Mergin Maps,

This happened when I tried to sync the project with QGIS after updates had been made in the field:

Traceback (most recent call last):

File "C:\Users/galag/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Mergin\sync_dialog.py", line 290, in pull_timer_tick
self.pull_conflicts = pull_project_finalize(self.job)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users/galag/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Mergin\mergin\client_pull.py", line 639, in pull_project_finalize
shutil.rmtree(job.temp_dir)

File "C:\OSGeo4W\apps\Python312\Lib\shutil.py", line 781, in rmtree
return _rmtree_unsafe(path, onexc)
^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\OSGeo4W\apps\Python312\Lib\shutil.py", line 639, in _rmtree_unsafe
onexc(os.rmdir, path, err)

File "C:\OSGeo4W\apps\Python312\Lib\shutil.py", line 637, in _rmtree_unsafe
os.rmdir(path)

PermissionError: [WinError 5] Access is denied: 'C:\Users\galag\KAYA Climate Solutions GmbH\Climate Office - Documents\General\Map projects\Rupa\fire-survey\fire-survey\.mergin\fetch_v32-v33'

Kind regards,
Johan

@ValentinBuira
Copy link
Contributor

I think that could be the same error as #613 and I couldn't pin down the issue

Does that folder is in some onedrive/dropbox/google drive - synced folder that could be the issue?

Otherwise if you are allow to share the project, do you think you could :

  • share the Mergin project with me - my mergin username is "ValentinB_lutra" (reader permission would be enough) - https://help.cloudmergin.com/sharing-project
  • zip the folder with your data (content of C:\Users\galag\KAYA Climate Solutions GmbH\Climate Office - Documents\General\Map projects\Rupa\fire-survey\fire-survey folder) and send it to me for further analysis: valentin dot buira at lutraconsulting dot co dot uk

@ValentinBuira ValentinBuira added the bug Something isn't working label Oct 4, 2024
@ValentinBuira ValentinBuira added this to the 2024.3.0 milestone Oct 7, 2024
@tomasMizera tomasMizera added the support question to be handled by the support team label Oct 7, 2024
@greg-parry10
Copy link

HI Mergin Maps

I received the same error message on a project that had had nothing added to it for more than a year. During this inactive period I had explored the options of displaying different layers on my phone app and I was then unable to restore one of the layers so that it displayed as I usually have it displayed. The error message when I tried to sync my (correctly displaying) computer copy with the cloud was:
Traceback (most recent call last):

File "C:\Users/gregp/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Mergin\mergin\merginproject.py", line 438, in apply_pull_changes
self.geodiff.rebase(basefile, src, dest, rebase_conflicts)

File "C:\Users/gregp/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Mergin\mergin\deps\pygeodiff\main.py", line 105, in rebase
return self.clib.rebase(base, modified_their, modified, conflict)

File "C:\Users/gregp/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Mergin\mergin\deps\pygeodiff\geodifflib.py", line 240, in rebase
_parse_return_code(res, "rebase")

File "C:\Users/gregp/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Mergin\mergin\deps\pygeodiff\geodifflib.py", line 41, in _parse_return_code
raise GeoDiffLibError(msg)

Mergin.mergin.deps.pygeodiff.geodifflib.GeoDiffLibError: rebase

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "C:\Users/gregp/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Mergin\sync_dialog.py", line 306, in pull_timer_tick
self.pull_conflicts = pull_project_finalize(self.job)

File "C:\Users/gregp/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Mergin\mergin\client_pull.py", line 555, in pull_project_finalize
conflicts = job.mp.apply_pull_changes(job.pull_changes, job.temp_dir)

File "C:\Users/gregp/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Mergin\mergin\merginproject.py", line 445, in apply_pull_changes
self.geodiff.make_copy_sqlite(f_conflict_file, dest)

File "C:\Users/gregp/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Mergin\mergin\deps\pygeodiff\main.py", line 221, in make_copy_sqlite
return self.clib.make_copy_sqlite(src, dst)

File "C:\Users/gregp/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Mergin\mergin\deps\pygeodiff\geodifflib.py", line 328, in make_copy_sqlite
_parse_return_code(res, "make_copy_sqlite")

File "C:\Users/gregp/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Mergin\mergin\deps\pygeodiff\geodifflib.py", line 41, in _parse_return_code
raise GeoDiffLibError(msg)

Mergin.mergin.deps.pygeodiff.geodifflib.GeoDiffLibError: make_copy_sqlite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working support question to be handled by the support team
Projects
None yet
Development

No branches or pull requests

4 participants