While starting the bamboo server I get the exception:
12-Apr-2019 10:43:29.952 SEVERE [main] org.apache.catalina.valves.AccessLogValve.open Failed to open access log file [C:\Program Files\Bamboo\logs\access_log.2019-04-12]
java.io.FileNotFoundException: C:\Program Files\Bamboo\logs\access_log.2019-04-12 (Access is denied)
at java.base/java.io.FileOutputStream.open0(Native Method)
Bamboo Server Edition
Version : 6.8.1
JAVA_HOME "C:\Program Files\Java\jdk-12" contains spaces. Please change to a location without spaces if this causes problems.
If you encounter issues starting or stopping Bamboo Server, please see the Troubleshooting guide at https://confluence.atlassian.com/display/BAMBOO/Installing+Bamboo+on+Windows
Using CATALINA_BASE: "C:\Program Files\Bamboo"
Using CATALINA_HOME: "C:\Program Files\Bamboo"
Using CATALINA_TMPDIR: "C:\Program Files\Bamboo\temp"
Using JRE_HOME: "C:\Program Files\Java\jdk-12"
Using CLASSPATH: "C:\Program Files\Bamboo\bin\bootstrap.jar;C:\Program Files\Bamboo\bin\tomcat-juli.jar"
NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
in the shared log there is a "Access is denied" message.
Did you check that the user, that bamboo runs as, has the right permissions to C:\Program Files\Bamboo\ and the folders below
I agree with @Kurt Klinner also be aware that this usually gets reset after performing an upgrade to the Bamboo Server, so if you had the server running as a user with the correct permissions then recently upgraded the version of Bamboo you might need to set the service to run as the correct user again. I've been caught by that one a couple of times now.
The start-bamboo.bat file is calling 'net start Bamboo'. Because part of the installer process is the run the InstallAsService.bat which is located in the same directory.
If you check the Windows Services installed on the Bamboo server you should see one listed with the display name "Atlassian Bamboo" (or something close to that).
If you edit the properties of that service and change the Log On account to the one that has access, you can still use the StopBamboo.bat & StartBamboo.bat files to turn it on and off you should just be running with the correct user account at this point.
I hope that helps!
thanks , I fixed the Access Violation Issues bud there are more exception
it begins with org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8443]]
Unable to instantiate Action, com.atlassian.bamboo.ww2.actions.setup.SetupDefaultsAction, defined for 'setupDefaultGeneral' in namespace '/setup'Error creating bean with name 'reloadableBeanFactories' defined in class path resource [applicationContextPlugin.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot resolve reference to bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' while setting bean property 'transactionAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customBuildCompleteActionAdvisor' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'hibernateInterceptor' while setting bean property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateInterceptor' defined in class path resource [applicationContextPersistence.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContextPersistence.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException - action - file:/C:/Program%20Files/Bamboo/atlassian-bamboo/WEB-INF/classes/struts.xml:429:124
the rest is in the logfile