haxqer / confluence

The simplest docker file of Confluence. Support v8.9.4(latest) and v8.5.12(lts)
340 stars 180 forks source link

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

Open Arthur-CJJ opened 1 month ago

Arthur-CJJ commented 1 month ago

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

使用的是 8.9.1 的版本

haxqer commented 1 month ago
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 commented 1 month ago

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

zxhwyp commented 3 days ago

我把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 commented 3 days ago

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

zxhwyp commented 2 days ago

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

haxqer commented 2 days ago

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

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

zxhwyp commented 2 days ago

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

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

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

haxqer commented 2 days ago

客气啦