{"id":1542,"date":"2020-01-31T14:01:09","date_gmt":"2020-01-31T11:01:09","guid":{"rendered":"https:\/\/artem.services\/?p=1542"},"modified":"2020-01-31T14:01:09","modified_gmt":"2020-01-31T11:01:09","slug":"fix-error-carbon-cache-whisper-corruptwhisperfile-unable-to-read-header","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=1542","title":{"rendered":"FIX ERROR \u2014 carbon-cache: whisper.CorruptWhisperFile: Unable to read header"},"content":{"rendered":"<p>\u0412 \u043b\u043e\u0433\u0435 &quot;<strong>console.log<\/strong>&quot; \u0441\u0435\u0440\u0432\u0438\u0441\u0430 &quot;<strong>carbon-cache<\/strong>&quot; \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438:<\/p>\n<pre>31\/01\/2020 05:57:45 :: Error writing to production.xxxxxxxxxx.yyyyyyyyyy.p10._S1_.field_data_01.xxx.yyy.t3.10-0.3-0: Unable to read header (\/mnt\/graphite\/data\/production\/xxxxxxxxxx-yyyyyyyyyy\/xxxxxxxxxxx\/p10\/_S1_\/field_data_01\/xxx\/yyy_001\/t3\/10-0\/3-0.wsp)\r\n31\/01\/2020 05:57:46 :: Unhandled Error\r\nTraceback (most recent call last):\r\n  File \"\/usr\/lib\/python2.7\/dist-packages\/twisted\/python\/threadpool.py\", line 266, in &lt;lambda&gt;\r\n    inContext.theWork = lambda: context.call(ctx, func, *args, **kw)\r\n  File \"\/usr\/lib\/python2.7\/dist-packages\/twisted\/python\/context.py\", line 122, in callWithContext\r\n    return self.currentContext().callWithContext(ctx, func, *args, **kw)\r\n  File \"\/usr\/lib\/python2.7\/dist-packages\/twisted\/python\/context.py\", line 85, in callWithContext\r\n    return func(*args,**kw)\r\n  File \"\/usr\/lib\/python2.7\/dist-packages\/carbon\/writer.py\", line 149, in writeForever\r\n    writeCachedDataPoints()\r\n--- &lt;exception caught here&gt; ---\r\n  File \"\/usr\/lib\/python2.7\/dist-packages\/carbon\/writer.py\", line 128, in writeCachedDataPoints\r\n    state.database.write(metric, datapoints)\r\n  File \"\/usr\/lib\/python2.7\/dist-packages\/carbon\/database.py\", line 100, in write\r\n    whisper.update_many(path, datapoints)\r\n  File \"\/usr\/lib\/python2.7\/dist-packages\/whisper.py\", line 694, in update_many\r\n    return file_update_many(fh, points)\r\n  File \"\/usr\/lib\/python2.7\/dist-packages\/whisper.py\", line 701, in file_update_many\r\n    header = __readHeader(fh)\r\n  File \"\/usr\/lib\/python2.7\/dist-packages\/whisper.py\", line 267, in __readHeader<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u0430\u044f \u043f\u0440\u0438\u0447\u0438\u043d\u0430 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0438\u0442\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u044b\u0439 \u0434\u0438\u0441\u043a \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430. \u0412 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0434\u0430\u043d\u043d\u044b\u0435 <strong>swp<\/strong> \u0444\u0430\u0439\u043b\u044b \u043d\u0443\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u044f\u0442\u044c. \u0422\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u0438 \u0432\u0441\u0435 \u0436\u0435 \u043d\u0435 \u043f\u0443\u0441\u0442\u044b\u0435, \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u043f\u0443\u0441\u0442\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0435 \u043f\u043e\u043c\u043e\u0436\u0435\u0442. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0441\u043f\u0430\u0440\u0441\u0438\u043c \u043b\u043e\u0433 \u0438 \u0443\u0434\u0430\u043b\u0438\u043c \u0444\u0430\u0439\u043b\u044b \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c\u044b\u0435 \u0432 \u043d\u0435\u043c:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ngrep 'Error writing to ' \/var\/log\/carbon\/console.log | awk '{print $NF}' |sort -u | xargs rm -f\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 \u043b\u043e\u0433\u0435 &quot;console.log&quot; \u0441\u0435\u0440\u0432\u0438\u0441\u0430 &quot;carbon-cache&quot; \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438: 31\/01\/2020 05:57:45 :: Error writing to production.xxxxxxxxxx.yyyyyyyyyy.p10._S1_.field_data_01.xxx.yyy.t3.10-0.3-0: Unable to read header (\/mnt\/graphite\/data\/production\/xxxxxxxxxx-yyyyyyyyyy\/xxxxxxxxxxx\/p10\/_S1_\/field_data_01\/xxx\/yyy_001\/t3\/10-0\/3-0.wsp) 31\/01\/2020 05:57:46 :: Unhandled Error Traceback (most recent call last): File &quot;\/usr\/lib\/python2.7\/dist-packages\/twisted\/python\/threadpool.py&quot;, line 266, in &lt;lambda&gt; inContext.theWork = lambda: context.call(ctx, func, *args, **kw) File &quot;\/usr\/lib\/python2.7\/dist-packages\/twisted\/python\/context.py&quot;, line 122, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File &hellip; <a href=\"https:\/\/artem.services\/?p=1542\" class=\"more-link\">\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0447\u0438\u0442\u0430\u0442\u044c<span class=\"screen-reader-text\"> &quot;FIX ERROR \u2014 carbon-cache: whisper.CorruptWhisperFile: Unable to read header&quot;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[49],"tags":[1211,51,50,1209],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1542"}],"collection":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1542"}],"version-history":[{"count":1,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1542\/revisions"}],"predecessor-version":[{"id":1543,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1542\/revisions\/1543"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1542"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}