Definitely not a permissions problem - everything is run by the solr user,
which owns everything in the directories. I just can't figure out why the
default working directory is in opt rather than var (which is where it
should be according to a previous chain I was in).

But at this point I'm at a total loss, so maybe a fresh install wouldn't
hurt.


------
Dr. Amanda Shuman
Post-doc researcher, University of Freiburg, The Maoist Legacy Project
<http://www.maoistlegacy.uni-freiburg.de/>
PhD, University of California, Santa Cruz
http://www.amandashuman.net/
http://www.prchistoryresources.org/
Office: +49 (0) 761 203 4925


On Wed, Jun 6, 2018 at 11:09 PM, BlackIce <blackice...@gmail.com> wrote:

> One of the issues with the install script is that when its run by any user
> other than "solr" and installed into default directories,
> is that one might get ownership/permission problems.
>
> The easiest way to avoid these is by creating the "solr" user BEFORE
> installing Solr as a regular "Login-User",
> and then install Solr while being logged into this account (Or sudo, etc..)
> and then install Solr with NON default values for directories,
> have everything installed within the "Solr" users home directory space,
> that way everything belongs to the solr user, it is then easily modified,
> by just logging into the solr account and one doesn't have to worry
> about ownership/permissions.. ad if one makes a mistake it only affects
> the "solr" user...
>
> Ayway, just my 2 cents
>
> On Wed, Jun 6, 2018 at 9:41 PM, Amanda Shuman <amanda.shu...@gmail.com>
> wrote:
>
> > Thanks, I was able to do most of the but didn't reinstall... Still
> running
> > into an issue I think is related to current working directory. I guess
> > reinstalling might fix that?
> > Amanda
> >
> > On Wed, Jun 6, 2018, 17:27 Erick Erickson <erickerick...@gmail.com>
> wrote:
> >
> > > Assuming this is stand-alone:
> > > > find the data dir for the core (parent of the index dir)
> > > > find the config dir for the core
> > > > shut down Solr
> > > > "rm -rf data"
> > > > make any changes to the configs you want
> > > > start Solr
> > >
> > > As BlackIce said, reinstalling works too.
> > >
> > > If it's SolrCloud delete and recreate the collection, your configs
> > > will be in ZooKeeper. Of course update your configs with your changes
> > > before creating the new collection.
> > >
> > > Best,
> > > Erick
> > >
> > >
> > > On Wed, Jun 6, 2018 at 7:09 AM, BlackIce <blackice...@gmail.com>
> wrote:
> > > > I'm not a Solr guru....
> > > >
> > > > I take i that you installed Solr with the install script....
> > > > then it installs into a dir where normal users have no right to
> access
> > > the
> > > > necessary files...
> > > >
> > > > One way to circumvent this is to un-install Solr and then re-install
> > > > without using the default and have it install into a directory where
> > the
> > > > solr and login user have access to.
> > > >
> > > > Deleting a Core is a simple as deleting its directory...
> > > >
> > > > Hope this helps - good luck
> > > >
> > > > On Wed, Jun 6, 2018 at 3:59 PM, Amanda Shuman <
> amanda.shu...@gmail.com
> > >
> > > > wrote:
> > > >
> > > >> Oh, and I also have a related question - how can I change my CWD
> > > (current
> > > >> working directory)? It is set for the /opt/ folder and not /var/
> and I
> > > >> think that's screwing things up...
> > > >> Thanks!
> > > >> Amanda
> > > >>
> > > >> ------
> > > >> Dr. Amanda Shuman
> > > >> Post-doc researcher, University of Freiburg, The Maoist Legacy
> Project
> > > >> <http://www.maoistlegacy.uni-freiburg.de/>
> > > >> PhD, University of California, Santa Cruz
> > > >> http://www.amandashuman.net/
> > > >> http://www.prchistoryresources.org/
> > > >> Office: +49 (0) 761 203 4925
> > > >>
> > > >>
> > > >> On Wed, Jun 6, 2018 at 3:35 PM, Amanda Shuman <
> > amanda.shu...@gmail.com>
> > > >> wrote:
> > > >>
> > > >> > Hi all, I'm a bit of a newbie still but have clearly screwed
> > something
> > > >> > up... so I think what I need to do now is to delete a core (saving
> > > >> current
> > > >> > conf files as-is) then re-add/re-create the core and re-index.
> (It's
> > > not
> > > >> a
> > > >> > big site and it's not public yet, so I'm not concerned about
> taking
> > > >> > anything down during this process.)
> > > >> >
> > > >> > So what's the quickest way to do this:
> > > >> >
> > > >> > 1. Create a new core at command line with different name, move all
> > > conf
> > > >> > files into that (?)
> > > >> > 2. Delete the current core at command line, but what's the script
> > for
> > > >> > doing that to make sure it's totally gone? I see different
> responses
> > > >> > online... not sure what's the "best practice" for this...
> > > >> >
> > > >> > Thanks!
> > > >> > Amanda
> > > >> >
> > > >> >
> > > >> >
> > > >> > ------
> > > >> > Dr. Amanda Shuman
> > > >> > Post-doc researcher, University of Freiburg, The Maoist Legacy
> > Project
> > > >> > <http://www.maoistlegacy.uni-freiburg.de/>
> > > >> > PhD, University of California, Santa Cruz
> > > >> > http://www.amandashuman.net/
> > > >> > http://www.prchistoryresources.org/
> > > >> > Office: +49 (0) 761 203 4925
> > > >> >
> > > >> >
> > > >>
> > >
> >
>

Reply via email to