Hello. Thanks very much for your help.
I restore bitbucket server. I follow steps in document Using the Bitbucket Server Backup .
I setup bitbucket with empty database and then in bitbucket.properties file, point to dumped database. Then I did next step.
BITBUCKET_HOME
. BITBUCKET_HOME
into the newly installed BITBUCKET_HOME
.After I start bitbucket server In above step 3, AtlassianBitbucket Service is excuted but AtlassianBitbucketElasticsearch Service didn't start.
Anyway I can access to bitbucket in browser And can get local repository by cloning bitbucket repository Url in sourcetree.
Restored Home directory maybe is problem. When I run with old home directory, elastic service runs well .
In bitbucket homedirectory, tmp folder doesn't have elarsticsearch folder. I copied that folder from initial setuped bitbucket homedirectory.
Do you know what elasticsearch folder do? it has jna.dll
When I run start-bitbucket.bat, it logs
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
[2019-11-25T17:21:59,667][INFO ][o.e.e.NodeEnvironment ] [bitbucket_bundled]using [1] data paths, mounts [[(C:)]], net usable_space [148.8gb], net total_space [232.2gb], types [NTFS]
[2019-11-25T17:21:59,667][INFO ][o.e.e.NodeEnvironment ] [bitbucket_bundled]heap size [989.8mb], compressed ordinary object pointers [true]
[2019-11-25T17:21:59,667][INFO ][o.e.n.Node ] [bitbucket_bundled]node name [bitbucket_bundled], node ID [mIOUUoToSxur5meFdnD-wQ]
[2019-11-25T17:21:59,667][INFO ][o.e.n.Node ] [bitbucket_bundled]version[6.5.3], pid[4056], build[oss/zip/159a78a/2018-12-06T20:11:28.826501Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/13.0.1/13.0.1+9]
[2019-11-25T17:21:59,667][INFO ][o.e.n.Node ] [bitbucket_bundled]JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=C:\Users\PC04\AppData\Local\Temp\elasticsearch, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Djava.locale.providers=COMPAT, -XX:UseAVX=2, -Delasticsearch, -Des.path.home=C:\Atlassian\Bitbucket\6.7.1\elasticsearch, -Des.path.conf=C:\Atlassian\ApplicationData\Bitbucket\shared\search, -Des.distribution.flavor=oss, -Des.distribution.type=zip]
[2019-11-25T17:22:05,823][INFO ][c.a.e.b.c.BucklerConfig ] [bitbucket_bundled]Basic authentication for HTTP transport enabled (auth.basic.http.enabled): true
[2019-11-25T17:22:05,823][INFO ][c.a.e.b.c.BucklerConfig ] [bitbucket_bundled]Basic authentication for TCP transport enabled (auth.basic.tcp.enabled): true
[2019-11-25T17:22:05,823][INFO ][c.a.e.b.c.BucklerConfig ] [bitbucket_bundled]TLS for HTTP transport enabled (tls.http.enabled): false
[2019-11-25T17:22:05,823][INFO ][c.a.e.b.c.BucklerConfig ] [bitbucket_bundled]TLS for TCP transport enabled (tls.tcp.enabled): false
[2019-11-25T17:22:05,823][INFO ][o.e.p.PluginsService ] [bitbucket_bundled]loaded module [aggs-matrix-stats]
[2019-11-25T17:22:05,823][INFO ][o.e.p.PluginsService ] [bitbucket_bundled]loaded module [analysis-common]
[2019-11-25T17:22:05,823][INFO ][o.e.p.PluginsService ] [bitbucket_bundled]loaded module [ingest-common]
[2019-11-25T17:22:05,823][INFO ][o.e.p.PluginsService ] [bitbucket_bundled]loaded module [lang-expression]
[2019-11-25T17:22:05,823][INFO ][o.e.p.PluginsService ] [bitbucket_bundled]loaded module [lang-mustache]
[2019-11-25T17:22:05,823][INFO ][o.e.p.PluginsService ] [bitbucket_bundled]loaded module [lang-painless]
[2019-11-25T17:22:05,823][INFO ][o.e.p.PluginsService ] [bitbucket_bundled]loaded module [mapper-extras]
[2019-11-25T17:22:05,823][INFO ][o.e.p.PluginsService ] [bitbucket_bundled]loaded module [parent-join]
[2019-11-25T17:22:05,823][INFO ][o.e.p.PluginsService ] [bitbucket_bundled]loaded module [percolator]
[2019-11-25T17:22:05,823][INFO ][o.e.p.PluginsService ] [bitbucket_bundled]loaded module [rank-eval]
[2019-11-25T17:22:05,823][INFO ][o.e.p.PluginsService ] [bitbucket_bundled]loaded module [reindex]
[2019-11-25T17:22:05,823][INFO ][o.e.p.PluginsService ] [bitbucket_bundled]loaded module [repository-url]
[2019-11-25T17:22:05,823][INFO ][o.e.p.PluginsService ] [bitbucket_bundled]loaded module [transport-netty4]
[2019-11-25T17:22:05,823][INFO ][o.e.p.PluginsService ] [bitbucket_bundled]loaded module [tribe]
[2019-11-25T17:22:05,823][INFO ][o.e.p.PluginsService ] [bitbucket_bundled]loaded plugin [buckler]
[2019-11-25T17:22:07,214][INFO ][o.e.d.DiscoveryModule ] [bitbucket_bundled]using discovery type [zen] and host providers [settings]
[2019-11-25T17:22:07,355][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [bitbucket_bundled]uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: org.elasticsearch.common.inject.CreationException: Guice creation errors:
1) An exception was caught and reported. Message: access denied ("java.lang.RuntimePermission" "accessClassInPackage.jdk.internal.vm.annotation")
at _unknown_
Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.jdk.internal.vm.annotation")
at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at java.base/java.security.AccessController.checkPermission(AccessController.java:1036)
at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:408)
at java.base/java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1324)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:174)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:416)
at java.base/sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:114)
at java.base/sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125)
at java.base/sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
at java.base/sun.reflect.annotation.AnnotationParser.parseSig(AnnotationParser.java:440)
at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotation2(AnnotationParser.java:242)
at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:121)
at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:73)
at java.base/java.lang.reflect.Executable.declaredAnnotations(Executable.java:614)
at java.base/java.lang.reflect.Executable.declaredAnnotations(Executable.java:612)
at java.base/java.lang.reflect.Executable.getAnnotation(Executable.java:582)
at java.base/java.lang.reflect.Method.getAnnotation(Method.java:696)
at org.elasticsearch.common.inject.spi.InjectionPoint.addInjectorsForMembers(InjectionPoint.java:370)
at org.elasticsearch.common.inject.spi.InjectionPoint.addInjectionPoints(InjectionPoint.java:359)
at org.elasticsearch.common.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:302)
at org.elasticsearch.common.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:323)
at org.elasticsearch.common.inject.internal.BindingBuilder.toInstance(BindingBuilder.java:90)
at org.elasticsearch.repositories.RepositoriesModule.lambda$configure$1(RepositoriesModule.java:68)
at java.base/java.util.HashMap.forEach(HashMap.java:1338)
at java.base/java.util.Collections$UnmodifiableMap.forEach(Collections.java:1505)
at org.elasticsearch.repositories.RepositoriesModule.configure(RepositoriesModule.java:68)
at org.elasticsearch.common.inject.AbstractModule.configure(AbstractModule.java:59)
at org.elasticsearch.common.inject.spi.Elements$RecordingBinder.install(Elements.java:221)
at org.elasticsearch.common.inject.spi.Elements.getElements(Elements.java:96)
at org.elasticsearch.common.inject.InjectorShell$Builder.build(InjectorShell.java:142)
at org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:89)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:96)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:70)
at org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:42)
at org.elasticsearch.node.Node.<init>(Node.java:600)
at org.elasticsearch.node.Node.<init>(Node.java:265)
at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:212)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333)
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136)
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
at org.elasticsearch.cli.Command.main(Command.java:90)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86)
2) An exception was caught and reported. Message: access denied ("java.lang.RuntimePermission" "accessClassInPackage.jdk.internal.vm.annotation")
at _unknown_
Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.jdk.internal.vm.annotation")
at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at java.base/java.security.AccessController.checkPermission(AccessController.java:1036)
at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:408)
at java.base/java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1324)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:174)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:416)
at java.base/sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:114)
at java.base/sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125)
at java.base/sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
at java.base/sun.reflect.annotation.AnnotationParser.parseSig(AnnotationParser.java:440)
at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotation2(AnnotationParser.java:242)
at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:121)
at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:73)
at java.base/java.lang.reflect.Executable.declaredAnnotations(Executable.java:614)
at java.base/java.lang.reflect.Executable.declaredAnnotations(Executable.java:612)
at java.base/java.lang.reflect.Executable.getAnnotation(Executable.java:582)
at java.base/java.lang.reflect.Method.getAnnotation(Method.java:696)
at org.elasticsearch.common.inject.internal.ProviderMethodsModule.getProviderMethods(ProviderMethodsModule.java:87)
at org.elasticsearch.common.inject.internal.ProviderMethodsModule.configure(ProviderMethodsModule.java:78)
at org.elasticsearch.common.inject.spi.Elements$RecordingBinder.install(Elements.java:221)
at org.elasticsearch.common.inject.spi.Elements$RecordingBinder.install(Elements.java:233)
at org.elasticsearch.common.inject.spi.Elements.getElements(Elements.java:96)
at org.elasticsearch.common.inject.InjectorShell$Builder.build(InjectorShell.java:142)
at org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:89)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:96)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:70)
at org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:42)
at org.elasticsearch.node.Node.<init>(Node.java:600)
at org.elasticsearch.node.Node.<init>(Node.java:265)
at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:212)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333)
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136)
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
at org.elasticsearch.cli.Command.main(Command.java:90)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86)
3) No implementation for org.elasticsearch.repositories.Repository$Factory annotated with @org.elasticsearch.common.inject.multibindings.Element(setName=,uniqueId=1) was bound.
at _unknown_
3 errors
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:140) ~[elasticsearch-6.5.3.jar:6.5.3]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) ~[elasticsearch-6.5.3.jar:6.5.3]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.5.3.jar:6.5.3]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.5.3.jar:6.5.3]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.5.3.jar:6.5.3]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.5.3.jar:6.5.3]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) ~[elasticsearch-6.5.3.jar:6.5.3]
Caused by: org.elasticsearch.common.inject.CreationException: Guice creation errors:
...