Dear all,
We have detected a huge number of error reports
in the nginx error_log files, like the examples below, of the type:
"search/autocomplete"
Sometimes they appear isolated in
time, but also occur almost simultaneously during the user typing the text, like the examples below:
2021/01/22 16:50:30
"GET /index.php/search/autocomplete?query=VINC0000&repos= HTTP/1.1"
2021/01/22 16:50:30
"GET /index.php/search/autocomplete?query=VINC00000&repos= HTTP/1.1
2021/01/22 16:50:32
"GET /index.php/search/autocomplete?query=VINC00000&repos= HTTP/1.1"
We are using AtoM 2.5.2 on Ubuntu 18.04 LTS, installed accordingly to the official accesstomemory manual install procedure.
I've searched for something related and found this:
"
Race condition in autocomplete.js"
For greater context: it turns out this is a result of the recently-filed but age-old minor bug, #7198.
If the user enters data too fast before the slow autocomplete.js
finishes, it will throw an error. Had nothing to do with this issue, or
with the ES 1.3 upgrade. Sorry for the confusion!
Could this be the problem? Can this be corrected to avoid throwing daily a huge number of errors into the log?
Thank you in advance.
Best regards,
--
Ricardo Pinho
PS.
Complete error lines from nginx "error.log":2021/01/22 16:50:30 [error] 1435#1435: *105344 FastCGI sent in stderr: "PHP message: This request has been forwarded to a 404 error page by the action "search/autocomplete"" while reading response header from upstream, client: 188.37.21.36, server: _, request: "GET /index.php/search/autocomplete?query=VINC0000&repos= HTTP/1.1", upstream: "fastcgi://unix:/run/php7.2-fpm.atom.sock:", host: "
www.vinculum-database.fcsh.unl.pt", referrer: "
https://www.vinculum-database.fcsh.unl.pt/index.php/informationobject/browse?topLod=0&query=VINC003333&repos="
2021/01/22 16:50:30 [error] 1435#1435: *105344 FastCGI sent in stderr: "PHP message: This request has been forwarded to a 404 error page by the action "search/autocomplete"" while reading response header from upstream, client: 188.37.21.36, server: _, request: "GET /index.php/search/autocomplete?query=VINC00000&repos= HTTP/1.1", upstream: "fastcgi://unix:/run/php7.2-fpm.atom.sock:", host: "
www.vinculum-database.fcsh.unl.pt", referrer: "
https://www.vinculum-database.fcsh.unl.pt/index.php/informationobject/browse?topLod=0&query=VINC003333&repos="
2021/01/22 16:50:32 [error] 1435#1435: *105344 FastCGI sent in stderr: "PHP message: This request has been forwarded to a 404 error page by the action "search/autocomplete"" while reading response header from upstream, client: 188.37.21.36, server: _, request: "GET /index.php/search/autocomplete?query=VINC000001&repos= HTTP/1.1", upstream: "fastcgi://unix:/run/php7.2-fpm.atom.sock:", host: "
www.vinculum-database.fcsh.unl.pt", referrer: "
https://www.vinculum-database.fcsh.unl.pt/index.php/informationobject/browse?topLod=0&query=VINC003333&repos="