Update notes for 2016-07-18

This commit is contained in:
Alan Orth 2016-07-19 14:38:30 +03:00
parent 784781b105
commit 2b35f64cc4
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
4 changed files with 111 additions and 0 deletions

View File

@ -92,3 +92,30 @@ $ ./delete-metadata-values.py -f dc.contributor.author -i /tmp/Authors-Delete-UT
- Adjust identifiers in XMLUI item display to be more prominent
- Add species and breed to the XMLUI item display
- CGSpace crashed late at night and the DSpace logs were showing:
```
2016-07-18 20:26:30,941 ERROR org.dspace.storage.rdbms.DatabaseManager @ SQL connection Error -
org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object
...
```
- I suspect it's someone hitting REST too much:
```
# awk '{print $1}' /var/log/nginx/rest.log | sort -n | uniq -c | sort -h | tail -n 3
710 66.249.78.38
1781 181.118.144.29
24904 70.32.99.142
```
- I just blocked access to `/rest` for that last IP for now:
```
# log rest requests
location /rest {
access_log /var/log/nginx/rest.log;
proxy_pass http://127.0.0.1:8443;
deny 70.32.99.142;
}
```

View File

@ -186,8 +186,36 @@ $ ./delete-metadata-values.py -f dc.contributor.author -i /tmp/Authors-Delete-UT
<ul>
<li>Adjust identifiers in XMLUI item display to be more prominent</li>
<li>Add species and breed to the XMLUI item display</li>
<li>CGSpace crashed late at night and the DSpace logs were showing:</li>
</ul>
<pre><code>2016-07-18 20:26:30,941 ERROR org.dspace.storage.rdbms.DatabaseManager @ SQL connection Error -
org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object
...
</code></pre>
<ul>
<li>I suspect it&rsquo;s someone hitting REST too much:</li>
</ul>
<pre><code># awk '{print $1}' /var/log/nginx/rest.log | sort -n | uniq -c | sort -h | tail -n 3
710 66.249.78.38
1781 181.118.144.29
24904 70.32.99.142
</code></pre>
<ul>
<li>I just blocked access to <code>/rest</code> for that last IP for now:</li>
</ul>
<pre><code> # log rest requests
location /rest {
access_log /var/log/nginx/rest.log;
proxy_pass http://127.0.0.1:8443;
deny 70.32.99.142;
}
</code></pre>
</section>
<footer>

View File

@ -124,7 +124,35 @@ $ ./delete-metadata-values.py -f dc.contributor.author -i /tmp/Authors-Delete-UT
&lt;ul&gt;
&lt;li&gt;Adjust identifiers in XMLUI item display to be more prominent&lt;/li&gt;
&lt;li&gt;Add species and breed to the XMLUI item display&lt;/li&gt;
&lt;li&gt;CGSpace crashed late at night and the DSpace logs were showing:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;2016-07-18 20:26:30,941 ERROR org.dspace.storage.rdbms.DatabaseManager @ SQL connection Error -
org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object
...
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;I suspect it&amp;rsquo;s someone hitting REST too much:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;# awk &#39;{print $1}&#39; /var/log/nginx/rest.log | sort -n | uniq -c | sort -h | tail -n 3
710 66.249.78.38
1781 181.118.144.29
24904 70.32.99.142
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;I just blocked access to &lt;code&gt;/rest&lt;/code&gt; for that last IP for now:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt; # log rest requests
location /rest {
access_log /var/log/nginx/rest.log;
proxy_pass http://127.0.0.1:8443;
deny 70.32.99.142;
}
&lt;/code&gt;&lt;/pre&gt;
</description>
</item>

View File

@ -124,7 +124,35 @@ $ ./delete-metadata-values.py -f dc.contributor.author -i /tmp/Authors-Delete-UT
&lt;ul&gt;
&lt;li&gt;Adjust identifiers in XMLUI item display to be more prominent&lt;/li&gt;
&lt;li&gt;Add species and breed to the XMLUI item display&lt;/li&gt;
&lt;li&gt;CGSpace crashed late at night and the DSpace logs were showing:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;2016-07-18 20:26:30,941 ERROR org.dspace.storage.rdbms.DatabaseManager @ SQL connection Error -
org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object
...
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;I suspect it&amp;rsquo;s someone hitting REST too much:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;# awk &#39;{print $1}&#39; /var/log/nginx/rest.log | sort -n | uniq -c | sort -h | tail -n 3
710 66.249.78.38
1781 181.118.144.29
24904 70.32.99.142
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;I just blocked access to &lt;code&gt;/rest&lt;/code&gt; for that last IP for now:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt; # log rest requests
location /rest {
access_log /var/log/nginx/rest.log;
proxy_pass http://127.0.0.1:8443;
deny 70.32.99.142;
}
&lt;/code&gt;&lt;/pre&gt;
</description>
</item>