Code Monkey home page Code Monkey logo

Comments (8)

haxqer avatar haxqer commented on June 15, 2024 1

Previously, I had not utilized Bitbucket. I had previously employed an internally deployed GitLab, but now I utilize GitHub.

After conducting a test, I can confirm that the v8 version of Bitbucket cannot be cracked. However, the v7 version can be cracked and has already been compiled into an image, which can be found on bitbucket

Thank you for providing the experimental data.!!!

from jira.

haxqer avatar haxqer commented on June 15, 2024 1

Wow, that's very impressive. Thank you for providing the information

from jira.

voarsh2 avatar voarsh2 commented on June 15, 2024

After working on this a few hours and plenty of re-installs, I ran the .jar file inside the container.... and got a different licence🤷 .....

I am using 7.21.0 and there's no licence complaints. Will finish up this install, test it and see if upgrading to a later 7.21.x release works...........

from jira.

voarsh2 avatar voarsh2 commented on June 15, 2024

Previously, I had not utilized Bitbucket. I had previously employed an internally deployed GitLab, but now I utilize GitHub.

After conducting a test, I can confirm that the v8 version of Bitbucket cannot be cracked. However, the v7 version can be cracked and has already been compiled into an image, which can be found on bitbucket

Thank you for providing the experimental data.!!!

