微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

安装docker后无法登录Octopus Deploy

如何解决安装docker后无法登录Octopus Deploy

我正在尝试使用Linux docker映像设置章鱼。创建容器后,我看到登录页面,但是无法使用管理员登录名和密码(“无效的用户名或密码”)登录。您有什么建议可以解决问题吗?

这是我的docker-compose文件


version: '3.7'  
services:  
  octopus:  
    image: octopusdeploy/octopusdeploy  
    hostname: octopus  
    container_name: octopus  
    privileged: true  
    environment:  
      ACCEPT_EULA: Y  
      OCTOPUS_SERVER_NODE_NAME: ${OCTOPUS_SERVER_NODE_NAME}  
      DB_CONNECTION_STRING: ${MSsql_DB_CONNECTION_STRING}  
      ADMIN_USERNAME: ${OCT_ADMIN_USERNAME}  
      ADMIN_PASSWORD: ${OCT_ADMIN_PASSWORD}  
      ADMIN_EMAIL: ${OCT_ADMIN_EMAIL}  
      OCTOPUS_SERVER_BASE64_LICENSE: ${OCTOPUS_SERVER_BASE64_LICENSE}  
      MASTER_KEY: ${OCT_MASTER_KEY}  
      ADMIN_API_KEY: ${OCT_ADMIN_API_KEY}  
    ports:  
      - "8086:8080"  
      - "10943:10943"  
    expose:  
      - "443"  
    depends_on:  
      - octopus_mssql  
    volumes:  
      - ./octopus/octopus/repository:/repository  
      - ./octopus/octopus/artifacts:/artifacts  
      - ./octopus/octopus/taskLogs:/taskLogs  
      - ./octopus/octopus/cache:/cache  
    networks:  
      - tech-network  

  octopus_mssql:  
    image: mcr.microsoft.com/mssql/server:2017-latest-ubuntu  
    hostname: octopus_mssql  
    container_name: octopus_mssql  
    environment:  
      SA_PASSWORD: ${MSsql_SA_PASSWORD}  
      ACCEPT_EULA: Y  
      # Prevent sql Server from consuming the defult of 80% physical memory.  
      MSsql_MEMORY_LIMIT_MB: 2048  
      MSsql_PID: Express  
    expose:  
      - "1433"  
    healthcheck:  
      test: [ "CMD","/opt/mssql-tools/bin/sqlcmd","-U","sa","-P","${MSsql_SA_PASSWORD}","-Q","select 1"]  
      interval: 10s  
      retries: 10  
    volumes:  
      - ./octopus/mssql/data:/var/opt/mssql  
    networks:  
      - tech-network

Env文件和API KEY等一些值已更改):

MSsql_SA_PASSWORD=_passtomssql_  
OCT_ADMIN_USERNAME=admin  
OCT_ADMIN_PASSWORD=_adminPassword_  
OCT_ADMIN_EMAIL=octopus@g.com  
OCTOPUS_SERVER_NODE_NAME=octopus  
MSsql_DB_CONNECTION_STRING=Server=octopus_mssql,1433;Database=OctopusDeploy;User=sa;Password=_passtomssql_  
OCTOPUS_SERVER_BASE64_LICENSE=_license in base64_  
OCT_MASTER_KEY=_master key_  
OCT_ADMIN_API_KEY=API-1234567890E1F1234567

我试图更改章鱼容器中的admin密码:
/Octopus/Octopus.Server admin --username = admin --password = NewPassword1234

命令成功,但是我仍然无法从UI登录

Checking the Octopus Master Key has been configured.  
Making sure it's safe to upgrade the database schema...  
Ensuring pre-conditions for upgrading the database are satisfied...  
Searching for indexes that might upset the database upgrade process...  
- PASS: All columns use the default collation.  
- PASS: Your Octopus Server will be compliant with your license after upgrading.  
- PASS: We've done our best to remove any unexpected database indexes.  
- PASS: The version of your sql Server satisfies Octopus Server installation requirements.  
Executing always run pre scripts...  
Executing Tsql Database Server script 'Octopus.Core.UpgradeScriptsAlwaysPre.Script0000 - Set highest available compatibility level.sql'  
Current COMPATIBILITY_LEVEL for OctopusDeploy is set to 140  
Ensuring COMPATIBILITY_LEVEL for OctopusDeploy is set to 140  
COMPATIBILITY_LEVEL for OctopusDeploy is already 140 or higher  
Checking to see if database schema upgrade is required...  
Database already has the expected schema. No changes are required.  
Executing always run post scripts...  
Executing Tsql Database Server script 'Octopus.Core.UpgradeScriptsAlwaysPost.Script0000 - Refresh Views.sql'  
Refreshing view dbo.Dashboard  
Refreshing view dbo.IdsInUse  
Refreshing view dbo.MultiTenancyDashboard  
Refreshing view dbo.Release_WithDeploymentProcess  
Refreshing view dbo.RunbookSnapshot_WithRunbookProcess  
Refreshing view dbo.TenantProject  
Creating or modifying administrator 'admin'  
Setting password for user admin  
Done.

解决方法

两个建议/问题:

  1. 尝试删除Admin API密钥。如果您指定了API密钥和密码,它应该可以工作,但是如果此处出现问题,则可能是正在将admin用户创建为服务帐户。
  2. 用于Linux的octopusdeploy / octopusdeploy的最新标签似乎在撰写本文时已损坏。您可以在图片中添加2020.4标签吗? “ octopusdeploy / octopusdeploy:2020.4”
,

只需删除 API 密钥也适用于 octopusdeploy/octopusdeploy:2020.6

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?