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

Issues with FreeBSD 11.3 and OpenJDK using NuProcess Library

Jason Kafer March 28, 2020

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
Atlassian Team members are employees working across the company in a wide variety of roles.
March 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

Jason Kafer March 29, 2020

@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
evaldas May 4, 2022

@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
DEPLOYMENT TYPE
SERVER
VERSION
7.1.0
TAGS
AUG Leaders

Atlassian Community Events