MerginMaps / work-packages

Mergin Maps Work Packages: manage field surveys for multiple teams
MIT License
7 stars 4 forks source link

Problem with mergin sync after work packages are created #19

Closed dracic closed 3 years ago

dracic commented 3 years ago

I'm having this problem, but cannot see anything from client log.

Project: dracic/HsProGIS (saber has access) Packages: sumarija-ogulin, sumarija-vojnic, sumarija-novi-vinodolski (saber has access), sumarija-bjelovar, sumarija-dugo-selo

  1. Created the main project, added yml conf etc...
  2. Synced through the mergin
  3. Created and pushed work packages (everything ok)
  4. Made some changes in main project (only data and only in 'ods' layer)
  5. Tried to sync changes through mergin without success with HTTP 502 (when I delete wps and fresh start everything is ok, so this cannot be network related issue)

Log:


2021-04-16 09:45:55,434 cancel response: {'success': True}
2021-04-16 09:57:55,341 checkpoint - going to add it in D:\Projects\gis\Input\HsProGIS\HsProGisDB.gpkg
2021-04-16 09:57:55,370 checkpoint - return value: (0, 0, 0)
2021-04-16 09:59:06,956 checkpoint - new size 852971520 checksum acb31753c27c61d946b55851ace47ceacd7a4a88
2021-04-16 09:59:48,665 --- version: Python-client/0.5.8 Plugin/2021.1.1 QGIS/3.18.1 (Windows/10)
2021-04-16 09:59:48,665 --- start pull dracic/HsProGIS
2021-04-16 09:59:48,948 got project info. version v4
2021-04-16 09:59:48,948 --- pull - nothing to do (already at server version)
2021-04-16 09:59:49,436 --- version: Python-client/0.5.8 Plugin/2021.1.1 QGIS/3.18.1 (Windows/10)
2021-04-16 09:59:49,436 --- start push dracic/HsProGIS
2021-04-16 09:59:49,649 got project info. version v4
2021-04-16 10:00:08,879 checkpoint - going to add it in D:\Projects\gis\Input\HsProGIS\HsProGisDB.gpkg
2021-04-16 10:00:08,905 checkpoint - return value: (0, 208245, 208245)
2021-04-16 10:01:50,748 checkpoint - new size 852971520 checksum c1ea5ea158b78f39b77f88637b2411816e749f36
2021-04-16 10:02:27,547 push changes:
{'added': [],
 'removed': [],
 'renamed': [],
 'updated': [{'checksum': '789004e93ee79c8350da79d2a0244cec996d4e1e',
              'chunks': ['46d464bb-6d16-4d93-a0e3-d65aace13a18'],
              'mtime': datetime.datetime(2021, 4, 16, 9, 10, 17, 35949, tzinfo=tzlocal()),
              'origin_checksum': 'd60017719c09e129e0f6c23a29d857aa9b85d4c7',
              'path': 'HsProGIS.qgz',
              'size': 35118},
             {'checksum': 'ff5da1eb548d0b32fe1ecace2eeafd7183f20834',
              'chunks': ['d161b169-9da4-44bc-90d6-9c39355722f9'],
              'diff': {'checksum': 'f618caaf7398edbc6666ddd174f764e85ab80fe3',
                       'mtime': datetime.datetime(2021, 4, 16, 10, 2, 27, 542619, tzinfo=tzlocal()),
                       'path': 'HsProGisDB.gpkg-diff-0823034d-ec64-4465-ba10-230892d14865',
                       'size': 921198},
              'mtime': datetime.datetime(2021, 4, 16, 10, 1, 45, 468800, tzinfo=tzlocal()),
              'origin_checksum': 'ff5da1eb548d0b32fe1ecace2eeafd7183f20834',
              'path': 'HsProGisDB.gpkg',
              'size': 852971520}]}
2021-04-16 10:02:28,256 got transaction ID df404a4f-faa2-416e-b606-6906a8875e09
2021-04-16 10:02:28,257 will upload 2 items with total size 956316
2021-04-16 10:02:28,279 Uploading D:\Projects\gis\Input\HsProGIS\.mergin\HsProGisDB.gpkg-diff-0823034d-ec64-4465-ba10-230892d14865 part=0
2021-04-16 10:02:28,353 Uploading D:\Projects\gis\Input\HsProGIS\HsProGIS.qgz part=0
2021-04-16 10:02:28,767 Upload finished: D:\Projects\gis\Input\HsProGIS\HsProGIS.qgz
2021-04-16 10:02:29,265 Upload finished: D:\Projects\gis\Input\HsProGIS\.mergin\HsProGisDB.gpkg-diff-0823034d-ec64-4465-ba10-230892d14865
2021-04-16 10:02:29,368 Finishing transaction df404a4f-faa2-416e-b606-6906a8875e09
2021-04-16 10:03:24,930 --- push finish failed! <html>

<head><title>502 Bad Gateway</title></head>

<body>

<center><h1>502 Bad Gateway</h1></center>

<hr><center>nginx/1.17.8</center>

</body>

</html>

2021-04-16 10:03:24,930 canceling the pending transaction...
2021-04-16 10:03:25,274 cancel response: {'success': True}
dracic commented 3 years ago

I think i have too much data for testing.... Just tried with smaller project and it works.

wonder-sk commented 3 years ago

The error 502 Bad Gateway from the log indicates there could have been a server issue, and yes, large geopackage file could be a reason.

Shall we close this issue? It is not directly related to the mergin-work-packages tool, it is rather an issue with server...

dracic commented 3 years ago

We can close this.