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 while creating file ""/opt/keycloak/data/h2"" #1

Open
fredsilvi opened this issue Dec 4, 2023 · 0 comments
Open

Error while creating file ""/opt/keycloak/data/h2"" #1

fredsilvi opened this issue Dec 4, 2023 · 0 comments

Comments

@fredsilvi
Copy link

Hi,
Thanks for this nice sample of rust code in a Keycloak scene.
Currently, I am facing an issue raising after 'docker compose up' (due to h2 database).

Regards,

keycloak-keycloak-1               | 2023-12-04 15:48:47,119 WARN  [io.quarkus.agroal.runtime.DataSources] (main) Datasource <default> enables XA but transaction recovery is not enabled. Please enable transaction recovery by setting quarkus.transaction-manager.enable-recovery=true, otherwise data may be lost if the application is terminated abruptly
keycloak-keycloak-1               | 2023-12-04 15:48:48,249 WARN  [org.infinispan.PERSISTENCE] (keycloak-cache-init) ISPN000554: jboss-marshalling is deprecated and planned for removal
keycloak-keycloak-1               | 2023-12-04 15:48:48,415 INFO  [org.infinispan.CONTAINER] (keycloak-cache-init) ISPN000556: Starting user marshaller 'org.infinispan.jboss.marshalling.core.JBossUserMarshaller'
keycloak-keycloak-1               | org.h2.message.DbException: Log file error: "/opt/keycloak/data/h2/keycloakdb.trace.db", cause: "org.h2.message.DbException: Error while creating file ""/opt/keycloak/data/h2"" [90062-220]" [90034-220]
keycloak-keycloak-1               | org.h2.message.DbException: Log file error: "/opt/keycloak/data/h2/keycloakdb.trace.db", cause: "org.h2.message.DbException: Error while creating file ""/opt/keycloak/data/h2"" [90062-220]" [90034-220]
keycloak-keycloak-1               |     at org.h2.message.DbException.get(DbException.java:212)
keycloak-keycloak-1               |     at org.h2.message.TraceSystem.logWritingError(TraceSystem.java:294)
keycloak-keycloak-1               |     at org.h2.message.TraceSystem.openWriter(TraceSystem.java:315)
keycloak-keycloak-1               |     at org.h2.message.TraceSystem.writeFile(TraceSystem.java:263)
keycloak-keycloak-1               |     at org.h2.message.TraceSystem.write(TraceSystem.java:247)
keycloak-keycloak-1               |     at org.h2.message.Trace.error(Trace.java:187)
keycloak-keycloak-1               |     at org.h2.engine.Database.<init>(Database.java:395)
keycloak-keycloak-1               |     at org.h2.engine.Engine.openSession(Engine.java:92)
keycloak-keycloak-1               |     at org.h2.engine.Engine.openSession(Engine.java:222)
keycloak-keycloak-1               |     at org.h2.engine.Engine.createSession(Engine.java:201)
keycloak-keycloak-1               |     at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:338)
keycloak-keycloak-1               |     at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:122)
keycloak-keycloak-1               |     at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:322)
keycloak-keycloak-1               |     at io.agroal.pool.ConnectionFactory.createConnection(ConnectionFactory.java:232)
keycloak-keycloak-1               |     at io.agroal.pool.ConnectionPool$CreateConnectionTask.call(ConnectionPool.java:536)
keycloak-keycloak-1               |     at io.agroal.pool.ConnectionPool$CreateConnectionTask.call(ConnectionPool.java:517)
keycloak-keycloak-1               |     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
keycloak-keycloak-1               |     at io.agroal.pool.util.PriorityScheduledExecutor.beforeExecute(PriorityScheduledExecutor.java:75)
keycloak-keycloak-1               |     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
keycloak-keycloak-1               |     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
keycloak-keycloak-1               |     at java.base/java.lang.Thread.run(Thread.java:833)
keycloak-keycloak-1               | Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Log file error: "/opt/keycloak/data/h2/keycloakdb.trace.db", cause: "org.h2.message.DbException: Error while creating file ""/opt/keycloak/data/h2"" [90062-220]" [90034-220]
keycloak-keycloak-1               |     at org.h2.message.DbException.getJdbcSQLException(DbException.java:566)
keycloak-keycloak-1               |     at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
keycloak-keycloak-1               |     ... 21 more
keycloak-keycloak-1               | Caused by: org.h2.message.DbException: Error while creating file "/opt/keycloak/data/h2" [90062-220]
keycloak-keycloak-1               |     at org.h2.message.DbException.get(DbException.java:212)
keycloak-keycloak-1               |     at org.h2.store.fs.disk.FilePathDisk.createDirectory(FilePathDisk.java:391)
keycloak-keycloak-1               |     at org.h2.store.fs.FileUtils.createDirectory(FileUtils.java:85)
keycloak-keycloak-1               |     at org.h2.store.fs.FileUtils.createDirectories(FileUtils.java:382)
keycloak-keycloak-1               |     at org.h2.message.TraceSystem.openWriter(TraceSystem.java:305)
keycloak-keycloak-1               |     ... 18 more
keycloak-keycloak-1               | Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Error while creating file "/opt/keycloak/data/h2" [90062-220]
keycloak-keycloak-1               |     at org.h2.message.DbException.getJdbcSQLException(DbException.java:566)
keycloak-keycloak-1               |     at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
keycloak-keycloak-1               |     ... 23 more
keycloak-keycloak-1               | Caused by: java.nio.file.AccessDeniedException: /opt/keycloak/data/h2
keycloak-keycloak-1               |     at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
keycloak-keycloak-1               |     at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
keycloak-keycloak-1               |     at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
keycloak-keycloak-1               |     at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:397)
keycloak-keycloak-1               |     at java.base/java.nio.file.Files.createDirectory(Files.java:700)
keycloak-keycloak-1               |     at org.h2.store.fs.disk.FilePathDisk.createDirectory(FilePathDisk.java:382)
keycloak-keycloak-1               |     ... 21 more
keycloak-keycloak-1               | 2023-12-04 15:48:50,669 WARN  [io.agroal.pool] (agroal-11) Datasource '<default>': Error while creating file "/opt/keycloak/data/h2" [90062-220]
keycloak-keycloak-1               | 2023-12-04 15:48:50,670 WARN  [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator] (JPA Startup Thread) HHH000342: Could not obtain connection to query metadata: org.h2.jdbc.JdbcSQLNonTransientException: Error while creating file "/opt/keycloak/data/h2" [90062-220]
keycloak-keycloak-1               |     at org.h2.message.DbException.getJdbcSQLException(DbException.java:566)
keycloak-keycloak-1               |     at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
keycloak-keycloak-1               |     at org.h2.message.DbException.get(DbException.java:212)
keycloak-keycloak-1               |     at org.h2.store.fs.disk.FilePathDisk.createDirectory(FilePathDisk.java:391)
keycloak-keycloak-1               |     at org.h2.store.fs.FileUtils.createDirectory(FileUtils.java:85)
keycloak-keycloak-1               |     at org.h2.store.fs.FileUtils.createDirectories(FileUtils.java:382)
keycloak-keycloak-1               |     at org.h2.store.FileLock.lockFile(FileLock.java:316)
keycloak-keycloak-1               |     at org.h2.store.FileLock.lock(FileLock.java:110)
keycloak-keycloak-1               |     at org.h2.engine.Database.<init>(Database.java:315)
keycloak-keycloak-1               |     at org.h2.engine.Engine.openSession(Engine.java:92)
keycloak-keycloak-1               |     at org.h2.engine.Engine.openSession(Engine.java:222)
keycloak-keycloak-1               |     at org.h2.engine.Engine.createSession(Engine.java:201)
keycloak-keycloak-1               |     at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:338)
keycloak-keycloak-1               |     at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:122)
keycloak-keycloak-1               |     at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:322)
keycloak-keycloak-1               |     at io.agroal.pool.ConnectionFactory.createConnection(ConnectionFactory.java:232)
keycloak-keycloak-1               |     at io.agroal.pool.ConnectionPool$CreateConnectionTask.call(ConnectionPool.java:536)
keycloak-keycloak-1               |     at io.agroal.pool.ConnectionPool$CreateConnectionTask.call(ConnectionPool.java:517)
keycloak-keycloak-1               |     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
keycloak-keycloak-1               |     at io.agroal.pool.util.PriorityScheduledExecutor.beforeExecute(PriorityScheduledExecutor.java:75)
keycloak-keycloak-1               |     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
keycloak-keycloak-1               |     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
keycloak-keycloak-1               |     at java.base/java.lang.Thread.run(Thread.java:833)
keycloak-keycloak-1               | Caused by: java.nio.file.AccessDeniedException: /opt/keycloak/data/h2
keycloak-keycloak-1               |     at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
keycloak-keycloak-1               |     at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
keycloak-keycloak-1               |     at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
keycloak-keycloak-1               |     at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:397)
keycloak-keycloak-1               |     at java.base/java.nio.file.Files.createDirectory(Files.java:700)
keycloak-keycloak-1               |     at org.h2.store.fs.disk.FilePathDisk.createDirectory(FilePathDisk.java:382)
keycloak-keycloak-1               |     ... 19 more
keycloak-keycloak-1               | 
keycloak-keycloak-1               | 2023-12-04 15:48:52,147 INFO  [org.keycloak.connections.infinispan.DefaultInfinispanConnectionProviderFactory] (main) Node name: node_238043, Site name: null
keycloak-keycloak-1               | 2023-12-04 15:48:52,150 INFO  [org.keycloak.broker.provider.AbstractIdentityProviderMapper] (main) Registering class org.keycloak.broker.provider.mappersync.ConfigSyncEventListener
keycloak-keycloak-1               | org.h2.message.DbException: Log file error: "/opt/keycloak/data/h2/keycloakdb.trace.db", cause: "org.h2.message.DbException: Error while creating file ""/opt/keycloak/data/h2"" [90062-220]" [90034-220]
keycloak-keycloak-1               | org.h2.message.DbException: Log file error: "/opt/keycloak/data/h2/keycloakdb.trace.db", cause: "org.h2.message.DbException: Error while creating file ""/opt/keycloak/data/h2"" [90062-220]" [90034-220]
keycloak-keycloak-1               |     at org.h2.message.DbException.get(DbException.java:212)
keycloak-keycloak-1               |     at org.h2.message.TraceSystem.logWritingError(TraceSystem.java:294)
keycloak-keycloak-1               |     at org.h2.message.TraceSystem.openWriter(TraceSystem.java:315)
keycloak-keycloak-1               |     at org.h2.message.TraceSystem.writeFile(TraceSystem.java:263)
keycloak-keycloak-1               |     at org.h2.message.TraceSystem.write(TraceSystem.java:247)
keycloak-keycloak-1               |     at org.h2.message.Trace.error(Trace.java:187)
keycloak-keycloak-1               |     at org.h2.engine.Database.<init>(Database.java:395)
keycloak-keycloak-1               |     at org.h2.engine.Engine.openSession(Engine.java:92)
keycloak-keycloak-1               |     at org.h2.engine.Engine.openSession(Engine.java:222)
keycloak-keycloak-1               |     at org.h2.engine.Engine.createSession(Engine.java:201)
keycloak-keycloak-1               |     at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:338)
keycloak-keycloak-1               |     at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:122)
keycloak-keycloak-1               |     at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:322)
keycloak-keycloak-1               |     at io.agroal.pool.ConnectionFactory.createConnection(ConnectionFactory.java:232)
keycloak-keycloak-1               |     at io.agroal.pool.ConnectionPool$CreateConnectionTask.call(ConnectionPool.java:536)
keycloak-keycloak-1               |     at io.agroal.pool.ConnectionPool$CreateConnectionTask.call(ConnectionPool.java:517)
keycloak-keycloak-1               |     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
keycloak-keycloak-1               |     at io.agroal.pool.util.PriorityScheduledExecutor.beforeExecute(PriorityScheduledExecutor.java:75)
keycloak-keycloak-1               |     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
keycloak-keycloak-1               |     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
keycloak-keycloak-1               |     at java.base/java.lang.Thread.run(Thread.java:833)
keycloak-keycloak-1               | Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Log file error: "/opt/keycloak/data/h2/keycloakdb.trace.db", cause: "org.h2.message.DbException: Error while creating file ""/opt/keycloak/data/h2"" [90062-220]" [90034-220]
keycloak-keycloak-1               |     at org.h2.message.DbException.getJdbcSQLException(DbException.java:566)
keycloak-keycloak-1               |     at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
keycloak-keycloak-1               |     ... 21 more
keycloak-keycloak-1               | Caused by: org.h2.message.DbException: Error while creating file "/opt/keycloak/data/h2" [90062-220]
keycloak-keycloak-1               |     at org.h2.message.DbException.get(DbException.java:212)
keycloak-keycloak-1               |     at org.h2.store.fs.disk.FilePathDisk.createDirectory(FilePathDisk.java:391)
keycloak-keycloak-1               |     at org.h2.store.fs.FileUtils.createDirectory(FileUtils.java:85)
keycloak-keycloak-1               |     at org.h2.store.fs.FileUtils.createDirectories(FileUtils.java:382)
keycloak-keycloak-1               |     at org.h2.message.TraceSystem.openWriter(TraceSystem.java:305)
keycloak-keycloak-1               |     ... 18 more
keycloak-keycloak-1               | Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Error while creating file "/opt/keycloak/data/h2" [90062-220]
keycloak-keycloak-1               |     at org.h2.message.DbException.getJdbcSQLException(DbException.java:566)
keycloak-keycloak-1               |     at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
keycloak-keycloak-1               |     ... 23 more
keycloak-keycloak-1               | Caused by: java.nio.file.AccessDeniedException: /opt/keycloak/data/h2
keycloak-keycloak-1               |     at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
keycloak-keycloak-1               |     at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
keycloak-keycloak-1               |     at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
keycloak-keycloak-1               |     at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:397)
keycloak-keycloak-1               |     at java.base/java.nio.file.Files.createDirectory(Files.java:700)
keycloak-keycloak-1               |     at org.h2.store.fs.disk.FilePathDisk.createDirectory(FilePathDisk.java:382)
keycloak-keycloak-1               |     ... 21 more
keycloak-keycloak-1               | 2023-12-04 15:48:55,000 WARN  [io.agroal.pool] (agroal-11) Datasource '<default>': Error while creating file "/opt/keycloak/data/h2" [90062-220]
keycloak-keycloak-1               | 2023-12-04 15:48:55,146 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Failed to start server in (production) mode
keycloak-keycloak-1               | 2023-12-04 15:48:55,149 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) Error details:: java.lang.RuntimeException: Failed to obtain JDBC connection
keycloak-keycloak-1               |     at org.keycloak.quarkus.runtime.storage.database.jpa.AbstractJpaConnectionProviderFactory.getConnection(AbstractJpaConnectionProviderFactory.java:52)
keycloak-keycloak-1               |     at org.keycloak.quarkus.runtime.storage.legacy.database.LegacyJpaConnectionProviderFactory.postInit(LegacyJpaConnectionProviderFactory.java:114)
keycloak-keycloak-1               |     at org.keycloak.quarkus.runtime.integration.QuarkusKeycloakSessionFactory.init(QuarkusKeycloakSessionFactory.java:105)
keycloak-keycloak-1               |     at org.keycloak.quarkus.runtime.integration.jaxrs.QuarkusKeycloakApplication.createSessionFactory(QuarkusKeycloakApplication.java:45)
keycloak-keycloak-1               |     at org.keycloak.services.resources.KeycloakApplication.startup(KeycloakApplication.java:125)
keycloak-keycloak-1               |     at org.keycloak.quarkus.runtime.integration.QuarkusLifecycleObserver.onStartupEvent(QuarkusLifecycleObserver.java:37)
keycloak-keycloak-1               |     at org.keycloak.quarkus.runtime.integration.QuarkusLifecycleObserver_Observer_onStartupEvent_c9888fa6c2aa9208d4625ee9d83de6fd77e22c83.notify(Unknown Source)
keycloak-keycloak-1               |     at io.quarkus.arc.impl.EventImpl$Notifier.notifyObservers(EventImpl.java:346)
keycloak-keycloak-1               |     at io.quarkus.arc.impl.EventImpl$Notifier.notify(EventImpl.java:328)
keycloak-keycloak-1               |     at io.quarkus.arc.impl.EventImpl.fire(EventImpl.java:82)
keycloak-keycloak-1               |     at io.quarkus.arc.runtime.ArcRecorder.fireLifecycleEvent(ArcRecorder.java:155)
keycloak-keycloak-1               |     at io.quarkus.arc.runtime.ArcRecorder.handleLifecycleEvents(ArcRecorder.java:106)
keycloak-keycloak-1               |     at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent1144526294.deploy_0(Unknown Source)
keycloak-keycloak-1               |     at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent1144526294.deploy(Unknown Source)
keycloak-keycloak-1               |     at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)
keycloak-keycloak-1               |     at io.quarkus.runtime.Application.start(Application.java:101)
keycloak-keycloak-1               |     at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:111)
keycloak-keycloak-1               |     at io.quarkus.runtime.Quarkus.run(Quarkus.java:71)
keycloak-keycloak-1               |     at org.keycloak.quarkus.runtime.KeycloakMain.start(KeycloakMain.java:98)
keycloak-keycloak-1               |     at org.keycloak.quarkus.runtime.cli.command.AbstractStartCommand.run(AbstractStartCommand.java:37)
keycloak-keycloak-1               |     at picocli.CommandLine.executeUserObject(CommandLine.java:2026)
keycloak-keycloak-1               |     at picocli.CommandLine.access$1500(CommandLine.java:148)
keycloak-keycloak-1               |     at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
keycloak-keycloak-1               |     at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
keycloak-keycloak-1               |     at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
keycloak-keycloak-1               |     at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
keycloak-keycloak-1               |     at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
keycloak-keycloak-1               |     at picocli.CommandLine.execute(CommandLine.java:2170)
keycloak-keycloak-1               |     at org.keycloak.quarkus.runtime.cli.Picocli.parseAndRun(Picocli.java:100)
keycloak-keycloak-1               |     at org.keycloak.quarkus.runtime.KeycloakMain.main(KeycloakMain.java:88)
keycloak-keycloak-1               |     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
keycloak-keycloak-1               |     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
keycloak-keycloak-1               |     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
keycloak-keycloak-1               |     at java.base/java.lang.reflect.Method.invoke(Method.java:568)
keycloak-keycloak-1               |     at io.quarkus.bootstrap.runner.QuarkusEntryPoint.doRun(QuarkusEntryPoint.java:61)
keycloak-keycloak-1               |     at io.quarkus.bootstrap.runner.QuarkusEntryPoint.main(QuarkusEntryPoint.java:32)
keycloak-keycloak-1               | Caused by: org.h2.jdbc.JdbcSQLNonTransientException: Error while creating file "/opt/keycloak/data/h2" [90062-220]
keycloak-keycloak-1               |     at org.h2.message.DbException.getJdbcSQLException(DbException.java:566)
keycloak-keycloak-1               |     at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
keycloak-keycloak-1               |     at org.h2.message.DbException.get(DbException.java:212)
keycloak-keycloak-1               |     at org.h2.store.fs.disk.FilePathDisk.createDirectory(FilePathDisk.java:391)
keycloak-keycloak-1               |     at org.h2.store.fs.FileUtils.createDirectory(FileUtils.java:85)
keycloak-keycloak-1               |     at org.h2.store.fs.FileUtils.createDirectories(FileUtils.java:382)
keycloak-keycloak-1               |     at org.h2.store.FileLock.lockFile(FileLock.java:316)
keycloak-keycloak-1               |     at org.h2.store.FileLock.lock(FileLock.java:110)
keycloak-keycloak-1               |     at org.h2.engine.Database.<init>(Database.java:315)
keycloak-keycloak-1               |     at org.h2.engine.Engine.openSession(Engine.java:92)
keycloak-keycloak-1               |     at org.h2.engine.Engine.openSession(Engine.java:222)
keycloak-keycloak-1               |     at org.h2.engine.Engine.createSession(Engine.java:201)
keycloak-keycloak-1               |     at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:338)
keycloak-keycloak-1               |     at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:122)
keycloak-keycloak-1               |     at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:322)
keycloak-keycloak-1               |     at io.agroal.pool.ConnectionFactory.createConnection(ConnectionFactory.java:232)
keycloak-keycloak-1               |     at io.agroal.pool.ConnectionPool$CreateConnectionTask.call(ConnectionPool.java:536)
keycloak-keycloak-1               |     at io.agroal.pool.ConnectionPool$CreateConnectionTask.call(ConnectionPool.java:517)
keycloak-keycloak-1               |     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
keycloak-keycloak-1               |     at io.agroal.pool.util.PriorityScheduledExecutor.beforeExecute(PriorityScheduledExecutor.java:75)
keycloak-keycloak-1               |     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
keycloak-keycloak-1               |     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
keycloak-keycloak-1               |     at java.base/java.lang.Thread.run(Thread.java:833)
keycloak-keycloak-1               | Caused by: java.nio.file.AccessDeniedException: /opt/keycloak/data/h2
keycloak-keycloak-1               |     at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
keycloak-keycloak-1               |     at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
keycloak-keycloak-1               |     at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
keycloak-keycloak-1               |     at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:397)
keycloak-keycloak-1               |     at java.base/java.nio.file.Files.createDirectory(Files.java:700)
keycloak-keycloak-1               |     at org.h2.store.fs.disk.FilePathDisk.createDirectory(FilePathDisk.java:382)
keycloak-keycloak-1               |     ... 19 more
keycloak-keycloak-1               | 
keycloak-keycloak-1 exited with code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant