Dear list, We are using an external Geofence-installation to handle GeoServer authorization. This works without problems in our test environment but for some unknown reason in production GeoFence seems to "go to sleep" every now and then, possibly when idle (e.g. every morning). When this happens, the first call to GeoFence (RuleReader) fails with time out. In Nginx access log there is a line
[06/Feb/2023:09:00:05 +0200] "POST /geofence/remoting/RuleReader HTTP/1.1" 504 176 "-" "Java/11.0.17" and a corresponding row in Nginx error log 2023/02/06 09:00:05 [error] 458037#458037: *3417 upstream timed out (110: Connection timed out) while reading response header from upstream, client: xxx.xxx.xx.xxx, server: server.ymparisto.fi, request: "POST /geofence/remoting/RuleReader HTTP/1.1", upstream: "http://127.0.0.1:8080/geofence/remoting/RuleReader", host: "server.ymparisto.fi", referrer: https://server.ymparisto.fi/geoserver/web/?0 No corresponding lines can be found in Catalina-log. The second attempt, immediately after the time out, succeeds. When Nginx and GeoServer were left out and GeoFence used directly via admin UI, this also failed on the first try and succeeded on the next, this time with Nginx error 2023/02/25 10:10:18 [error] 26402#26402: *442 upstream timed out (110: Connection timed out) while reading response header from upstream, client: xxx.xxx.xx.xxx, server: server.ymparisto.fi, request: "POST /geofence/geofence/LoginRemoteService HTTP/1.1", upstream: http://127.0.0.1:8080/geofence/geofence/LoginRemoteService, host: "server.ymparisto.fi", referrer: https://server.ymparisto.fi/geofence/ I am assuming it can't be a Tomcat issue either, as the frontpage of GeoFence admin UI loads normally. Does anybody have any idea what might be causing this kind of behavior and/or what we could try in order to fix it? Kind regards, Samuli Neuvonen Finnish Environment Institute
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users