From 2b35f64cc46839df02c0ada22a2839224a9cc792 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 19 Jul 2016 14:38:30 +0300 Subject: [PATCH] Update notes for 2016-07-18 --- content/2016-07.md | 27 +++++++++++++++++++++++++++ public/2016-07/index.html | 28 ++++++++++++++++++++++++++++ public/index.xml | 28 ++++++++++++++++++++++++++++ public/tags/notes/index.xml | 28 ++++++++++++++++++++++++++++ 4 files changed, 111 insertions(+) diff --git a/content/2016-07.md b/content/2016-07.md index 1b140fb0b..7b0b523ad 100644 --- a/content/2016-07.md +++ b/content/2016-07.md @@ -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; + } +``` diff --git a/public/2016-07/index.html b/public/2016-07/index.html index d0af10a75..c0e413d7c 100644 --- a/public/2016-07/index.html +++ b/public/2016-07/index.html @@ -186,8 +186,36 @@ $ ./delete-metadata-values.py -f dc.contributor.author -i /tmp/Authors-Delete-UT +
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
+...
+
+ + + +
# 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
+
+ + + +
     # 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;
+     }
+
+