That's disappointing, and surprising that V8 cannot be used with the crack.
Given that the original maintainer of the Atlassian Agent had their GitTea repo taken down, their last change was around 2021 (give or take) on the repo at that time, there's only a few "clone" repos of the original, so I am not sure if it's the absolute latest code of the original, so no one new has been working on the "crack". I heavily use Confluence and Jira, I thought it might be nice to replace my self-hosted GitLab instance with BitBucket for some tighter integration, and I needed to migrate my GitLab server to a completely new installation anyways (2 years out of date, can't update in its current deployment), I thought I'd give it a try....

TL;DR: I hope someone can continue to work on the Atlassian Agent. I am not sure what changed in V8... and it makes me worry for Confluence/Jira, I am still on V7.X/8.X (Confluence/Jira respectively), I hope they don't break it.......... Perhaps they will break it the next major versions for these two (E.G V9 for Jira). I will again be testing 7.21.x (the very last version of this LTS) and some newer ones). When I 100% confirm 7.21.0 works and no later ones work, I probably won't be using Bitbucket, can't be running old software with no updates (when the version goes EOL in less than 2 years)

from jira.

voarsh2 avatar voarsh2 commented on June 15, 2024

Not sure what's going on, but when I pass the agent in atlassian/bitbucket:7.21.0 I still get an error:

2023-06-30 13:24:54,158 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory /var/atlassian/application-data/bitbucket
--
Fri, Jun 30 2023 2:25:26 pm | ============================== agent working ==============================
Fri, Jun 30 2023 2:25:26 pm | ============================== agent working ==============================
Fri, Jun 30 2023 2:25:26 pm | 2023-06-30 13:25:26,921 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory /var/atlassian/application-data/bitbucket/shared
Fri, Jun 30 2023 2:25:29 pm | WARNING: An illegal reflective access operation has occurred
Fri, Jun 30 2023 2:25:29 pm | WARNING: Illegal reflective access by com.hazelcast.internal.networking.nio.SelectorOptimizer (file:/opt/atlassian/bitbucket/app/WEB-INF/lib/hazelcast-3.12.12.jar) to field sun.nio.ch.SelectorImpl.selectedKeys
Fri, Jun 30 2023 2:25:29 pm | WARNING: Please consider reporting this to the maintainers of com.hazelcast.internal.networking.nio.SelectorOptimizer
Fri, Jun 30 2023 2:25:29 pm | WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
Fri, Jun 30 2023 2:25:29 pm | WARNING: All illegal access operations will be denied in a future release
Fri, Jun 30 2023 2:25:29 pm | 2023-06-30 13:25:29,575 WARN [spring-startup] com.hazelcast.instance.Node [10.42.189.179]:5701 [bitbucket] [3.12.12] No join method is enabled! Starting standalone.
Fri, Jun 30 2023 2:26:16 pm | 2023-06-30 13:26:16,833 WARN [spring-startup] o.s.w.c.s.XmlWebApplicationContext Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'fileServerServlet' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-platform-7.21.0.jar!/com/atlassian/stash/internal/plugin/FileServerServlet.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginResourceDownload' defined in class path resource [stash-context.xml]: Cannot resolve reference to bean 'contentTypeResolver' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentTypeResolver' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-platform-7.21.0.jar!/com/atlassian/stash/internal/plugin/SimpleContentTypeResolver.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.stash.internal.plugin.SimpleContentTypeResolver]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
Fri, Jun 30 2023 2:26:16 pm | 2023-06-30 13:26:16,952 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Releasing lock on /var/atlassian/application-data/bitbucket/shared
Fri, Jun 30 2023 2:26:16 pm | 2023-06-30 13:26:16,993 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Releasing lock on /var/atlassian/application-data/bitbucket
Fri, Jun 30 2023 2:26:17 pm | 2023-06-30 13:26:17,002 ERROR [spring-startup] c.a.j.s.w.s.JohnsonDispatcherServlet SpringMVC dispatcher [springMvc] could not be started
Fri, Jun 30 2023 2:26:17 pm | org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'fileServerServlet' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-platform-7.21.0.jar!/com/atlassian/stash/internal/plugin/FileServerServlet.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginResourceDownload' defined in class path resource [stash-context.xml]: Cannot resolve reference to bean 'contentTypeResolver' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentTypeResolver' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-platform-7.21.0.jar!/com/atlassian/stash/internal/plugin/SimpleContentTypeResolver.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.stash.internal.plugin.SimpleContentTypeResolver]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
Fri, Jun 30 2023 2:26:17 pm | at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
Fri, Jun 30 2023 2:26:17 pm | at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
Fri, Jun 30 2023 2:26:17 pm | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
Fri, Jun 30 2023 2:26:17 pm | at javax.servlet.GenericServlet.init(GenericServlet.java:158)
Fri, Jun 30 2023 2:26:17 pm | at java.base/java.lang.Thread.run(Thread.java:829)
Fri, Jun 30 2023 2:26:17 pm | ... 18 frames trimmed
Fri, Jun 30 2023 2:26:17 pm | Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginResourceDownload' defined in class path resource [stash-context.xml]: Cannot resolve reference to bean 'contentTypeResolver' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentTypeResolver' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-platform-7.21.0.jar!/com/atlassian/stash/internal/plugin/SimpleContentTypeResolver.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.stash.internal.plugin.SimpleContentTypeResolver]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
Fri, Jun 30 2023 2:26:17 pm | at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:342)
Fri, Jun 30 2023 2:26:17 pm | ... 5 common frames omitted
Fri, Jun 30 2023 2:26:17 pm | Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentTypeResolver' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-platform-7.21.0.jar!/com/atlassian/stash/internal/plugin/SimpleContentTypeResolver.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.stash.internal.plugin.SimpleContentTypeResolver]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
Fri, Jun 30 2023 2:26:17 pm | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1334)
Fri, Jun 30 2023 2:26:17 pm | ... 5 common frames omitted
Fri, Jun 30 2023 2:26:17 pm | Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.stash.internal.plugin.SimpleContentTypeResolver]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
Fri, Jun 30 2023 2:26:17 pm | at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:224)
Fri, Jun 30 2023 2:26:17 pm | ... 5 common frames omitted
Fri, Jun 30 2023 2:26:17 pm | Caused by: java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
Fri, Jun 30 2023 2:26:17 pm | at javax.activation.MimetypesFileTypeMap.<init>(MimetypesFileTypeMap.java:130)
Fri, Jun 30 2023 2:26:17 pm | at javax.activation.MimetypesFileTypeMap.<init>(MimetypesFileTypeMap.java:301)
Fri, Jun 30 2023 2:26:17 pm | at com.atlassian.stash.internal.plugin.SimpleContentTypeResolver.<init>(SimpleContentTypeResolver.java:25)
Fri, Jun 30 2023 2:26:17 pm | at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
Fri, Jun 30 2023 2:26:17 pm | at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
Fri, Jun 30 2023 2:26:17 pm | at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
Fri, Jun 30 2023 2:26:17 pm | at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211)
Fri, Jun 30 2023 2:26:17 pm | ... 5 common frames omitted
Fri, Jun 30 2023 2:26:17 pm | Caused by: java.lang.ClassNotFoundException: com.sun.activation.registries.LogSupport
Fri, Jun 30 2023 2:26:17 pm | at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
Fri, Jun 30 2023 2:26:17 pm | at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
Fri, Jun 30 2023 2:26:17 pm | ... 12 common frames omitted
Fri, Jun 30 2023 2:26:18 pm | 2023-06-30 13:26:17,908 WARN [http-nio-7990-exec-10] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [hazelcastFilter]; no Spring WebApplicationContext is available
Fri, Jun 30 2023 2:26:18 pm | 2023-06-30 13:26:18,141 WARN [http-nio-7990-exec-10] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available
Fri, Jun 30 2023 2:26:18 pm | 2023-06-30 13:26:18,142 WARN [http-nio-7990-exec-10] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [entityMovedFilter]; no Spring WebApplicationContext is available
Fri, Jun 30 2023 2:26:18 pm | 2023-06-30 13:26:18,142 WARN [http-nio-7990-exec-10] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [pluginProvidedAuthenticationFilter]; no Spring WebApplicationContext is available
Fri, Jun 30 2023 2:26:18 pm | 2023-06-30 13:26:18,142 WARN [http-nio-7990-exec-10] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [trustedApplicationsAuthenticationFilter]; no Spring WebApplicationContext is available
Fri, Jun 30 2023 2:26:18 pm | 2023-06-30 13:26:18,143 WARN [http-nio-7990-exec-10] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [goGetFilter]; no Spring

But will now try building the docker image myself from your repo.

from jira.

voarsh2 avatar voarsh2 commented on June 15, 2024

I used your dockerfile (with some minor tweaks):

FROM haxqer/jdk:8-git-python

LABEL maintainer="haxqer <[email protected]>" version="7.21.0"

ARG BITBUCKET_VERSION=7.21.0
ARG BITBUCKET_PRODUCT=bitbucket-software
ARG AGENT_VERSION=1.3.3
ARG MYSQL_DRIVER_VERSION=8.0.22

ENV BITBUCKET_USER=bitbucket \
    BITBUCKET_GROUP=bitbucket \
    BITBUCKET_HOME=/var/atlassian/application-data/bitbucket \
    BITBUCKET_INSTALL=/opt/atlassian/bitbucket \
    JVM_MINIMUM_MEMORY=2g \
    JVM_MAXIMUM_MEMORY=6g \
    JVM_CODE_CACHE_ARGS='-XX:InitialCodeCacheSize=2g -XX:ReservedCodeCacheSize=6g' \
    AGENT_PATH=/var/agent \
    AGENT_FILENAME=atlassian-agent.jar

ENV JAVA_OPTS="-javaagent:${AGENT_PATH}/${AGENT_FILENAME} ${JAVA_OPTS}"

RUN mkdir -p ${BITBUCKET_INSTALL} ${BITBUCKET_HOME} ${AGENT_PATH} \
&& curl -o ${AGENT_PATH}/${AGENT_FILENAME}  https://github.com/haxqer/jira/releases/download/v${AGENT_VERSION}/atlassian-agent.jar -L \
&& curl -o /tmp/atlassian.tar.gz https://product-downloads.atlassian.com/software/stash/downloads/atlassian-bitbucket-${BITBUCKET_VERSION}.tar.gz -L \
&& tar xzf /tmp/atlassian.tar.gz -C ${BITBUCKET_INSTALL}/ --strip-components 1 \
&& rm -f /tmp/atlassian.tar.gz \
&& curl -o ${BITBUCKET_INSTALL}/app/WEB-INF/lib/mysql-connector-java-${MYSQL_DRIVER_VERSION}.jar https://repo1.maven.org/maven2/mysql/mysql-connector-java/${MYSQL_DRIVER_VERSION}/mysql-connector-java-${MYSQL_DRIVER_VERSION}.jar -L

