2008-06-09T01:18:46 *** Mark__T has joined #openils-evergreen 2008-06-09T03:26:46 *** EGUEST794 has joined #openils-evergreen 2008-06-09T04:46:39 *** ibbo has joined #OpenILS-Evergreen 2008-06-09T08:30:53 *** Slazer has joined #openils-evergreen 2008-06-09T08:53:41 *** phasefx has joined #openils-evergreen 2008-06-09T08:54:36 *** eeevil has joined #openils-evergreen 2008-06-09T08:58:32 *** dmcmorris_esi has joined #OpenILS-evergreen 2008-06-09T09:24:13 *** Karen__ has joined #OpenILS-Evergreen 2008-06-09T09:49:41 *** gmcharlt has joined #OpenILS-Evergreen 2008-06-09T09:52:39 *** phasefx__ has joined #openils-evergreen 2008-06-09T10:05:01 *** eeevil has quit IRC 2008-06-09T10:05:20 *** eeevil has joined #openils-evergreen 2008-06-09T10:05:33 *** phasefx has quit IRC 2008-06-09T10:24:38 *** Mark__T has left #openils-evergreen 2008-06-09T11:19:58 *** skmurphy has quit IRC 2008-06-09T11:19:59 *** skmurphy_ has joined #openils-evergreen 2008-06-09T11:20:05 *** skmurphy_ is now known as skmurphy 2008-06-09T11:20:24 *** ibbo has quit IRC 2008-06-09T11:39:36 *** EGUEST063 has joined #openils-evergreen 2008-06-09T11:40:25 hi there any up for a very technical SIP2 problem? 2008-06-09T11:42:03 EGUEST063: feel free to ask away... 2008-06-09T11:47:10 Ok I was on here Friday with a real weird one that is now fixed -- we had to add use lib "/openils/lib/perl5" to SIPServer.pm so it could find the class OpenILS::SIP. Now we have gotten to the next snag and /var/log/syslog has the following: 2008-06-09T11:47:31 Jun 9 10:30:58 eg acs-server[5874]: Successful login for 'sipuser2' of 'eg' 2008-06-09T11:47:41 Jun 9 10:30:59 eg acs-server[5874]: OILS: new ILS 'eg' 2008-06-09T11:47:55 Jun 9 10:30:59 eg acs-server[5874]: OILS: loading bootstrap config: /openils/conf/opensrf_core.xml 2008-06-09T11:48:04 Jun 9 10:30:59 eg acs-server[5874]: OILS: bootstrap loaded.. 2008-06-09T11:48:16 Jun 9 10:31:00 eg acs-server[5874]: raw_transport: LOGIN ERROR: ' element has non-unique value in 'key' key attribute: id at /openils/lib/perl5/OpenILS/Utils/Fieldmapper.pm line 50 ' 2008-06-09T11:48:54 and then the TCP connection is abruptly closed. Looks like a corruption in an associative array or something? 2008-06-09T11:49:17 EGUEST063: fwiw, you can handle your 'use lib' by setting the PERL5LIB environment variable for the user that starts the sip server (I think that's detailed in the docs in general, for the opensrf user) 2008-06-09T11:50:10 hm, sounds like a problem with the IDL 2008-06-09T11:50:15 EGUEST063: have you changed your fm_IDL.xml file? and, if not, what version of evergreen are you using? 2008-06-09T11:50:31 I have not changed that file. 1.2.2.0 2008-06-09T11:50:58 strange, it parses ok with xmllint 2008-06-09T11:51:53 both in svn and the tarball, afaict 2008-06-09T11:52:11 yeah, i tried the rel_1_2_2_0 tag 2008-06-09T11:52:59 EGUEST063: well... something's happened to it ;) can you test with: 2008-06-09T11:53:16 $ xmllint --noout /openils/conf/fm_IDL.xml 2008-06-09T11:53:27 you should get no output if the file is well-formed 2008-06-09T11:53:33 oh, this may be a strange restriction caused by XML::Simple 2008-06-09T11:53:52 heh... and with that, I'll leave it to berick ;) 2008-06-09T11:53:53 it's valid XML, but XML::Simple looks like it doesn't like having id='blah' be the same for different elements 2008-06-09T11:54:10 well, it's still a problem with the IDL, it would seem 2008-06-09T11:54:11 berick: there shouldn't be any dups for id attributes 2008-06-09T11:54:13 i get no output at all 2008-06-09T11:54:14 right 2008-06-09T11:54:35 i'll try to parse it directly with xml::simple 2008-06-09T11:54:41 should give mroe info 2008-06-09T11:54:53 *** dmcmorris_esi has left #OpenILS-evergreen 2008-06-09T11:55:57 Do you need more info from me? 2008-06-09T11:56:16 EGUEST063: not yet, thanks. i'm gonna try a quick test 2008-06-09T11:59:28 strange, that should just be a warning. there are many, many instances of non-uniquest values for the "key" attribute. the most common is key="id". when I parse the file with warnings, i get a whole bunch of those, but it should not break anything 2008-06-09T12:00:15 however, we probably shoudl remove "key" from the KeyAttr list in Fieldmapper.pm 2008-06-09T12:01:14 berick: we need that 2008-06-09T12:01:16 EGUEST063: can you run this at the command line? 2008-06-09T12:01:17 perl -MXML::Simple -e 'print "$XML::Simple::VERSION\n"' 2008-06-09T12:01:53 miker_: ok 2008-06-09T12:01:58 I get 2.18 2008-06-09T12:02:58 ok. 2.16 is the newest version i've used. i wonder if xml::simple started forcing uniqueness on KeyAttr fields.. 2008-06-09T12:03:02 * berick checks 2008-06-09T12:04:00 yep 2008-06-09T12:04:06 2.18 Aug 15 2007 2008-06-09T12:04:06 - Non-unique key attribute values now trigger a warning (or a fatal 2008-06-09T12:04:10 error in strict mode) rather than silently discarding data (patch 2008-06-09T12:04:13 from Daniel Baysinger) 2008-06-09T12:04:28 maybe we can wrap parsing in a 'no strict'? 2008-06-09T12:05:41 berick: hrm... should it be jst an attr? 2008-06-09T12:07:11 maybe 2008-06-09T12:07:19 ValueAttr? 2008-06-09T12:07:32 anyway, we need to know what the value of key is, but it doesn't have to be a KeyAttr (I guess that's an attempt at making alternate 'id' attributes in xml::simple) 2008-06-09T12:07:50 I don't know xml::simple well enough to say... 2008-06-09T12:07:54 I guess so 2008-06-09T12:08:27 i'll give it a try and see how it behaves 2008-06-09T12:14:54 EGUEST063: would you mind testing something for me? 2008-06-09T12:17:17 sure 2008-06-09T12:18:40 can you edit /openils/lib/perl5/OpenILS/Utils/Fieldmapper.pm and change line 50 to: 2008-06-09T12:18:43 my $idl = XMLin( $file, ForceArray => 0, KeyAttr => ['name', 'id'], ValueAttr => {link =>'key'} )->{class}; 2008-06-09T12:18:55 then restart all services 2008-06-09T12:18:59 including SIP 2008-06-09T12:22:37 Perfect, I got a complete SIP session with that. 2008-06-09T12:23:25 excellent. ok, i'll commit that change 2008-06-09T12:23:45 Thanks a lot, sir. Do you need any other details from me? 2008-06-09T12:24:30 no, thank you, I think "Perfect" pretty much covers it ;) 2008-06-09T12:24:38 OK thanks again. Bye. 2008-06-09T12:26:02 *** EGUEST063 has quit IRC 2008-06-09T12:27:49 *** phasefx__ is now known as phasefx 2008-06-09T13:59:00 *** rsinger_ has joined #OpenILS-Evergreen 2008-06-09T14:06:26 *** rsinger__ has joined #OpenILS-Evergreen 2008-06-09T14:14:55 *** rsinger has quit IRC 2008-06-09T14:15:00 *** rsinger__ is now known as rsinger 2008-06-09T14:21:29 *** rsinger_ has quit IRC 2008-06-09T16:09:17 *** Slazer has quit IRC 2008-06-09T17:57:59 *** Karen__ has left #OpenILS-Evergreen 2008-06-09T19:51:22 *** djfiander has joined #OpenILS-Evergreen 2008-06-09T20:11:39 my brains are mush 2008-06-09T20:17:30 all of them? 2008-06-09T20:18:00 I have so many I need to keep some in an external pack around my waist 2008-06-09T20:32:52 *** djfiander has quit IRC