Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 Saro Gurunlu likes this

Suggest an answer

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

How do you use the Bitbucket-Jira integration? How does it help your team?

Hey everyone, over the past year, we've added several new features on how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your t...

121 views 0 2
Join discussion

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