Bug#807787: wiki.debian.org: warnings from the rotate-logs script

Paul Wise <[email protected]>
Newsgroups gmane.linux.debian.devel.www
Organization Debian
Message-ID <1505623821.28592.70.camel__2780.98503263227$1505624059$gmane$org@debian.org>
On Thu, 2017-09-14 at 22:06 -0400, James Montgomery wrote:

> I came across this bug report using 'how-can-i-help --old --show 
> newcomer' and am having trouble reproducing in isolation. I would like 
> to request a log sample to further, and more accurately, investigate.

Thanks for you interest in helping with the Debian wiki!

Here is the output from the problematic part of the script, with added
logdate debugging to make it more obvious where the issue is:

    Splitting up event-log-TEMP:
    logdate 1433471906044661433635204430807
    gmtime(1433471906044661392216497848320) too large at /srv/wiki.debian.org/bin/rotate-logs line 117, <$fh_in> line 1.
    gmtime(1433471906044661392216497848320) failed at /srv/wiki.debian.org/bin/rotate-logs line 117, <$fh_in> line 1.
    Use of uninitialized value $year in addition (+) at /srv/wiki.debian.org/bin/rotate-logs line 119, <$fh_in> line 1.
    Use of uninitialized value $mon in addition (+) at /srv/wiki.debian.org/bin/rotate-logs line 119, <$fh_in> line 1.

      event-log-CURRENT: 27342430 lines
      27342430 total
    Splitting up event-log-TEMP:
    logdate 1505621750678650
      event-log-CURRENT: 76 lines
      76 total

Here is a sample of the event log, with the private data removed:

    1505622178372608        VIEWPAGE        pagename=...&HTTP_USER_AGENT=...&REMOTE_ADDR=...

If I grep the event log for the logdate listed above, I get this:

    1433471906044661433635204430807    	    VIEWPAGE    	    pagename=...&HTTP_USER_AGENT=...&HTTP_REFERER=...&REMOTE_ADDR=...

I also noticed another line with the very long timestamp:

    1438244879888341438473603006892    	    VIEWPAGE    	    pagename=...&HTTP_USER_AGENT=...&HTTP_REFERER=...&REMOTE_ADDR=...

Hopefully the data above helps to resolve this, while getting this data
I noticed that this bug has resulted in a very large log file.

> I am assuming this bug still persists

Correct.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEYQsotVz8/kXqG1Y7MRa6Xp/6aaMFAlm9/w0ACgkQMRa6Xp/6
aaOa1xAAp4yWS3q8C7MkMjJP4wao3YTu/Z2Trp1tzMPRyPHd5XtBaRA2btMsebEL
nhP2KuPsvF/f3XCdKsXFA7N/hjCrDwiIsEo3cVd/A3zIZHNQQndgeSdSwd8XsGrd
R2i2cDBClTS75X1GvddQboEBEJlKadqK+pWdgRZ2tYv8EpaRunXcfVj4TcBtPPdj
/QP/3IFqrU6l31tx0ynmzK66po+RwFV180PWi+3+8DecpNJCsQ6Ub1o4JXxTUpjr
XShzH8bJoEU7hkXRlUPFocEK/hmlWqZMPDdbckVXEKtrKipR5nACc+xzQicAptg1
dZhXV8u24uLSQKRMg5SqMFC+PmgVVIC7MNUBtLC8qvWb92Nkb9d3T3JNRa/Zyobt
h6jvRYcZHCfaCZkcZ2dV4W2KWRKlWCjCYvMfzLzprBPKipV5cV8YvLfOJHETOb5Q
mS+6SrLnTwFN3FtkLnKfvd+kkmlGA+y6Ovjf4Qwv4sCc5pHT+hPxepeftRaj1Obr
VPmvt8stPbcGbWsIQmE6hF0/eydqgLn2lRUhZuOfcypcEvKxZgV1hgmIZtTG8KDA
J/NdtrAB7yaLKlLCZHLaxnvCXGY08tlP/YU6bAWWTYb9jSBXSGT77zjG2KO8WAPc
ToxvBQV7Fz/323bkDwzvUnDl/yAkmu9njeLIfWDtqfwB31ODAs4=
=6aHi
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.