mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2022-07-17
This commit is contained in:
@ -285,4 +285,38 @@ $ grep 65.108.95.23 dspace.log.2022-07-10 | grep -oE 'session_id=[A-Z0-9]{32}:ip
|
||||
- The reason is apparently that the default `db.dialect` changed from "org.dspace.storage.rdbms.hibernate.postgres.DSpacePostgreSQL82Dialect" to "org.hibernate.dialect.PostgreSQL94Dialect" as a result of a Hibernate update
|
||||
- Then I was getting more errors starting the backend server in Tomcat, but the issue was that the backend server needs Solr to be up first!
|
||||
|
||||
## 2022-07-17
|
||||
|
||||
- Start a harvest on AReS around 3:30PM
|
||||
- Later in the evening I see CGSpace was going down and up (not as bad as last Sunday) with around 18.0 load...
|
||||
- I see very high CPU usage:
|
||||
|
||||

|
||||
|
||||
- But DSpace sessions are normal (not like last weekend):
|
||||
|
||||

|
||||
|
||||
- I see some Hetzner IPs in the top users today, but most of the requests are getting HTTP 503 because of the changes I made last week
|
||||
- I see 137.184.159.211, which is on Digital Ocean, and the DNS is apparently iitawpsite.iita.org
|
||||
- I've seen their user agent before, but I don't think I knew it was IITA: "GuzzleHttp/6.3.3 curl/7.84.0 PHP/7.4.30"
|
||||
- I already have something in nginx to mark Guzzle as a bot, but interestingly it shows up in Solr as `$http_user_agent` so there is a logic error in my nginx config
|
||||
- Ouch, the logic error seems to be this:
|
||||
|
||||
```console
|
||||
geo $ua {
|
||||
default $http_user_agent;
|
||||
|
||||
include /etc/nginx/bot-networks.conf;
|
||||
}
|
||||
```
|
||||
|
||||
- After some testing on DSpace Test I see that this is actually setting the default user agent to a literal `$http_user_agent`
|
||||
- The [nginx map docs](http://nginx.org/en/docs/http/ngx_http_map_module.html) say:
|
||||
|
||||
> The resulting value can contain text, variable (0.9.0), and their combination (1.11.0).
|
||||
|
||||
- But I can't get it to work, neither for the default value or for matching my IP...
|
||||
- I will have to ask on the nginx mailing list
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
Reference in New Issue
Block a user