<br><br><div class="gmail_quote">On Wed, Dec 10, 2008 at 4:17 AM, PasiK <span dir="ltr">&lt;<a href="mailto:pasi.korkalo@oululainen.com">pasi.korkalo@oululainen.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
We tried to upgrade our Koha system from 2.2 to 3.0. Installation went ok,<br>
</div>but data-conversion failed completely. Here&#39;s the error-log from<br>
<div><div></div><div class="Wj3C7c">update22to20.pl:<br>
<br>
Adding textmessaging field to deletedborrowers table...<br>
DBD::mysql::st execute failed: Unknown column &#39;faxnumber&#39; in<br>
&#39;deletedborrowers&#39; at ./update22to30.pl line 3071.<br>
**Error : DBI::st=HASH(0x88f6500)-&gt;errstr<br>
altering borrowers zipcode to zipcode<br>
altering deletedborrowers zipcode to zipcode<br>
altering deletedborrowers homezipcode to B_zipcode<br>
DBD::mysql::db do failed: Duplicate column name &#39;B_zipcode&#39; at<br>
./update22to30.pl line 3104.<br>
removing some unused fields...<br>
 &nbsp;alter or create notify_id in accountlines<br>
 &nbsp;alter or create notify_level in accountlines<br>
 &nbsp;alter or create accountno in accountlines<br>
 &nbsp;alter or create booksellerid in aqbasket<br>
 &nbsp;alter or create bookfundid in aqbookfund<br>
 &nbsp;alter or create branchcode in aqbookfund<br>
 &nbsp;alter or create id in aqbooksellers<br>
DBD::mysql::db do failed: Multiple primary key defined at ./update22to30.pl<br>
line 3271.<br>
Error while executing: alter table aqbooksellers change `id` `id` int(11)<br>
NOT NULL PRIMARY KEY auto_increment &nbsp; at ./update22to30.pl line 3271.<br>
 &nbsp;alter or create currency in aqbooksellers<br>
 &nbsp;alter or create listprice in aqbooksellers<br>
 &nbsp;alter or create invoiceprice in aqbooksellers<br>
 &nbsp;alter or create invoicedisc in aqbooksellers<br>
 &nbsp;alter or create bookfundid in aqbudget<br>
 &nbsp;alter or create bookfundid in aqorderbreakdown<br>
 &nbsp;alter or create ordernumber in aqorderdelivery<br>
 &nbsp;alter or create currency in aqorders<br>
 &nbsp;alter or create authtypecode in auth_header<br>
 &nbsp;alter or create datecreated in auth_header<br>
 &nbsp;alter or create origincode in auth_header<br>
 &nbsp;alter or create authtypecode in auth_subfield_structure<br>
 &nbsp;alter or create tagfield in auth_subfield_structure<br>
 &nbsp;alter or create tagsubfield in auth_subfield_structure<br>
 &nbsp;alter or create liblibrarian in auth_subfield_structure<br>
 &nbsp;alter or create libopac in auth_subfield_structure<br>
 &nbsp;alter or create authorised_value in auth_subfield_structure<br>
 &nbsp;alter or create value_builder in auth_subfield_structure<br>
 &nbsp;alter or create seealso in auth_subfield_structure<br>
 &nbsp;alter or create kohafield in auth_subfield_structure<br>
 &nbsp;alter or create frameworkcode in auth_subfield_structure<br>
 &nbsp;alter or create authtypecode in auth_tag_structure<br>
 &nbsp;alter or create tagfield in auth_tag_structure<br>
 &nbsp;alter or create liblibrarian in auth_tag_structure<br>
 &nbsp;alter or create libopac in auth_tag_structure<br>
 &nbsp;alter or create authorised_value in auth_tag_structure<br>
 &nbsp;alter or create auth_tag_to_report in auth_types<br>
 &nbsp;alter or create summary in auth_types<br>
 &nbsp;alter or create category in authorised_values<br>
 &nbsp;alter or create authorised_value in authorised_values<br>
 &nbsp;alter or create lib in authorised_values<br>
 &nbsp;alter or create frameworkcode in biblio<br>
 &nbsp;alter or create frameworkcode in biblio_framework<br>
 &nbsp;alter or create frameworktext in biblio_framework<br>
 &nbsp;alter or create itemtype in biblioitems<br>
 &nbsp;alter or create dewey in biblioitems<br>
 &nbsp;alter or create publicationyear in biblioitems<br>
 &nbsp;alter or create collectiontitle in biblioitems<br>
 &nbsp;alter or create collectionissn in biblioitems<br>
 &nbsp;alter or create collectionvolume in biblioitems<br>
 &nbsp;alter or create editionstatement in biblioitems<br>
 &nbsp;alter or create editionresponsibility in biblioitems<br>
 &nbsp;alter or create shelfname in bookshelf<br>
 &nbsp;alter or create owner in bookshelf<br>
 &nbsp;alter or create category in bookshelf<br>
 &nbsp;alter or create cardnumber in borrowers<br>
 &nbsp;alter or create surname in borrowers<br>
 &nbsp;alter or create branchcode in borrowers<br>
 &nbsp;alter or create categorycode in borrowers<br>
 &nbsp;alter or create address in borrowers<br>
 &nbsp;alter or create city in borrowers<br>
 &nbsp;alter or create sex in borrowers<br>
 &nbsp;alter or create branchcode in branches<br>
 &nbsp;alter or create branchname in branches<br>
 &nbsp;alter or create branchcode in branchrelations<br>
 &nbsp;alter or create categorycode in branchrelations<br>
 &nbsp;alter or create frombranch in branchtransfers<br>
 &nbsp;alter or create tobranch in branchtransfers<br>
 &nbsp;alter or create category_type in categories<br>
 &nbsp;alter or create categorycode in categories<br>
