Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to work on newest version in my local machine. #50

Open
l33ch4r opened this issue Jan 12, 2024 · 3 comments
Open

Unable to work on newest version in my local machine. #50

l33ch4r opened this issue Jan 12, 2024 · 3 comments

Comments

@l33ch4r
Copy link

l33ch4r commented Jan 12, 2024

Hi @haxqer . I thank you for the effort you are doing to help the community, especially us students.
I have a problem activating confluence in my Debian 12 virtual machine. I transformed the dockerfile to a bash script that I execute to install confluence in my virtual machine.

#!/bin/bash

export APP_VERSION=8.7.1
export AGENT_VERSION=1.3.3
export MYSQL_DRIVER_VERSION=8.0.22

export ATLASSIAN_PRODUCTION=confluence
export APP_NAME=confluence
export AGENT_FILENAME=atlassian-agent.jar

export CONFLUENCE_HOME=/var/confluence
export CONFLUENCE_INSTALL=/opt/confluence
export JVM_MINIMUM_MEMORY=1g
export JVM_MAXIMUM_MEMORY=3g
export JVM_CODE_CACHE_ARGS='-XX:InitialCodeCacheSize=1g -XX:ReservedCodeCacheSize=2g'
export AGENT_PATH=/var/agent
export LIB_PATH=/confluence/WEB-INF/lib

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

mkdir -p ${CONFLUENCE_INSTALL} ${CONFLUENCE_HOME} ${AGENT_PATH} ${CONFLUENCE_INSTALL}${LIB_PATH}

curl -o ${AGENT_PATH}/${AGENT_FILENAME} https://github.com/haxqer/confluence/releases/download/v${AGENT_VERSION}/atlassian-agent.jar -L
curl -o /tmp/atlassian.tar.gz https://product-downloads.atlassian.com/software/confluence/downloads/atlassian-${APP_NAME}-${APP_VERSION}.tar.gz -L

tar xzf /tmp/atlassian.tar.gz -C /opt/confluence/ --strip-components 1
rm -f /tmp/atlassian.tar.gz

curl -o ${CONFLUENCE_INSTALL}/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
cp ${CONFLUENCE_INSTALL}/lib/mysql-connector-java-${MYSQL_DRIVER_VERSION}.jar ${CONFLUENCE_INSTALL}${LIB_PATH}/mysql-connector-java-${MYSQL_DRIVER_VERSION}.jar

echo "confluence.home = ${CONFLUENCE_HOME}" > ${CONFLUENCE_INSTALL}/${ATLASSIAN_PRODUCTION}/WEB-INF/classes/confluence-init.properties

Here is my activation code
java -jar /var/agent/atlassian-agent.jar -d -m me@local.me -o mine -n name -p conf -s BMA4-1AUS-8TY9-EA41
image

But it won't work.
image

Am I missing something?
I hope that you can help me big brother.

@l33ch4r
Copy link
Author

l33ch4r commented Jan 12, 2024

You can close the Issue. I did it many times and I succeeded in one. I don't know what I changed but I tried to run the service using scripts startup and start-confluence

@tomerh2001
Copy link

You can close the Issue. I did it many times and I succeeded in one. I don't know what I changed but I tried to run the service using scripts startup and start-confluence

So it works?

@haxqer
Copy link
Owner

haxqer commented Jan 22, 2024

@l33ch4r
The significance of Docker images lies in avoiding various issues caused by runtime environments like the one you mentioned. I don't know what your runtime environment is like, so I can't assist you in identifying the problem. I recommend compiling it into your own Docker image instead of running it directly on the machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants