java.lang.RuntimeException: Failed to start file sync to db: Failed to insert config 'artifactory.support.support-bundle-20170202-2153523-1486072432334.zip' to database.

JFrog JIRA | Arturo Aparicio | 2 weeks ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Artifactory 5 tries to sync support bundles via the DB. Since these files can be very large, they can produce a failure and cause Artifactory to fail to start up. To reproduce: 1. Create an Artifatory HA 5 instance 2. In the $ARTIFACTORY_HOME/support directory, create a large bundle (for example fallocate -l 2G support-bundle-20170202-2153523-1486072432334.zip) 3. Restart the node under which the bundle was created and observe the failure Notice the error in the $ARTIFACTORY_HOME/logs/catalina/localhost-DATE.log: {noformat} 02-Feb-2017 21:57:06.143 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class org.artifactory.webapp.servlet.ArtifactoryHomeConfigListener java.lang.RuntimeException: Failed to start file sync to db: Failed to insert config 'artifactory.support.support-bundle-20170202-2153523-1486072432334.zip' to database. at org.artifactory.common.config.ConfigurationManagerImpl.startSync(ConfigurationManagerImpl.java:153) at org.artifactory.webapp.servlet.BasicConfigManagers.initHomes(BasicConfigManagers.java:74) at org.artifactory.webapp.servlet.BasicConfigManagers.initialize(BasicConfigManagers.java:56) at org.artifactory.webapp.servlet.ArtifactoryHomeConfigListener.contextInitialized(ArtifactoryHomeConfigListener.java:53) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4853) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:587) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1798) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.artifactory.common.config.db.ConfigUpdateException: Failed to insert config 'artifactory.support.support-bundle-20170202-2153523-1486072432334.zip' to database. at org.artifactory.common.config.db.ConfigsDataAccessObject.setConfig(ConfigsDataAccessObject.java:142) at org.artifactory.common.config.wrappers.ConfigWrapperImpl.fileToDb(ConfigWrapperImpl.java:275) at org.artifactory.common.config.wrappers.ConfigWrapperImpl.modifyInternal(ConfigWrapperImpl.java:227) at org.artifactory.common.config.wrappers.ConfigWrapperImpl.modifiedWithRetry(ConfigWrapperImpl.java:208) at org.artifactory.common.config.wrappers.ConfigWrapperImpl.modifiedWithRetry(ConfigWrapperImpl.java:211) at org.artifactory.common.config.wrappers.ConfigWrapperImpl.modifiedWithRetry(ConfigWrapperImpl.java:211) at org.artifactory.common.config.wrappers.ConfigWrapperImpl.modifiedWithRetry(ConfigWrapperImpl.java:211) at org.artifactory.common.config.wrappers.ConfigWrapperImpl.initialize(ConfigWrapperImpl.java:70) at org.artifactory.common.config.wrappers.ConfigWrapperImpl.<init>(ConfigWrapperImpl.java:58) at org.artifactory.common.config.ConfigurationManagerImpl.registerFolder(ConfigurationManagerImpl.java:245) at org.artifactory.common.config.ConfigurationManagerImpl.registerSharedFiles(ConfigurationManagerImpl.java:212) at org.artifactory.common.config.ConfigurationManagerImpl.startFileSync(ConfigurationManagerImpl.java:187) at org.artifactory.common.config.ConfigurationManagerImpl.startSync(ConfigurationManagerImpl.java:149) ... 16 more Caused by: java.sql.SQLException: Error reading from InputStream java.lang.IndexOutOfBoundsException at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:998) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:937) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:872) at com.mysql.jdbc.PreparedStatement.readblock(PreparedStatement.java:2712) at com.mysql.jdbc.PreparedStatement.streamToBytes(PreparedStatement.java:4514) at com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.java:2238) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2092) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2049) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2034) at org.artifactory.common.config.db.TemporaryDBChannel.executeUpdate(TemporaryDBChannel.java:62) at org.artifactory.common.config.db.ConfigsDataAccessObject.setConfig(ConfigsDataAccessObject.java:139) ... 28 more Caused by: java.lang.IndexOutOfBoundsException at java.io.FileInputStream.readBytes(Native Method) at java.io.FileInputStream.read(FileInputStream.java:255) at com.mysql.jdbc.PreparedStatement.readblock(PreparedStatement.java:2710) ... 35 more {noformat}

    JFrog JIRA | 2 weeks ago | Arturo Aparicio
    java.lang.RuntimeException: Failed to start file sync to db: Failed to insert config 'artifactory.support.support-bundle-20170202-2153523-1486072432334.zip' to database.
  2. 0

    Trying to install on OEL linux and have followed the steps in the documentation. We're using Oracle for our DB when we start the service, we see plenty of errors: the localhost log has these: Aug 30, 2013 4:15:45 PM org.apache.catalina.core.ApplicationContext log INFO: No Spring WebApplicationInitializer types detected on classpath Aug 30, 2013 4:15:45 PM org.apache.catalina.core.ApplicationContext log INFO: Using artifactory.home at '/apps/artifactory-current' resolved from: System property Aug 30, 2013 4:15:45 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.artifactory.webapp.servlet.ArtifactoryHomeConfigListener java.lang.IllegalArgumentException: Could not initialize artifactory main directory due to: Unable to create directory /apps/artifactory-current/etc/ui at org.artifactory.common.ArtifactoryHome.create(ArtifactoryHome.java:206) at org.artifactory.common.ArtifactoryHome.<init>(ArtifactoryHome.java:90) at org.artifactory.webapp.servlet.ArtifactoryHomeConfigListener.contextInitialized(ArtifactoryHomeConfigListener.java:44) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: java.io.IOException: Unable to create directory /apps/artifactory-current/etc/ui at org.apache.commons.io.FileUtils.forceMkdir(FileUtils.java:2024) at org.artifactory.common.ArtifactoryHome.getOrCreateSubDir(ArtifactoryHome.java:161) at org.artifactory.common.ArtifactoryHome.create(ArtifactoryHome.java:177) ... 16 more Aug 30, 2013 4:15:45 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.artifactory.webapp.servlet.logback.LogbackConfigListener java.lang.IllegalStateException: Artifactory home not initialized at org.artifactory.webapp.servlet.logback.LogbackConfigListener.contextInitialized(LogbackConfigListener.java:54) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Aug 30, 2013 4:15:45 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.artifactory.webapp.servlet.ArtifactoryContextConfigListener java.lang.IllegalStateException: Artifactory home not initialized. at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.setSessionTrackingMode(ArtifactoryContextConfigListener.java:139) at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.contextInitialized(ArtifactoryContextConfigListener.java:65) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Aug 30, 2013 4:15:45 PM org.apache.catalina.core.StandardContext listenerStop SEVERE: Exception sending context destroyed event to listener instance of class org.artifactory.webapp.servlet.ArtifactoryContextConfigListener java.lang.NullPointerException at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.contextDestroyed(ArtifactoryContextConfigListener.java:245) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4927) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5573) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Aug 30, 2013 4:15:45 PM org.apache.catalina.core.StandardContext listenerStop SEVERE: Exception sending context destroyed event to listener instance of class org.artifactory.webapp.servlet.logback.LogbackConfigListener java.lang.NullPointerException at org.artifactory.webapp.servlet.logback.LogbackConfigListener.contextDestroyed(LogbackConfigListener.java:85) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4927) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5573) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Aug 30, 2013 4:51:49 PM org.apache.catalina.core.ApplicationContext log INFO: No Spring WebApplicationInitializer types detected on classpath Aug 30, 2013 4:51:49 PM org.apache.catalina.core.ApplicationContext log INFO: Using artifactory.home at '/apps/artifactory-current' resolved from: System property Aug 30, 2013 4:51:49 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.artifactory.webapp.servlet.ArtifactoryHomeConfigListener java.lang.IllegalArgumentException: Could not initialize artifactory main directory due to: Unable to create directory /apps/artifactory-current/etc/ui at org.artifactory.common.ArtifactoryHome.create(ArtifactoryHome.java:206) at org.artifactory.common.ArtifactoryHome.<init>(ArtifactoryHome.java:90) at org.artifactory.webapp.servlet.ArtifactoryHomeConfigListener.contextInitialized(ArtifactoryHomeConfigListener.java:44) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: java.io.IOException: Unable to create directory /apps/artifactory-current/etc/ui at org.apache.commons.io.FileUtils.forceMkdir(FileUtils.java:2024) at org.artifactory.common.ArtifactoryHome.getOrCreateSubDir(ArtifactoryHome.java:161) at org.artifactory.common.ArtifactoryHome.create(ArtifactoryHome.java:177) ... 16 more Aug 30, 2013 4:51:49 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.artifactory.webapp.servlet.logback.LogbackConfigListener java.lang.IllegalStateException: Artifactory home not initialized at org.artifactory.webapp.servlet.logback.LogbackConfigListener.contextInitialized(LogbackConfigListener.java:54) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Aug 30, 2013 4:51:49 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.artifactory.webapp.servlet.ArtifactoryContextConfigListener java.lang.IllegalStateException: Artifactory home not initialized. at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.setSessionTrackingMode(ArtifactoryContextConfigListener.java:139) at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.contextInitialized(ArtifactoryContextConfigListener.java:65) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Aug 30, 2013 4:51:50 PM org.apache.catalina.core.StandardContext listenerStop SEVERE: Exception sending context destroyed event to listener instance of class org.artifactory.webapp.servlet.ArtifactoryContextConfigListener java.lang.NullPointerException at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.contextDestroyed(ArtifactoryContextConfigListener.java:245) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4927) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5573) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Aug 30, 2013 4:51:50 PM org.apache.catalina.core.StandardContext listenerStop SEVERE: Exception sending context destroyed event to listener instance of class org.artifactory.webapp.servlet.logback.LogbackConfigListener java.lang.NullPointerException at org.artifactory.webapp.servlet.logback.LogbackConfigListener.contextDestroyed(LogbackConfigListener.java:85) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4927) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5573) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724)

    JFrog JIRA | 3 years ago | Richard Brosnahan
    java.lang.IllegalArgumentException: Could not initialize artifactory main directory due to: Unable to create directory /apps/artifactory-current/etc/ui
  3. 0

    Trying to install on OEL linux and have followed the steps in the documentation. We're using Oracle for our DB when we start the service, we see plenty of errors: the localhost log has these: Aug 30, 2013 4:15:45 PM org.apache.catalina.core.ApplicationContext log INFO: No Spring WebApplicationInitializer types detected on classpath Aug 30, 2013 4:15:45 PM org.apache.catalina.core.ApplicationContext log INFO: Using artifactory.home at '/apps/artifactory-current' resolved from: System property Aug 30, 2013 4:15:45 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.artifactory.webapp.servlet.ArtifactoryHomeConfigListener java.lang.IllegalArgumentException: Could not initialize artifactory main directory due to: Unable to create directory /apps/artifactory-current/etc/ui at org.artifactory.common.ArtifactoryHome.create(ArtifactoryHome.java:206) at org.artifactory.common.ArtifactoryHome.<init>(ArtifactoryHome.java:90) at org.artifactory.webapp.servlet.ArtifactoryHomeConfigListener.contextInitialized(ArtifactoryHomeConfigListener.java:44) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: java.io.IOException: Unable to create directory /apps/artifactory-current/etc/ui at org.apache.commons.io.FileUtils.forceMkdir(FileUtils.java:2024) at org.artifactory.common.ArtifactoryHome.getOrCreateSubDir(ArtifactoryHome.java:161) at org.artifactory.common.ArtifactoryHome.create(ArtifactoryHome.java:177) ... 16 more Aug 30, 2013 4:15:45 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.artifactory.webapp.servlet.logback.LogbackConfigListener java.lang.IllegalStateException: Artifactory home not initialized at org.artifactory.webapp.servlet.logback.LogbackConfigListener.contextInitialized(LogbackConfigListener.java:54) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Aug 30, 2013 4:15:45 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.artifactory.webapp.servlet.ArtifactoryContextConfigListener java.lang.IllegalStateException: Artifactory home not initialized. at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.setSessionTrackingMode(ArtifactoryContextConfigListener.java:139) at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.contextInitialized(ArtifactoryContextConfigListener.java:65) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Aug 30, 2013 4:15:45 PM org.apache.catalina.core.StandardContext listenerStop SEVERE: Exception sending context destroyed event to listener instance of class org.artifactory.webapp.servlet.ArtifactoryContextConfigListener java.lang.NullPointerException at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.contextDestroyed(ArtifactoryContextConfigListener.java:245) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4927) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5573) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Aug 30, 2013 4:15:45 PM org.apache.catalina.core.StandardContext listenerStop SEVERE: Exception sending context destroyed event to listener instance of class org.artifactory.webapp.servlet.logback.LogbackConfigListener java.lang.NullPointerException at org.artifactory.webapp.servlet.logback.LogbackConfigListener.contextDestroyed(LogbackConfigListener.java:85) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4927) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5573) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Aug 30, 2013 4:51:49 PM org.apache.catalina.core.ApplicationContext log INFO: No Spring WebApplicationInitializer types detected on classpath Aug 30, 2013 4:51:49 PM org.apache.catalina.core.ApplicationContext log INFO: Using artifactory.home at '/apps/artifactory-current' resolved from: System property Aug 30, 2013 4:51:49 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.artifactory.webapp.servlet.ArtifactoryHomeConfigListener java.lang.IllegalArgumentException: Could not initialize artifactory main directory due to: Unable to create directory /apps/artifactory-current/etc/ui at org.artifactory.common.ArtifactoryHome.create(ArtifactoryHome.java:206) at org.artifactory.common.ArtifactoryHome.<init>(ArtifactoryHome.java:90) at org.artifactory.webapp.servlet.ArtifactoryHomeConfigListener.contextInitialized(ArtifactoryHomeConfigListener.java:44) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: java.io.IOException: Unable to create directory /apps/artifactory-current/etc/ui at org.apache.commons.io.FileUtils.forceMkdir(FileUtils.java:2024) at org.artifactory.common.ArtifactoryHome.getOrCreateSubDir(ArtifactoryHome.java:161) at org.artifactory.common.ArtifactoryHome.create(ArtifactoryHome.java:177) ... 16 more Aug 30, 2013 4:51:49 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.artifactory.webapp.servlet.logback.LogbackConfigListener java.lang.IllegalStateException: Artifactory home not initialized at org.artifactory.webapp.servlet.logback.LogbackConfigListener.contextInitialized(LogbackConfigListener.java:54) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Aug 30, 2013 4:51:49 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.artifactory.webapp.servlet.ArtifactoryContextConfigListener java.lang.IllegalStateException: Artifactory home not initialized. at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.setSessionTrackingMode(ArtifactoryContextConfigListener.java:139) at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.contextInitialized(ArtifactoryContextConfigListener.java:65) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Aug 30, 2013 4:51:50 PM org.apache.catalina.core.StandardContext listenerStop SEVERE: Exception sending context destroyed event to listener instance of class org.artifactory.webapp.servlet.ArtifactoryContextConfigListener java.lang.NullPointerException at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.contextDestroyed(ArtifactoryContextConfigListener.java:245) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4927) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5573) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Aug 30, 2013 4:51:50 PM org.apache.catalina.core.StandardContext listenerStop SEVERE: Exception sending context destroyed event to listener instance of class org.artifactory.webapp.servlet.logback.LogbackConfigListener java.lang.NullPointerException at org.artifactory.webapp.servlet.logback.LogbackConfigListener.contextDestroyed(LogbackConfigListener.java:85) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4927) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5573) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:657) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1637) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724)

    JFrog JIRA | 3 years ago | Richard Brosnahan
    java.lang.IllegalArgumentException: Could not initialize artifactory main directory due to: Unable to create directory /apps/artifactory-current/etc/ui
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Getting a 404 after starting Artifactory/Tomcat running on centos

    Stack Overflow | 1 year ago | EGHDK
    java.lang.UnsupportedClassVersionError: org/artifactory/webapp/servlet/ArtifactoryHomeConfigListener : Unsupported major.minor version 52.0 (unable to load class org.artifactory.webapp.servlet.ArtifactoryHomeConfigListener)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IndexOutOfBoundsException

      No message provided

      at java.io.FileInputStream.readBytes()
    2. Java RT
      FileInputStream.read
      1. java.io.FileInputStream.readBytes(Native Method)
      2. java.io.FileInputStream.read(FileInputStream.java:255)
      2 frames
    3. MySQL jdbc
      PreparedStatement.executeUpdate
      1. com.mysql.jdbc.PreparedStatement.readblock(PreparedStatement.java:2710)
      2. com.mysql.jdbc.PreparedStatement.streamToBytes(PreparedStatement.java:4514)
      3. com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.java:2238)
      4. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2092)
      5. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2049)
      6. com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2034)
      6 frames
    4. org.artifactory.common
      ConfigurationManagerImpl.startSync
      1. org.artifactory.common.config.db.TemporaryDBChannel.executeUpdate(TemporaryDBChannel.java:62)
      2. org.artifactory.common.config.db.ConfigsDataAccessObject.setConfig(ConfigsDataAccessObject.java:139)
      3. org.artifactory.common.config.wrappers.ConfigWrapperImpl.fileToDb(ConfigWrapperImpl.java:275)
      4. org.artifactory.common.config.wrappers.ConfigWrapperImpl.modifyInternal(ConfigWrapperImpl.java:227)
      5. org.artifactory.common.config.wrappers.ConfigWrapperImpl.modifiedWithRetry(ConfigWrapperImpl.java:208)
      6. org.artifactory.common.config.wrappers.ConfigWrapperImpl.modifiedWithRetry(ConfigWrapperImpl.java:211)
      7. org.artifactory.common.config.wrappers.ConfigWrapperImpl.modifiedWithRetry(ConfigWrapperImpl.java:211)
      8. org.artifactory.common.config.wrappers.ConfigWrapperImpl.modifiedWithRetry(ConfigWrapperImpl.java:211)
      9. org.artifactory.common.config.wrappers.ConfigWrapperImpl.initialize(ConfigWrapperImpl.java:70)
      10. org.artifactory.common.config.wrappers.ConfigWrapperImpl.<init>(ConfigWrapperImpl.java:58)
      11. org.artifactory.common.config.ConfigurationManagerImpl.registerFolder(ConfigurationManagerImpl.java:245)
      12. org.artifactory.common.config.ConfigurationManagerImpl.registerSharedFiles(ConfigurationManagerImpl.java:212)
      13. org.artifactory.common.config.ConfigurationManagerImpl.startFileSync(ConfigurationManagerImpl.java:187)
      14. org.artifactory.common.config.ConfigurationManagerImpl.startSync(ConfigurationManagerImpl.java:149)
      14 frames
    5. org.artifactory.webapp
      ArtifactoryHomeConfigListener.contextInitialized
      1. org.artifactory.webapp.servlet.BasicConfigManagers.initHomes(BasicConfigManagers.java:74)
      2. org.artifactory.webapp.servlet.BasicConfigManagers.initialize(BasicConfigManagers.java:56)
      3. org.artifactory.webapp.servlet.ArtifactoryHomeConfigListener.contextInitialized(ArtifactoryHomeConfigListener.java:53)
      3 frames
    6. Glassfish Core
      HostConfig$DeployDescriptor.run
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4853)
      2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
      3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
      4. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)
      5. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)
      6. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
      7. org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:587)
      8. org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1798)
      8 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames