{"action":"created","issue":{"url":"https://api.github.com/repos/grundic/teamcity-avatar/issues/5","repository_url":"https://api.github.com/repos/grundic/teamcity-avatar","labels_url":"https://api.github.com/repos/grundic/teamcity-avatar/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/grundic/teamcity-avatar/issues/5/comments","events_url":"https://api.github.com/repos/grundic/teamcity-avatar/issues/5/events","html_url":"https://github.com/grundic/teamcity-avatar/issues/5","id":111170297,"number":5,"title":"velocity.log is created in the server's bin directory","user":{"login":"yaegor","id":3315,"avatar_url":"https://avatars.githubusercontent.com/u/3315?v=3","gravatar_id":"","url":"https://api.github.com/users/yaegor","html_url":"https://github.com/yaegor","followers_url":"https://api.github.com/users/yaegor/followers","following_url":"https://api.github.com/users/yaegor/following{/other_user}","gists_url":"https://api.github.com/users/yaegor/gists{/gist_id}","starred_url":"https://api.github.com/users/yaegor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaegor/subscriptions","organizations_url":"https://api.github.com/users/yaegor/orgs","repos_url":"https://api.github.com/users/yaegor/repos","events_url":"https://api.github.com/users/yaegor/events{/privacy}","received_events_url":"https://api.github.com/users/yaegor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-10-13T12:32:33Z","updated_at":"2016-08-11T10:42:25Z","closed_at":null,"body":"Plugin version 1.3, TeamCity 8.0+\r\n\r\nOnce plugin is installed, <TeamCity server home>\\bin\\velocity.log is created on the server start.\r\n\r\nThe log file (if at all necessary) should be created under <TeamCity server home>\\logs\\ but it is better to reroute the logging into the default Log4J used by TeamCity, if possible.\r\n\r\nProof stacktrace with TeamCity 9.1+:\r\n\r\n[2015-10-13 14:24:47,832]   WARN - inLoader$TeamCityPluginContext - Exception encountered during context initialization - cancelling refresh attempt \r\norg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'avatarProfileSupplierTemplateController' defined in plugin: teamcity-avatar#avatar-server-1.3.jar!/META-INF/build-server-plugin-teamcity-avatar.xml: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [ru.mail.teamcity.avatar.web.AvatarProfileSupplierTemplateController]: Constructor threw exception; nested exception is org.apache.velocity.exception.VelocityException: Error initializing log: Failed to initialize an instance of org.apache.velocity.runtime.log.AvalonLogChute with the current runtime configuration.\r\n\tat org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:278)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1115)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)\r\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:706)\r\n\tat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)\r\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)\r\n\tat jetbrains.buildServer.plugins.spring.SpringPluginLoader.pluginClassesLoaded(SpringPluginLoader.java:95)\r\n\tat sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)\r\n\tat java.lang.reflect.Method.invoke(Method.java:597)\r\n\tat jetbrains.buildServer.util.EventDispatcher.dispatch(EventDispatcher.java:120)\r\n\tat jetbrains.buildServer.util.EventDispatcher$2.invoke(EventDispatcher.java:67)\r\n\tat com.sun.proxy.$Proxy16.pluginClassesLoaded(Unknown Source)\r\n\tat jetbrains.buildServer.plugins.PluginManagerImpl$2.visitPlugin(PluginManagerImpl.java:137)\r\n\tat jetbrains.buildServer.plugins.PluginsCollection.foreachLoadedPlugins(PluginsCollection.java:222)\r\n\tat jetbrains.buildServer.plugins.PluginManagerImpl.firePluginClassesLoaded(PluginManagerImpl.java:135)\r\n\tat jetbrains.buildServer.plugins.PluginManagerImpl.loadPlugins(PluginManagerImpl.java:81)\r\n\tat jetbrains.buildServer.web.plugins.PluginManagerConfigurator.initializePlugins(PluginManagerConfigurator.java:3)\r\n\tat jetbrains.buildServer.web.impl.BuildServerConfigurator.loadConfiguration(BuildServerConfigurator.java:69)\r\n\tat jetbrains.buildServer.maintenance.TeamCityDispatcherServlet$WebApplicationCreatorAndDestroyer.createApplication(TeamCityDispatcherServlet.java:24)\r\n\tat jetbrains.buildServer.maintenance.StartupProcessor.doApplicationStarting(StartupProcessor.java:576)\r\n\tat jetbrains.buildServer.maintenance.StartupProcessor.processConcreteStage(StartupProcessor.java:589)\r\n\tat jetbrains.buildServer.maintenance.StartupProcessor.processConcreteStageSafe(StartupProcessor.java:543)\r\n\tat jetbrains.buildServer.maintenance.StartupProcessor.processTeamCityLifecycle(StartupProcessor.java:652)\r\n\tat jetbrains.buildServer.maintenance.StartupProcessor.access$000(StartupProcessor.java:587)\r\n\tat jetbrains.buildServer.maintenance.StartupProcessor$1.run(StartupProcessor.java)\r\n\tat java.lang.Thread.run(Thread.java:662)\r\nCaused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [ru.mail.teamcity.avatar.web.AvatarProfileSupplierTemplateController]: Constructor threw exception; nested exception is org.apache.velocity.exception.VelocityException: Error initializing log: Failed to initialize an instance of org.apache.velocity.runtime.log.AvalonLogChute with the current runtime configuration.\r\n\tat org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:164)\r\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:125)\r\n\tat jetbrains.buildServer.spring.InstantiationStrategySelector$1.instantiate(InstantiationStrategySelector.java:77)\r\n\tat org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:270)\r\n\t... 32 more\r\nCaused by: org.apache.velocity.exception.VelocityException: Error initializing log: Failed to initialize an instance of org.apache.velocity.runtime.log.AvalonLogChute with the current runtime configuration.\r\n\tat org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:875)\r\n\tat org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:262)\r\n\tat org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:93)\r\n\tat ru.mail.teamcity.avatar.web.AvatarProfileSupplierTemplateController.initVelocity(AvatarProfileSupplierTemplateController.java:55)\r\n\tat ru.mail.teamcity.avatar.web.AvatarProfileSupplierTemplateController.<init>(AvatarProfileSupplierTemplateController.java:47)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)\r\n\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)\r\n\tat java.lang.reflect.Constructor.newInstance(Constructor.java:513)\r\n\tat org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)\r\n\t... 35 more\r\nCaused by: org.apache.velocity.exception.VelocityException: Failed to initialize an instance of org.apache.velocity.runtime.log.AvalonLogChute with the current runtime configuration.\r\n\tat org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:220)\r\n\tat org.apache.velocity.runtime.log.LogManager.updateLog(LogManager.java:269)\r\n\tat org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:871)\r\n\t... 44 more\r\nCaused by: java.lang.Exception: Error configuring AvalonLogChute : java.io.FileNotFoundException: D:\\Work\\TeamCity-37221\\bin\\velocity.log (Access is denied)\r\n\tat org.apache.velocity.runtime.log.AvalonLogChute.initTarget(AvalonLogChute.java:119)\r\n\tat org.apache.velocity.runtime.log.AvalonLogChute.init(AvalonLogChute.java:89)\r\n\tat org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:157)\r\n\t... 46 more"},"comment":{"url":"https://api.github.com/repos/grundic/teamcity-avatar/issues/comments/239127481","html_url":"https://github.com/grundic/teamcity-avatar/issues/5#issuecomment-239127481","issue_url":"https://api.github.com/repos/grundic/teamcity-avatar/issues/5","id":239127481,"user":{"login":"CoolAnkur","id":1935420,"avatar_url":"https://avatars.githubusercontent.com/u/1935420?v=3","gravatar_id":"","url":"https://api.github.com/users/CoolAnkur","html_url":"https://github.com/CoolAnkur","followers_url":"https://api.github.com/users/CoolAnkur/followers","following_url":"https://api.github.com/users/CoolAnkur/following{/other_user}","gists_url":"https://api.github.com/users/CoolAnkur/gists{/gist_id}","starred_url":"https://api.github.com/users/CoolAnkur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CoolAnkur/subscriptions","organizations_url":"https://api.github.com/users/CoolAnkur/orgs","repos_url":"https://api.github.com/users/CoolAnkur/repos","events_url":"https://api.github.com/users/CoolAnkur/events{/privacy}","received_events_url":"https://api.github.com/users/CoolAnkur/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T10:42:25Z","updated_at":"2016-08-11T10:42:25Z","body":"I am also facing the same error, can someone tell what the fix for this?\r\n\r\n\r\nCaused by: org.apache.velocity.exception.VelocityException: Error initializing log: Failed to initialize an instance of org.apache.velocity.runtime.log.AvalonLogChute with the current runtime configuration.\r\n        at org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:875)\r\n        at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:262)\r\n        at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:646)\r\n        at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:116)\r\n        at com.amazon.nucleus.utils.comparator.VelocityEngineUtility.createAndInitVelocityEngine(VelocityEngineUtility.java:41)\r\n        at com.amazon.nucleus.components.comparator.PrimitiveConfigComparator.init(PrimitiveConfigComparator.java:43)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:498)\r\n        at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:354)\r\n        at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:305)\r\n        at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)\r\n        ... 92 more\r\nCaused by: org.apache.velocity.exception.VelocityException: Failed to initialize an instance of org.apache.velocity.runtime.log.AvalonLogChute with the current runtime configuration.\r\n        at org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:220)\r\n        at org.apache.velocity.runtime.log.LogManager.updateLog(LogManager.java:269)\r\n        at org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:871)\r\n        ... 104 more\r\nCaused by: java.lang.Exception: Error configuring AvalonLogChute : java.io.FileNotFoundException: /local/apollo/_env/NucleusService-swit1na.11525493.216027993.986452997/velocity.log (Permission denied)\r\n        at org.apache.velocity.runtime.log.AvalonLogChute.initTarget(AvalonLogChute.java:119)\r\n        at org.apache.velocity.runtime.log.AvalonLogChute.init(AvalonLogChute.java:89)\r\n        at org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:157)\r\n        ... 106 more\r\n"}}
{"actor":{"display_login":"CoolAnkur"}}