DBD::mysql::db do failed: Multiple primary key defined at ./update22to30.pl<br>
line 3271.<br>
Error while executing: alter table categories change `categorycode`<br>
`categorycode` varchar(10) NOT NULL PRIMARY KEY &nbsp;default &#39;&#39; &nbsp;at<br>
./update22to30.pl line 3271.<br>
 &nbsp;alter or create frameworkcode in deletedbiblio<br>
 &nbsp;alter or create itemtype in deletedbiblioitems<br>
 &nbsp;alter or create dewey in deletedbiblioitems<br>
 &nbsp;alter or create itemtype in deletedbiblioitems<br>
 &nbsp;alter or create branchcode in deletedborrowers<br>
 &nbsp;alter or create categorycode in deletedborrowers<br>
 &nbsp;alter or create B_zipcode in deletedborrowers<br>
 &nbsp;alter or create zipcode in deletedborrowers<br>
 &nbsp;alter or create address in deletedborrowers<br>
 &nbsp;alter or create city in deletedborrowers<br>
 &nbsp;alter or create surname in deletedborrowers<br>
 &nbsp;alter or create streetnumber in deletedborrowers<br>
 &nbsp;alter or create streettype in deletedborrowers<br>
 &nbsp;alter or create sex in deletedborrowers<br>
 &nbsp;alter or create borrowernumber in issues<br>
 &nbsp;alter or create itemnumber in issues<br>
 &nbsp;alter or create return in issues<br>
 &nbsp;alter or create categorycode in issuingrules<br>
 &nbsp;alter or create branchcode in issuingrules<br>
 &nbsp;alter or create itemtype in issuingrules<br>
 &nbsp;alter or create homebranch in items<br>
 &nbsp;alter or create holdingbranch in items<br>
 &nbsp;alter or create itemtype in itemtypes<br>
DBD::mysql::db do failed: Multiple primary key defined at ./update22to30.pl<br>
line 3271.<br>
Error while executing: alter table itemtypes change `itemtype` `itemtype`<br>
varchar(10) NOT NULL PRIMARY KEY &nbsp;default &#39;&#39; &nbsp;at ./update22to30.pl line<br>
3271.<br>
 &nbsp;alter or create description in itemtypes<br>
 &nbsp;alter or create summary in itemtypes<br>
 &nbsp;alter or create marc in marc_breeding<br>
 &nbsp;alter or create defaultvalue in marc_subfield_structure<br>
 &nbsp;alter or create authtypecode in marc_subfield_structure<br>
 &nbsp;alter or create tagfield in marc_subfield_structure<br>
 &nbsp;alter or create tagsubfield in marc_subfield_structure<br>
 &nbsp;alter or create authorised_value in marc_subfield_structure<br>
 &nbsp;alter or create seealso in marc_subfield_structure<br>
 &nbsp;alter or create tagfield in marc_tag_structure<br>
 &nbsp;alter or create liblibrarian in marc_tag_structure<br>
 &nbsp;alter or create libopac in marc_tag_structure<br>
 &nbsp;alter or create authorised_value in marc_tag_structure<br>
 &nbsp;alter or create frameworkcode in marc_tag_structure<br>
 &nbsp;alter or create expirationdate in opac_news<br>
 &nbsp;alter or create printername in printers<br>
 &nbsp;alter or create printqueue in printers<br>
 &nbsp;alter or create printtype in printers<br>
 &nbsp;alter or create reservedate in reserveconstraints<br>
 &nbsp;alter or create constrainttype in reserves<br>
 &nbsp;alter or create branchcode in reserves<br>
 &nbsp;alter or create planneddate in serial<br>
 &nbsp;alter or create notes in serial<br>
 &nbsp;alter or create branch in statistics<br>
 &nbsp;alter or create datetime in statistics<br>
 &nbsp;alter or create startdate in subscription<br>
 &nbsp;alter or create histstartdate in subscriptionhistory<br>
 &nbsp;alter or create enddate in subscriptionhistory<br>
