Add notes for 2016-05-01

This commit is contained in:
Alan Orth 2016-05-02 00:33:35 +02:00
parent c096b03b7d
commit 0598936ac3
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
9 changed files with 318 additions and 5 deletions

27
content/2016-05.md Normal file
View File

@ -0,0 +1,27 @@
+++
date = "2016-05-01T23:06:00+03:00"
author = "Alan Orth"
title = "May, 2016"
tags = ["notes"]
image = "../images/bg.jpg"
+++
## 2016-05-01
- Since yesterday there have been 10,000 REST errors and the site has been unstable again
- I have blocked access to the API now
- There are 3,000 IPs accessing the REST API in a 24-hour period!
```
# awk '{print $1}' /var/log/nginx/rest.log | uniq | wc -l
3168
```
- The two most often requesters are in Ethiopia and Colombia: 213.55.99.121 and 181.118.144.29
- 100% of the requests coming from Ethiopia are like this and result in an HTTP 500:
```
GET /rest/handle/10568/NaN?expand=parentCommunityList,metadata HTTP/1.1
```
- For now I'll block just the Ethiopian IP

View File

@ -550,7 +550,7 @@ dspace.log.2016-04-27:7271
<li class="previous"><a href="/cgspace-notes/2016-03/"><span aria-hidden="true">&larr;</span> Older</a></li>
<li class="next disabled"><a href="#">Newer <span aria-hidden="true">&rarr;</span></a></li>
<li class="next"><a href="/cgspace-notes/2016-05/">Newer <span aria-hidden="true">&rarr;</span></a></li>
</ul>
</footer>

159
public/2016-05/index.html Normal file
View File

@ -0,0 +1,159 @@
<!DOCTYPE html>
<html lang="en-us">
<head prefix="og: http://ogp.me/ns#">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
<meta property="og:title" content=" May, 2016 &middot; CGSpace Notes" />
<meta property="og:site_name" content="CGSpace Notes" />
<meta property="og:url" content="/cgspace-notes/2016-05/" />
<meta property="og:type" content="article" />
<meta property="og:article:published_time" content="2016-05-01T23:06:00&#43;03:00" />
<meta property="og:article:tag" content="notes" />
<title>
May, 2016 &middot; CGSpace Notes
</title>
<link rel="stylesheet" href="/cgspace-notes/css/bootstrap.min.css" />
<link rel="stylesheet" href="/cgspace-notes/css/main.css" />
<link rel="stylesheet" href="/cgspace-notes/css/font-awesome.min.css" />
<link rel="stylesheet" href="/cgspace-notes/css/github.css" />
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400" type="text/css">
<link rel="shortcut icon" href="/cgspace-notes/images/favicon.ico" />
<link rel="apple-touch-icon" href="/cgspace-notes/images/apple-touch-icon.png" />
</head>
<body>
<header class="global-header" style="background-image:url(../images/bg.jpg )">
<section class="header-text">
<h1><a href="/cgspace-notes/">CGSpace Notes</a></h1>
<div class="sns-links hidden-print">
</div>
<a href="/cgspace-notes/" class="btn-header btn-back hidden-xs">
<i class="fa fa-angle-left" aria-hidden="true"></i>
&nbsp;Home
</a>
</section>
</header>
<main class="container">
<article>
<header>
<h1 class="text-primary">May, 2016</h1>
<div class="post-meta clearfix">
<div class="post-date pull-left">
Posted on
<time datetime="2016-05-01T23:06:00&#43;03:00">
May 1, 2016
</time>
</div>
<div class="pull-right">
<span class="post-tag small"><a href="/cgspace-notes//tags/notes">#notes</a></span>
</div>
</div>
</header>
<section>
<h2 id="2016-05-01:b7bf1a0f8f2415a40e1e11e343b04c0d">2016-05-01</h2>
<ul>
<li>Since yesterday there have been 10,000 REST errors and the site has been unstable again</li>
<li>I have blocked access to the API now</li>
<li>There are 3,000 IPs accessing the REST API in a 24-hour period!</li>
</ul>
<pre><code># awk '{print $1}' /var/log/nginx/rest.log | uniq | wc -l
3168
</code></pre>
<ul>
<li>The two most often requesters are in Ethiopia and Colombia: 213.55.99.121 and 181.118.144.29</li>
<li>100% of the requests coming from Ethiopia are like this and result in an HTTP 500:</li>
</ul>
<pre><code>GET /rest/handle/10568/NaN?expand=parentCommunityList,metadata HTTP/1.1
</code></pre>
<ul>
<li>For now I&rsquo;ll block just the Ethiopian IP</li>
</ul>
</section>
<footer>
<section class="author-info row">
<div class="author-avatar col-md-2">
</div>
<div class="author-meta col-md-6">
<h1 class="author-name text-primary">Alan Orth</h1>
</div>
</section>
<ul class="pager">
<li class="previous"><a href="/cgspace-notes/2016-04/"><span aria-hidden="true">&larr;</span> Older</a></li>
<li class="next disabled"><a href="#">Newer <span aria-hidden="true">&rarr;</span></a></li>
</ul>
</footer>
</article>
</main>
<footer class="container global-footer">
<div class="copyright-note pull-left">
</div>
<div class="sns-links hidden-print">
</div>
</footer>
<script src="/cgspace-notes/js/highlight.pack.js"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
</body>
</html>

View File

@ -58,6 +58,34 @@
<div class="article-list">
<article>
<header>
<h2><a href="/cgspace-notes/2016-05/">May, 2016</a></h2>
<div class="post-meta clearfix">
<div class="post-date pull-left">
Posted on
<time datetime="2016-05-01T23:06:00&#43;03:00">
May 1, 2016
</time>
</div>
</div>
</header>
<div>
2016-05-01 Since yesterday there have been 10,000 REST errors and the site has been unstable again I have blocked access to the API now There are 3,000 IPs accessing the REST API in a 24-hour period! # awk '{print $1}' /var/log/nginx/rest.log | uniq | wc -l 3168 The two most often requesters are in Ethiopia and Colombia: 213.55.99.121 and 181.118.144.29 100% of the requests coming from Ethiopia are like this
</div>
<footer>
<ul class="pager">
<li class="next"><a href="/cgspace-notes/2016-05/">Read more <span aria-hidden="true">&raquo;</span></a></li>
</ul>
</footer>
</article>
<hr/>
<article>
<header>
<h2><a href="/cgspace-notes/2016-04/">April, 2016</a></h2>

View File

@ -6,9 +6,43 @@
<description>Recent content on CGSpace Notes</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Mon, 04 Apr 2016 11:06:00 +0300</lastBuildDate>
<lastBuildDate>Sun, 01 May 2016 23:06:00 +0300</lastBuildDate>
<atom:link href="/cgspace-notes/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>May, 2016</title>
<link>/cgspace-notes/2016-05/</link>
<pubDate>Sun, 01 May 2016 23:06:00 +0300</pubDate>
<guid>/cgspace-notes/2016-05/</guid>
<description>
&lt;h2 id=&#34;2016-05-01:b7bf1a0f8f2415a40e1e11e343b04c0d&#34;&gt;2016-05-01&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Since yesterday there have been 10,000 REST errors and the site has been unstable again&lt;/li&gt;
&lt;li&gt;I have blocked access to the API now&lt;/li&gt;
&lt;li&gt;There are 3,000 IPs accessing the REST API in a 24-hour period!&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;# awk &#39;{print $1}&#39; /var/log/nginx/rest.log | uniq | wc -l
3168
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;The two most often requesters are in Ethiopia and Colombia: 213.55.99.121 and 181.118.144.29&lt;/li&gt;
&lt;li&gt;100% of the requests coming from Ethiopia are like this and result in an HTTP 500:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;GET /rest/handle/10568/NaN?expand=parentCommunityList,metadata HTTP/1.1
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;For now I&amp;rsquo;ll block just the Ethiopian IP&lt;/li&gt;
&lt;/ul&gt;
</description>
</item>
<item>
<title>April, 2016</title>
<link>/cgspace-notes/2016-04/</link>

