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

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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(BasePosixProcess.java:648)
at com.zaxxer.nuprocess.osx.OsxProcess.spawnWithCwd(OsxProcess.java:185)
at com.zaxxer.nuprocess.osx.OsxProcess.prepareProcess(OsxProcess.java:151)
at com.zaxxer.nuprocess.osx.OsxProcess.run(OsxProcess.java:107)
at com.zaxxer.nuprocess.osx.OsxProcessFactory.runProcess(OsxProcessFactory.java:43)
at com.zaxxer.nuprocess.NuProcessBuilder.run(NuProcessBuilder.java:273)
at com.atlassian.bitbucket.internal.process.nu.NuNioProcessHelper.run(NuNioProcessHelper.java:75)

 

Issue has also been posed on NuProcess GitHub repo: https://github.com/brettwooldridge/NuProcess/issues/108

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
DEPLOYMENT TYPE
SERVER
VERSION
7.1.0
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,903 views 0 7
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