Atlassian strives to provide high quality and evolving products to our customers. With this in mind, we've made the decision to discontinue our Bamboo Cloud offering on 31 January 2017. Learn more

Running BambooConsole.bat fails on Windows x64 with java.io.FileNotFoundException atlassian-bamboo.log Access is denied

Symptoms

Running BambooConsole.bat fails for Bamboo 3.0 on Windows x64 with the following message reported:

jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
jvm 1    |
jvm 1    | Port        = 8085
jvm 1    | Web App     = ../webapp
jvm 1    | contextPath = /
jvm 1    | 2011-02-11 11:01:47.609:INFO::jetty-7.2.1.v20101111
jvm 1    | log4j:ERROR setFile(null,true) call failed.
jvm 1    | java.io.FileNotFoundException: atlassian-bamboo.log (Access is denied)
jvm 1    |      at java.io.FileOutputStream.openAppend(Native Method)
jvm 1    |      at java.io.FileOutputStream.<init>(Unknown Source)
jvm 1    |      at java.io.FileOutputStream.<init>(Unknown Source)
jvm 1    |      at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
jvm 1    |      at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:194)
jvm 1    |      at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:164)
jvm 1    |      at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:257)
jvm 1    |      at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:133)
jvm 1    |      at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:97)
jvm 1    |      at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:689)
jvm 1    |      at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:647)
jvm 1    |      at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:544)
jvm 1    |      at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:440)
jvm 1    |      at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:476)
jvm 1    |      at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471)
jvm 1    |      at org.apache.log4j.LogManager.<clinit>(LogManager.java:125)
jvm 1    |      at org.apache.log4j.Logger.getLogger(Logger.java:118)
jvm 1    |      at com.atlassian.bamboo.setup.BootstrapLoaderListener.<clinit>(BootstrapLoaderListener.java:28)
jvm 1    |      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
jvm 1    |      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
jvm 1    |      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
jvm 1    |      at java.lang.reflect.Constructor.newInstance(Unknown Source)
jvm 1    |      at java.lang.Class.newInstance0(Unknown Source)
jvm 1    |      at java.lang.Class.newInstance(Unknown Source)
jvm 1    |      at org.eclipse.jetty.servlet.ServletContextHandler$Context.createListener(ServletContextHandler.java:712)
jvm 1    |      at org.eclipse.jetty.webapp.StandardDescriptorProcessor.newListenerInstance(StandardDescriptorProcessor.java:1216)
jvm 1    |      at org.eclipse.jetty.webapp.StandardDescriptorProcessor.visitListener(StandardDescriptorProcessor.java:1186)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown Source)
jvm 1    |      at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.visit(IterativeDescriptorProcessor.java:80)
jvm 1    |      at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.process(IterativeDescriptorProcessor.java:67)
jvm 1    |      at org.eclipse.jetty.webapp.MetaData.resolve(MetaData.java:285)
jvm 1    |      at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1158)
jvm 1    |      at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:576)
jvm 1    |      at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
jvm 1    |      at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:93)
jvm 1    |      at org.eclipse.jetty.server.Server.doStart(Server.java:243)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
jvm 1    |      at com.atlassian.bamboo.server.Server.main(Server.java:77)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1    |      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
jvm 1    |      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
jvm 1    |      at java.lang.reflect.Method.invoke(Unknown Source)
jvm 1    |      at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
jvm 1    |      at java.lang.Thread.run(Unknown Source)
jvm 1    | 2011-02-11 11:01:55,230 INFO [WrapperSimpleAppMain] [lifecycle] Realpath of servlet context: C:\Program Files\Bamboo\webapp
jvm 1    | 2011-02-11 11:01:55,347 INFO [WrapperSimpleAppMain] [lifecycle] Starting Bamboo 3.0 (build #2302)
jvm 1    | 2011-02-11 11:01:55.349:INFO:/:Initializing Spring root WebApplicationContext
jvm 1    | 2011-02-11 11:01:56,014 INFO [WrapperSimpleAppMain] [BambooBootstrapPlaceholderConfigurer] Loading properties file from class path resource [bamboo-init.properties]

Cause

The current Windows user doesn't have write permissions to the installation directory of Bamboo.

Resolution

Run BambooConsole.bat as a Windows user with the appropriate write permissions, or grant write permissions for the directory to the Windows user you are currently using.

Was this helpful?

Thanks for your feedback!

Why was this unhelpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport