big problem - I started issuing our students certificates and facing a fancy problem...
I issued already 533 Certificates but now I cant issue anymore.
I can type anything in the Request-Form (tried browser-side and server-side keygen) and after completing all steps OpenCA tells me
Error 10006 General Error. Error while storing REQ in database! ENTRY_EXIST.
1. Do you use DBI or DB? 2. Did you debug the lines where the serial will be build?
## build serial
if ( (getRequired ('CgiServerType') =~ /(RA|CA)/i) and $query->param ('key') ) {
$tmp .= "SERIAL = ".$query->param ('key')."\n";
} else {
my $last_req = libDBGetLastItem ("REQUEST");
my $req_elements = 0;
$req_elements = $last_req->getSerial("REQUEST") if ($last_req);
$req_elements >>= getRequired ("ModuleShift");
if ((not defined $req_elements) or ($req_elements < 0)) {
generalError ( gettext ("Database fails during counting the already existing requests!"), 669);
} else {
$req_elements++;
}
my $new_serial = ($req_elements << getRequired ("ModuleShift")) | getRequired ("ModuleID");
$tmp .= "SERIAL = ".$new_serial."\n";
}
Here the error happens.
2.1. Which request is the last request? 2.2. Do the shift operations work properly? 2.3. What does the new serial be? 2.4. Does this serial already be in the database?
Michael -- ------------------------------------------------------------------- Michael Bell Email: [EMAIL PROTECTED] ZE Computer- und Medienservice Tel.: +49 (0)30-2093 2482 (Computing Centre) Fax: +49 (0)30-2093 2704 Humboldt-University of Berlin Unter den Linden 6 10099 Berlin Email (private): [EMAIL PROTECTED] Germany http://www.openca.org
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Openca-Users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/openca-users
