IRC log for #koha, 2020-08-18

All times shown according to UTC.

Time S Nick Message
00:40 inlibro joined #koha
01:40 inlibro joined #koha
01:53 koha-jenkins Project Koha_19.11_D9 build #233: FAILURE in 2 min 15 sec: https://jenkins.koha-community[…]oha_19.11_D9/233/
02:40 inlibro joined #koha
03:32 tosca joined #koha
03:33 tosca left #koha
03:33 tosca joined #koha
03:34 tosca joined #koha
03:40 inlibro joined #koha
04:39 did joined #koha
04:40 inlibro joined #koha
04:44 edward joined #koha
04:45 Guest160 Anyone up at this time?
04:53 dcook_ Guest160: Somewhat
04:54 Guest160 I've got a koha  instance thats responding extremely slow. it was upgraded from a 2013 manual install version  to current package install
04:54 Guest160 that was a pain BTW
04:56 Guest160 I first tested out the process on my local vm with offline copy of prod then replicated online in production. nonetheless  the online version seems very slow
04:56 Guest160 i'm wondering if there are anything i can do to speedup response time
04:57 Guest160 i suspecting maybe indexes or so
04:59 Guest160 we have other test pages on that server that respond in milliseconds but the koha takes like close to 30secs per page
04:59 rangi do you have plack enabled
05:00 Guest160 I doubt it but how do i check?
05:00 chriss joined #koha
05:05 rangi you can check the apache config, if the plack lines are commented then nope. And in that case you will want to do sudo koha-plack --enable
05:05 rangi (followed by your instance name)
05:05 rangi then sudo koha-plack --start
05:05 rangi and restart apache2 and see if its faster
05:06 logbot joined #koha
05:06 Topic for #koha is now Welcome to #koha this channel is for discussion of the Koha project and software https://koha-community.org
05:07 pastebot joined #koha
05:07 Guest160 i was just following https://wiki.koha-community.org/wiki/Plack to do so
05:14 Guest160 Thank you all
05:14 Guest160 that aced it
05:15 Guest160 last question
05:16 Guest160 is ther a way to hide display of "Cost, normal purchase price" and "Cost, replacement price" from being displayed on the OPAC when a client selects the MARC view
05:17 Guest160 those arent included in the fields in column settings for OPAC holdingst
05:22 dcook_ Guest160: Yeah if you go into the MARC Bibliographic Frameworks, you should be able to hide those
05:22 dcook_ It's a bit fiddly though if you haven't done it before
05:22 Guest160 never done before
05:23 Guest160 but we want the staff to have access to that data internally just not the students
05:23 dcook_ Yeah, no worries
05:23 dcook_ First, figure out what framework is used for your record
05:23 dcook_ Then find that framework int he MARC Bibliographic Frameworks page in Administration
05:24 dcook_ Actually, I should be able to give you a little shortcu.t.
05:24 dcook_ Try out /cgi-bin/koha/admin/marc_subfields_structure.pl?o​p=add_form&tagfield=952&frameworkcode=#subgfield
05:25 dcook_ And unchecking "OPAC" in the "Advanced constraints" section
05:25 dcook_ This one too http://test1911admin.intersear[…]rkcode=#subgfield
05:25 dcook_ Well maybe not that full URL heh
05:25 dcook_ Try /cgi-bin/koha/admin/marc_subfields_structure.pl?o​p=add_form&tagfield=952&frameworkcode=#subgfield
05:25 Guest160 ok this will survive upgrades right?
05:26 dcook_ Yeah, upgrades don't touch these
05:26 dcook_ (for better or worse)
05:26 dcook_ And you'll need to make sure you've cleared your Memcached and restarted your Plack/starman server
05:27 dcook_ Actually... you might not need that
05:27 dcook_ The UI should take care of that these days
05:27 dcook_ So yeah make those 2 changes and you should be fine
05:31 Guest160 trying them now
05:32 Guest160 seem plack went back to sleep after i restart server
05:32 Guest160 stil a little better than before though
05:40 inlibro joined #koha
05:42 Guest160 thank you @dcook
05:42 Guest160 thank you dcook
05:42 Guest160 works a charm
05:48 cait joined #koha
05:58 dcook_ no worries
06:35 cait joined #koha
06:35 almost_Joubu joined #koha
06:36 cait1 joined #koha
06:37 cait1 good morning #koha!
06:41 inlibro joined #koha
07:02 lds joined #koha
07:16 magnuse \o/
07:41 inlibro joined #koha
07:45 lmstrand Hi all. I have an issue accessing a file in one of my perl modules.
07:45 lmstrand I could use koha-tmpl -folder but it's not a logical place to store these files I'm trying to read.
07:46 lmstrand The perl module I'm trying to access the file in is called when there's a request to a REST endpoint.
07:47 lmstrand Does this have something to do with plack? How would one configure a file or a folder to be accessible in another location than the template folder?
08:00 almost_Joubu a static file, like an image?
08:01 lmstrand yes, well a text file
08:02 almost_Joubu I mean, it's not a file the browser/client need to access, you need to access it from your perl code, right?
08:03 lmstrand yes
08:03 ashimema mornin'
08:04 almost_Joubu If the problem you face it to "guess" the path, the you can use FindBin (git grep '$Bin' for examples)
08:04 almost_Joubu then*
08:06 lmstrand I've tried this:
08:06 lmstrand use FindBin qw($Bin);
08:07 lmstrand use lib("/home/koha/Koha/REST/​V1/SIPoHTTP/Templates/");
08:07 lmstrand but I still get "file not found"
08:08 lmstrand in my code I try to do:
08:08 lmstrand my $template = HTML::Template->new(
08:08 lmstrand filename => 'siprespxml.tmpl',
08:08 lmstrand path     => '/home/koha/Koha/REST/V1/SIPoHTTP/Templates/',
08:08 lmstrand );
08:09 lmstrand hmmmm..... shouldn't I get at least some read or permission error, rather than "file not found"?
08:12 lmstrand my $template = HTML::Template->new(
08:12 lmstrand filename => 'siprespxml.tmpl',
08:12 lmstrand path     => ['/home/koha/Koha/koha-tmpl/'],
08:12 lmstrand );
08:12 lmstrand this works though....
08:12 lmstrand even if it's not defined with use lib.
08:12 lmstrand the folder
08:22 almost_Joubu use lib is to load module in a given directory
08:23 almost_Joubu FindBin was to get a file from your pm path, like: "$bin/../../some/where/else/file.tt"
08:23 almost_Joubu where $bin is the abs path of you pm/pl file
08:23 lmstrand oh
08:24 almost_Joubu which version of Koha are you using?
08:24 almost_Joubu still using HTML::Template?
08:25 lmstrand It's a finnish development branch.
08:26 lmstrand I incorporated the HTML::Template in my code since I need it to build a response by replacing a value inside the text file I'm trying to read.
08:27 lmstrand Should I use something else? Is it like deprecated/old code?
08:28 almost_Joubu we use template toolkit now, but it's just a placeholder to replace, I would:
08:28 almost_Joubu 1. file.txt contains: "something with a {{PLACEHOLDER}} and other things"
08:29 almost_Joubu 2. use File::Slurp qw(readfile); my $content = readfile("your/file.txt");
08:29 almost_Joubu 3. $content =~ s|{{PLACEHOLDER}}|$replacement_value|
08:29 almost_Joubu something like that
08:30 lmstrand yea sounds good.
08:30 lmstrand Are you trying to get rid of the HTML:Template module
08:30 lmstrand I mean have you already done it?
08:30 lmstrand since you asked if I was "still" using it
08:31 almost_Joubu bug 5917
08:31 huginn Bug http://bugs.koha-community.org[…]w_bug.cgi?id=5917 enhancement, PATCH-Sent (DO NOT USE), ---, gmcharlt, CLOSED FIXED, Switch Koha to use Template::Toolkit
08:32 almost_Joubu in 2011 :)
08:33 lmstrand lol
08:33 lmstrand well I'll switch to your solution and scratch HTML::Template
08:33 cait1 :)
08:34 cait1 has been a while...
08:34 * cait1 feels old now
08:34 lmstrand but the issue with reading the files still persists. I put them back to koha-tmpl for now.
08:34 lmstrand at least they're accessible
08:37 almost_Joubu are you trying to access a file from outside the koha root dir?
08:38 lmstrand in the modules di
08:38 lmstrand dir
08:38 almost_Joubu Use $Bin, the put the path in a variable and display it with print/warn. Then ls the abs path to make sure the path is correctly constructed
08:38 lmstrand /home/koha/Koha/REST/V1/
08:38 lmstrand ok.
08:41 inlibro joined #koha
08:50 lmstrand god damn, the path was just wrong.
08:50 lmstrand so many koha folders :D
08:51 lmstrand Thanks for the help.
08:51 lmstrand almost_Joubu:
08:52 almost_Joubu that's why it's important to die with the relevant error message :)
08:52 almost_Joubu you are welcome
08:53 dcook__ joined #koha
08:55 lmstrand the path ended up being /home/koha/Koha/Koha/REST/V1/SIPoHTTP/Templates/
08:55 lmstrand Missed one Koha
08:55 lmstrand :)
09:33 ashimema[m] joined #koha
09:41 inlibro joined #koha
10:04 almost_Joubu @later tell oleonard can you have a look at 25727 (do you think we can do better than that?) and bug 26234 (mostly for discussion so far) please
10:04 huginn almost_Joubu: The operation succeeded.
10:13 cait1 left #koha
10:21 SlackIntegration[m] joined #koha
10:21 aaru_swartz[m] joined #koha
10:21 manjukaliany[m] joined #koha
10:21 black23[m] joined #koha
10:21 urra[m] joined #koha
10:21 mtj[m] joined #koha
10:21 tuxayo joined #koha
10:25 khall_ joined #koha
10:31 khall joined #koha
10:41 inlibro joined #koha
11:12 oleonard Hi all
11:27 magnuse kia ora oleonard
11:34 cait joined #koha
11:34 did joined #koha
11:37 khall joined #koha
11:39 Joubu !
11:40 oleonard ! is good news Joubu?
11:41 inlibro joined #koha
11:44 Joubu yes
11:44 Joubu it "worked" and did not explode yet
11:45 Joubu I can pick the voltage, 19.5 or 18.5. My previous laptop was 19v...
11:45 Joubu pretty sure .5 won't change much but... why are they doing everything differently?
11:49 magnuse joined #koha
11:55 oleonard Joubu this Select2 width issue is perplexing
11:56 Joubu yes!
12:21 oleonard Oh I hadn't seen Bug 26145... Neat
12:21 huginn Bug http://bugs.koha-community.org[…]_bug.cgi?id=26145 enhancement, P5 - low, ---, jonathan.druart, Needs Signoff , Add the ability to attach a cover image at item level
12:22 * cait believes in the combined brainpowers of Joubu and oloenoard
12:23 Joubu oleonard: I reused the slider you wrote. I adapted it a bit, the result is very nice :)
12:29 oleonard I plan to test Bug 26234 today too Joubu. I think that's a good idea
12:29 huginn Bug http://bugs.koha-community.org[…]_bug.cgi?id=26234 normal, P5 - low, ---, jonathan.druart, Needs Signoff , Default DataTables must know our own classes
12:31 Joubu ideally we would need it for the DataTable constructor as well, but I have only managed to make it work for KohaTable
12:41 tcohen hi all
12:42 inlibro joined #koha
12:52 * oleonard should have been faster to submit his cover image drag-and-drop patch...
12:58 khall joined #koha
13:22 Guest160 Hey geys
13:22 Guest160 Good Day
13:22 Guest160 guys*
13:24 Guest160 few hours ago i enabled plack based on suggestions i got here. the issue i had was that my instance was taking upwards of 30secs to respond per page/click
13:24 Guest160 after i enabled the response time went into the minor milliseconds frame
13:26 Guest160 there was a scheduled server restart(this was scheduled as we thought it might have helped the slow response), this took place about 5-10 minutes of the plack was enabled. since the restart the response time has gone up into the 10-15seconds zone
13:28 Guest160 before enabling plack i did an apt upgrade which installed a later 20.x version of koha
13:28 Guest160 is there anything you can point me towards that'll help debug this current delayed response?
13:29 Joubu Guest160: search result or any pages?
13:29 Joubu go to the about page, and see if there is no warning there
13:31 khall_ joined #koha
13:32 Guest160 pages and searches
13:33 Guest160 in both staff and opac
13:33 Joubu like if you go to the home page, it will load during 30sec?
13:39 Guest160 yes
13:40 bdonnahue1 joined #koha
13:42 Guest160 fjust now i was in the aquisitions module and clicked the home breadcrumb and i couted to almost 35 on a regular count (maybe 20 secs)
13:42 inlibro joined #koha
13:44 khall joined #koha
13:47 magnuse joined #koha
13:54 caroline_catlady joined #koha
14:32 kidclamp Joubu++
14:42 inlibro joined #koha
14:44 lukeG joined #koha
14:45 bird32 joined #koha
15:20 lisettelatah joined #koha
15:42 inlibro joined #koha
15:43 margaret joined #koha
15:45 huginn News from kohagit: Bug 25906: Compiled CSS (late) <http://git.koha-community.org/[…]d0ed767859adb01fc>
15:45 huginn News from kohagit: Bug 6725: DBRev 20.06.00.025 <http://git.koha-community.org/[…]e05e4a47df4768026>
15:45 huginn News from kohagit: Bug 25867: DBRev 20.06.00.024 <http://git.koha-community.org/[…]0291f242fdad02400>
15:45 huginn News from kohagit: Bug 24884: Remove 'New list' button in 'Public lists' tab if OpacAllowPublicListCreat... <http://git.koha-community.org/[…]401e95b2419f60921>
15:45 huginn News from kohagit: Bug 25364: Undo change to 'None specified' <http://git.koha-community.org/[…]f5a0b6f0fae53eb3f>
15:45 huginn News from kohagit: Bug 6725: (QA follow-up) Slightly rephrase PatronDuplicateMatchingAddFields <http://git.koha-community.org/[…]0a169371dd17f4cab>
15:45 huginn News from kohagit: Bug 6725: Make patron duplicate matching flexible <http://git.koha-community.org/[…]50584932c5cb0b906>
15:45 huginn News from kohagit: Bug 16748: Add the ability to define due date in batch checkout <http://git.koha-community.org/[…]b527b73647baa8421>
15:45 huginn News from kohagit: Bug 26086: Add 'cron' to log viewer interface options <http://git.koha-community.org/[…]6f639009c9a2c7bcb>
15:45 huginn News from kohagit: Bug 25694: Add ability to delete a Marc Modification Template when viewing <http://git.koha-community.org/[…]0882aaa3bb7da6cb8>
15:45 huginn News from kohagit: Bug 20469: Remove effective parameter <http://git.koha-community.org/[…]fb294fdaa4e23f00f>
15:45 huginn News from kohagit: Bug 20469: Add Koha::Item->itemtype <http://git.koha-community.org/[…]41b73224d11598982>
15:45 huginn News from kohagit: Bug 22393: (QA follow-up) Typos and Filters <http://git.koha-community.org/[…]9dfee13217bfa6b58>
15:45 huginn News from kohagit: Bug 25945: Description of AuthoritySeparator is misleading <http://git.koha-community.org/[…]4c72791ee96addfae>
15:45 huginn News from kohagit: Bug 25654: Make the contact and non-patron guarantor sections separate on patron... <http://git.koha-community.org/[…]71ddc1ded8c395768>
15:45 huginn News from kohagit: Bug 25832: Add DataTables to MARC subfield structure admin page for authorities <http://git.koha-community.org/[…]b258335e70a20fbf7>
15:45 huginn News from kohagit: Bug 25364: Add "Other" to the gender options in a patron record <http://git.koha-community.org/[…]ddfa53d195e58f672>
15:45 huginn News from kohagit: Bug 22393: (follow-up) Corrections for QA feedback <http://git.koha-community.org/[…]c28d8a187cb238ad3>
15:45 huginn News from kohagit: Bug 25114: Remove duplicated logic from GetLoanLength() <http://git.koha-community.org/[…]7fc88bb3e79609b4c>
15:45 huginn News from kohagit: Bug 22393: Remove last remaining use of C4::Accounts::manualinvoice <http://git.koha-community.org/[…]e59feab5ed8dbb01e>
15:45 huginn News from kohagit: Bug 20469: Add item status to staff article request form <http://git.koha-community.org/[…]129a52d7416406a4c>
15:49 koha-jenkins Project Koha_Master_D11 build #64: FAILURE in 3 min 42 sec: https://jenkins.koha-community[…]ha_Master_D11/64/
15:53 koha-jenkins Project Koha_Master_U20 build #71: FAILURE in 3 min 15 sec: https://jenkins.koha-community[…]ha_Master_U20/71/
16:22 koha-jenkins Project Koha_Master_U18 build #869: FAILURE in 4 min 52 sec: https://jenkins.koha-community[…]a_Master_U18/869/
16:29 Joubu oops
16:29 huginn News from kohagit: Bug 6725: (follow-up) Make patron duplicate matching flexible <http://git.koha-community.org/[…]7517fe98cb3d2c8e4>
16:29 Joubu fixed now
16:37 juanyo joined #koha
16:38 juanyo Hello everyone, I have problems configuring the sending of emails, how should I do it with sendmail? thank you!
16:42 inlibro joined #koha
16:52 tcohen juanyo you can help teting bug 22343
16:52 huginn Bug http://bugs.koha-community.org[…]_bug.cgi?id=22343 new feature, P5 - low, ---, tomascohen, Failed QA , Add SMTP configuration options to Administration
16:55 oleonard But also perhaps someone could offer some help with juanyo's question? :)
16:56 tcohen juanyo: Koha basically uses an SMTP connection to localhost:25
16:56 tcohen so what we do at Theke, is setting a postfix service
16:56 tcohen that takes care of (for example) authenticating with our main SMTP servers and sends the messages through it
16:58 juanyo ah perfect I was thinking of using postfix as a possibility, but I must learn how ...
17:00 tcohen juanyo how about this: https://www.howtoforge.com/tut[…]-as-a-mail-relay/
17:01 tcohen that's what we do, with different servers, at least close to that
17:03 juanyo Thank you very much for the help, I will try and comment
17:03 bigbrovar joined #koha
17:04 tcohen our pleaure
17:05 oleonard tcohen++
17:05 tcohen oleonard++ # pointing me that I didn't answer the question he
17:21 khall_ joined #koha
17:42 inlibro joined #koha
18:01 koha-jenkins Yippee, build fixed!
18:01 wahanui Congratulations!
18:01 koha-jenkins Project Koha_Master_U18 build #870: FIXED in 1 hr 31 min: https://jenkins.koha-community[…]a_Master_U18/870/
18:07 cait joined #koha
18:23 Monica joined #koha
18:43 inlibro joined #koha
18:56 koha-jenkins Project Koha_Master_D11 build #65: STILL FAILING in 54 min: https://jenkins.koha-community[…]ha_Master_D11/65/
19:21 did joined #koha
19:43 inlibro joined #koha
19:58 bigbrovar joined #koha
20:09 koha-jenkins Yippee, build fixed!
20:09 wahanui Congratulations!
20:09 koha-jenkins Project Koha_Master_U20 build #72: FIXED in 1 hr 13 min: https://jenkins.koha-community[…]ha_Master_U20/72/
20:13 cait oleonard++ thx for the explanation
20:13 cait (data-order)
20:14 oleonard 👍️
20:20 cait oleonard: and your checkbox patches are boring :P
20:21 cait are there many more to go?
20:21 oleonard 14
20:22 cait we will get through it together...
20:23 kathryn joined #koha
20:24 cait hi kathryn
20:24 kathryn hello cait :)
20:27 cait :)
20:27 kathryn how are things with you cait?
20:27 cait busy, but I just got back from vacation, so i shoudl not complain too much :)
20:28 cait oh
20:28 kathryn joined #koha
20:28 kathryn whoops
20:28 cait :)
20:38 oleonard I would think the checkbox patches are preferable to the JS i18n ones in terms of testing
20:38 cait hm you make a good point
20:40 oleonard These fixing-up-old-templates patches always bring me around eventually to the reports dictionary and it makes me want to kill the feature yet again.
20:42 cait you know I was on your side there...
20:43 inlibro joined #koha
20:48 oleonard It's your motivation for being RM one day, cait. You can use your power to destroy.
20:52 cait i am too soft hearted...
20:52 cait and scared of librarians (even being one)
20:52 oleonard They are scary.
20:52 alexbuckley joined #koha
20:53 kathryn hi oleonard :)
20:53 Marie-Luce joined #koha
20:54 aleisha hello
20:54 oleonard Hi kathryn and aleisha
20:54 hayley joined #koha
21:02 bigbrovar joined #koha
21:09 did joined #koha
21:09 did joined #koha
21:10 did joined #koha
21:10 did joined #koha
21:11 did joined #koha
21:11 did joined #koha
21:12 did joined #koha
21:12 did joined #koha
21:13 did joined #koha
21:13 did joined #koha
21:14 did joined #koha
21:14 did joined #koha
21:15 did joined #koha
21:15 did joined #koha
21:16 did joined #koha
21:16 did joined #koha
21:17 did joined #koha
21:17 did joined #koha
21:18 did joined #koha
21:18 did joined #koha
21:23 aleisha joined #koha
21:23 cait oleonard: i see you found something to kill - will it suffice for now?
21:25 * cait had signed off down to 49 on monday night...
21:32 cait caroline_catlady: community day?
21:35 cait oleonard: was talking about the dead code bug... (no misunderstnadings later in the logs)
21:35 bigbrovar joined #koha
21:43 inlibro joined #koha
21:55 oleonard :D
21:55 * oleonard practices his evil cackle
22:03 * cait stares at tables
22:14 lukeG joined #koha
22:33 did joined #koha
22:33 did joined #koha
22:34 did joined #koha
22:34 did joined #koha
22:35 did joined #koha
22:35 did joined #koha
22:36 did joined #koha
22:36 did joined #koha
22:37 did joined #koha
22:37 did joined #koha
22:38 did joined #koha
22:38 did joined #koha
22:39 did joined #koha
22:39 did joined #koha
22:40 did joined #koha
22:40 did joined #koha
22:41 did joined #koha
22:41 did joined #koha
22:42 did joined #koha
22:42 did joined #koha
22:43 did joined #koha
22:43 did joined #koha
22:43 inlibro joined #koha
22:51 GeekRuthie joined #koha
22:52 bigbrovar joined #koha
22:55 nugged joined #koha
23:01 Guest160 hey guys
23:01 Guest160 regarding the slow issues ive asked about
23:01 Guest160 see the following video
23:02 Guest160 https://streamable.com/foih12
23:11 cait oleonard: still around?
23:16 * dcook_ checks the time
23:16 dcook Wow, late one for you cait
23:36 khall joined #koha
23:44 inlibro joined #koha

| Channels | #koha index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary