Open Source Integrated Library System

Evergreen on IRC

#evergreen Logs for Thursday, October 13th, 2011

< Wednesday, October 12th, 2011Raw Log FileFriday, October 14th, 2011 >
#TimeNickMessage
#00:51:01dbs has quit IRC
#02:05:48Callender has quit IRC
#02:06:07gdunbar has quit IRC
#02:06:38Dmagick has quit IRC
#02:06:40mtate has quit IRC
#02:06:51leed has quit IRC
#02:06:59phasefx has quit IRC
#02:26:16gdunbar has joined #evergreen
#02:27:09Dmagick has joined #evergreen
#02:27:09mtate has joined #evergreen
#02:27:34leed has joined #evergreen
#02:29:53phasefx has joined #evergreen
#02:38:23Callender has joined #evergreen
#03:27:25atz has quit IRC
#03:31:26edoceo has quit IRC
#03:33:45Callender has quit IRC
#06:01:07lisah_ has joined #evergreen
#06:28:26lisah_ has quit IRC
#07:43:11collum has joined #evergreen
#08:34:09Shae has joined #evergreen
#08:36:29mrpeters-islfair enough, dbs
#08:39:44tsbere@later tell dbs For Vandelay we needed to add PerlSetVar OILSWebForceValidXML "true" to the apache config (via a <Location /eg/vandelay/vandelay> block) to get Vandelay to work. Alt solution may be https://bugs.launchpad.net/evergreen/+bug/860676
#08:39:44pinesol_greentsbere: The operation succeeded.
#08:41:14raynerj has joined #evergreen
#08:55:12csharp@later tell dbs I tested the install_pgsql_server_debs_91 target on squeeze and it installed correctly -FYI
#08:55:12pinesol_greencsharp: The operation succeeded.
#08:56:04tsbereoh goody, it works on more than just my Ubuntu machines. :D
#08:56:30csharp;-)
#09:02:51Dyrcona has joined #evergreen
#09:03:36csharp@later tell dbs Thanks for the DB role information ;-)
#09:03:36pinesol_greencsharp: The operation succeeded.
#09:13:22mrpeters-islquestion about ils_events.xml -- is there a "standard" way of linking these up to error messages in the client? i've been poking at circ/util.js and some of the others that throw errors based on ils_events id's but they all appear to use a network.simple_request which, I'm not sure I have in the user/mrpeters-isl/prevent_user_delete_with_open_xacts branch
#09:14:22mrpeters-islso, perhaps i can define a constants.js entry for that API call. still a little fuzzy on how the staff client gets it's data though.
#09:16:33kmlussier has joined #evergreen
#09:22:14Dyrconamrpeters-isl: Don't worry about being fuzzy on how the staff client gets its data. It does so in a couple of ways, so most of us are fuzzy about it, too. :)
#09:22:37DyrconaOr, I should say, most of the rest of us.... ;)
#09:23:39dbs has joined #evergreen
#09:24:53Dyrconamrpeters-isl: Add the appropriate entries to the api object in constants.js would be a good way to set up to make the call using network.simple_request. You could also just hard code the application and method in the location where you make the call, but I think adding the constants would be preferred.
#09:26:12mrpeters-islDyrcona: here's where i've tried to stab my way to
#09:26:13mrpeters-islhttp://git.evergreen.lib.in.us/git/?p=Evergreen/.git;a=commitdiff;h=574766d8006a14542d466574cc4dd47844c4d184
#09:26:32mrpeters-islwe already have FM_AU_DELETE, so no need for something new
#09:28:36Dyrconamrpeters-isl: The check looks OK, but I'm not a staff client expert.
#09:28:55DyrconaYou do have an extra ' in the getFormattedString() call.
#09:29:06Callender has joined #evergreen
#09:29:22DyrconaAlso, unless staff.patron.display.cmd_patron_delete.open_xact has a % substitution in it, you probably want just getString().
#09:30:21mrpeters-islyep saw that typo...fixed
#09:30:54mrpeters-islrather than getFormattedString?
#09:31:33akilsdonk has joined #evergreen
#09:31:38Dyrconatake a look at http://git.mvlcstaff.org/?p=jason/ILS.git;a=commitdiff;h=94854496f92c59dc4734742ea3c20a7f3c88657d to see how to use getFormattedString().
#09:32:31mrpeters-islaha i see
#09:35:15mrpeters-islyay! !! This software has encountered an error. Please tell your friendly system administrator or software developer the following:\npatron/display.xul\nError: Could not create namespace[patron.display]: SyntaxError: missing ) after switch expression\n
#09:36:01dbsSounds like you're missing a ) after a switch expression
#09:36:52dbstsbere++ # thanks for the heads-up
#09:36:54mrpeters-islgee, you don't say
#09:37:07dbscsharp++ # thanks for the testing
#09:37:57dbsI can't tell when you're asking for help
#09:38:00bgoble has joined #evergreen
#09:41:13dbs grabs 860676 for testing
#09:44:06sfortin has joined #evergreen
#09:44:59mrpeters-islwell, lets see if i can ask this better then. Still no alert message with http://git.evergreen.lib.in.us/git/?p=Evergreen/.git;a=commitdiff;h=9b570c19f47a930bbfbbd7dbb794fdb645e2a510. I can't tell if I'm even getting to my test or not.
#09:47:55phasefxmrpeters-isl: you need to assign the return value of your simple_request call to a variable, and then test it
#09:48:43phasefxsomething like var robj = obj.network....; if (typeof robj.ilsevent...
#09:48:47mrpeters-islsomething like this: var robj = g.network.simple_request('FM_MB_VOID',[ses()].concat(util.functional.map_list(mb_list,function(o){return o.id();}))); ?
#09:49:06phasefx nods
#09:51:16mrpeters-isli assume between the [ ] is where my session, userid, destuserid would go?
#09:52:08mrpeters-island can i use the previously defined dest_usr.id() and obj.patron.id()?
#09:52:47jeffother than docgen.xsl, is there code out there to either parse the source or use introspection on a running system to generate a list of ap? I'm guessing *something* was used to generate things like this: evergreen-ils.org/dokuwiki/doku.php?id=backend-devel:open-ils_storage_methods_asset
#09:53:01jeffI thought I had seen it before, but I'm coming up empty.
#09:53:09Dmagick has quit IRC
#09:53:45mrpeters-islsomething like: var obj = g.network.simple_request('FM_AU_DELETE',[ses(), obj.patron.id(), dest_usr.id()]);
#09:54:28phasefxmrpeters-isl: you don't need to change the existing obj.network.simple_request call itself, just put a var robj = in front of it, and then replace obj with robj in your following if statement
#09:54:56phasefxso let it use params like it's doing
#09:55:23phasefxdest_usr.id() may or may not actually get sent
#09:55:48mrpeters-islwell, it really doesn't have to since it fails if any bills are open regardless of if there is a destination user
#09:56:33mrpeters-islbut alas, sadly, no error -- just a refresh of the patron summary occurs
#09:56:52mrpeters-islso it's going past my test to obj.refresh_all();
#09:57:04phasefxjust add this after the call for debugging purposes: alert(js2JSON(robj));
#09:57:06mrpeters-isloh, i missed one obj
#09:57:57mrpeters-islhmm nope now i don't even get a refresh
#09:58:51mrpeters-islbut, the good news i do get my error in the alert
#09:59:16tsberejeff: Could be a formatted output from an introspect call
#09:59:57mrpeters-isl{"stacktrace":"/usr/local/share/perl/5.10.1/OpenILS/Application/Actor.pm:3527 /usr/local/share/perl/5.10.1/OpenSRF/Application.pm:564 /usr/share/perl5/Error.pm:416","ilsevent":"2004","pid":"7794","desc":"The user you have attempted to delete cannot be deleted because it has open circulations and/or unpaid bills.","textcode":"ACTOR_USER_DELETE_OPEN_XACTS","servertime":"Thu Oct 13 09:58:37
#09:59:57mrpeters-isl2011"}
#10:01:17adbowling-isl has joined #evergreen
#10:01:58phasefxmrpeters-isl: you're very close
#10:02:01mrpeters-isllatest code: http://git.evergreen.lib.in.us/git/?p=Evergreen/.git;a=commitdiff;h=dd3620a076b9b6bfa0a8b21e33c91e76fe7bb985
#10:02:21mrpeters-islyep, i feel a bit better now that the test is at least working
#10:02:32mrpeters-isljust want to make sure the error is simple for the end user
#10:02:52phasefxmrpeters-isl: just get rid of that return; and you should be good
#10:03:07phasefxor put the return after the alert
#10:03:25mrpeters-isloh ok, so i was ending things before they got to the patronStrings
#10:03:26phasefxif you're wanting to not refresh
#10:03:34phasefxyeap
#10:03:40mrpeters-islawesome
#10:03:59mrpeters-islphasefx++ Dyrcona++ thanks much now LP872862 can REALLY be finished
#10:05:30jefftsbere: true -- since you can introspect an entire service, and it's just json... i suppose there's not much to it.
#10:35:52artunit has quit IRC
#10:46:01darshan has joined #evergreen
#10:49:04darshanmissing dependency: memcached is needed by package perl-memcached-libmemcached
#10:49:18darshanplz tell how to solve this
#10:49:28Dyrconadarshan: Install memcached.
#10:49:43darshani installed
#10:49:50darshanbut
#10:50:18darshanstill this error not getting solved
#10:50:32Dyrconadarshan: maybe it needs to be running? try starting memcached.
#10:50:45darshancommand for it
#10:50:47darshan?
#10:51:16Dyrconadarshan: depends on your Linux distro.
#10:51:27darshanits hrel
#10:52:31dbss/r/l/
#10:55:40darshani have started memcached n have run make -f....command but yet receiving same error
#10:56:26dbsdarshan: does it say "memcached is needed" or "libmemcached"?
#10:57:08dbsalso, you might need memcached-dev / libmemcached-dev or something like that for header files
#10:57:41darshanit says memcached is needed by perl-libmemcached
#10:58:22dbs waits for the RHEL experts in this community to jump in and offer assistance
#10:58:41darshanhmm
#10:58:44dbsdarshan: try installing "memcached-devel" (that's what the package is called on fedora)
#10:58:59darshanhow do so
#10:59:17darshanok trying it
#11:10:59darshan<dbs> done downloading it via wget command now wat to do
#11:11:45dbsdarshan: umm. I think on RHEL you should be able to run (as root): "yum install memcached-devel.rpm" or whatever
#11:12:01dbs doesn't really know RHEL
#11:12:10dbsmost people around here know Debian or Ubuntu
#11:12:15darshanok m trying dat too
#11:13:11darshanits says nothing to d
#11:13:13darshano
#11:15:10artunit has joined #evergreen
#11:15:32dbsrpm -iv memcached-devel.rpm (where "memcached-devel.rpm" represents the name of the file you downloaded)
#11:17:22darshanok
#11:18:19tsbereFloating points numbers are a PITA.
#11:19:27darshanits showing no such directory present
#11:21:31Dyrcona grumbles about Launchpad....
#11:22:53dbs is now 100% convinced that merge_record_assets() is broken when it comes to located URIs
#11:25:29bshumBroken? URIs? :(
#11:33:50sylvarI apologize if this is coming out of left field, but how easy would it be to create a trigger for, say, actor.usr_setting that would use a PL/Perl function invoking is_valid_json from Test::JSON? It occurs to me that maybe it ought to be impossible to insert non-JSON into a field that's expected to have only JSON in it.
#11:34:21tsberesylvar: evergreen.is_json in the DB?
#11:34:49tsberesylvar: https://bugs.launchpad.net/evergreen/+bug/847973 looks to do that for ou settings
#11:34:54sylvarah, cool
#11:34:57sylvartsbere++
#11:37:18dbshah, merge_record_assets() is going through too many loops; at one point it has a reasonable value for uri_datafield, and then it goes through some more loops to concatenate a NULL (which turns everything NULL, naturally)
#11:38:09dbshello, COALESCE
#11:41:27darshanis there ne1 can help me out related to red hat distribution prb
#11:42:10darshanmissing-dependency needed by perl-libmemcached
#11:44:54darshanmissing-dependency needed by perl-libmemcached
#11:49:00james has joined #evergreen
#11:49:19james missing dependency: memcached is needed by package perl-memcached-libmemcached
#11:49:20james is now known as Guest70372
#11:49:53Guest70372 missing dependency: memcached is needed by package perl-memcached-libmemcached
#11:50:11dbs is freaked out
#11:50:21mrpeters-isldarshan/james/Guest70372 -- no need to keep chaning nicks to try to get an answer
#11:50:42Guest70372 has quit IRC
#11:51:01mrpeters-islRed Hat isn't as widely used in the Evergreen community, as say Ubuntu/Debian, so there are less people available to answer. Remember, chat is logged so someone will respond if they can.
#11:51:04darshanplz help me out i m new to this process
#11:51:25mrpeters-islIf you don't want to wait around for an answer, just go ahead and post your answer to the list serves to give people more time to respond.
#11:51:30Dyrconamy suggestion is reinstall everything from scratch.
#11:51:45mrpeters-islthat dependency is installed with OpenSRF, if i recall
#11:52:08darshanno it doesnt
#11:52:21darshanaccording to pdf
#11:52:25mrpeters-islso, you likely missed something when you ran make -f src/extras/Makefile.install rhel
#11:52:30darshanat 3rd step
#11:52:47darshannaaa not at all
#11:54:01mrpeters-isldarshan: i disagree
#11:54:03mrpeters-islsee http://git.evergreen-ils.org/?p=working/OpenSRF.git;a=blob;f=src/extras/Makefile.install;h=f49a4776a8413444798b79c90dd02b1121291600;hb=master
#11:55:00mrpeters-islline 196, i believe -- libmemcached gets installed
#11:55:11dbs@later tell eeevil user/dbs/fix-merge-record-assets @ working is needed; I'll open an LP bug for it
#11:55:11pinesol_greendbs: The operation succeeded.
#11:56:02mrpeters-isli'm not very familiar with Red Hat's package repository, but it looks to me like perl-Memcached-libmemcached is available in .rpm form
#11:56:43darshandats the error
#11:56:44darshanmrpeters-isl:missing dependency: memcached is needed by package perl-memcached-libmemcached
#11:56:51darshani hav install memcached also
#11:57:12mrpeters-isldarshan: perl-Memcached-libmemcached not perl-memcached-libmemcached perhaps?
#11:57:54mrpeters-isli think "yum install perl-Memcached-libmemcached" would grab it
#11:58:44mrpeters-islBut you likely need to get memcached installed. I don't think it is.
#11:58:45darshanokm trying it
#12:00:06darshan-------------------------------------------------------------------------------------------------------------------
#12:00:43darshanmrpeters-isl-when i install usng yum install perl-Memcached-libmemcached its again giving me same error
#12:01:04mrpeters-islwell, darshan, it's pretty apparent that you do not have memcached installed
#12:01:26darshanwait i will again check it
#12:01:27mrpeters-islthat's going to have to be installed before you can install perl-Memcached-libmemcached
#12:01:37darshanok wait
#12:03:43darshanmrpeters-isl-i hav use command ps -a n checked ,n my memcached is running
#12:04:01darshanplz guide me further wat shud i do
#12:04:09mrpeters-isldarshan: you might want to ask in the Red Hat community then
#12:04:41mrpeters-islyou're missing dependencies that are needed to install perl-Memcached-libmemcached -- that's not an Evergreen error
#12:04:44Dyrconadarshan: memcached is not installed in a way that the perlmemcached can find it. I suggest starting the installation over from the very beginning, starting with the operating system.
#12:04:51bshum*cough* or try Debian/Ubuntu :)
#12:10:02dbset voila: https://bugs.launchpad.net/evergreen/+bug/873449 for merge_record_assets badness
#12:40:55matt_carlson has joined #evergreen
#12:48:52_bott_open-ils.collections.put_into_collections adds a standing_penalty (30) hard-coded-id <cringe> But open-ils.collections.remove_from_collections, does not remove it. I'm gonna make mine so it does. Is there interest in me submitting this change, or does someone have a desire that it should not be removed?
#12:50:14_bott_...or, YAOUS?
#12:50:17tsbereI would assume that the remove should do the opposite of the add, basically. Maybe archive it instead of remove it?
#12:50:42_bott_ah yes, archive may be preferred
#12:51:13tsbere is amazed he remembered that they *can* be archived
#12:52:22_bott_ is glad he was reminded
#12:53:03jeffdavis has quit IRC
#12:53:44jeffdavis has joined #evergreen
#13:05:30berick_bott_: it's handled elsewhere..
#13:06:08berickthat penalty is removed in the calculate_penalties stored proc when the user goes below the penalty threshold
#13:07:32_bott_berick: Isn't that 4, PATRON_EXCEEDS_COLLECTIONS_WARNING but not, 30, PATRON_IN_COLLECTIONS
#13:08:16berickit's for both. the difference is PATRON_EXCEEDS_COLLECTIONS_WARNING if automatic in both directions
#13:08:22bericks/if/is/
#13:09:21_bott_hmm... then I need to look elsewhere
#13:09:32berickthe threshold for PATRON_IN_COLLECTIONS should be the amount the patron has to pay down to to be no longer in collections as far as the library is concerned (e.g. $0)
#13:10:02berickto better support real-time blocking/unblocking of in-collections accounts
#13:10:19_bott_ah, so that's what I'm missing!
#13:19:08dbwells has quit IRC
#13:22:26dbwells has joined #evergreen
#13:23:32dbs has been trying to exercise user/dbs/array_accum_2_array_agg and hasn't run into regressions - hopes somebody might be interested in giving it a once-over and commit
#13:28:02bgoble has quit IRC
#13:28:49matt_carlson has quit IRC
#13:35:50dbwells_ has joined #evergreen
#13:36:19dbwells has quit IRC
#13:36:25dbwells_ is now known as dbwells
#13:42:40jeffdavisdoes anyone have a 1.6.1.2 linux staff client tarball handy?
#13:43:10dbsdbwells: have you made any progress towards implementing open-ils.auth_proxy ?
#13:43:36dbsjeffdavis: http://evergreen-ils.org/staff_clients.php
#13:43:51dbsoh, linux
#13:44:02dbs has no such thing
#13:44:53jeffdavisthanks anyway :)
#13:47:28tsberehmmm
#13:47:31bshumI… hmm
#13:47:53tsberehttps://bugs.launchpad.net/evergreen/+bug/870029 is going to conflict with my current branch, if it is pushed to master. :(
#13:48:01bshumNope, 1.6.1.2 was before my time.
#13:48:10dbs notes dbwells said on July 27: "I fully expect we will be able to make this happen for 2.2" (LDAP and/or pluggable auth)
#13:49:24dbsjeffdavis: could grab http://evergreen-ils.org/~denials/Evergreen_1_6_1_4_Lenny.zip, download a 1.6.1.2 tarball onto it, and rebuild the client yourself
#13:52:35dbwellsdbs: funny you should ask, I was just reaquainting myself to where that code stood a day or two ago. Like too many things in my life, it remains firmly in a half-done stage.
#13:54:13dbwellsdbs: For me, the biggest remaining obstacle code-wise is figuring out when and how to switch back and forth to https
#13:55:57dbsmy knee-jerk reaction is to advocate an HTTPS-everything approach - less chance of security screwups that way
#13:56:48tsbereI agree with that
#13:57:04tsbereBut I also understand that sometimes that isn't an option. :(
#14:08:43jamesrfin case anyone needs to make a 1.6.1.2 staff client here's a way: http://pastebin.com/index/iAT3L4vC
#14:12:06tsberejamesrf: I think you can skip the first autogen.sh call, at a minimum
#14:13:03jamesrfer well there's no configure if you use git you can skip the autogen if you're using a tarball
#14:13:21tsbereI said first. You appear to be calling it before *and* after checking out the right branch ;)
#14:13:45jamesrfah woops :)
#14:13:58jamesrfyou can see my train of thought "then run autogen... no wait i didn't check out the branch yet"
#14:14:09tsbereNot sure you need to make the rest of the system before you go to the staff client dir
#14:15:05tsbereI am also not sure why my code won't work. Unrelated to your paste, of course.
#14:18:58phasefxdbwells: tsbere: btw, my printing issue from yesterday, it has to do with xulG.url_prefix not being present, so the script tags in the print content window aren't using the hostname, but instead src="/xul/etc" Don't know why yet
#14:19:37tsberethat sounds annoying.
#14:20:08tsberephasefx: Your symlink for server->tag/server not up to date?
#14:20:32tsbere has had that help him when he tested stuff in the past
#14:20:51phasefxit's set correctly
#14:22:40dbs wonders if we should make the default action of "make install" with staff client involved update the symlink
#14:22:57phasefxor aggressively remove the need for the symlink
#14:22:58dbsin the past, i thought "no, protect the baby!"
#14:23:29dbsNow, I'm more inclined to ensure the baby has a bottle and a diaper change, even though it might be 20 years old
#14:24:04phasefx tests horizontal versus vertical patron display layout re: xulG.url_prefix
#14:29:17tsbere dislikes making configuration interfaces
#14:29:27tsbereFunctionality? Easy. Interfaces to configure it? PITA.
#14:32:45mrpeters-islbut they're sure appreciated, tsbere!
#14:35:27phasefxtsbere: your 29a874a1 includes passing url_prefix to the checkout interface, which makes this work in master. I'm not sure how dbwells' instance was working. But at least I can fix :)
#14:36:40tsberephasefx: Ahh. That would do it, wouldn't it. Forget why I did that though. Must have run into needing it.
#14:37:34dbwellsphasefx: hmmm, that is odd. I have been known to have the magic touch.
#14:38:21phasefxdbwells: does your server/patron/display.js include url_prefix in the set_iframe for CHECKOUT?
#14:38:49dbwellsI'll check
#14:42:30dbwellsphasefx: no, I don't see it
#14:44:30phasefx is willing to not dive into that mystery
#14:45:24dbwellsphasefx: Is it possibly related to the receipt template security fixes? I don't have those applied to this test box. Bear in mind I know close to nothing about receipt templates, as we don't print any.
#14:45:40phasefxdbwells: it is
#14:46:50dbwellsphasefx: Sorry if I lead you astray, then, though I did say I was testing on a 9/27 build :)
#14:48:06phasefxdbwells: s'okay, missed that *8)
#14:49:27phasefxhttps://bugs.launchpad.net/evergreen/+bug/873593
#15:01:50tsberephasefx: Does the bill history view have the same basic issue?
#15:02:22phasefx checks
#15:02:25Dyrconatsbere: I was just going to try it on my dev server. I redirected that email to our ticket system.
#15:02:46tsberephasefx: If it does, it likely has the issue in master too.
#15:06:15DyrconaI would say master has that problem with billing history.
#15:07:11phasefx2.1.0 has it too
#15:07:19DyrconaShould we open a launchpad bug?
#15:07:33phasefxplease
#15:09:58DyrconaWill do.
#15:10:15bshumShucks, all this time spent on Ocelot today only to discover that there's no xulrunner-1.9 candidate…
#15:11:11Dyrcona???
#15:12:14dbsbshum: I downloaded a local xulrunner bin from mozilla ages ago for that reason
#15:12:23dbs(well, s/Ocelot/Fedora 15/)
#15:12:27bshumdbs: That seems like a wise decision.
#15:13:00dbsbshum: I can make xulrunner-1.9.2.17.en-US.linux-i686.tar.bz2 available if it's been pulled from mozilla.org for some reason
#15:13:54tsberebshum / dbs: http://download02.mozilla.org/pub/xulrunner/releases/
#15:14:15dbstsbere: as long as that lasts, sure
#15:15:18Dyrconahttps://bugs.launchpad.net/evergreen/+bug/873614
#15:15:19dbsftp://ftp.mozilla.org/pub/xulrunner/releases/ is what I've typically used, seems fine
#15:17:41bshumtsbere: dbs: Thanks guys. I'll try that and see how it goes.
#15:25:21tspindler has joined #evergreen
#15:27:02tspindleris there a way to get a PO to resend, we are testing some things with Ingram and ingrams servers were down when edi_pusher ran
#15:28:56bshumtspindler: I'm not sure exactly, but what are the "state" values set to for the orders in question.
#15:29:27bshumI think you can change the state to a different status like "pending" and that would kick in a new PO translate next time?
#15:29:36bshumNot entirely sure, haven't tried resending much
#15:35:45binaryflow has joined #evergreen
#15:36:11binaryflowHello everyone! I have made it through the installation guides all the way to the part where we test the evergreen service.
#15:36:17tspindlerbshum: first time I've run into it. i'll change the status to pending and see what happens
#15:36:20binaryflowIt doesn't connect.
#15:36:50bshumtspindler: Curious what the status currently is set to?
#15:37:04tspindlerbshum: it is "on-order"
#15:37:20binaryflowWhen I run settings-tester.pl four of the five tests pass. The one that fails is the database connection. It would appear that the test script is defaulting to the postgres account when I set up a different one to be the admin user.
#15:37:32bshumtspindler: "On order" sounds like it was processed successfully.
#15:37:36binaryflowIs there a way to specify credentials in that test script?
#15:37:44bshumtspindler: Or at least translated to become an A/T event
#15:38:24dbsbinaryflow: if the service that is failing is qstore, don't worry about it
#15:38:28bshumtspindler: Running edi_pusher.pl manually had no effect right? (wondering if maybe the A/T event sticks around)
#15:38:33tspindlerbshum: appears to be no flag in the tables to indicate order was sent but I haven't gone through the script to see what it is usinig to determine what to send, obviously it has to see if a PO is linked to an edi account
#15:39:00binaryflowAh, ok. Here are the symptoms: All services appear to start. I can browse to the search page via apache.
#15:39:11tspindlerbshum: doing manual run now
#15:39:14binaryflowWhen I switch to the opensrf user and try to run the test I get the following error:
#15:39:24bshumtspindler: Right, the closest clue we'd have is whether there was EDI message traffic (and the contents of those messages)
#15:40:27binaryflowReceived no data from server.
#15:41:17binaryflowNeither the postgres nor the account I defined seem to work.
#15:41:29tspindlerbshum: changing status didn't do anything, maybe it is edi message traffic
#15:42:00bshumtspindler: Well, changing the status alone would only make it want to be pulled through A/T runner I think.
#15:42:17bshumtspindler: To generate a new A/T event, to then be pushed out with edi_pusher.pl
#15:42:25bshumtspindler: Or… I think so
#15:42:38dbsbinaryflow: assuming we're talking "srfsh" followed by "login <admin-user> <admin-pass>"?
#15:42:39bshum pokes mrpeters-isl's memory
#15:42:46binaryflowYes
#15:43:01binaryflowPlease excuse my extreme lack of postgres knowledge.
#15:43:19binaryflowAren't I supposed to create a user account and then set up db perms?
#15:43:26binaryflowI have to do that in mysql...
#15:43:37dbsbinaryflow: okay. you set up /home/opensrf/.srfsh.xml with ejabberd hostname, and the opensrf ejabberd username and password (private.localhost one)
#15:43:57binaryflowYes. Back during the opensrf setup. All of that tested fine.
#15:44:02binaryflowServices are up and running.
#15:44:13binaryflowCan't connect to the postgres db.
#15:45:10dbsbinaryflow: it's not clear to me if you followed the install instructions, and if so, which ones. because there is a clear section about 1) creating a PostgreSQL superuser account and 2) using that to create the database and set up opensrf.xml via eg_db_config.pl
#15:45:30binaryflowI did all of that.
#15:45:34binaryflowTwice.
#15:45:38tspindler_ has joined #evergreen
#15:46:02tspindler has quit IRC
#15:46:09binaryflowI created the superuser account and verified that it was there via webmin.
#15:46:31binaryflowI used the same username/password in the eg_db_config.pl script setup.
#15:46:42binaryflowWatched it spin through all of the table creation steps.
#15:46:53tspindler_bshum: it worked by deleting old edi error, order went through this time
#15:46:55binaryflowVerified that there were tables/fields in the evergreen db (again in webmin).
#15:47:05binaryflowNow I get that error.
#15:47:08darshan has quit IRC
#15:47:10bshumtspindler_: Ahh, old edi message, gotcha
#15:47:19bshumThat sounds vaguely familiar now.
#15:47:20binaryflowAnd the test script is saying that the error is an authentication failure.
#15:47:21tspindler_bshum: before resending set to on-order status
#15:47:30adbowling-isl has quit IRC
#15:47:46binaryflowBut the user name that the script seems to be coded to use is the postgres user (which is not the one I used on the eg_db_config.pl script).
#15:48:20dbsbinaryflow: as I suggested before, that might be a red herring. settings-tester.pl hasn't been updated for a long time
#15:48:47csharpwould it be better to move a production database (testing here) from one server to another using pg_dump or pg_dumpall? (wondering if anyone has experience using one over the other)
#15:49:00binaryflowAh, ok. The installation docs say to start troubleshooting there first.
#15:49:17dbscsharp: I've only ever used "pg_dump -Fc"
#15:49:24binaryflowShould I have put the evergreen db superuser creds in a .conf file somewhere?
#15:49:28csharpdbs: okay - that makes sens
#15:49:28csharpe
#15:49:29dbsbinaryflow: it's useful, as far as it goes
#15:49:38binaryflowDon't remember seeing that as an explicit step.
#15:49:59dbsbinaryflow: that's because eg_db_config.pl DOES THAT FOR YOU
#15:50:11binaryflowOk. Then it did it twice for me.
#15:50:14dbs takes a breath
#15:50:28binaryflowI apologize if I am being frustrating.
#15:50:47binaryflowI certainly don't mean to be.
#15:52:30dbsbinaryflow: I understand. just slow down a bit, okay?
#15:52:54dbsbinaryflow: so let's start by seeing if, in fact, your opensrf.xml actually has the values it should
#15:53:33dbsbinaryflow: open it up in a text editor and search for <db>
#15:53:49dbsactually, better, search for <database>
#15:54:22binaryflowIt is there and correct.
#15:54:32dbsbinaryflow: there will be multiple entries
#15:55:04dbsmy guess is that the qstore entry has "postgres". which is fine, because qstore isn't actually used by anything in Evergreen
#15:55:33dbsbut that's why my very first response to you was: " if the service that is failing is qstore, don't worry about it"
#15:56:34dbssecond question: during the Evergreen setup, did you copy a new opensrf_core.xml.example over opensrf_core.xml and update all of the ejabberd usernames / passwords?
#15:58:08binaryflowThere was one instance of the account "postgres" in opensrf.xml that had the default password in it. I changed it to match my postgresql installation.
#15:58:39binaryflowI probably did not create a brand new opensrf_core.xml file after the original one was set up during the opensrf installation.
#15:58:42binaryflowLet me check.
#15:58:50dbsbinaryflow: if not, then that's your actual problem.
#15:59:23binaryflowOk.
#15:59:26binaryflowI'll do that now.
#15:59:56dbslow-hanging fruit for interested contributors: 1) teach settings-tester.pl to ignore qstore for database connections and 2) teach it to check opensrf_core.xml for Evergreen-specific content, instead of OpenSRF-generic content
#16:01:38Dyrconadbs: How 'bout a launchpad bug? :)
#16:01:52dbsDyrcona: please. Make them two bitesize bugs.
#16:02:07eeevilgrabbing 0639
#16:04:19tspindler_ has quit IRC
#16:06:07hopkinsjuSkinning question: I'm making some changes to the default skin... I've got a handle on everything I need to make the changes, but I've noticed that the copy locations don't load properly.
#16:06:46hopkinsjuI've noticed this doesn't work with craftsman either. Does it only load copy information for the skin that is set to be used?
#16:07:22binaryflowChanged out the opensrf_core.xml file and updated the priv/pub passwords for router and opensrf. No joy. Still fails with: Received no data from server.
#16:07:58sfortin has quit IRC
#16:09:31dbsbinaryflow: did you restart the opensrf services after doing that?
#16:09:57binaryflowI restarted the entire server for good measure.
#16:09:57dbshopkinsju: define "copy locations don't load properly"
#16:10:10bshumhopkinsju: Well, craftsman isn't supported by the Evergreen community anymore… so, fun times there.
#16:10:11dbsbinaryflow: a bit extreme
#16:10:24binaryflowAgreed. It's been a very long two day installation process though...
#16:10:31dbsbinaryflow: so did you start the opensrf services?
#16:10:37tsberehopkinsju: In fact, at some point craftsman vanished from master entirely. ;)
#16:10:45tsbere committed that removal, in fact
#16:11:16hopkinsjuIs craftsman a touchy subject? I thought I probably shouldn't have mentioned it at all, lol.
#16:11:52hopkinsjudbs: The table doesn't load whatsoever. Just says "Loading copy information...
#16:11:52hopkinsju"
#16:12:01dbshopkinsju: for many of us, its death was something to celebrate
#16:12:21dbsalthough its prettiness is mourned
#16:12:23hopkinsjujs console shows an error in RemoteRequest.js
#16:13:16binaryflowApparently not. I just walked back through the startup. Tried running the autogen script. It appears that one of my pwd's isn't working.
#16:13:20binaryflowLet me investigate further.
#16:16:45collum has quit IRC
#16:17:19raynerj has left #evergreen
#16:18:06dbseeevil++
#16:19:05tsbere is determined to *not* need a secondary save button for his circ mod limit replacement configuration interface
#16:19:30binaryflowAutogen.sh is returning the following error: Session Error: router@private.localhost/opensrf.settings IS NOT CONNECTED TO THE NETWORK!!!
#16:19:57binaryflowI assume this is because of some problem with my router@private.localhost password. I double checked the opensrf_core.xml file and the pwd is right.
#16:22:02bshumbinaryflow: Just curious, when you restarted the whole server and it came back up, did you restart opensrf services? Like with osrf_ctl.sh -l -a restart_all (or some variant)
#16:22:40bshum haven't read up, but that sounds like something didn't start correctly
#16:23:19binaryflowYes, I did start opensrf manually using the osrf_ctl.sh switch. I left out the -l switch since the script can pull the correct hostname (per instructions).
#16:23:30bshumGotcha.
#16:26:47binaryflowI stopped opensrf services and restarted them with the -l switch. Now autogen.sh only produces the error once instead of four times.
#16:27:15binaryflowException: OpenSRF::EX::Session 2011-10-13T16:26:09 OpenSRF::Transport /usr/local/share/perl/5.10.1/OpenSRF/Transport.pm:83 Session Error: router@private.localhost/open-ils.cstore IS NOT CONNECTED TO THE NETWORK!!!
#16:50:21fortin has joined #evergreen
#16:55:43jeffdavis has quit IRC
#16:59:58Shae has quit IRC
#17:02:03akilsdonk has quit IRC
#17:09:12binaryflow has quit IRC
#17:13:26_bott_ has quit IRC
#17:14:07_bott_ has joined #evergreen
#17:14:58dbs has quit IRC
#17:29:23Dyrcona has quit IRC
#17:30:57hopkinsjuSince I know you're all holding your breath, I solved my problem with "find /openils/var/web/opac/skin/poplar/xml -type f -exec sed -i 's/default/poplar/g' {} \;"
#17:31:31jeffdavis has joined #evergreen
#17:32:26hopkinsjuNeeded to replace a bunch of <script> tags that were still pointing to the default skin directory.
#17:50:10kmlussier has quit IRC
#17:52:56hopkinsjuI stand corrected. Is there documentation on creating a new skin?
#18:19:24fortin has quit IRC
#18:20:40tsberehopkinsju: you may need to update non-xml files as well.
#18:22:04tsbereMVLC just edits the "default" skin and keeps the changes around in git branches.
#18:22:17gmcharltwhich is a handy practice
#18:22:51gmcharltbut if you do want a separate skin, changing only the bare minimum number of 'skin/default' to 'skin/poplar' is a good idea
#18:23:06hopkinsjutsbere: I've had that thought. I had read somewhere "don't use default because it will be overwritten during upgrades".
#18:23:14gmcharltso that you can use as much of the stock javascript from default as possible
#18:23:21tsbereMVLC also keeps library-specific changes tied to apache variables that swap out what little our libraries get customized (name, logo, homepage URL)
#18:23:34hopkinsjugmcharlt: That didn't work though. http://catalog.poplarbluff.org/opac/en-US/skin/poplar/xml/rdetail.xml?r=9704&ol=2&t=chomsky&tp=keyword&l=2&d=1&hc=4&rt=keyword
#18:23:45gmcharltand keep skin-specifc javascript changes mimized
#18:23:54tsberehopkinsju: That warning applies more to tarball installs. If you install via git you can pull in your changes via merging the branch(es)
#18:24:49hopkinsjutsbere: More than anything I was hoping to simplify things for Equinox (and keep confusion low for everyone) by doing a separate skin. At this point the path of least resistance is just to make my changes to default
#18:24:53gmcharlt looks at that in a js debugger
#18:25:11hopkinsju saw it's erroring in RemoteRequest.js
#18:25:30hopkinsjuIt's hanging up trying to get availability it seems
#18:25:42hopkinsjuBut hey guys, gotta run
#18:25:52hopkinsju leaves quassel running
#18:37:14gmcharlthopkinsju: the culprit is the deletion of element with id rdetail_abstract in rdetail_summary.xml without removing the reference to that in line 401 of rdetail.js
#18:37:37gmcharltyou could adjust the javascript accordingly, but better might be to just retain the element and slap a 'hide_me' class on it
#18:38:37gmcharltthis rather ... tight coupling between the template and the javascript that stuffs data into it is, of course, one of the things that will hopefully go away (or at least be easier to debug) with tpac
#18:43:56gmcharlthopkinsju: and heck -- do a diff -r rdetail_summary.xml.pre-gmc rdetail_summary.xml to see what I mean
#18:44:08gmcharltlater all
#22:45:54tater-laptop has joined #evergreen
#23:52:55tater-laptop has quit IRC
< Wednesday, October 12th, 2011Raw Log FileFriday, October 14th, 2011 >