RUN export CONTAINER_USER=$BITBUCKET_USER \
&& export CONTAINER_GROUP=$BITBUCKET_GROUP \
&& groupadd -r $BITBUCKET_GROUP && useradd -r -g $BITBUCKET_GROUP $BITBUCKET_USER \
&& chown -R $BITBUCKET_USER:$BITBUCKET_GROUP ${BITBUCKET_INSTALL} ${BITBUCKET_HOME}/ ${AGENT_PATH}

VOLUME $BITBUCKET_HOME
USER $BITBUCKET_USER
WORKDIR $BITBUCKET_INSTALL
EXPOSE 7990
EXPOSE 7999

ENTRYPOINT ["/opt/atlassian/bitbucket/bin/start-bitbucket.sh", "-fg"]

I removed the previously supplied licence in DB (app_property - license field):

Starting Atlassian Bitbucket as the current user

Fri, Jun 30 2023 2:57:27 pm |  
Fri, Jun 30 2023 2:57:27 pm | Starting the bundled search server
Fri, Jun 30 2023 2:57:27 pm | Hint: Run start-bitbucket.sh --no-search to skip starting the bundled search server
Fri, Jun 30 2023 2:57:27 pm | warning: ignoring JAVA_OPTS=-Dcluster.node.name=bitbucket-0; pass JVM parameters via OPENSEARCH_JAVA_OPTS
Fri, Jun 30 2023 2:57:28 pm | future versions of OpenSearch will require Java 11; your Java version from [/usr/local/openjdk-8/jre] does not meet this requirement
Fri, Jun 30 2023 2:57:28 pm | warning: ignoring JAVA_OPTS=-Dcluster.node.name=bitbucket-0; pass JVM parameters via OPENSEARCH_JAVA_OPTS
Fri, Jun 30 2023 2:57:28 pm | future versions of OpenSearch will require Java 11; your Java version from [/usr/local/openjdk-8/jre] does not meet this requirement
Fri, Jun 30 2023 2:57:30 pm | Bundled search server started successfully
Fri, Jun 30 2023 2:57:30 pm |  
Fri, Jun 30 2023 2:57:30 pm | Bitbucket is being run with a umask that contains potentially unsafe settings.
Fri, Jun 30 2023 2:57:30 pm | The following issues were found with the mask "u=rwx,g=rx,o=rx" (0022):
Fri, Jun 30 2023 2:57:30 pm | - Access is allowed to 'others'. It is recommended that 'others' be denied
Fri, Jun 30 2023 2:57:30 pm | all access for security reasons.
Fri, Jun 30 2023 2:57:30 pm | The recommended umask for Bitbucket is "u=,g=w,o=rwx" (0027) and can be
Fri, Jun 30 2023 2:57:30 pm | configured in _start-webapp.sh
Fri, Jun 30 2023 2:57:30 pm |  
Fri, Jun 30 2023 2:57:30 pm | Starting Bitbucket webapp at http://localhost:7990
Fri, Jun 30 2023 2:57:34 pm | 2023-06-30 13:57:33,846 INFO [main] c.a.b.i.b.BitbucketServerApplication Starting BitbucketServerApplication v7.21.0 using Java 1.8.0_342 on bitbucket-0 with PID 163 (/opt/atlassian/bitbucket/app/WEB-INF/classes started by bitbucket in /opt/atlassian/bitbucket)
Fri, Jun 30 2023 2:57:34 pm | 2023-06-30 13:57:34,172 INFO [main] c.a.b.i.b.BitbucketServerApplication No active profile set, falling back to default profiles: default
Fri, Jun 30 2023 2:57:35 pm | 2023-06-30 13:57:35,314 INFO [main] c.a.b.i.boot.log.BuildInfoLogger Starting Bitbucket 7.21.0 (6dea001 built on Tue Mar 01 21:46:46 UTC 2022)
Fri, Jun 30 2023 2:57:35 pm | 2023-06-30 13:57:35,314 INFO [main] c.a.b.i.boot.log.BuildInfoLogger JVM: Oracle Corporation OpenJDK 64-Bit Server VM 1.8.0_342-b07
Fri, Jun 30 2023 2:57:37 pm | 2023-06-30 13:57:37,471 INFO [main] c.a.b.i.b.BitbucketServerApplication Started BitbucketServerApplication in 5.725 seconds (JVM running for 6.909)
Fri, Jun 30 2023 2:57:42 pm | 2023-06-30 13:57:42,583 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory /var/atlassian/application-data/bitbucket
Fri, Jun 30 2023 2:58:26 pm | 2023-06-30 13:58:26,444 WARN [spring-startup] o.s.w.c.s.XmlWebApplicationContext Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'crowdAliasDao': Unsatisfied dependency expressed through method 'setSessionFactory' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sharedHomeLockAcquirer' defined in class path resource [stash-context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException
Fri, Jun 30 2023 2:58:26 pm | 2023-06-30 13:58:26,475 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Releasing lock on /var/atlassian/application-data/bitbucket
Fri, Jun 30 2023 2:58:26 pm | 2023-06-30 13:58:26,484 ERROR [spring-startup] c.a.j.s.w.s.JohnsonDispatcherServlet SpringMVC dispatcher [springMvc] could not be started
Fri, Jun 30 2023 2:58:26 pm | org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'crowdAliasDao': Unsatisfied dependency expressed through method 'setSessionFactory' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sharedHomeLockAcquirer' defined in class path resource [stash-context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException
Fri, Jun 30 2023 2:58:26 pm | at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.resolveMethodArguments(AutowiredAnnotationBeanPostProcessor.java:767)
Fri, Jun 30 2023 2:58:26 pm | at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
Fri, Jun 30 2023 2:58:26 pm | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
Fri, Jun 30 2023 2:58:26 pm | at javax.servlet.GenericServlet.init(GenericServlet.java:158)
Fri, Jun 30 2023 2:58:26 pm | at java.lang.Thread.run(Thread.java:750)
Fri, Jun 30 2023 2:58:26 pm | ... 19 frames trimmed
Fri, Jun 30 2023 2:58:26 pm | Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sharedHomeLockAcquirer' defined in class path resource [stash-context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException
Fri, Jun 30 2023 2:58:26 pm | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804)
Fri, Jun 30 2023 2:58:26 pm | ... 5 common frames omitted
Fri, Jun 30 2023 2:58:26 pm | Caused by: java.lang.IllegalArgumentException: null
Fri, Jun 30 2023 2:58:26 pm | at com.atlassian.stash.internal.license.DefaultLicenseHelper.decode(DefaultLicenseHelper.java:94)
Fri, Jun 30 2023 2:58:26 pm | at com.atlassian.stash.internal.license.DefaultLicenseHelper.getDecoded(DefaultLicenseHelper.java:108)
Fri, Jun 30 2023 2:58:26 pm | at com.atlassian.stash.internal.license.DefaultLicenseHelper.isClusteringEnabled(DefaultLicenseHelper.java:117)
Fri, Jun 30 2023 2:58:26 pm | at com.atlassian.stash.internal.home.SharedHomeLockAcquirer.isSharedLockRequired(SharedHomeLockAcquirer.java:106)
Fri, Jun 30 2023 2:58:26 pm | at com.atlassian.stash.internal.home.SharedHomeLockAcquirer.createHomeLock(SharedHomeLockAcquirer.java:96)
Fri, Jun 30 2023 2:58:26 pm | at com.atlassian.stash.internal.home.HomeLockAcquirer.lock(HomeLockAcquirer.java:56)
Fri, Jun 30 2023 2:58:26 pm | ... 5 common frames omitted
Fri, Jun 30 2023 2:58:30 pm | 2023-06-30 13:58:30,050 WARN [http-nio-7990-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [hazelcastFilter]; no Spring WebApplicationContext is available
Fri, Jun 30 2023 2:58:30 pm | 2023-06-30 13:58:30,051 WARN [http-nio-7990-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available

Only way I got 7.21.0 working was:

  • Don't specify DB connection details in the Helm Chart
  • Don't specify a licence (you can in the Helm Chart
  • Provision the install yourself and input the licence in setup

Chart:

additionalContainers: []
additionalFiles: []
additionalInitContainers: []
additionalLabels: {}
affinity: {}
bitbucket:
  additionalBundledPlugins: []
  additionalEnvironmentVariables: []
  additionalJvmArgs:
    - '-javaagent:/var/agent/atlassian-agent.jar'
  additionalLibraries: []
  additionalPorts: []
  additionalVolumeClaimTemplates: []
  additionalVolumeMounts: []
  applicationMode: default
  clustering:
    enabled: false
    group:
      nameSecretKey: name
      passwordSecretKey: password
      secretName: null
  containerSecurityContext: {}
  displayName: null
  elasticSearch:
    baseUrl: null
    credentials:
      passwordSecretKey: password
      secretName: null
      usernameSecretKey: username
  license:
    secretKey: license-key
    secretName: null
  mirror:
    upstreamUrl: null
  podManagementStrategy: OrderedReady
  ports:
    hazelcast: 5701
    http: 7990
    ssh: 7999
  resources:
    container:
      requests:
        cpu: '2'
        memory: 2G
    jvm:
      maxHeap: 1g
      minHeap: 512m
  securityContext:
    fsGroup: 2003
  securityContextEnabled: true
  service:
    annotations: {}
    contextPath: null
    loadBalancerIP: null
    port: 80
    type: ClusterIP
  setPermissions: true
  shutdown:
    command: /shutdown-wait.sh
    terminationGracePeriodSeconds: 35
  sshService:
    annotations: {}
    enabled: false
    host: null
    loadBalancerIP: null
    port: 22
    type: LoadBalancer
  sysadminCredentials:
    displayNameSecretKey: displayName
    emailAddressSecretKey: emailAddress
    passwordSecretKey: password
    secretName: null
    usernameSecretKey: username
  topologySpreadConstraints: []
  mesh:
    volume:
      resources:
        requests:
          storage: 100Gi
database:
  credentials:
    passwordSecretKey: password
    secretName: null
    usernameSecretKey: username
  driver: null
  url: null
fluentd:
  command: null
  customConfigFile: false
  elasticsearch:
    enabled: true
    hostname: elasticsearch
  enabled: false
  extraVolumes: []
  fluentdCustomConfig: {}
  imageRepo: fluent/fluentd-kubernetes-daemonset
  imageTag: v1.11.5-debian-elasticsearch7-1.2
image:
  pullPolicy: IfNotPresent
  repository: voarsh/bitbucket
  tag: 7.21.0
ingress:
  annotations: {}
  className: nginx
  create: false
  host: null
  https: false
  maxBodySize: 250m
  nginx: true
  path: null
  proxyConnectTimeout: 60
  proxyReadTimeout: 60
  proxySendTimeout: 60
  tlsSecretName: null
nodeSelector: {}
podAnnotations: {}
podLabels: {}
replicaCount: 1
schedulerName: null
serviceAccount:
  annotations: {}
  clusterRole:
    create: false
    name: null
  clusterRoleBinding:
    create: false
    name: null
  create: true
  imagePullSecrets: []
  name: null
  role:
    create: true
  roleBinding:
    create: true
tolerations: []
volumes:
  additional: []
  localHome:
    customVolume: {}
    mountPath: /var/atlassian/application-data/bitbucket
    persistentVolumeClaim:
      create: true
      resources:
        requests:
          storage: 100Gi
      storageClassName: null
  sharedHome:
    customVolume: {}
    mountPath: /var/atlassian/application-data/shared-home
    nfsPermissionFixer:
      command: null
      enabled: true
      imageRepo: alpine
      imageTag: latest
      mountPath: /shared-home
    persistentVolume:
      create: false
      mountOptions: []
      nfs:
        path: ''
        server: ''
    persistentVolumeClaim:
      accessMode: ReadWriteMany
      create: false
      resources:
        requests:
          storage: 1Gi
      storageClassName: null
      volumeName: null
    subPath: null
global:
  cattle:
    systemProjectId: p-fd24j

from jira.

voarsh2 avatar voarsh2 commented on June 15, 2024

There is a new repo that I found that fixes the agent for Bitbucket 8.9, I have confirmed by building the agent with maven and running the 8.9 LTS Helm Chart! :)

Let me know if you need help with building, or I can give you the build I made:
https://github.com/caelumlux/atlassian-agent

from jira.

voarsh2 avatar voarsh2 commented on June 15, 2024

Sorry for double posting. Will close this issue now. Again let me know if you need help building it.
I'm going to assume that future builds will follow Bitbucket and will break your 1.3.3 Agent soon.

from jira.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.