0 votes
389 views
I have an issue with the import of a database into another, which leads to an internal error as I need the admin rights for writing on C: .

but when the admin logs in and opens openLCA, the program opens different  databases so that I cannot see 'my' database in that I want to import another.

I really appreciate every help and answer.
in openLCA by (180 points)
by (180 points)
are there different openLCA profiles or such a thing?
can I simply copy the databases on C: to another place on my storage and reconnect them to openLCA?
How I can I re-link a moved database?
by (180 points)
edited by
this is what I can see in the log-file as error
when I (not admin) try to import the database into the other.


org.zeroturnaround.zip.ZipException: Failed to process zip entry 'seg0/c7d0.dat' with action org.zeroturnaround.zip.ZipUtil$Unpacker@1824360f
     at org.zeroturnaround.zip.ZipUtil.iterate(ZipUtil.java:373)
     at org.zeroturnaround.zip.ZipUtil.unpack(ZipUtil.java:772)
     at org.zeroturnaround.zip.ZipUtil.unpack(ZipUtil.java:755)
     at org.openlca.app.wizards.io.DbImportWizard$ConnectionDispatch.connectToFolder(DbImportWizard.java:196)
     at org.openlca.app.wizards.io.DbImportWizard$ConnectionDispatch.run(DbImportWizard.java:181)
     at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
    Caused by: java.io.IOException: Es steht nicht genug Speicherplatz auf dem Datenträger zur Verfügung
     at java.io.FileOutputStream.writeBytes(Native Method)
     at java.io.FileOutputStream.write(FileOutputStream.java:326)
     at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
     at java.io.BufferedOutputStream.write(BufferedOutputStream.java:126)
     at org.zeroturnaround.zip.commons.IOUtils.copyLarge(IOUtils.java:236)
     at org.zeroturnaround.zip.commons.IOUtils.copy(IOUtils.java:211)
     at org.zeroturnaround.zip.commons.FileUtils.copy(FileUtils.java:127)
     at org.zeroturnaround.zip.ZipUtil$Unpacker.process(ZipUtil.java:905)
     at org.zeroturnaround.zip.ZipUtil.iterate(ZipUtil.java:370)
     ... 5 more
45050     main     ERROR     org.openlca.app.wizards.io.DbImportWizard     database import failed
java.lang.reflect.InvocationTargetException
     at org.openlca.app.wizards.io.DbImportWizard$ConnectionDispatch.run(DbImportWizard.java:186)
     at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
    Caused by: org.zeroturnaround.zip.ZipException: Failed to process zip entry 'seg0/c7d0.dat' with action org.zeroturnaround.zip.ZipUtil$Unpacker@1824360f
     at org.zeroturnaround.zip.ZipUtil.iterate(ZipUtil.java:373)
     at org.zeroturnaround.zip.ZipUtil.unpack(ZipUtil.java:772)
     at org.zeroturnaround.zip.ZipUtil.unpack(ZipUtil.java:755)
     at org.openlca.app.wizards.io.DbImportWizard$ConnectionDispatch.connectToFolder(DbImportWizard.java:196)
     at org.openlca.app.wizards.io.DbImportWizard$ConnectionDispatch.run(DbImportWizard.java:181)
     ... 1 more
    Caused by: java.io.IOException: Es steht nicht genug Speicherplatz auf dem Datenträger zur Verfügung
     at java.io.FileOutputStream.writeBytes(Native Method)
     at java.io.FileOutputStream.write(FileOutputStream.java:326)
     at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
     at java.io.BufferedOutputStream.write(BufferedOutputStream.java:126)
     at org.zeroturnaround.zip.commons.IOUtils.copyLarge(IOUtils.java:236)
     at org.zeroturnaround.zip.commons.IOUtils.copy(IOUtils.java:211)
     at org.zeroturnaround.zip.commons.FileUtils.copy(FileUtils.java:127)
     at org.zeroturnaround.zip.ZipUtil$Unpacker.process(ZipUtil.java:905)
     at org.zeroturnaround.zip.ZipUtil.iterate(ZipUtil.java:370)
     ... 5 more

1 Answer

0 votes
by (125k points)

If you have the databases in C and no write access to the database location, then you cannot use openLCA (with databases) at all really - I recommend then to install the zip version of openLCA (extract in your user directory), then you should have write access to the location of the databases (in your user account). You can even configure the location of the databases to a different folder (https://ask.openlca.org/20/how-to-change-the-folder-in-which-openlca-saves-databases?show=20#q20).

But maybe I am not fully getting your question?

...