Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audit error logs and create issues #2286

Open
oalders opened this issue Apr 5, 2020 · 4 comments
Open

Audit error logs and create issues #2286

oalders opened this issue Apr 5, 2020 · 4 comments

Comments

@oalders
Copy link
Member

oalders commented Apr 5, 2020

/var/log/starman/metacpan-web/starman_error.log

The logs are full of various template errors etc. We should try to clean some of these up so that the logs become more useful.

@mohawk2
Copy link
Contributor

mohawk2 commented Jul 3, 2020

Of the smaller -web error logs provided earlier (thanks @oalders!), this came up 39 times:

[2020/07/03 11:37:08] [ERROR] [/search?q="><script%20>alert(String.fromCharCode(88,83,83))</script>] Caught exception in MetaCPAN::Web::Controller::Search->index "Timed out at /home/metacpan/metacpan-web/lib/MetaCPAN/Web/Controller/Search.pm line 78."

The search does give results, but it's quite slow. This probably wants investigating.

@mohawk2
Copy link
Contributor

mohawk2 commented Jul 3, 2020

Of the 545 lines of logs, fully 171 are like:

[2020/07/03 11:19:50] [WARN] [/release/ETHER/Moose-2.1800] failed to writev: -1 errno:32 at /home/metacpan/carton/metacpan-web/lib/perl5/x86_64-linux/Plack/Handler/Gazelle.pm line 255.

That is Gazelle getting an EPIPE (32) when trying to write output. These are suppressed in #2344.

@mohawk2
Copy link
Contributor

mohawk2 commented Jul 4, 2020

A further 39 lines were caused by the issue fixed in #2345.

@mohawk2
Copy link
Contributor

mohawk2 commented Jul 4, 2020

Nearly all the remaining messages are Unicode-related warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants