Bamboo starts briefly then exits with 'Function not implemented'

Hi all..

I'm trying to run Bamboo on a FreeBSD box. The box is currently running JIRA, Confluence and Crowd successfully, but Bamboo (as well as Stash and Fisheye) fail for various 'Function not implemented'.

Bamboo logs report:

INFO   | jvm 1    | 2012/08/16 22:36:53 | Starting Bamboo using Java 1.7.0_04 from Oracle Corporation
INFO   | jvm 1    | 2012/08/16 22:36:53 | Port        = 8085
INFO   | jvm 1    | 2012/08/16 22:36:53 | Web App     = ../webapp
INFO   | jvm 1    | 2012/08/16 22:36:53 | contextPath = /
INFO   | jvm 1    | 2012/08/16 22:36:53 | 2012-08-16 22:36:53.118:INFO:oejs.Server:jetty-7.6.2.v20120308
INFO   | jvm 1    | 2012/08/16 22:37:06 | 2012-08-16 22:37:06,167 INFO [WrapperSimpleAppMain] [lifecycle] Real path of servlet context: /usr/compat/linux/opt/atlassian/bamboo/webapp
INFO   | jvm 1    | 2012/08/16 22:37:06 | 2012-08-16 22:37:06,173 INFO [WrapperSimpleAppMain] [lifecycle] Starting Bamboo 4.2.0 (build #3211 Thu Aug 09 22:36:30 BST 2012)
INFO   | jvm 1    | 2012/08/16 22:37:06 | 2012-08-16 22:37:06,377 INFO [WrapperSimpleAppMain] [lifecycle] Using bamboo.home: /usr/compat/linux/var/atlassian/application-data/bamboo
INFO   | jvm 1    | 2012/08/16 22:37:06 | 2012-08-16 22:37:06,386 INFO [WrapperSimpleAppMain] [UpgradeLauncher] UpgradeLauncher not performed since the application has not been setup yet.
INFO   | jvm 1    | 2012/08/16 22:37:06 | 2012-08-16 22:37:06.386:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/,file:/usr/compat/linux/opt/atlassian/bamboo/webapp/},../webapp
INFO   | jvm 1    | 2012/08/16 22:37:06 | 2012-08-16 22:37:06,494 INFO [WrapperSimpleAppMain] [DefaultConfiguration] Loading global messages from com.atlassian.bamboo.ww2.BambooActionSupport
INFO   | jvm 1    | 2012/08/16 22:37:06 | 2012-08-16 22:37:06,494 INFO [WrapperSimpleAppMain] [DefaultConfiguration] Loading global messages from help-paths
INFO   | jvm 1    | 2012/08/16 22:37:06 | 2012-08-16 22:37:06.642:INFO:/: [CompressingFilter/1.4] CompressingFilter has initialized
INFO   | jvm 1    | 2012/08/16 22:37:06 | 2012-08-16 22:37:06.650:INFO:/:org.tuckey.web.filters.urlrewrite.utils.Log ERROR: logLevelConf: null
INFO   | jvm 1    | 2012/08/16 22:37:06 | 2012-08-16 22:37:06.724:INFO:/:org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf ok)
INFO   | jvm 1    | 2012/08/16 22:37:06 | 2012-08-16 22:37:06,730 INFO [WrapperSimpleAppMain] [AccessLogFilter] AccessLogFilter initialized. Format is: <user> <url> <starting memory free (kb)> +- <difference in free mem (kb)> <query time (ms)>
INFO   | jvm 1    | 2012/08/16 22:37:06 | 2012-08-16 22:37:06.876:WARN:oejuc.AbstractLifeCycle:FAILED org.eclipse.jetty.server.nio.SelectChannelConnector$ConnectorSelectorManager@1cc2c78: java.io.IOException: Function not implemented
INFO   | jvm 1    | 2012/08/16 22:37:06 | java.io.IOException: Function not implemented
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.nio.ch.EPollArrayWrapper.epollCreate(Native Method)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.nio.ch.EPollArrayWrapper.<init>(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.nio.ch.EPollSelectorImpl.<init>(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.nio.ch.EPollSelectorProvider.openSelector(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at java.nio.channels.Selector.open(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.io.nio.SelectorManager$SelectSet.<init>(SelectorManager.java:411)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.io.nio.SelectorManager.doStart(SelectorManager.java:256)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:63)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:319)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:260)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.server.Server.doStart(Server.java:272)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at com.atlassian.bamboo.server.Server.main(Server.java:75)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at java.lang.reflect.Method.invoke(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at java.lang.Thread.run(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 | 2012-08-16 22:37:06.881:WARN:oejuc.AbstractLifeCycle:FAILED SelectChannelConnector@0.0.0.0:8085: java.io.IOException: Function not implemented
INFO   | jvm 1    | 2012/08/16 22:37:06 | java.io.IOException: Function not implemented
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.nio.ch.EPollArrayWrapper.epollCreate(Native Method)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.nio.ch.EPollArrayWrapper.<init>(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.nio.ch.EPollSelectorImpl.<init>(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.nio.ch.EPollSelectorProvider.openSelector(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at java.nio.channels.Selector.open(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.io.nio.SelectorManager$SelectSet.<init>(SelectorManager.java:411)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.io.nio.SelectorManager.doStart(SelectorManager.java:256)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:63)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:319)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:260)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.server.Server.doStart(Server.java:272)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at com.atlassian.bamboo.server.Server.main(Server.java:75)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at java.lang.reflect.Method.invoke(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at java.lang.Thread.run(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 | 2012-08-16 22:37:06.882:WARN:oejuc.AbstractLifeCycle:FAILED com.atlassian.bamboo.server.Server@1dbe345: java.io.IOException: Function not implemented
INFO   | jvm 1    | 2012/08/16 22:37:06 | java.io.IOException: Function not implemented
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.nio.ch.EPollArrayWrapper.epollCreate(Native Method)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.nio.ch.EPollArrayWrapper.<init>(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.nio.ch.EPollSelectorImpl.<init>(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.nio.ch.EPollSelectorProvider.openSelector(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at java.nio.channels.Selector.open(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.io.nio.SelectorManager$SelectSet.<init>(SelectorManager.java:411)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.io.nio.SelectorManager.doStart(SelectorManager.java:256)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:63)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:319)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:260)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.server.Server.doStart(Server.java:272)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at com.atlassian.bamboo.server.Server.main(Server.java:75)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at java.lang.reflect.Method.invoke(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at java.lang.Thread.run(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 | java.io.IOException: Function not implemented
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.nio.ch.EPollArrayWrapper.epollCreate(Native Method)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.nio.ch.EPollArrayWrapper.<init>(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.nio.ch.EPollSelectorImpl.<init>(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.nio.ch.EPollSelectorProvider.openSelector(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at java.nio.channels.Selector.open(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.io.nio.SelectorManager$SelectSet.<init>(SelectorManager.java:411)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.io.nio.SelectorManager.doStart(SelectorManager.java:256)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:63)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:319)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:260)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.server.Server.doStart(Server.java:272)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at com.atlassian.bamboo.server.Server.main(Server.java:75)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at java.lang.reflect.Method.invoke(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at java.lang.Thread.run(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |
INFO   | jvm 1    | 2012/08/16 22:37:06 |
INFO   | jvm 1    | 2012/08/16 22:37:06 | WrapperSimpleApp: Encountered an error running main: java.lang.RuntimeException: java.io.IOException: Function not implemented
INFO   | jvm 1    | 2012/08/16 22:37:06 | java.lang.RuntimeException: java.io.IOException: Function not implemented
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at com.atlassian.bamboo.server.Server.main(Server.java:97)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at java.lang.reflect.Method.invoke(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at java.lang.Thread.run(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 | Caused by: java.io.IOException: Function not implemented
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.nio.ch.EPollArrayWrapper.epollCreate(Native Method)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.nio.ch.EPollArrayWrapper.<init>(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.nio.ch.EPollSelectorImpl.<init>(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at sun.nio.ch.EPollSelectorProvider.openSelector(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at java.nio.channels.Selector.open(Unknown Source)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.io.nio.SelectorManager$SelectSet.<init>(SelectorManager.java:411)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.io.nio.SelectorManager.doStart(SelectorManager.java:256)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:63)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:319)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:260)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.server.Server.doStart(Server.java:272)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       at com.atlassian.bamboo.server.Server.main(Server.java:75)
INFO   | jvm 1    | 2012/08/16 22:37:06 |       ... 6 more
STATUS | wrapper  | 2012/08/16 22:37:08 | JVM exited in response to signal SIGKILL (9).
STATUS | wrapper  | 2012/08/16 22:37:08 | <-- Wrapper Stopped

I have tried searching for this, but came across very little.. has anyone any ideas as to why this might be? or what it really means? (I know nothing of Java unfortunately).

Any help / info regarding this would be greatly appreciated! =)



Cheers..

Ian

2 answers

1 accepted

0 votes

It seems that your OS has problems handling Java NIO calls. You can do one of the following things to resolve this:

  • install Tomcat and deploy Bamboo's WAR into it (that's more or less how JIRA/Confluence works)
  • disable NIO in Jetty in favour of BIO. I was not able to find exact configuration change, but what you have to do is to replace the SelectChannelConnector in jetty.xml with a SocketConnector (this XML snippet: http://jira.codehaus.org/browse/JETTY-1441 looks helpful).
  • switch to a supported operating systems (FreeBSD is not supported, try Linux)
  • try upgrading to the latest Java version on your FreeBSD/try upgrading your FreeBSD to the latest version.

Thanks Przemek for the info.

I have the latest Java versions (JDK and JRE installed) but thinking the most reliable option here will be to change the OS to Linux.

I'll do this and migrate my data across and hopefully this will solve the problem.. or at least give me a proper starting block.

Hi Ian,

Cna you please verify that you are using a JDK not only JRE as per this document: https://confluence.atlassian.com/display/BAMBOO/Supported+platforms? Also, make sure that you have your JAVA_HOME set. If you are still experiencing the same problem, please open a ticket on https://support.atlassian.com, and we will continue to investigate this case.

Cheers,
Armen

Thanks Armen for your suggestion. I do have the JDK installed and JAVA_HOME env var defined as the JDK root, but after seenig Przemek's response below.. the mention of an OS compatibility issue sounds like it might well be an easy solution and something I was considering anyway.

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,066 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot