[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: