org.eclipse.jgit.util.FS fatal: Could not switch to <git installation>/git/etc/ No such file or directory

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

Following entries constantly repeat in Bitbucket server logs

org.eclipse.jgit.util.FS fatal: Could not switch to '<git>/etc/' No such file or directory

or

org.eclipse.jgit.util.FS Exception caught during execution of command '[git, config, --system, --edit]' in '/usr/local/bin', return code '128', error message 'fatal: Could not switch to '<git>/etc/': No such file or directory

Cause

This is related to an issue that happens with JGit when git is compiled from source and appears in RedHat flavors of Linux.

You can read more on it at :https://bugs.eclipse.org/bugs/show_bug.cgi?id=476639

Resolution

Create the missing directory reported in log e.g. /usr/local/git/etc/

 

Last modified on Oct 3, 2017

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.