Re: [Koha] Koha 3.20 and Plack Server

2015-10-04 Thread Craig Butosi
Hi all,

Progress. James' suggestion to change the  instances to && in 
opac-plack.sh (as well as intranet-plack.sh, unlock-intranet-plack.sh and 
unlock-opac-plack.sh) did the trick - no more syntax errors. However, my output 
after restarting koha-common is now:

root@vps43351:~service koha-common restart
* Restarting Koha ILS koha-common
Stopping Zebra server for library
Stopping Plack servers for library
Servers stopped
SIP server for library not running.
Starting Zebra server for library
Starting OPAC Plack server for library
Waiting for OPAC Plack socket for library
Couldn't open log file "/var/log/koha/library/opac-error.log" [Permission 
denied]. at /usr/share/perl5/Net/Server.pm line 212.
OPAC Plack socket open for library
Starting Intranet Plack server for library
Waiting for Intranet Plack socket for library
Couldn't open log file "/var/log/koha/library/intranet-error.log" [Permission 
denied]. at /usr/share/perl5/Net/Server.pm line 212.
Intranet Plack socket open for library
This looks like a permissions issue, but I am unsure about how to properly 
correct this as I thought that working in root would avoid any such issue. Both 
error logs have root as their owner with 644 permission (the only other owner 
being library-koha on my server)

SO,

At this point, I have the following outcomes:

1. Visiting library.craigbutosi.ca:5000 gives an "unable to connect" browser 
page (apache configuration issue perhaps?);
2. Running plackup to test Plack using

 KOHA_CONF=/etc/koha/sites/library/koha-conf.xml 
PERL5LIB=/usr/share/koha/lib sudo -u library-koha -E plackup --reload 
/usr/share/koha/misc/plack/koha.psgi

and then visiting library.craigbutosi.ca:5000 leads to a (never before seen) 
"not found" message on the page; the command-line output after running plackup 
is

174.118.34.28 - - [04/Oct/2015:22:35:38 -0400] "GET / HTTP/1.1" 404 9 "-" 
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0"

I get the impression that I need to configure my apache sites file for a 
redirect, as mentioned on http://wiki.koha-community.org/wiki/Plack, no?

Thanks for your time everyone!

Craig Butosi, MA, MLIS, B Mus (Hons.)
LIBRARY SERVICES MANAGER
the royal conservatory
TELUS Centre for Performance and Learning
273 Bloor Street West Toronto, ON M5S 1W2
416.408.2824 x338
www.rcmusic.ca


From: Koha [koha-boun...@lists.katipo.co.nz] on behalf of Mason James 
[m...@kohaaloha.com]
Sent: Sunday, October 04, 2015 8:30 PM
To: koha@lists.katipo.co.nz
Subject: Re: [Koha] Koha 3.20 and Plack Server

On 15-10-5 12:13 pm, Craig Butosi wrote:
> Hi all,
>
> I'm tinkering with Plack on Koha 3.20.04 (Ubuntu x64 14.04 LTS). I followed 
> the (somewhat outdated) instructions here: 
> http://www.generalthreat.com/2013/04/serving-koha-common-with-plack/ and made 
> sure that my pathways were corrected in the scripts. I'm using the port 5000 
> option rather than the unix socket option. After restarting koha-common, I 
> received the following output:
>
>

> /usr/share/koha/misc/plack/opac-plack.sh: 5: 
> /usr/share/koha/misc/plack/opac-plack.sh: Syntax error: "&" unexpected

> The above looks as if Plack is up and running, but the syntax warning for 
> opac-plack.sh is puzzling. I'm not entirely sure whether there is a syntax 
> error in the code; everything looks correct, but I could be missing something 
> here. Does anyone have any suggestions or advice on how to proceed? I'd love 
> to get Plack up and running to see the performance difference. If there's a 
> better way to install Plack or configure it for 3.20, I am all ears too!
>
> My opac-plack.sh file is as follows:
>
> #!/bin/sh
> # --max-requests = decreased from 1000 to 50 to keep memory usage sane
> # --workers = number of cores on machine
>
> test ! -z "$1"  site=$1  shift

hmm, i think line 5 should be..
test ! -z "$1" && site=$1 && shift

not...
test ! -z "$1"  site=$1  shift



___
Koha mailing list http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha


