Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error create/restore database in macOs #374

Open
rosanagalindo opened this issue Dec 27, 2023 · 1 comment
Open

error create/restore database in macOs #374

rosanagalindo opened this issue Dec 27, 2023 · 1 comment

Comments

@rosanagalindo
Copy link

Hello,
I'm trying to install backup some databases from my old windows to a macOS (Sonoma 14.2.1, apparently the openLca was installed but it can't create/ restore any database, follow below the error

Error description

I tried to ??? but openLCA threw an error.

Steps to reproduce

  1. ?
  2. ?
  3. ?

Attached files

  • example database ?
  • screen shots ?
  • ...

openLCA error message

failed to create database

Installation details

  • openLCA version: 2.0.4
  • native libraries loaded: false
  • with sparse matrix support: false

Full error stack trace

java.lang.RuntimeException: failed to extract database template FLOWS to /Users/xxx/openLCA-data-1.4/databases/1
	at org.openlca.app.db.DbTemplate.extract(DbTemplate.java:34)
	at org.openlca.app.db.DatabaseWizard$Runner.createIt(DatabaseWizard.java:118)
	at org.openlca.app.db.DatabaseWizard$Runner.run(DatabaseWizard.java:90)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: java.nio.file.AccessDeniedException: /Users/xxx/openLCA-data-1.4/databases/1
	at java.base/sun.nio.fs.UnixException.translateToIOException(Unknown Source)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source)
	at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(Unknown Source)
	at java.base/java.nio.file.Files.createDirectory(Unknown Source)
	at java.base/java.nio.file.Files.createAndCheckIsDirectory(Unknown Source)
	at java.base/java.nio.file.Files.createDirectories(Unknown Source)
	at org.openlca.app.db.DbTemplate.extract(DbTemplate.java:30)
	... 3 more

Many thanks

@francoislerall
Copy link
Member

Hello,
From the log file I can see that openLCA could not access the DB (AccessDeniedException: /Users/xxx/openLCA-data-1.4/databases/1). Could it be that this folder has restricted access? You could check the permission for openLCA or install the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants