org.h2.jdbc.JdbcSQLException

IO Exception: "java.io.FileNotFoundException: /var/lib/test.sql (Permission denied)"; SQL statement: SCRIPT TO '/var/lib/test.sql' [90028-188]

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1189

  • IO Exception: "java.io.FileNotFoundException: /var/lib/test.sql (Permission denied)"; SQL statement: SCRIPT TO '/var/lib/test.sql' [90028-188]
  • via Geographic Information Systems by GeorgeC
    , 5 months ago
    IO Exception: "java.io.FileNotFoundException: /var/lib/tomcat7/geonetwork.lock.db (Permission denied)"; "/var/lib/tomcat7/geonetwork.lock.db"
  • Syntax error in SQL statement "SCRIPT TO '' TEST[*].SQL "; SQL statement: SCRIPT TO '' test.sql [42000-194]
  • Stack trace

    • org.h2.jdbc.JdbcSQLException: IO Exception: "java.io.FileNotFoundException: /var/lib/test.sql (Permission denied)"; SQL statement: SCRIPT TO '/var/lib/test.sql' [90028-188] at org.h2.message.DbException.getJdbcSQLException(DbException.java:345) at org.h2.message.DbException.get(DbException.java:168) at org.h2.message.DbException.convertIOException(DbException.java:328) at org.h2.command.dml.ScriptBase.openOutput(ScriptBase.java:146) at org.h2.command.dml.ScriptCommand.query(ScriptCommand.java:159) at org.h2.command.CommandContainer.query(CommandContainer.java:90) at org.h2.command.Command.executeQuery(Command.java:197) at org.h2.server.TcpServerThread.process(TcpServerThread.java:320) at org.h2.server.TcpServerThread.run(TcpServerThread.java:159) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.FileNotFoundException: /var/lib/test.sql (Permission denied) at java.io.FileOutputStream.open0(Native Method) at java.io.FileOutputStream.open(FileOutputStream.java:270) at java.io.FileOutputStream.<init>(FileOutputStream.java:213) at java.io.FileOutputStream.<init>(FileOutputStream.java:101) at org.h2.store.fs.FilePathDisk.newOutputStream(FilePathDisk.java:290) at org.h2.store.fs.FileUtils.newOutputStream(FileUtils.java:233) at org.h2.command.dml.ScriptBase.openOutput(ScriptBase.java:144) ... 6 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 1 week ago
    Once, 1 month ago
    2 times, 1 month ago
    Once, 2 months ago
    1263 times, 5 months ago
    166 more bugmates