Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Issues with FreeBSD 11.3 and OpenJDK using NuProcess Library

We recently upgraded BitBucket to 7.1.0 which now utilizes the NuProcess 2.0.0 library. We are getting the following exception on Freebsd 11.3 using OpenJDK8 and OpenJDK11


java.lang.RuntimeException: syscall(SYS__pthread_chdir) failed to set current directory, return code: -1, last error: 45
at com.zaxxer.nuprocess.internal.BasePosixProcess.checkReturnCode(
at com.zaxxer.nuprocess.osx.OsxProcess.spawnWithCwd(
at com.zaxxer.nuprocess.osx.OsxProcess.prepareProcess(
at com.zaxxer.nuprocess.osx.OsxProcessFactory.runProcess(


Issue has also been posed on NuProcess GitHub repo:

1 answer

1 accepted

1 vote
Answer accepted
Bryan Turner Atlassian Team Mar 29, 2020

@Jason Kafer,

FreeBSD is not a supported platform for running Bitbucket Server. It never was, and is unlikely to be added as one in the future. That it ever worked was a "happy accident", not an indication of support.

Just to set expectations, if/when your NuProcess pull request is merged, and we eventually upgrade our NuProcess dependency, it may result in Bitbucket Server running again; but if you run into any issues and raise an issue with support our response is going to be "Migrate to a supported platform and see if that fixes your issue." Continuing to run on FreeBSD will be "at your own risk." While we won't go out of our way to break FreeBSD as a target platform, we also won't go out of our way to fix it, either--or to test it, which means you're likely to find breakages the hard way.

I'm sure that's not really the experience or feedback you're looking for, but providing support for platforms we don't test on or develop for produces a frustrating experience for everyone involved, and ties up support engineers who could be assisting others who are running on supported platforms.

Best regards,
Bryan Turner
Atlassian Bitbucket

@Bryan Turner 

Thanks for the response, posted this in the community thread and wasn't expecting to get an official response 😊

I am fully aware that FreeBSD is not supported, however many people do run Atlassian products on the OS and more often then not they work amazingly. Posted this here to aide others who may also be running on FreeBSD that don't have the time to dig into the root cause.  We have built our own version of the NuProcess library and replaced the bundled version and it resolves the issue.  

If Atlassian ever decides they want to add FreeBSD as a supported platform, we'd be more then glad to participate in testing new versions and helping with bug fixes 😊 

Also great job on the new pull request interface in 7.1.0!! 

Stay Safe & Healthy!!

Jason Kafer

Like # people like this

@Jason Kafer  Thank you for posting this, really helped tracing the issue with the upgrade from Bitbucket 5 to the latest version.

Atlassian, you should be happy when your Java apps run on a few more platforms than Windows and Linux, and not blaming :)

Stay safe, with best regards!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,206 views 2 9
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you