<p></p>
<h2 dir="auto">What version of osm2pgsql are you using? 1.5.1</h2>

<ul dir="auto">
<li>sudo -u renderer osm2pgsql -d gis --create --slim -G --hstore --tag-transform-script /home/renderer/src/openstreetmap-carto/openstreetmap-carto.lua --number-processes 24 -S /home/renderer/src/openstreetmap-carto/openstreetmap-carto.style /data.osm.pbf --flat-nodes /nodes/flat_nodes.bin<br>
2021-11-16 20:48:31  osm2pgsql version 1.5.1<br>
2021-11-16 20:48:31  Database version: 12.9 (Ubuntu 12.9-0ubuntu0.20.04.1)<br>
2021-11-16 20:48:31  PostGIS version: 3.1<br>
2021-11-16 20:48:31  Setting up table 'planet_osm_point'<br>
2021-11-16 20:48:31  Setting up table 'planet_osm_line'<br>
2021-11-16 20:48:31  Setting up table 'planet_osm_polygon'<br>
2021-11-16 20:48:31  Setting up table 'planet_osm_roads'<br>
Processing: Node(108590k 1840.5k/s) Way(0k 0.00k/s) Relation(0 0.0/s)2021-11-16 20:49:31  ERROR: failed to uncompress data: data error</li>
</ul>
<h2 dir="auto">What operating system and PostgreSQL/PostGIS version are you using? Linux, PostgreSQL - 12, PostGIS-3.1</h2>
Ubuntu 20.01,
<h2 dir="auto">Tell us something about your system</h2>

<p dir="auto">16GB, 4 CPUs running in VMware VM</p>
<h2 dir="auto">What did you do exactly?</h2>

<p dir="auto">Attempting to import planet-latest.osm.buf into a docker container per instructions at <a href="https://switch2osm.org/serving-tiles/using-a-docker-container/" rel="nofollow">https://switch2osm.org/serving-tiles/using-a-docker-container/</a></p>
<p dir="auto">renderaccount@ubuntu:/home/renderaccount/Downloads$ docker run -e THREADS=24 -e "OSM2PGSQL_EXTRA_ARGS=-C 4096" -e "OSM2PGSQL_EXTRA_ARGS=--flat-nodes /nodes/flat_nodes.bin" -v /home/renderaccount/Downloads/planet-latest.osm.pbf:/data.osm.pbf -v openstreetmap-rendered-tiles:/var/lib/mod_tile -v openstreetmap-data:/var/lib/postgresql/12/main overv/openstreetmap-tile-server import</p>
<h2 dir="auto">What did you expect to happen?</h2>

<p dir="auto">I expected the planet-latest.osm.buf file to be imported without errors</p>
<h2 dir="auto">What did happen instead?</h2>

<p dir="auto">During execution of the docker command, I received the following output and error:</p>
<ul dir="auto">
<li>sudo -u renderer osm2pgsql -d gis --create --slim -G --hstore --tag-transform-script /home/renderer/src/openstreetmap-carto/openstreetmap-carto.lua --number-processes 24 -S /home/renderer/src/openstreetmap-carto/openstreetmap-carto.style /data.osm.pbf --flat-nodes /nodes/flat_nodes.bin<br>
2021-11-16 20:48:31  osm2pgsql version 1.5.1<br>
2021-11-16 20:48:31  Database version: 12.9 (Ubuntu 12.9-0ubuntu0.20.04.1)<br>
2021-11-16 20:48:31  PostGIS version: 3.1<br>
2021-11-16 20:48:31  Setting up table 'planet_osm_point'<br>
2021-11-16 20:48:31  Setting up table 'planet_osm_line'<br>
2021-11-16 20:48:31  Setting up table 'planet_osm_polygon'<br>
2021-11-16 20:48:31  Setting up table 'planet_osm_roads'<br>
Processing: Node(108590k 1840.5k/s) Way(0k 0.00k/s) Relation(0 0.0/s)2021-11-16 20:49:31  ERROR: failed to uncompress data: data error</li>
</ul>
<h2 dir="auto">What did you do to try analyzing the problem?</h2>

<p dir="auto">I changed parameters in the docker command, verified the md5 of the planet-latest.osm.buf.  Ran the command and got the same parsing error 3 times.</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">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353SJXCR63PRIOL245W3UMLGBLANCNFSM5IFKNN2Q">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/AA6353SH5DNS2MT4N5YMTXTUMLGBLA5CNFSM5IFKNN22YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4PXHYM3Q.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",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/1582",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>