What user account to use when re-indexing Zebra
It's unclear to me what user account I'm supposed to be using to rebuild the Zebra index. I have an Ubuntu user called 'koha' that was inherited from 10.04, and when I created a new instance, another user 'bcmckoha14' was created. Am I supposed to be running the Zebra index rebuild as one of those users? I can 'su' to these accounts, but when I try to rebuild the index, it prompts me for a sudo password and then complains that those user accounts are not sudoers (which of course they shouldn't be.) So just how exactly is this supposed to be accomplished? Any insight would be much appreciated. JCE
Hi Joel, 1. What version of Koha? 2. Type of install? (packages/tar.gz/git) 3. How do you try to rebuild the index? Regards, Bernardo -- Bernardo Gonzalez Kriegel bgkriegel@gmail.com On Fri, May 2, 2014 at 6:24 PM, Joel Ewy <joel.ewy@gmail.com> wrote:
It's unclear to me what user account I'm supposed to be using to rebuild the Zebra index. I have an Ubuntu user called 'koha' that was inherited from 10.04, and when I created a new instance, another user 'bcmckoha14' was created. Am I supposed to be running the Zebra index rebuild as one of those users? I can 'su' to these accounts, but when I try to rebuild the index, it prompts me for a sudo password and then complains that those user accounts are not sudoers (which of course they shouldn't be.) So just how exactly is this supposed to be accomplished?
Any insight would be much appreciated.
JCE
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Bernardo Gonzalez Kriegel <bgkriegel@...> writes:
Hi Joel,
1. What version of Koha? 2. Type of install? (packages/tar.gz/git)
This is an upgrade from a previous version to 3.14, Debian packages installed on Ubuntu 12.04.
3. How do you try to rebuild the index?
As per the instructions at: http://wiki.koha-community.org/wiki/Moving_an_installation_from_a_regular_in... sudo koha-rebuild-zebra -f -v <instancename> After trying this, and doing some more research on the Web, I ran across the suggestion that this would foul up the file permissions. Having a more fleshed-out explanation of the way the parts interact would help. JCE
Regards, Bernardo
Joel Ewy schreef op di 06-05-2014 om 00:44 [+0000]:
As per the instructions at: http://wiki.koha-community.org/wiki/Moving_an_installation_from_a_regular_in...
sudo koha-rebuild-zebra -f -v <instancename>
After trying this, and doing some more research on the Web, I ran across the suggestion that this would foul up the file permissions. Having a more fleshed-out explanation of the way the parts interact would help.
I hope that you didn't actually see that suggestion anywhere, it's quite wrong. Doing 'sudo misc/migration_tools/rebuild_zebra.pl ....' can mess up permissions. Doing 'sudo koha-rebuild-zebra ....' never should. All the koha-* tools know how to set permissions correctly, and running them with sudo is the recommended way. -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5FA7 4B49 1E4D CAA4 4C38 8505 77F5 B724 F871 3BDF
Hi, my understanding is that if you use koha-rebuild-zebra then you won't have problems, it executes using the owner of the instance. Regards, Bernardo -- Bernardo Gonzalez Kriegel bgkriegel@gmail.com On Mon, May 5, 2014 at 9:44 PM, Joel Ewy <joel.ewy@gmail.com> wrote:
Bernardo Gonzalez Kriegel <bgkriegel@...> writes:
Hi Joel,
1. What version of Koha? 2. Type of install? (packages/tar.gz/git)
This is an upgrade from a previous version to 3.14, Debian packages installed on Ubuntu 12.04.
3. How do you try to rebuild the index?
As per the instructions at:
http://wiki.koha-community.org/wiki/Moving_an_installation_from_a_regular_in...
sudo koha-rebuild-zebra -f -v <instancename>
After trying this, and doing some more research on the Web, I ran across the suggestion that this would foul up the file permissions. Having a more fleshed-out explanation of the way the parts interact would help.
JCE
Regards, Bernardo
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
participants (3)
-
Bernardo Gonzalez Kriegel -
Joel Ewy -
Robin Sheat