<p></p>
<p dir="auto">Not sure what's the problem here. The error <code>failed to uncompress data: data error</code> points to invalid input data, but you said you veryfied the md5sum. So maybe it is simply a memory problem. 16GB isn't enough for a planet import in a reasonable amount of time, see <a href="https://osm2pgsql.org/doc/manual.html#main-memory" rel="nofollow">https://osm2pgsql.org/doc/manual.html#main-memory</a> for some ideas. Also it doesn't make any sense to run with these many threads if you only have 4 CPUs. And you don't need the <code>-C</code> param if you use flat nodes, not sure whether you actually set that or not, with all the docker mumbo jumbo I am not sure which command you actually ran.</p>
<p dir="auto">Try an import with a smaller extract first and once you are successful, scale up to larger and larger imports. This will give you an idea how on how much memory is needed and how long things will take if scaled up.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/issues/1582#issuecomment-971406363">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353VAHJ2WHGKSCBZE6A3UMN2LDANCNFSM5IFKNN2Q">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AA6353VNLSTSVFKGA2RQNOLUMN2LDA5CNFSM5IFKNN22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHHTHYGY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/issues/1582#issuecomment-971406363",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/1582#issuecomment-971406363",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>