Bitbucket error "cannot open shared object file: No such file or directory"

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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

Summary

Bitbucket Server does not start and the following appears in the atlassian-bitbucket.log:

2012-11-14 15:14:51,328 ERROR [main] o.s.web.context.ContextLoader Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.authenticationManager': Cannot resolve reference to bean 'authenticationProvider' while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authenticationProvider' defined in URL [jar:file:/opt/bitbucket/atlassian-bitbucket/WEB-INF/lib/bitbucket-service-impl-1.3.1.jar!/com.atlassian.bitbucket/internal/user/AuthenticationProviderImpl.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.bitbucket.user.UserService]: : Error creating bean with name 'userService' defined in URL [jar:file:/opt/bitbucket/atlassian-bitbucket/WEB-INF/lib/bitbucket-service-impl-1.3.1.jar!/com.atlassian.bitbucket/internal/user/UserServiceImpl.class]: Unsatisfied dependency expressed through constructor argument with index 5 of type [com.octo.captcha.service.CaptchaService]: : Error creating bean with name 'imageCaptchaService' defined in class path resource [bitbucket-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.octo.captcha.service.image.DefaultManageableImageCaptchaService]: Constructor threw exception; nested exception is java.lang.UnsatisfiedLinkError: /usr/java/jdk1.7.0_09/jre/lib/i386/libfontmanager.so: libgcc_s.so.1: cannot open shared object file: No such file or directory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'imageCaptchaService' defined in class path resource [bitbucket-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.octo.captcha.service.image.DefaultManageableImageCaptchaService]: Constructor threw exception; nested exception is java.lang.UnsatisfiedLinkError: /usr/java/jdk1.7.0_09/jre/lib/i386/libfontmanager.so: libgcc_s.so.1: cannot open shared object file: No such file or directory; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userService' defined in URL [jar:file:/opt/bitbucket/atlassian-bitbucket/WEB-INF/lib/bitbucket-service-impl-1.3.1.jar!/com.atlassian.bitbucket/internal/user/UserServiceImpl.class]: Unsatisfied dependency expressed through constructor argument with index 5 of type [com.octo.captcha.service.CaptchaService]: : Error creating bean with name 'imageCaptchaService' defined in class path resource [bitbucket-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.octo.captcha.service.image.DefaultManageableImageCaptchaService]: Constructor threw exception; nested exception is java.lang.UnsatisfiedLinkError: /usr/java/jdk1.7.0_09/jre/lib/i386/libfontmanager.so: libgcc_s.so.1: cannot open shared object file: No such file or directory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'imageCaptchaService' defined in class path resource [bitbucket-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.octo.captcha.service.image.DefaultManageableImageCaptchaService]: Constructor threw exception; nested exception is java.lang.UnsatisfiedLinkError: /usr/java/jdk1.7.0_09/jre/lib/i386/libfontmanager.so: libgcc_s.so.1: cannot open shared object file: No such file or directory ... Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authenticationProvider' defined in URL [jar:file:/opt/bitbucket/atlassian-bitbucket/WEB-INF/lib/bitbucket-service-impl-1.3.1.jar!/com.atlassian.bitbucket/internal/user/AuthenticationProviderImpl.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.bitbucket.user.UserService]: : Error creating bean with name 'userService' defined in URL [jar:file:/opt/bitbucket/atlassian-bitbucket/WEB-INF/lib/bitbucket-service-impl-1.3.1.jar!/com.atlassian.bitbucket/internal/user/UserServiceImpl.class]: Unsatisfied dependency expressed through constructor argument with index 5 of type [com.octo.captcha.service.CaptchaService]: : Error creating bean with name 'imageCaptchaService' defined in class path resource [bitbucket-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.octo.captcha.service.image.DefaultManageableImageCaptchaService]: Constructor threw exception; nested exception is java.lang.UnsatisfiedLinkError: /usr/java/jdk1.7.0_09/jre/lib/i386/libfontmanager.so: libgcc_s.so.1: cannot open shared object file: No such file or directory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'imageCaptchaService' defined in class path resource [bitbucket-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.octo.captcha.service.image.DefaultManageableImageCaptchaService]: Constructor threw exception; nested exception is java.lang.UnsatisfiedLinkError: /usr/java/jdk1.7.0_09/jre/lib/i386/libfontmanager.so: libgcc_s.so.1: cannot open shared object file: No such file or directory; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userService' defined in URL [jar:file:/opt/bitbucket/atlassian-bitbucket/WEB-INF/lib/bitbucket-service-impl-1.3.1.jar!/com.atlassian.bitbucket/internal/user/UserServiceImpl.class]: Unsatisfied dependency expressed through constructor argument with index 5 of type [com.octo.captcha.service.CaptchaService]: : Error creating bean with name 'imageCaptchaService' defined in class path resource [bitbucket-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.octo.captcha.service.image.DefaultManageableImageCaptchaService]: Constructor threw exception; nested exception is java.lang.UnsatisfiedLinkError: /usr/java/jdk1.7.0_09/jre/lib/i386/libfontmanager.so: libgcc_s.so.1: cannot open shared object file: No such file or directory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'imageCaptchaService' defined in class path resource [bitbucket-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.octo.captcha.service.image.DefaultManageableImageCaptchaService]: Constructor threw exception; nested exception is java.lang.UnsatisfiedLinkError: /usr/java/jdk1.7.0_09/jre/lib/i386/libfontmanager.so: libgcc_s.so.1: cannot open shared object file: No such file or directory ... Caused by: java.lang.UnsatisfiedLinkError: /usr/java/jdk1.7.0_09/jre/lib/i386/libfontmanager.so: libgcc_s.so.1: cannot open shared object file: No such file or directory

Diagnosis

N/A

Cause

Bitbucket Server is complaining about a library dependency, libgcc_s.so.1

Solution

Install the libgcc_s.so.1 package and after that, try to start Bitbucket Server again.

For RedHat (or similar distributions):

yum install gcc

For Debian (or similar distributions):

apt install gcc

Updated on June 27, 2025

Still need help?

The Atlassian Community is here for you.