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

[EP-tech] Re: IRStats2 process_stats error message



Did you try it with one or two '--verbose' flags?  Sometimes you get more detailed information from a second use of the verbose flag.

From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Andrew Hercules
Sent: 03 February 2016 14:11
To: eprints-tech at ecs.soton.ac.uk
Subject: [EP-tech] Re: IRStats2 process_stats error message


Hi Alan,



Thanks for the suggestion - much appreciated.



I ran process_stats with --verbose and it's not saying where it's failing. I get an output seen below:


[mdx] Generating set tables.
[mdx] Removed table 'irstats2_sets_authors'
[mdx] Removed table 'irstats2_sets_divisions'
[mdx] Removed table 'irstats2_sets_subjects'
[mdx] Removed table 'irstats2_sets_type'
[mdx] Removed table 'irstats2_groupings_authors'
[mdx] Removed table 'irstats2_groupings_divisions'
[mdx] Removed table 'irstats2_groupings_subjects'
[mdx] Removed table 'irstats2_groupings_type'
[mdx] Removed table 'irstats2_cache_set_values'
[mdx] About to process dataset 'history'
[mdx] history: starting from record 341789
[mdx] About to process dataset 'access'
[mdx] Access: accessid to process: from 11662030 to 8992221
[mdx] Saving the state for dataset 'access'
[mdx] Access: it took 1 secs to parse 56 records ( average = 56.00 records/sec )
[mdx] Access: 16 records kept out of 56 ( ratio = 28.57% )
[mdx] About to process dataset 'eprint'
[mdx] Creating table 'irstats2_doc_access'
[mdx] Creating table 'irstats2_deposits'
[mdx] Creating table 'irstats2_cache_downloads'
[mdx] Creating table 'irstats2_cache_views'
[mdx] Creating table 'irstats2_doc_format'
[mdx] eprint: starting from record 0
[mdx] eprint: 15391 records to process.
Can't call method "context" on an undefined value at /data/mdx/eprints3/lib/plugins/EPrints/Plugin/Stats/Processor/EPrint/CacheDownloads.pm line 43.

Perhaps it's failing on an unknown record 341789, even though there are only 15391 records in the repo to process?

Thanks!
Cheers,

Andrew

--
Andrew Hercules
Developer & UX Strategist
University of London Computer Centre
Senate House, Malet Street, London WC1E 7HU
T: +44 (0)20 7863 1342
E: andrew.hercules at ulcc.ac.uk<mailto:andrew.hercules at ulcc.ac.uk>
W: http://www.ulcc.ac.uk/

________________________________
From: eprints-tech-bounces at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk> <eprints-tech-bounces at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk>> on behalf of Alan.Stiles <alan.stiles at open.ac.uk<mailto:alan.stiles at open.ac.uk>>
Sent: 03 February 2016 13:43
To: eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>
Subject: [EP-tech] Re: IRStats2 process_stats error message


Hi Andrew,



Have you tried running process stats from the command line with "--verbose --verbose" ? It might give you a clue as to what record it is failing on.



Alan



From: eprints-tech-bounces at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk> [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Andrew Hercules
Sent: 03 February 2016 13:08
To: eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at ecs.soton.ac.uk>
Subject: [EP-tech] IRStats2 process_stats error message



Hi there,



Just wondering if anybody has come across this error message when running cfg/bin/stats/process_stats:



Can't call method "context" on an undefined value at lib/plugins/EPrints/Plugin/Stats/Processor/EPrint/CacheDownloads.pm line 43.



I've gone into CacheDownloads.pm and can't see any error in the script. And I've run a diff on the file and compared it to other repositories with IRStats2 and there's no differences.



Unfortunately, I think this error message is preventing some of the key figures from showing on the main stats report page.



Thanks for your help!



Cheers,

Andrew



--

Andrew Hercules

Developer & UX Strategist

University of London Computer Centre

Senate House, Malet Street, London WC1E 7HU

T: +44 (0)20 7863 1342

E: andrew.hercules at ulcc.ac.uk<mailto:andrew.hercules at ulcc.ac.uk>

W: http://www.ulcc.ac.uk/
-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20160203/d08b67fb/attachment-0001.html