EPrints Technical Mailing List Archive

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

Message: #10256


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

Re: [EP-tech] New site still inaccessible


CAUTION: This e-mail originated outside the University of Southampton.

Have only just seen your second email with more details,
and had already written a draft response to your first email.

So I'll share my reply to your first below, and then I'll go on to
look at and answer your latest.

==============

Hello,
My understanding is you're using virtualbox.
Is Virtualbox setup correctly for host and guest networking?
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.virtualbox.org%2Fmanual%2Ftopics%2Fnetworkingdetails.html%23networkingdetails&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C0427821bc9e04176621208ddf8519ec8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638939751623758863%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=ekb%2FaUTs5fxMVM7j2PM%2BMV9DXPC4ioSZ05biuWJ5c1Y%3D&reserved=0

My understanding is you're using Ubuntu.
Have you explored whether the required port numbers are being allowed
by the Ubuntu Firewall?
One of the google results:
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.oreilly.com%2Flibrary%2Fview%2Flearning-continuous-integration%2F9781788479356%2F331696dc-17f2-4b6c-b9cd-a77b11f19db4.xhtml&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C0427821bc9e04176621208ddf8519ec8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638939751623775355%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=Uj8MKXwwvWs6pD%2FUF%2FuzxrDYrYJcCBUXQRsvfWhGzIc%3D&reserved=0

My understanding is that EPrints is mod_perl via Apache2.
Have you checked if Apache is running?

apachectl status

If Apache is running, have you checked the logs for errors, or
successful eprints status?

sudo tail -fq /var/log/httpd/error_log /var/log/httpd/ssl_error_log
/var/log/httpd/access_log /var/log/httpd/ssl_access_log

or possibly:

sudo tail -fq /var/log/apache2/error.log
/var/log/apache2/ssl_error_log /var/log/apache2/ssl_error.log
/var/log/apache2/access.log /var/log/apache2/ssl_access_log
log/apache2/ssl_access.log /var/log/apache2/other_vhosts_access.log
/var/log/apache2/ssl_request.log /var/log/apache2/ssl_request_log

...depending where things are on your system.

==============

Okay, so now to look at your latest...here you have indeed looked at
your logs, and you're trying to solve:
"Can't locate object method "abort" via package "EPrints" at
/opt/eprints3/perl_lib/EPrints/Apache/Rewrite.pm line 74."

So the good news is, you've probably found the problem is with EPrints
not running due to this error, rather than with not being able to
connect via your PC, =).

Hm. So let's think about this error.
If we look at line 74 of
/opt/eprints3/perl_lib/EPrints/Apache/Rewrite.pm - we see it's an
error to be expressed via abort, in the case that there's no defined
handler for EPrints.

How does your local dev setup,
compare to your production setup?

Do you have an apache.conf in your /opt/eprints3/cfg directory?
And a /opt/eprints3/cfg/perl_module_isolation.conf ...?

Is it possible all you're missing is running the "generate_apacheconf"
command?
Something like:
/opt/eprints3/bin/generate_apacheconf --replace --system --verbose
--verbose uca
If you need documentation on it, you can create a htm file of
documentation like this:
perldoc -oHTML -dgen_conf.htm /opt/eprints3/bin/generate_apacheconf
Or to see documentation at the terminal, you can try:
perldoc /opt/eprints3/bin/generate_apacheconf

Or, perhaps your setup is totally correct, and you simply need to
restart apache to have the correct configs take effect?

Is there the relevant include line in your main apache config somewhere?
Include /opt/eprints3/cfg/apache.conf

Or is it that the apache2 stuff needed, such as the handlers, etc
aren't installed on Ubuntu yet?
See what's installed here:
apt list --installed
Look for your apache2 stuff here:
apt search libapache2-mod-perl2
Full list of requirements seems to be here:
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FInstalling_EPrints_on_Debian%2FUbuntu%23Requirements&data=05%7C02%7Ceprints-tech%40ecs.soton.ac.uk%7C0427821bc9e04176621208ddf8519ec8%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638939751623786949%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=m0R%2FOSXKyGDP9Jxvazo265gPQd4UFKM6OeHUti0CI9o%3D&reserved=0

Of course, it could be something else!
I'll leave this email here, and have a further think.


Yours,
Andrew.

Quoting Will Hughes <w.p.hughes@reading.ac.uk>:

CAUTION: This e-mail originated outside the University of Southampton.
CAUTION: This e-mail originated outside the University of Southampton.
Subject:
EPrints 3.4.7: mod_perl "abort" method error after clean install
(Internal Server Error)
________________________________


Hi

I think my previous message can now be augmented with more detail.

I'm setting up a clean install of EPrints 3.4.7 on a local-only
Ubuntu VM (Apache 2.4.58, mod_perl 2.0.13, Perl 5.38.2).
I've followed the standard installation steps and generated the
Apache config using generate_apacheconf.
Apache is running as root (via systemd), and I'm using the default
EPrints tarball (not a system package).
Key config details:

  *   Apache is listening on port 80.
  *   /etc/hosts maps arcomtest to 127.0.1.1.
  *   My <VirtualHost *:80> block includes:
     *   PerlSwitches -I/opt/eprints3/perl_lib
     *   PerlSetEnv PERL5LIB /opt/eprints3/perl_lib
     *   ServerName arcomtest
     *   The standard EPrints handler and aliases.
Problem:
When I visit http://arcomtest/, I get an Internal Server Error.
The Apache error log shows:
Can't locate object method "abort" via package "EPrints" at
/opt/eprints3/perl_lib/EPrints/Apache/Rewrite.pm line 74.
However:

  *   /opt/eprints3/perl_lib/EPrints.pm does contain the abort
method (I see three sub abort lines).
  *   There is only one EPrints install on this VM.
  *   Permissions on /opt/eprints3/perl_lib are correct and readable
by Apache.
  *   PerlSwitches and PERL5LIB are set globally and in the VirtualHost.
  *   mod_perl is enabled and working for other test handlers.

Has anyone seen this before?
Is there a known issue with EPrints 3.4.7 and mod_perl, or something
subtle I might have missed in the environment setup?

Any advice or troubleshooting tips would be much appreciated!

Thanks,

Will Hughes


From: eprints-tech-request@ecs.soton.ac.uk
<eprints-tech-request@ecs.soton.ac.uk> On Behalf Of Will Hughes
Sent: 19 September 2025 15:04
To: EPrints.org Technical List <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] New site still inaccessible

CAUTION: This e-mail originated outside the University of Southampton.
CAUTION: This e-mail originated outside the University of Southampton.
Hi

I wonder is anyone can help me. I have set up a VM with Eprints
3.4.7 and all seems OK, except that I cannot access it through a
browser on my PC. I have been srabbling around with ports.conf,
eprints.conf, virtual hosts, and goodness know what. I recall that
my real installation (3.4.5) was equally impossible to resolve by
myself. I mistakenly thought that this one would be easier, having
no requirement for https. No such luck!
To test the web pages, I have been trying curl inside the console,
and seem unable to get beyond this:
curl -I http://localhost:8080/
curl: (52) Empty reply from server
Help, please!

Best wishes

Will

Will Hughes
Emeritus Professor of Construction Management and Economics
School of the Built Environment
University of Reading, PO Box 219, Whiteknights
Reading, RG6 6DF, UK