EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #09286
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] IRstats2 "origin of downloads"
- To: David R Newman <drn@ecs.soton.ac.uk>, "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] IRstats2 "origin of downloads"
- From: Tomasz Neugebauer <Tomasz.Neugebauer@concordia.ca>
- Date: Thu, 20 Apr 2023 22:03:19 +0000
CAUTION: This e-mail originated outside the University of Southampton.
Hm… I think that one thing that might have happened here is that when I upgraded to 3.4, I removed the GeoIP.dat file from the “lib” folder, thinking that the
library is supposed to use “the global one” instead. I’m talking about this part of the code: my $dat_file = $self->{session}->config( "lib_path").'/geoip/GeoIP.dat'; However, now that I look at this code, I find myself really confused! $dat_file is set to 1 if the path doesn’t exist?! Let’s just say that doesn’t look solid
to me. What is setting that path to 1 supposed to accomplish? The loop later on, I needed to use the “open” command if I specify a path, not the “new” command here: $self->{geoip} = $pkg->open( $dat_file ); However, if that path in lib doesn’t exist, I’m opening “1”, whatever that means – so that fails with an error; “new” works on it, but not sure what it does, then
it defaults to the global one? I think that’s where possibly things are just failing. When the file is there in the lib folder, it needs to be “open” command, not new, but when the file is not there, that’s when it’s “new” with that magic number “1”? Tomasz From: David R Newman <drn@ecs.soton.ac.uk>
Attention This email originates from outside the concordia.ca domain. // Ce courriel provient de l'extérieur du domaine de concordia.ca Hi Tomasz, This code is in the file EPRINS_PATH/plugins/EPrints/Plugin/Stats/Processor/Access/Country.pm so if you cannot work out whether the criteria is meet, you could try adding some debug and then running process_stats (or wait for it to run
overnight). If this was failing I would hope that wherever you are logging the output (STDOUT and STDERR) fro process_stats would show the $self->{error} message above.
|
- Follow-Ups:
- Re: [EP-tech] IRstats2 "origin of downloads"
- From: Tomasz Neugebauer <Tomasz.Neugebauer@concordia.ca>
- Re: [EP-tech] IRstats2 "origin of downloads"
- References:
- [EP-tech] IRstats2 "origin of downloads"
- From: Tomasz Neugebauer <Tomasz.Neugebauer@concordia.ca>
- Re: [EP-tech] IRstats2 "origin of downloads"
- From: Tomasz Neugebauer <Tomasz.Neugebauer@concordia.ca>
- Re: [EP-tech] IRstats2 "origin of downloads"
- From: Tomasz Neugebauer <Tomasz.Neugebauer@concordia.ca>
- [EP-tech] IRstats2 "origin of downloads"
- Prev by Date: Re: [EP-tech] IRstats2 "origin of downloads"
- Next by Date: Re: [EP-tech] IRstats2 "origin of downloads"
- Previous by thread: [EP-tech] EPrints/CRIS
- Next by thread: [EP-tech] DOI handling in orcid_support_advance
- Index(es):