Winning the battle...except CDK-Perl
Well, I seem to be winning the install battle (18 hours of work later), but now I am stuck on just one thing: - finding a good copy of cdk perl extensions for redhat 7.1. (can I use CPAN? what is the exact incantation?) (the refered to download sites will not download a clean copy for some reason) I have searched all of the koha letter archives and googled myself to the point of googling trying to find an rpm or other usable cdk perl (can't find one on my redhat cds, could it be there?) Any pointers would be appreciated. (Perhaps I will contribute a more complete install "cookbook" style instruction sheet when I am done). Many thanks, graveling and googling, Pete Dubler
On Tue, 2002-06-18 at 07:33, Pete Dubler wrote:
Well, I seem to be winning the install battle (18 hours of work later), but now I am stuck on just one thing:
What was the problem with it not finding the modules? Were they in a dir that perl wasnt checking?
- finding a good copy of cdk perl extensions for redhat 7.1. (can I use CPAN? what is the exact incantation?) (the refered to download sites will not download a clean copy for some reason)
I have searched all of the koha letter archives and googled myself to the point of googling trying to find an rpm or other usable cdk perl (can't find one on my redhat cds, could it be there?)
Any pointers would be appreciated. (Perhaps I will contribute a more complete install "cookbook" style instruction sheet when I am done).
That would be great, Unfortunately I can't help with an rpm of the cdk modules. I remember that installing them involved quite a bit of monkeying around. I did it by downloading http://www.vexus.ca/release/CDK/cdk.tar.gz and installing it, then http://www.vexus.ca/release/CDK/cdkperl.tar.gz Ill go look on the machine that its installed on, and see if i can spot how i did it. If there is still demand for a curses, or slang etc based interface, I can get a rewrite of the CDK dependant scripts to use something else, put onto the todo list. But since the web based circulations came online, its been kinda ignored. Sorry I cant be of more help. Chris -- Chris Cormack chris@katipo.co.nz Programmer 025 500 579 Katipo Communications www.katipo.co.nz
On 18 Jun 2002, Chris Cormack wrote:
On Tue, 2002-06-18 at 07:33, Pete Dubler wrote:
Any pointers would be appreciated. (Perhaps I will contribute a more complete install "cookbook" style instruction sheet when I am done).
That would be great, Unfortunately I can't help with an rpm of the cdk modules. I remember that installing them involved quite a bit of monkeying around. I did it by downloading http://www.vexus.ca/release/CDK/cdk.tar.gz and installing it, then http://www.vexus.ca/release/CDK/cdkperl.tar.gz
Ill go look on the machine that its installed on, and see if i can spot how i did it.
If there is still demand for a curses, or slang etc based interface, I can get a rewrite of the CDK dependant scripts to use something else, put onto the todo list.
I think we should get this onto the todo list. Some of the other librarians that I've talked to also seem to prefer a command line version. It may make sense for us to talk in more detail about what/how to provide one. -pate
But since the web based circulations came online, its been kinda ignored.
Sorry I cant be of more help.
Chris
Chris, If I read your message correctly, the curses stuff is only for using circulation stuff via telnet, which I don't need to do. So, I will once again focus on the web version. Here is a tail of the log file. I can't seem to get into the acquistions or circulation areas via the web. So, as such, I can't populate the database and know if anything else really works. I have searched the archives for "premature" and only find people asking questions, but no solution to this problem. Can you help? Thanks, Pete (error log tail follows) ########## [Mon Jun 17 11:54:40 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/koha/cgi-bin/loadmodules.pl DBI->connect(Koha:localhost) failed: Access denied for user: 'kohaadmin@localhost' (Using password: NO) at /var/www/koha/modules/C4/Database.pm line 41 Can't call method "prepare" on an undefined value at /var/www/koha/modules/C4/Search.pm line 62, <KC> line 5. [Mon Jun 17 11:55:35 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/koha/cgi-bin/loadmodules.pl DBI->connect(Koha:localhost) failed: Access denied for user: 'kohaadmin@localhost' (Using password: NO) at /var/www/koha/modules/C4/Database.pm line 41 Can't call method "prepare" on an undefined value at /var/www/koha/modules/C4/Search.pm line 1010, <KC> line 5. DBI->connect(Koha:localhost) failed: Access denied for user: 'kohaadmin@localhost' (Using password: NO) at /var/www/koha/modules/C4/Database.pm line 41 Can't call method "prepare" on an undefined value at /var/www/koha/modules/C4/Search.pm line 62, <KC> line 5. [Mon Jun 17 12:09:39 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/koha/cgi-bin/loadmodules.pl DBI->connect(Koha:localhost) failed: Access denied for user: 'kohaadmin@localhost' (Using password: NO) at /var/www/koha/modules/C4/Database.pm line 41 Can't call method "prepare" on an undefined value at /var/www/koha/modules/C4/Circulation/Circ2.pm line 68, <KC> line 5. [Mon Jun 17 12:09:50 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/koha/cgi-bin/circ/circulation.pl DBI->connect(Koha:localhost) failed: Access denied for user: 'kohaadmin@localhost' (Using password: NO) at /var/www/koha/modules/C4/Database.pm line 41 Can't call method "prepare" on an undefined value at /var/www/koha/modules/C4/Circulation/Circ2.pm line 68, <KC> line 5. [Mon Jun 17 13:31:35 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/koha/cgi-bin/circ/circulation.pl DBI->connect(Koha:localhost) failed: Access denied for user: 'kohaadmin@localhost' (Using password: NO) at /var/www/koha/modules/C4/Database.pm line 41 Can't call method "prepare" on an undefined value at /var/www/koha/modules/C4/Search.pm line 62, <KC> line 5. [Mon Jun 17 16:43:03 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/koha/cgi-bin/loadmodules.pl
On Mon, 17 Jun 2002, Pete Dubler wrote:
Chris,
If I read your message correctly, the curses stuff is only for using circulation stuff via telnet, which I don't need to do. So, I will once again focus on the web version.
Pete, while it's good to hear that this won't be stopping you, I hope that we'll soon have a telnet version of circ for those that would prefer it.
Here is a tail of the log file. I can't seem to get into the acquistions or circulation areas via the web. So, as such, I can't populate the database and know if anything else really works.
This is less happy news. I'm sure that between us, we'll get it nailed though. THanks for sticking with us.
I have searched the archives for "premature" and only find people asking questions, but no solution to this problem. Can you help?
'Premature end of script headers' typically means that the script failed to run properly. In fact, as you follow along the trail, you'll see that this is exactly what happens:
Thanks,
Pete (error log tail follows)
##########
[Mon Jun 17 11:54:40 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/koha/cgi-bin/loadmodules.pl
this bit says (roughly) the loadmodules.pl script failed to run correctly.
DBI->connect(Koha:localhost) failed: Access denied for user: 'kohaadmin@localhost' (Using password: NO) at /var/www/koha/modules/C4/Database.pm line 41
It couldn't get access to the Koha database on the local system using the kohaadmin@localhost user and no password (line 41 of the Database.pm module used by the script).
Can't call method "prepare" on an undefined value at /var/www/koha/modules/C4/Search.pm line 62, <KC> line 5.
It also couldn't 'prepare' a non-existant thing (this should be the database connection -- called a handle) at line 62 of Search.pm called by the script. Judging from these, I wonder if a) you have the database set up, or b) have the proper password in the configuration file. thanks, -pate
Pat Eyler wrote:
Judging from these, I wonder if a) you have the database set up, or b) have the proper password in the configuration file.
thanks, -pate
Pat, I think I got it working. I think there might be a bug in here that sets up koha.conf different from what the script is using for passwords. Here is what I did, for those who see similar problems in the future: Here is what I checked based on your question: 1. sqlshow indicated that the database Koha exists 2. /etc/koha.conf reads as follows: database=Koha hostname=localhost user=koha password=kohaadmin includes=/var/www/koha/htdocs/includes 3. I re-did the grant for Koha in mysql as: grant all privileges on Koha.* tokoha@localhost identified by 'kohaadmin'; Still no joy. Here is the error log from first trying "circulation" then trying "administration" from the main Koha screen. [Tue Jun 18 18:30:02 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/koha/cgi-bin/circ/circulation.pl DBI->connect(Koha:localhost) failed: Access denied for user: 'koha@localhost' (Using password: NO) at /var/www/koha/modules/C4/Database.pm line 41 Can't call method "prepare" on an undefined value at /var/www/koha/modules/C4/Search.pm line 62, <KC> line 5. [Tue Jun 18 18:30:11 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/koha/cgi-bin/loadmodules.pl The first error log entry still indicates that access to the database is being denied as you pointed out earlier. Pat, the fact that this says "Using password:NO" would indicate that no password was attempted. Now as I looked at the script Database.pm I saw the following: $pass=$configfile{'pass'}; Now, /etc/koha.conf has a line that says: password=kohaadmin So, I thought maybe it needs to say: pass=kohaadmin Tried that ... and ... IT WORKS!!! So, where is the bug and how come so many folks got away without seeing it before me? THANKS AGAIN FOR ALL OF THE HELP CHRIS AND PAT. Best regards, Pete Dubler
loadmodules.pl contains two bugs, insert "/" before acquisitions as follows: ************** #print "bb"; print $input ->redirect("/acquisitions"); } else { #print "cc"; print $input ->redirect("/acquisitions"); } ************* Md. aftabuddin On Mon, 17 Jun 2002, Pete Dubler wrote:
Chris,
If I read your message correctly, the curses stuff is only for using circulation stuff via telnet, which I don't need to do. So, I will once again focus on the web version. Here is a tail of the log file. I can't seem to get into the acquistions or circulation areas via the web. So, as such, I can't populate the database and know if anything else really works.
I have searched the archives for "premature" and only find people asking questions, but no solution to this problem. Can you help?
Thanks,
Pete (error log tail follows)
##########
[Mon Jun 17 11:54:40 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/koha/cgi-bin/loadmodules.pl DBI->connect(Koha:localhost) failed: Access denied for user: 'kohaadmin@localhost' (Using password: NO) at /var/www/koha/modules/C4/Database.pm line 41 Can't call method "prepare" on an undefined value at /var/www/koha/modules/C4/Search.pm line 62, <KC> line 5. [Mon Jun 17 11:55:35 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/koha/cgi-bin/loadmodules.pl DBI->connect(Koha:localhost) failed: Access denied for user: 'kohaadmin@localhost' (Using password: NO) at /var/www/koha/modules/C4/Database.pm line 41 Can't call method "prepare" on an undefined value at /var/www/koha/modules/C4/Search.pm line 1010, <KC> line 5. DBI->connect(Koha:localhost) failed: Access denied for user: 'kohaadmin@localhost' (Using password: NO) at /var/www/koha/modules/C4/Database.pm line 41 Can't call method "prepare" on an undefined value at /var/www/koha/modules/C4/Search.pm line 62, <KC> line 5. [Mon Jun 17 12:09:39 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/koha/cgi-bin/loadmodules.pl DBI->connect(Koha:localhost) failed: Access denied for user: 'kohaadmin@localhost' (Using password: NO) at /var/www/koha/modules/C4/Database.pm line 41 Can't call method "prepare" on an undefined value at /var/www/koha/modules/C4/Circulation/Circ2.pm line 68, <KC> line 5. [Mon Jun 17 12:09:50 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/koha/cgi-bin/circ/circulation.pl DBI->connect(Koha:localhost) failed: Access denied for user: 'kohaadmin@localhost' (Using password: NO) at /var/www/koha/modules/C4/Database.pm line 41 Can't call method "prepare" on an undefined value at /var/www/koha/modules/C4/Circulation/Circ2.pm line 68, <KC> line 5. [Mon Jun 17 13:31:35 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/koha/cgi-bin/circ/circulation.pl DBI->connect(Koha:localhost) failed: Access denied for user: 'kohaadmin@localhost' (Using password: NO) at /var/www/koha/modules/C4/Database.pm line 41 Can't call method "prepare" on an undefined value at /var/www/koha/modules/C4/Search.pm line 62, <KC> line 5. [Mon Jun 17 16:43:03 2002] [error] [client 192.168.1.5] Premature end of script headers: /var/www/koha/cgi-bin/loadmodules.pl
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Md, Thanks again for the help. My version seems to have had that bug already fixed, so there must be yet another problem. All of my cgi's are owned by root and in the group root. Does this matter? Thanks again. Hopefully we can get this up and running soon. Pete Dubler "Md. Aftabuddin" wrote:
loadmodules.pl contains two bugs, insert "/" before acquisitions as follows: ************** #print "bb"; print $input ->redirect("/acquisitions"); } else { #print "cc"; print $input ->redirect("/acquisitions"); } ************* Md. aftabuddin On Mon, 17 Jun 2002, Pete Dubler wrote:
there is no problem if the cgi's are owned by root and in the group root. my installation runs like that. Md. Aftabuddin On Tue, 18 Jun 2002, Pete Dubler wrote:
Md,
Thanks again for the help.
My version seems to have had that bug already fixed, so there must be yet another problem.
All of my cgi's are owned by root and in the group root. Does this matter?
Thanks again. Hopefully we can get this up and running soon.
Pete Dubler
"Md. Aftabuddin" wrote:
loadmodules.pl contains two bugs, insert "/" before acquisitions as follows: ************** #print "bb"; print $input ->redirect("/acquisitions"); } else { #print "cc"; print $input ->redirect("/acquisitions"); } ************* Md. aftabuddin On Mon, 17 Jun 2002, Pete Dubler wrote:
participants (4)
-
Chris Cormack -
Md. Aftabuddin -
Pat Eyler -
Pete Dubler