Just to elaborate, there are two basic solutions to your permissions problem:
1.) Run VuFind while logged in as the user that owns the /usr/local/vufind/solr directory tree. (i.e. sudo su vufind_owner; ./vufind.sh start)
2.) Change the owner of the /usr/local/vufind/solr directory tree to the user you want to use to run VuFind. (i.e. chown -R vufind_owner:vufind_owner /usr/local/vufind/solr)
There is no specific user that needs to run VuFind - it is up to you. If this is a test system, it's usually simplest to run VuFind in your own personal account. If you're going into production, it's probably best security practice to create a VuFind-specific user and then use that account to run VuFind and set up any cron jobs for automating VuFind-related tasks.
From: Greg Pendlebury [mailto:greg.pendlebury@...]
Sent: Monday, October 25, 2010 9:44 PM
To: Andy Kelly
Subject: Re: [VuFind-General] Solr indexing
You are correct, Jetty is the java web server for your Solr index, and of course Apache is the web server for the PHP VuFind install.
It looks like the user you started the system as doesn't have write access to the location specified: '/usr/local/vufind/solr/stats/index'
Interestingly enough when I copied that path there was a control character screwing up something just before 'index'. It might just be a side effect of emailing, but it's worth checking it's not also in your config file.
On 26 October 2010 09:27, Andy Kelly <a.m.kelly@...>> wrote:
I'm working on getting VuFind up and running for my library. I'm only able to work in fits and starts at the moment but I'd gotten past install and to importing records and have seem to have run into a problem.
I'm getting an error message that the files that Solr needs to create during startup can't be made due to a problem with permissions. What should these be set to? Is there a system user or group I need to change or add that I've neglected? I can post the startup script's output, if that's likely to be helpful, though the following appears to be typical:
Oct 25, 2010 11:24:05 PM org.apache.solr.core.SolrCore initIndex
WARNING: [stats] Solr index directory '/usr/local/vufind/solr/stats/index' doesn't exist. Creating new index...
Oct 25, 2010 11:24:05 PM org.apache.solr.common.SolrException log
SEVERE: java.lang.RuntimeException: java.io.IOException: Cannot create directory: /usr/local/vufind/solr/stats/index
Any help you could be is greatly appreciated.
As a more general newbie question I'm curious about how solr works and find myself intimidated by the documentation, is there a good place to start reading up on this at a slightly more general level than the solr wiki? I also haven't been able to intuit what roll jetty plays within Vufind, a briefly goggling suggests it serves http, I guess it's doing some sort of bridging from Vufind and the Solr index since pages at server:8080 are served by jetty? Thanks for taking the time to answer my questions and sate my curiosity.
~Andrew M. Kelly
MLIS Degree Candidate, Simmons GSLIS 2011
Evening Library Assistant, Bay State College
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
VuFind-General mailing list