View File

@ -3,10 +3,15 @@
<url>
<loc>/cgspace-notes/</loc>
<lastmod>2016-04-04T11:06:00+03:00</lastmod>
<lastmod>2016-05-01T23:06:00+03:00</lastmod>
<priority>0</priority>
</url>
<url>
<loc>/cgspace-notes/2016-05/</loc>
<lastmod>2016-05-01T23:06:00+03:00</lastmod>
</url>
<url>
<loc>/cgspace-notes/2016-04/</loc>
<lastmod>2016-04-04T11:06:00+03:00</lastmod>

View File

@ -64,7 +64,7 @@
<ul>
<li><a href="/cgspace-notes//tags/notes">notes</a> 6</li>
<li><a href="/cgspace-notes//tags/notes">notes</a> 7</li>
</ul>
</section>

View File

@ -61,6 +61,32 @@
<section class="article-list">
<h1>Notes</h1>
<hr/>
<article>
<header>
<h2><a href="/cgspace-notes/2016-05/">May, 2016</a></h2>
<div class="post-meta clearfix">
<div class="post-date pull-left">
Posted on
<time datetime="2016-05-01T23:06:00&#43;03:00">
May 1, 2016
</time>
</div>
</div>
</header>
<div>
2016-05-01 Since yesterday there have been 10,000 REST errors and the site has been unstable again I have blocked access to the API now There are 3,000 IPs accessing the REST API in a 24-hour period! # awk '{print $1}' /var/log/nginx/rest.log | uniq | wc -l 3168 The two most often requesters are in Ethiopia and Colombia: 213.55.99.121 and 181.118.144.29 100% of the requests coming from Ethiopia are like this
</div>
<footer>
<ul class="pager">
<li class="next"><a href="/cgspace-notes/2016-05/">Read more <span aria-hidden="true">&raquo;</span></a></li>
</ul>
</footer>
</article>
<hr/>
<article>
<header>

View File

@ -6,9 +6,43 @@
<description>Recent content in Notes on CGSpace Notes</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Mon, 04 Apr 2016 11:06:00 +0300</lastBuildDate>
<lastBuildDate>Sun, 01 May 2016 23:06:00 +0300</lastBuildDate>
<atom:link href="/cgspace-notes/tags/notes/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>May, 2016</title>
<link>/cgspace-notes/2016-05/</link>
<pubDate>Sun, 01 May 2016 23:06:00 +0300</pubDate>
<guid>/cgspace-notes/2016-05/</guid>
<description>
&lt;h2 id=&#34;2016-05-01:b7bf1a0f8f2415a40e1e11e343b04c0d&#34;&gt;2016-05-01&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Since yesterday there have been 10,000 REST errors and the site has been unstable again&lt;/li&gt;
&lt;li&gt;I have blocked access to the API now&lt;/li&gt;
&lt;li&gt;There are 3,000 IPs accessing the REST API in a 24-hour period!&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;# awk &#39;{print $1}&#39; /var/log/nginx/rest.log | uniq | wc -l
3168
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;The two most often requesters are in Ethiopia and Colombia: 213.55.99.121 and 181.118.144.29&lt;/li&gt;
&lt;li&gt;100% of the requests coming from Ethiopia are like this and result in an HTTP 500:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;GET /rest/handle/10568/NaN?expand=parentCommunityList,metadata HTTP/1.1
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;For now I&amp;rsquo;ll block just the Ethiopian IP&lt;/li&gt;
&lt;/ul&gt;
</description>
</item>
<item>
<title>April, 2016</title>
<link>/cgspace-notes/2016-04/</link>