<p>Fixed.</p>
<p>Here's what I did:</p>
<p>Added the below option to /etc/memcached.conf will resolve error.</p>
<h1>Increase limit</h1>
<p>-I 128M</p>
<p>ran<br>
<code>sudo service memcached restart</code></p>
<p>mod_tile.config</p>
<pre><code># This is the Apache server configuration file for providing OSM tile support
# through mod_tile

LoadModule tile_module modules/mod_tile.so

<VirtualHost *:80>
    ServerName tile.openstreetmap.org
    ServerAlias a.tile.openstreetmap.org b.tile.openstreetmap.org c.tile.openstreetmap.org d.tile.openstreetmap.org
    DocumentRoot /var/www/html

# Specify the default base storage path for where tiles live. A number of different storage backends
# are available, that can be used for storing tiles.  Currently these are a file based storage, a memcached
# based storage and a RADOS based storage.
# The file based storage uses a simple file path as its storage path ( /path/to/tiledir )
# The RADOS based storage takes a location to the rados config file and a pool name ( rados://poolname/path/to/ceph.conf )
# The memcached based storage currently has no configuration options and always connects to memcached on localhost ( memcached:// )
#
# The storage path can be overwritten on a style by style basis from the style TileConfigFile
    ModTileTileDir memcached://
...
</code></pre>
<p>renderd.config</p>
<pre><code>[renderd]
num_threads=4
tile_dir=/var/lib/mod_tile
stats_file=/var/run/renderd/renderd.stats

[mapnik]
plugins_dir=/usr/lib/mapnik/3.0/input
font_dir=/usr/share/fonts/truetype
font_dir_recurse=1

[ajt]
URI=/hot/
TILEDIR=memcached://
XML=/home/ubuntu/src/openstreetmap-carto-AJT/mapnik.xml
HOST=localhost
TILESIZE=256
MAXZOOM=20

</code></pre>

<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/mod_tile/issues/184#issuecomment-399607251">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AD2-7jn9JV37R2t71t0RzyfZoVQE4pmMks5t_Xn6gaJpZM4Uy1oI">mute the thread</a>.<img src="https://github.com/notifications/beacon/AD2-7iWJQwqZa5oJv2X35fQLS7ojU_Avks5t_Xn6gaJpZM4Uy1oI.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/mod_tile/issues/184#issuecomment-399607251","url":"https://github.com/openstreetmap/mod_tile/issues/184#issuecomment-399607251","name":"View Issue"},"description":"View this Issue on GitHub","publisher":{"@type":"Organization","name":"GitHub","url":"https://github.com"}}</script>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/mod_tile","title":"openstreetmap/mod_tile","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/mod_tile"}},"updates":{"snippets":[{"icon":"PERSON","message":"@wbaizer in #184: Fixed.\r\n\r\nHere's what I did:\r\n\r\nAdded the below option to /etc/memcached.conf will resolve error.\r\n\r\n# Increase limit \r\n-I 128M\r\n\r\nran\r\n`sudo service memcached restart`\r\n\r\nmod_tile.config\r\n\r\n```\r\n# This is the Apache server configuration file for providing OSM tile support\r\n# through mod_tile\r\n\r\nLoadModule tile_module modules/mod_tile.so\r\n\r\n\u003cVirtualHost *:80\u003e\r\n    ServerName tile.openstreetmap.org\r\n    ServerAlias a.tile.openstreetmap.org b.tile.openstreetmap.org c.tile.openstreetmap.org d.tile.openstreetmap.org\r\n    DocumentRoot /var/www/html\r\n\r\n# Specify the default base storage path for where tiles live. A number of different storage backends\r\n# are available, that can be used for storing tiles.  Currently these are a file based storage, a memcached\r\n# based storage and a RADOS based storage.\r\n# The file based storage uses a simple file path as its storage path ( /path/to/tiledir )\r\n# The RADOS based storage takes a location to the rados config file and a pool name ( rados://poolname/path/to/ceph.conf )\r\n# The memcached based storage currently has no configuration options and always connects to memcached on localhost ( memcached:// )\r\n#\r\n# The storage path can be overwritten on a style by style basis from the style TileConfigFile\r\n    ModTileTileDir memcached://\r\n...\r\n```\r\nrenderd.config \r\n\r\n```\r\n[renderd]\r\nnum_threads=4\r\ntile_dir=/var/lib/mod_tile\r\nstats_file=/var/run/renderd/renderd.stats\r\n\r\n[mapnik]\r\nplugins_dir=/usr/lib/mapnik/3.0/input\r\nfont_dir=/usr/share/fonts/truetype\r\nfont_dir_recurse=1\r\n\r\n[ajt]\r\nURI=/hot/\r\nTILEDIR=memcached://\r\nXML=/home/ubuntu/src/openstreetmap-carto-AJT/mapnik.xml\r\nHOST=localhost\r\nTILESIZE=256\r\nMAXZOOM=20\r\n\r\n```"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/mod_tile/issues/184#issuecomment-399607251"}}}</script>
<script type="application/ld+json">{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [openstreetmap/mod_tile] Renderd failed to write metatile to memcached (#184)",
"sections": [
{
"text": "",
"activityTitle": "**Will Baizer**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@wbaizer",
"facts": [

]
}
],
"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/mod_tile\",\n\"issueId\": 184,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"openstreetmap/mod_tile\",\n\"issueId\": 184\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/openstreetmap/mod_tile/issues/184#issuecomment-399607251"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 348871176\n}"
}
],
"themeColor": "26292E"
}</script>