EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #01726


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: Browse Views Error


I know that this is going way too back but I still haven't found a solution for the reason why "Create by Authors" is not displayed so if someone can help me I appreciate!

Is it normal when I run

perl Normalize.pm

to get the following error:

Unicode::Normalize: CompExcl.txt not found in ........


Best,

G.


I 've found that in "/opt/eprints3/perl_lib/Unicode" there is a file
called "Normalize.pm".

What's the reason of that being there if it's not used? It's version
is older than the one I 've found and have installed manually but
shouldn't that do the trick?

Best,

G.

Carl, thx for the useful info!


generate_views ARCHIVEID

is running without any errors but still I can't get the "Browse by
Author" pages!

Trying to narrow down a little bit more the problem I 've found that
NO files/folders are created in the folder
/opt/eprints3/archives/ID/html/en/view/ after running "generate_views".
On the other hand if I do that for "divisions" and/or "subjects" all
folders and files are created and placed in the correct path!

Unfortunately --verbose doesn't produce a useful message!

Regards,

G.



Hi,

The error is being thrown by Unicode::Collate which does a runtime
`require Unicode::Normalize` based on whether normalization is being
 requested at that time - so it's maybe not that strange that some
views may trigger the error, and others not.

After spending several days last week trying to troubleshoot
problems with manually-installed cpan modules (rather than installed
 by yum / aptitude ) and narrowing it down to selinux / httpd
restrictions - I'd recommend you first try running
`./bin/generate_views ARCHIVEID` from a command-line, to try to take
 apache out of the equation.
If that runs OK under the command-line, but not via apache - that
would provide helpful info.

Cheers,
Carl


-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk
[mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of
Dimitrakakis Georgios
Sent: 17 December 2012 16:28
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Re: Browse Views Error

Yes! I have restarted Apache!

Isn't it weird that I am getting this error only for "Browse by Author"?

I mean isn't Unicode::Normalize used in another place??

Best,

G.

Have you restarted apache? - modperl is persistent.

Carl


-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk
[mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of
Dimitrakakis Georgios
Sent: 17 December 2012 15:57
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Re: Browse Views Error

I did an installation from source and the output of make install is
the following:

Files found in blib/arch: installing files in blib/lib into
architecture dependent library tree Installing
/usr/lib/perl5/site_perl/auto/Unicode/Normalize/Normalize.bs
Installing
/usr/lib/perl5/site_perl/auto/Unicode/Normalize/Normalize.so
Installing /usr/lib/perl5/site_perl/Unicode/Normalize.pm
Installing /usr/share/man/man3/Unicode::Normalize.3pm
Appending installation info to /usr/lib/perl5/core_perl/perllocal.pod

So I guess that's fine! But I keep getting the same error!!!!

Any clues why?

Best,

G.


Thx Ian & Alan!

I am on an Arch distribution and thought that it was included in perl
module or whateverer I 've installed in the past....Apparently not...

G.

Hi Georgios,

Someone else has probably already beaten me to this reply, but have
you tried

CPAN install Unicode::Normalize

on the server, as the first line of the log file suggests this
is missing.

Regards,

Alan Stiles
Digital Repository Developer
Open Research Online - http://oro.open.ac.uk Open University, Milton
Keynes, MK7 6AA, UK

-----Original Message-----
From: Dimitrakakis Georgios [mailto:giorgis@lib.uoc.gr]
Sent: 17 December 2012 14:06
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Browse Views Error

Hi!

I am trying to add the "Browse by Author" functionality in my
repository but I get the following error in the webpage "Internal
Server Error" followed by this error in the log file


-----------------LOG
FILE-----------------------------------------------------
Unicode::Normalize is required to normalize strings at
/opt/eprints3/perl_lib/Unicode/Collate.pm line
240\n\tUnicode::Collate::checkCollator('Unicode::Collate=HASH(0x5ccd
6
a0)') called at /opt/eprints3/perl_lib/Unicode/Collate.pm line
289\n\tUnicode::Collate::new('Unicode::Collate') called at
/opt/eprints3/perl_lib/EPrints/Update/Views.pm line
1105\n\tEPrints::Update::Views::default_sort('EPrints::Repository=HASH(0x5520760)', 'HASH(0x1a67d48)', 'ARRAY(0x5ccd3a0)') called at /opt/eprints3/perl_lib/EPrints/Update/Views.pm line 1121\n\tEPrints::Update::Views::call('EPrints::Repository=HASH(0x5520760)', 'CODE(0x1676ef8)', 'EPrints::Repository=HASH(0x5520760)', 'HASH(0x1a67d48)', 'ARRAY(0x5ccd3a0)') called at /opt/eprints3/perl_lib/EPrints/Update/Views.pm line 1206\n\tEPrints::Update::Views::create_sections_menu('repository', 'EPrints::Repository=HASH(0x5520760)', 'path_values', 'ARRAY(0x31faaf8)', 'view', 'EPrints::Update::Views=HASH(0x189f3c0)', 'values', 'ARRAY(0x3026598)', 'sizes', ...) called at /opt/eprints3/perl_lib/EPrints/Update/Views.pm line 373\n\tEPrints::Update::Views::update_view_menu('EPrints::Repository=HASH(0x5520760)', '/opt/eprints3/archives/TEST/html/en/view/creators/index', 'en', 'EPrints::Update::Views=HASH(0x189f3c0)',
'ARRAY(0x31faaf8)')
called
at
/opt/eprints3/perl_lib/EPrints/Update/Views.pm!

l!
 ine
209\n\tEPrints::Update::Views::update_view_file('EPrints::Repository=HASH(0x5520760)', 'en', '/view/creators/index.html', '/view/creators/') called at /opt/eprints3/perl_lib/EPrints/Apache/Rewrite.pm line 542\n\tEPrints::Apache::Rewrite::handler('Apache2::RequestRec=SCALAR(0x2bbde38)') called at -e line 0\n\teval {...} called
at
-e
line
0\n,
referer:
http://repository/view/

-----------------------END of LOG
FILE-----------------------------------------

Could someone help me with that?

Best,

G.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

*** Options:
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/

--
The Open University is incorporated by Royal Charter (RC 000391), an
exempt charity in England & Wales and a charity registered in
Scotland (SC 038302).


*** Options:
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

*** Options:
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

*** Options:
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/


The University of Dundee is a registered Scottish Charity, No:
SC015096


*** Options:
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/


The University of Dundee is a registered Scottish Charity, No: SC015096


*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.