<p>Hi there</p>
<p>By trying to import the whole planet (a .pbf file) into a pgsql dataabse on a RedHat Server, I am getting the following error:</p>
<p>`[root@asl-test]# osm2pgsql –s –U postgres –d gis /opt/transfer/planet-latest.osm.pbf<br>
osm2pgsql version 0.92.0 (64 bit id space)</p>
<p>Using built-in tag processing pipeline<br>
Using projection SRS 3857 (Spherical Mercator)<br>
Setting up table: planet_osm_point<br>
Setting up table: planet_osm_line<br>
Setting up table: planet_osm_polygon<br>
Setting up table: planet_osm_roads<br>
Allocating memory for dense node cache<br>
Allocating dense node cache in one big chunk<br>
Allocating memory for sparse node cache<br>
Sharing dense sparse<br>
Node-cache: cache=800MB, maxblocks=12800*65536, allocation method=3<br>
Mid: Ram, scale=100</p>
<p>Reading in file: –s<br>
node cache: stored: 0(-nan%), storage efficiency: -nan% (dense blocks: 0, sparse nodes: 0), hit rate: -nan%<br>
Osm2pgsql failed due to ERROR: Cannot detect file format. Try using -r.<br>
`</p>
<p>I installed all required packages:<br>
<code>sudo yum install cmake make gcc-c++ boost-devel expat-devel zlib-devel \ bzip2-devel postgresql-devel proj-devel proj-epsg lua-devel</code></p>
<p>Does this error sounds familiar to anyone?</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/856">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AD2-7mEEPlk8eTNCECiNn-ppBg94449Xks5uHCaXgaJpZM4VQlbW">mute the thread</a>.<img src="https://github.com/notifications/beacon/AD2-7rGfBQPwBLGMOT-1dmlZ26DhvB4bks5uHCaXgaJpZM4VQlbW.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/osm2pgsql","title":"openstreetmap/osm2pgsql","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/osm2pgsql"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Osm2pgsql ERROR: Cannot detect file format (#856)"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/osm2pgsql/issues/856"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/issues/856",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/856",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Osm2pgsql ERROR: Cannot detect file format (#856)",
"sections": [
{
"text": "",
"activityTitle": "**PatriceKast**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@PatriceKast",
"facts": [
{
"name": "Repository: ",
"value": "openstreetmap/osm2pgsql"
},
{
"name": "Issue #: ",
"value": 856
}
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"openstreetmap/osm2pgsql\",\n\"issueId\": 856,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"openstreetmap/osm2pgsql\",\n\"issueId\": 856\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/openstreetmap/osm2pgsql/issues/856"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 356669142\n}"
}
],
"themeColor": "26292E"
}
]</script>