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

您输入的授权码对 有效但对Confluence无效。 #62

Open
Arthur-CJJ opened this issue May 29, 2024 · 8 comments
Open

您输入的授权码对 有效但对Confluence无效。 #62

Arthur-CJJ opened this issue May 29, 2024 · 8 comments

Comments

@Arthur-CJJ
Copy link

大佬,我按照了你的操作步骤,运行成功之后,生成密钥填写之后提示”您输入的授权码对 有效但对Confluence无效。“这个是什么原因呢?大佬有空的时候能否解答一下,辛苦了

使用的是 8.9.1 的版本

@haxqer
Copy link
Owner

haxqer commented May 29, 2024

docker exec confluence-srv java -jar /var/agent/atlassian-agent.jar \
    -d \
    -p conf \
    -m Hello@world.com \
    -n Hello@world.com \
    -o your-org \
    -s you-server-id-xxxx

中的 you-server-id-xxxx 要替换成你的 service id(confluence 生成的, 系统信息内能查看到)

@Arthur-CJJ
Copy link
Author

非常感谢百忙之中抽空帮我解答,是我自己操作的问题,我使用了你提供的获取插件授权码的语句去获取 jira 的授权码,所以才导致的问题

@zxhwyp
Copy link

zxhwyp commented Jul 5, 2024

我把atlassian-agent.jar文件放到 confluence 目录下,然后跑
java -jar ./atlassian-agent.jar
-d
-p conf
-m Hello@world.com
-n Hello@world.com
-o your-org
-s B339-OBB9-xxxx-0FGH
生成的密钥使用报错:【那不是一个有效的授权码。】安装的Confluence 8.9.3,大佬知道什么问题吗

@haxqer
Copy link
Owner

haxqer commented Jul 5, 2024

启动的时候,要注入 atlassian-agent.jar。不能仅仅只是生成 key 的时候使用这个 jar 包对吧?

@zxhwyp
Copy link

zxhwyp commented Jul 5, 2024

@haxqer 耽误大佬时间了,没理解启动的时候要注入atlassian-agent.jar 指的是什么意思

@haxqer
Copy link
Owner

haxqer commented Jul 5, 2024

https://github.com/haxqer/confluence/blob/master/Dockerfile#L20

这行代码,在环境变量里面配置。你可以理解为,jira/confluence 启动的时候,就加载了 atlassian-agent.jar。这样之后,再用这个 jar 包生成的 key 才能生效

@zxhwyp
Copy link

zxhwyp commented Jul 5, 2024

https://github.com/haxqer/confluence/blob/master/Dockerfile#L20

这行代码,在环境变量里面配置。你可以理解为,jira/confluence 启动的时候,就加载了 atlassian-agent.jar。这样之后,再用这个 jar 包生成的 key 才能生效

谢谢,一开始没注意到这句代码。占用你时间了 十分感谢

@haxqer
Copy link
Owner

haxqer commented Jul 5, 2024

客气啦

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