[Kobv-opus-tester] Probleme bei der Migration

Doreen Thiede thiede at zib.de
Don Jan 27 10:05:14 MET 2011


Sehr geehrter Herr Oelkers,

dieser Fehler tritt auf, wenn in einer OPUS 3.x-Instanz keine 
Collections (in der OPUS 3.2-Tabelle collections) angelegt wurden. Es 
handelt sich um einen Bug, der im nächsten Bugfix-Release 4.0.3 behoben 
wird.

Ein schneller Workaround wäre einfach testweise eine Collection in OPUS 
3.2 anzulegen und diese nach der Migration wieder zu löschen.

Beste Grüße,
Doreen Thiede
OPUS4-Entwicklerteam

Am 26.01.2011 18:52, schrieb Dirk Oelkers:
> Sehr geehrte Damen und Herren.
>
> Ich versuche seit einiger Zeit die Opus Installation der Hochschule für
> bildende Künste zu migrieren.
>
> Ich habe mich von der Version 2.0 bis zur Version 3.2 vorgekämpft.
>
> Nun komme ich nicht mehr weiter.
>
> Wenn ich nun die Migration auf 4.0.2 versuche, bekomme ich die folgende
> Fehlermeldung:
>
> Hat vielleicht jemand bei Ihnen eine Idee, woran das liegen könnte ?
>
> root at opus_hbk_new1 opus4/scripts#./opus3-migration.sh -f
> /u1/opus3_2_data/opus3_2_dump.xml -p /u1/opus3_2_data/volltexte
> Clean workspace/files/* and workspace/log/import.log and workspace/tmp/*
> directory
> Clean database
> Dropping database: opus402
> Creating database: opus402
> Importing database schema file 'schema/opus400.sql'
> Inserting file 'masterdata/000_insert_default_roles.sql'
> Inserting file 'masterdata/001_insert_default_privileges.sql'
> Inserting file 'masterdata/002_create_languages.sql'
> Inserting file 'masterdata/004_create_user_accounts.sql'
> Inserting file 'masterdata/010_create_collections_tables.sql'
> Inserting file 'masterdata/011_create_collections_data.sql'
> Inserting file 'masterdata/012_create_collections_constraints.sql'
> Import institutes, collections and licenses
> PHP Fatal error: Uncaught exception 'Exception' with message 'ERROR:
> Sorted collections empty.' in
> /u1/opus4/opus4/import/importer/Opus3CollectionsImport.php:116
> Stack trace:
> #0 /u1/opus4/opus4/import/importer/Opus3CollectionsImport.php(51):
> Opus3CollectionsImport->importCollectionsDirectly(Object(DOMElement),
> Object(Opus_CollectionRole))
> #1 /u1/opus4/opus4/scripts/Opus3Migration_ICL.php(116):
> Opus3CollectionsImport->__construct(Object(DOMDocument))
> #2 /u1/opus4/opus4/scripts/Opus3Migration_ICL.php(154):
> Opus3Migration_ICL->load_collections()
> #3 /u1/opus4/opus4/scripts/Opus3Migration_ICL.php(182):
> Opus3Migration_ICL->run()
> #4 {main}
> thrown in /u1/opus4/opus4/import/importer/Opus3CollectionsImport.php on
> line 116
>
> Fatal error: Uncaught exception 'Exception' with message 'ERROR: Sorted
> collections empty.' in
> /u1/opus4/opus4/import/importer/Opus3CollectionsImport.php:116
> Stack trace:
> #0 /u1/opus4/opus4/import/importer/Opus3CollectionsImport.php(51):
> Opus3CollectionsImport->importCollectionsDirectly(Object(DOMElement),
> Object(Opus_CollectionRole))
> #1 /u1/opus4/opus4/scripts/Opus3Migration_ICL.php(116):
> Opus3CollectionsImport->__construct(Object(DOMDocument))
> #2 /u1/opus4/opus4/scripts/Opus3Migration_ICL.php(154):
> Opus3Migration_ICL->load_collections()
> #3 /u1/opus4/opus4/scripts/Opus3Migration_ICL.php(182):
> Opus3Migration_ICL->run()
> #4 {main}
> thrown in /u1/opus4/opus4/import/importer/Opus3CollectionsImport.php on
> line 116
> Import metadata and fulltext
> PHP Warning: file(../workspace/tmp/grantor.map): failed to open stream:
> No such file or directory in
> /u1/opus4/opus4/import/importer/Opus3XMLImport.php on line 341
>
> Warning: file(../workspace/tmp/grantor.map): failed to open stream: No
> such file or directory in
> /u1/opus4/opus4/import/importer/Opus3XMLImport.php on line 341
> PHP Warning: Invalid argument supplied for foreach() in
> /u1/opus4/opus4/import/importer/Opus3XMLImport.php on line 343
>
> Warning: Invalid argument supplied for foreach() in
> /u1/opus4/opus4/import/importer/Opus3XMLImport.php on line 343
> PHP Warning: file(../workspace/tmp/institute.map): failed to open
> stream: No such file or directory in
> /u1/opus4/opus4/import/importer/Opus3XMLImport.php on line 341
>
> Warning: file(../workspace/tmp/institute.map): failed to open stream: No
> such file or directory in
> /u1/opus4/opus4/import/importer/Opus3XMLImport.php on line 341
> PHP Warning: Invalid argument supplied for foreach() in
> /u1/opus4/opus4/import/importer/Opus3XMLImport.php on line 343
>
> Warning: Invalid argument supplied for foreach() in
> /u1/opus4/opus4/import/importer/Opus3XMLImport.php on line 343
> 2011-01-26 18:06:01 ERROR: No Opus_Db_DocumentLicences with id 1 in
> database. for old ID 19
> PHP Warning: file(../workspace/tmp/grantor.map): failed to open stream:
> No such file or directory in
> /u1/opus4/opus4/import/importer/Opus3XMLImport.php on line 341
>
>
>


-- 
Doreen Thiede
Kooperativer Bibliotheksverbund Berlin-Brandenburg (KOBV)
c/o Konrad-Zuse-Zentrum fuer Informationstechnik Berlin (ZIB)
Takustr. 7, D-14195 Berlin
Zimmer 4357
Telefon: (030) 841 85 - 332
Telefax: (030) 841 85 - 269
E-Mail: thiede at zib.de
WWW: http://www.kobv.de