removing some unused data...<br>
DELETE FROM userflags where bit = 8<br>
synch&#39;ing borrowers and deletedborrowers<br>
synch&#39;ing items and deleteditems<br>
synch&#39;ing biblio and deletedbiblio<br>
synch&#39;ing biblioitems and deletedbiblioitems<br>
Updating publisheddate<br>
Checking for data required in table userflags...<br>
Checking for data required in table systempreferences...<br>
Checking for data required in table authorised_values...<br>
Adding row to authorised_values: &nbsp; authorised_value =&gt; Not enough budget<br>
lib =&gt; This book it too much expensive &nbsp;category =&gt; SUGGEST<br>
insert into authorised_values (authorised_value,lib,category) values<br>
(?,?,?)Checking for index required...<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Creating index borrowernumber in borrowers<br>
DBD::mysql::db do failed: Multiple primary key defined at ./update22to30.pl<br>
line 3408.<br>
Error alter table borrowers ADD PRIMARY KEY (borrowernumber) :<br>
DBI::db=HASH(0x885d484)-&gt;err<br>
Checking for foreign keys required...<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Creating foreign key items in accountlines<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Creating foreign key aqbookfund in aqorderbreakdown<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Creating foreign key biblio in aqorders<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Creating foreign key branches in borrowers<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Creating foreign key branchcategories in branchrelations<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Creating foreign key items in branchtransfers<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Creating foreign key items in issues<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Creating foreign key branches in items<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Creating foreign key branches in items<br>
DBD::mysql::db do failed: Cannot add or update a child row: a foreign key<br>
constraint fails (`Koha/#sql-a58_52`, CONSTRAINT `#sql-a58_52_ibfk_5`<br>
FOREIGN KEY (`holdingbranch`) REFERENCES `branches` (`branchcode`) ON UPDATE<br>
CASCADE) at ./update22to30.pl line 3442.<br>
====================<br>
 &nbsp; &nbsp;An error occured during :<br>
 &nbsp; &nbsp; &nbsp; &nbsp;alter table items ADD FOREIGN KEY holdingbranch (holdingbranch)<br>
REFERENCES branches (branchcode) on update CASCADE on delete RESTRICT<br>
 &nbsp; &nbsp;It probably means there is something wrong in your DB : a row<br>
(items.holdingbranch) refers to a value in branches.branchcode that does not<br>
exist. solve the problem and run updater again (or just the previous SQL<br>
statement).<br>
 &nbsp; &nbsp;You can find those values with select<br>
 &nbsp; &nbsp; &nbsp; &nbsp;items.* from items where holdingbranch not in (select branchcode from<br>
branches)<br>
 &nbsp; &nbsp;====================<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Creating foreign key biblio in reserves<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Creating foreign key items in reserves<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Creating foreign key branches in reserves<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Creating foreign key bookshelf in shelfcontents<br>
DBD::mysql::db do failed: Can&#39;t DROP &#39;borrowernumber&#39;; check that column/key<br>
exists at ./update22to30.pl line 3531.<br>
upgrade to Koha 3.0 done<br>
<br>
</div></div>At the moment we are able to access Koha via browser, but there&#39;s nothing<br>
there. Ideas for fixing this?<br>
<font color="#888888">--<br>
View this message in context: <a href="http://www.nabble.com/Upgrading-from-2.2-to-3.0%2C-not-so-smooth...-tp20933358p20933358.html" target="_blank">http://www.nabble.com/Upgrading-from-2.2-to-3.0%2C-not-so-smooth...-tp20933358p20933358.html</a><br>

</font><div><div></div><div class="Wj3C7c">Sent from the Koha - Discuss mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Koha mailing list<br>
<a href="mailto:Koha@lists.katipo.co.nz">Koha@lists.katipo.co.nz</a><br>
<a href="http://lists.katipo.co.nz/mailman/listinfo/koha" target="_blank">http://lists.katipo.co.nz/mailman/listinfo/koha</a><br>
</div></div></blockquote></div><br>What version of MySQL are you running?<br clear="all"><br>-- <br>Jesse Weaver<br>Software Developer, LibLime<br>