EPrints Technical Mailing List Archive

Message: #03194


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

[EP-tech] Re: generate_views - no list pages...



Ah, hadn't considered that...

Apache is running as www-data.

Most of the files involved (all the year.* for instance) are owned by
eprints.

Too late to do anything meaningful tonight, but that certainly gives me
something to test out tomorrow.

Thanks, John!

Nick

On 24/06/14 20:32, John Salter wrote:
Hi Nick,
One quick thing to check (might have checked this already):
What user does Apache run as?
What user are the files owned by?

If at some point you've run something from the commandline as one user, and Apache is running as another user, it could make things a bit broken?

Cheers,
John




-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Nick Wallingford
Sent: 23 June 2014 22:03
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Re: generate_views - no list pages...

I've about run out of ideas for figuring why the dynamic list pages are
not being generate 'on the fly' when requested, and could do with some
new ideas to investigate.

The apache error log only tells me:

script
'/usr/share/eprints3/archives/repository/html/en/view/year/2014.html'
not found or unable to stat, referer: http://research.i.ac.nz/view/year/

(and similar msgs for such as subject, creator, etc)

Putting a file there as 2014.html it is seen - it seems to be 'looking'
in the right place, but the scripts just don't seem to be generating it
when it is being asked for...

Is there a means of getting more logging, so I might be able to
determine why the pages are not being generated?

I've just about reached the end of my own abilities to trouble shoot
this one, and would sure like to learn what is causing the problem!

Nick Wallingford
Tauranga, NZ


-------- Original Message --------
Subject: Re: [EP-tech] Re: generate_views - no list pages...
Date: Fri, 20 Jun 2014 13:11:05 +1200
From: Nick Wallingford <nickw@beekeeping.co.nz>
To: eprints-tech@ecs.soton.ac.uk

I did a fresh re-install from apt-get, applied the patches relating to
apache 2.4, generate_views, restart apache, but still have the lack of
such as 2005.html

Thinking it could be related to not producing the view to put onto the
dynamic page, I tested the various searching, and get results - I'm
assuming the view for the specific year might be a variation on this
search/view.

The list page shows - but just not generating the specific year pages.

As I've not modified anything (other than the apache 2.4 patches) I
can't see what I might be missing here.

Nick Wallingford
Tauranga, NZ



On 19/06/14 10:30, Nick Wallingford wrote:
OK, I've got the Ubuntu nicely running 14.04, and using eprints 3.3.12

I'd done the misc. apache 2.4 patches to sort out the errors/warnings as
suggested in http://www.eprints.org/tech.php/thread-19050.html

Re-generated views appears to be OK.  Restart apache.

But still, the sub-pages such as /view/year/2005.html show as 404 - not
being dynamically built when requested, from what I read from John below.

No clues from the apache access or error logs (apart from error.log
reporting that "script
'/usr/share/eprints3/archives/test/html/en/view/year/2005.html' not
found or unable to stat, referer: http://research.i.ac.nz/view/year/";

In the year folder, index.html gets generated and written to disk with
generate_views, but 2005.html does not (as it is created 'on the fly'?)
   But I note that though there is an (empty) index.template file, there
is no 2005.template file.  Should there necessarily be?

I'm thinking there must be some 'enabling' that I need to do for those
views before the sub-pages will generate as they should?  But
(obviously) new to the application, too!

Nick Wallingford
Tauranga, NZ




On 16/06/14 21:07, John Salter wrote:
Glad you're enjoying your experiences so far!

If your version of Ubuntu shipped with Apache 2.4, this will be
useful: http://www.eprints.org/tech.php/thread-19050.html
If you have any other questions, you know where to ask!

Cheers,
John

-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk
[mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Nick
Wallingford
Sent: 16 June 2014 09:38
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Re: generate_views - no list pages...

Thank you for that, John...

I wasn't aware the .html (such as your 2013.html) was glued together
when requested - I'd assumed they were built (static) in the same was as
the index.html files.

So I seem to have all the same sort of files as you - but still getting
the 404.

Error logs for apache 'point' at what would be the .html, in that same
directory, but can't find it:

script '/usr/share/eprints3/archives/test/html/en/view/year/2005.html'
not found or unable to stat, referer: http://research.i.ac.nz/view/year/

I've got some updating of the server to do tomorrow, so may wait until
that is all stabilised before worrying with it much more...

So far, certainly enjoying eprints - a very mature product with most all
of the features my polytechnic is looking for, I think...

Nick Wallingfordubuntu zombie processes
Tauranga, NZ


On 16/06/14 19:35, John Salter wrote:
Hi Nick,
Have you created any of these views since last restarting Apache (if
so, do a restart and check again)?

I think the lack of the '.html' pages is normal - they are glued
together with the template when requested.
In our ~/archives/ARCHIVEID/html/en/view/year directory, we have (for
2013):
2013.default.export
2013.default.include
2013.default.page
2013.default.title
2013.default.title.textonly
2013.export
2013.include
2013.page
2013.title
2013.title.textonly
2013.type.export
2013.type.include
2013.type.page
2013.type.title
2013.type.title.textonly

If that doesn't help, look in the Apache access/error logs and see if
the path reported for the 404 response matches where the files live
on disk.

Cheers,
John

-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk
[mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Nick
Wallingford
Sent: 16 June 2014 05:31
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] generate_views - no list pages...

Hi

New to the list, and to eprints.  I've spent time over the weekend
getting to know the structure of the application, so have a fair idea of
how things are working, but have hit a 'wall'.

When I use generate_views <rep name> it does create the various
index.html pages for creators, divisions, subjects, years - as it
should.

It creates the 'precursor' pages for the specific lists, such as
*.export, *.include, *.page, *.title, *.title.textonly - but it doesn't
make the resulting *.html files.

In the year folder, for instance, I have all of those for the (one year)
I have in the database: 2005 (as well as equivalent pages for
2005.default and 2005.type - but the only .html file in that folder is
the index.html

When you click, you just get the 404...

Am I missing something pretty obvious here?  As it getting to the
immediate step before, I thought maybe permissions?  But can't see
anything odd there - and it *is* creating the index.html, so can't see
that could be it.

But maybe someone can put me on the right track!

EPrints Release: 3.3.12
Database Driver: EPrints::Database::mysql [DBI 1.609, DBD::mysql 4.012]
Database Server Version: MySQL 5.1.41-3ubuntu12.10-log

The underlying Ubuntu is several steps old, but can't see that as
significant?

Thanks...

Nick Wallingford
Tauranga, NZ
*** 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/
*** EPrints developers Forum: http://forum.eprints.org/

*** 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/
*** EPrints developers Forum: http://forum.eprints.org/

*** 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/
*** EPrints developers Forum: http://forum.eprints.org/

*** 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/
*** EPrints developers Forum: http://forum.eprints.org/





*** 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/
*** EPrints developers Forum: http://forum.eprints.org/

*** 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/
*** EPrints developers Forum: http://forum.eprints.org/