Note: This email message and any attachments are intended only for the use of 
the individual to which it is addressed, and may contain information that is 
privileged, confidential and exempt from disclosure under applicable law. If 
the recipient of this email is not the intended recipient (or the employee or 
agent responsible for delivering the email to the intended recipient), you are 
hereby notified that any review, dissemination, distribution or copying or 
other use of this message is strictly prohibited. If you have received this 
communication in error, please notify the sender immediately by return email 
and delete this message and attachments from your system, thank you.
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] Koha 3.20 and Plack Server

2015-10-04 Thread Robin Sheat
Craig Butosi schreef op zo 04-10-2015 om 23:13 [+]:
> I'm tinkering with Plack on Koha 3.20.04 (Ubuntu x64 14.04 LTS). I
> followed the (somewhat outdated) instructions here:
> http://www.generalthreat.com/2013/04/serving-koha-common-with-plack/ and made 
> sure that my pathways were corrected in the scripts. I'm using the port 5000 
> option rather than the unix socket option. After restarting koha-common, I 
> received the following output:

Those instructions are probably too out of date.

This is probably more current:

http://wiki.koha-community.org/wiki/Plack

-- 
Robin Sheat
Catalyst IT Ltd.
✆ +64 4 803 2204
GPG: 5FA7 4B49 1E4D CAA4 4C38  8505 77F5 B724 F871 3BDF


signature.asc
Description: This is a digitally signed message part
___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha


Re: [Koha] Disable displaying items from other locations (independent branches)

2015-10-04 Thread Katrin Fischer
Hi Gregor,

I think the link in the pull down always displays - the question would
be, if you can actually edit the item on the page you reach from there,
even if it's from another library. So the next step, would be to check
and verify that.

Hope this helps,

Katrin


Am 02.10.2015 um 15:50 schrieb le-grex:
> Am 02.10.2015 um 08:35 schrieb Katrin Fischer:
>>
>> Hi Gregor,
> 
> Hi Katrin,
> 
>>
>> I think Koha can not block libraries from editing each others
>> bibliographic records, as the records don't belong to a library, but are
>> shared.
>>
> 
> Mh, guess i got the whole independent Branches-Thing wrong.
> 
>> For the items - I think that should be working. There was a bug recently
>> about the edit links next to the items not respecting the
>> IndependentBranches system preference. Could that be what you see?
>>
>> Do you see edit links next to each item when you go to the "edit items"
>> screen from the detail page's toolbar?
> 
> I'm not sure what you mean (especially where), so i made a screenshot of
> a detailed view of a book, that was addes by another branch/user. In my
> understanding the logged in user should not be able to edit the items,
> but the only thing greyed out is "Delete record" (Titel löschen).
> 
> Hope i didn't get the translation wrong ;)
> 
>>
>> Hope this helps,
>>
>> Katrin
>>
> 
> Thank you a lot,
> 
> Gregor
> 
>> Am 30.09.2015 um 13:08 schrieb le-grex:
>>> Am 28.09.2015 um 22:35 schrieb Katrin Fischer:
 Hi Gregor,
>>>
>>> Hi Katrin,

 did you check the staff's permissions? Editing other branches' items
 would be allowed for superlibrarians I think.

>>>
>>> yes i did. No one of the staff members has superlibrarian rights (exept
>>> for me as kind of admin).
>>> I tried creating a second instance, where i made the user category more
>>> accurate, like:
>>>
>>> 2 Libraries result in two Staff-Categories -> and 2 Staff users, each of
>>> them has another "home library". I still can edit items and
>>> bibliographic data of media another library-user added...
>>>
>>> The only effect of independent branches i see is that i can't search for
>>> users/patrons of another library as the one logged in to the staff
>>> interface.
>>>
 Hope this helps,
>>>
>>> Thank you!
>>>

 Katrin

>>>
>>> Gregor
>>> ___
>>> Koha mailing list  http://koha-community.org
>>> Koha@lists.katipo.co.nz
>>> https://lists.katipo.co.nz/mailman/listinfo/koha
>>>
>>
>> ___
>> Koha mailing list  http://koha-community.org
>> Koha@lists.katipo.co.nz
>> https://lists.katipo.co.nz/mailman/listinfo/koha
>>
> 
> 
> ___
> Koha mailing list  http://koha-community.org
> Koha@lists.katipo.co.nz
> https://lists.katipo.co.nz/mailman/listinfo/koha
> 

___
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
https://lists.katipo.co.nz/mailman/listinfo/koha