mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-11 14:33:21 +01:00
Update notes for 2016-05-06
This commit is contained in:
parent
ba1d8c5699
commit
b51a7a6adb
@ -41,3 +41,30 @@ GET /rest/handle/10568/NaN?expand=parentCommunityList,metadata HTTP/1.1
|
||||
- Hmm, also disk space is full
|
||||
- I decided to blow away the solr indexes, since they are 50GB and we don't really need all the Atmire stuff there right now
|
||||
- I will re-generate the Discovery indexes after re-deploying
|
||||
- Testing `renew-letsencrypt.sh` script for nginx
|
||||
|
||||
```
|
||||
#!/usr/bin/env bash
|
||||
|
||||
readonly SERVICE_BIN=/usr/sbin/service
|
||||
readonly LETSENCRYPT_BIN=/opt/letsencrypt/letsencrypt-auto
|
||||
|
||||
# stop nginx so LE can listen on port 443
|
||||
$SERVICE_BIN nginx stop
|
||||
|
||||
$LETSENCRYPT_BIN renew -nvv --standalone --standalone-supported-challenges tls-sni-01 > /var/log/letsencrypt/renew.log 2>&1
|
||||
|
||||
LE_RESULT=$?
|
||||
|
||||
$SERVICE_BIN nginx start
|
||||
|
||||
if [[ "$LE_RESULT" != 0 ]]; then
|
||||
echo 'Automated renewal failed:'
|
||||
|
||||
cat /var/log/letsencrypt/renew.log
|
||||
|
||||
exit 1
|
||||
fi
|
||||
```
|
||||
|
||||
- Seems to work well
|
||||
|
@ -121,6 +121,34 @@
|
||||
<li>Hmm, also disk space is full</li>
|
||||
<li>I decided to blow away the solr indexes, since they are 50GB and we don’t really need all the Atmire stuff there right now</li>
|
||||
<li>I will re-generate the Discovery indexes after re-deploying</li>
|
||||
<li>Testing <code>renew-letsencrypt.sh</code> script for nginx</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>#!/usr/bin/env bash
|
||||
|
||||
readonly SERVICE_BIN=/usr/sbin/service
|
||||
readonly LETSENCRYPT_BIN=/opt/letsencrypt/letsencrypt-auto
|
||||
|
||||
# stop nginx so LE can listen on port 443
|
||||
$SERVICE_BIN nginx stop
|
||||
|
||||
$LETSENCRYPT_BIN renew -nvv --standalone --standalone-supported-challenges tls-sni-01 > /var/log/letsencrypt/renew.log 2>&1
|
||||
|
||||
LE_RESULT=$?
|
||||
|
||||
$SERVICE_BIN nginx start
|
||||
|
||||
if [[ "$LE_RESULT" != 0 ]]; then
|
||||
echo 'Automated renewal failed:'
|
||||
|
||||
cat /var/log/letsencrypt/renew.log
|
||||
|
||||
exit 1
|
||||
fi
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>Seems to work well</li>
|
||||
</ul>
|
||||
|
||||
</section>
|
||||
|
@ -71,7 +71,7 @@
|
||||
</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
|
||||
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 The owner of that application has said that the NaN (not a number) is an error in his code and he’ll fix it 2016-05-03 Update nginx to 1.10.x branch on CGSpace Fix a reference to dc.type.output in Discovery that I had missed when we migrated to dc.type last month (#223) 2016-05-06 DSpace Test is down, catalina.out has lots of messages about heap space from some time yesterday (!) It looks like Sisay was doing some batch imports Hmm, also disk space is full I decided to blow away the solr indexes, since they are 50GB and we don’t really need all the Atmire stuff there right now I will re-generate the Discovery indexes after re-deploying Testing renew-letsencrypt.sh script for nginx #!/usr/bin/env bash readonly SERVICE_BIN=/usr/sbin/service readonly LETSENCRYPT_BIN=/opt/letsencrypt/letsencrypt-auto # stop nginx so LE can listen on port 443 $SERVICE_BIN nginx stop $LETSENCRYPT_BIN renew -nvv --standalone --standalone-supported-challenges tls-sni-01 > /var/log/letsencrypt/renew.log 2>&1 LE_RESULT=$?
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
|
@ -59,6 +59,34 @@
|
||||
<li>Hmm, also disk space is full</li>
|
||||
<li>I decided to blow away the solr indexes, since they are 50GB and we don&rsquo;t really need all the Atmire stuff there right now</li>
|
||||
<li>I will re-generate the Discovery indexes after re-deploying</li>
|
||||
<li>Testing <code>renew-letsencrypt.sh</code> script for nginx</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>#!/usr/bin/env bash
|
||||
|
||||
readonly SERVICE_BIN=/usr/sbin/service
|
||||
readonly LETSENCRYPT_BIN=/opt/letsencrypt/letsencrypt-auto
|
||||
|
||||
# stop nginx so LE can listen on port 443
|
||||
$SERVICE_BIN nginx stop
|
||||
|
||||
$LETSENCRYPT_BIN renew -nvv --standalone --standalone-supported-challenges tls-sni-01 &gt; /var/log/letsencrypt/renew.log 2&gt;&amp;1
|
||||
|
||||
LE_RESULT=$?
|
||||
|
||||
$SERVICE_BIN nginx start
|
||||
|
||||
if [[ &quot;$LE_RESULT&quot; != 0 ]]; then
|
||||
echo 'Automated renewal failed:'
|
||||
|
||||
cat /var/log/letsencrypt/renew.log
|
||||
|
||||
exit 1
|
||||
fi
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>Seems to work well</li>
|
||||
</ul>
|
||||
</description>
|
||||
</item>
|
||||
|
@ -75,7 +75,7 @@
|
||||
</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
|
||||
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 The owner of that application has said that the NaN (not a number) is an error in his code and he’ll fix it 2016-05-03 Update nginx to 1.10.x branch on CGSpace Fix a reference to dc.type.output in Discovery that I had missed when we migrated to dc.type last month (#223) 2016-05-06 DSpace Test is down, catalina.out has lots of messages about heap space from some time yesterday (!) It looks like Sisay was doing some batch imports Hmm, also disk space is full I decided to blow away the solr indexes, since they are 50GB and we don’t really need all the Atmire stuff there right now I will re-generate the Discovery indexes after re-deploying Testing renew-letsencrypt.sh script for nginx #!/usr/bin/env bash readonly SERVICE_BIN=/usr/sbin/service readonly LETSENCRYPT_BIN=/opt/letsencrypt/letsencrypt-auto # stop nginx so LE can listen on port 443 $SERVICE_BIN nginx stop $LETSENCRYPT_BIN renew -nvv --standalone --standalone-supported-challenges tls-sni-01 > /var/log/letsencrypt/renew.log 2>&1 LE_RESULT=$?
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
|
@ -59,6 +59,34 @@
|
||||
<li>Hmm, also disk space is full</li>
|
||||
<li>I decided to blow away the solr indexes, since they are 50GB and we don&rsquo;t really need all the Atmire stuff there right now</li>
|
||||
<li>I will re-generate the Discovery indexes after re-deploying</li>
|
||||
<li>Testing <code>renew-letsencrypt.sh</code> script for nginx</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>#!/usr/bin/env bash
|
||||
|
||||
readonly SERVICE_BIN=/usr/sbin/service
|
||||
readonly LETSENCRYPT_BIN=/opt/letsencrypt/letsencrypt-auto
|
||||
|
||||
# stop nginx so LE can listen on port 443
|
||||
$SERVICE_BIN nginx stop
|
||||
|
||||
$LETSENCRYPT_BIN renew -nvv --standalone --standalone-supported-challenges tls-sni-01 &gt; /var/log/letsencrypt/renew.log 2&gt;&amp;1
|
||||
|
||||
LE_RESULT=$?
|
||||
|
||||
$SERVICE_BIN nginx start
|
||||
|
||||
if [[ &quot;$LE_RESULT&quot; != 0 ]]; then
|
||||
echo 'Automated renewal failed:'
|
||||
|
||||
cat /var/log/letsencrypt/renew.log
|
||||
|
||||
exit 1
|
||||
fi
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>Seems to work well</li>
|
||||
</ul>
|
||||
</description>
|
||||
</item>
|
||||
|
Loading…
x
Reference in New Issue
Block a user