You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2022/05/12 04:03:33 UTC

[GitHub] [servicecomb-kie] 96loveslife opened a new issue, #244: Inconsistent script database name in Quick Start causes docker-compose service startup to fail

96loveslife opened a new issue, #244:
URL: https://github.com/apache/servicecomb-kie/issues/244

   【Scenes】
   According to the quick start document, use the docker-compose command to start the service, but the database authentication fails
   
   【Reason】
   [db.js](https://github.com/apache/servicecomb-kie/blob/master/deployments/db.js),
   
   - mongodb init database name is servicecomb
   - db.js init database name is kie 
   
   ```
    {
           user: "kie",
           pwd: "123",
           roles:[
               {
                   role: "readWrite",
                   db:   "kie"
               }
           ]
       }
   ```
   
   [Error Log]
   can not dial db:server returned error on SASL authentication step: Authentication failed
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Inconsistent script database name in Quick Start causes docker-compose service startup to fail [servicecomb-kie]

Posted by "mniwjb (via GitHub)" <gi...@apache.org>.
mniwjb commented on issue #244:
URL: https://github.com/apache/servicecomb-kie/issues/244#issuecomment-1982915686

   > would you like to fix this problem?
   
   As the author said, we can modify the mongodb database name from 'servicecomb' to 'kie', like this: 
   Before:
   sudo docker run --name mongo -d \
       -e "MONGO_INITDB_DATABASE=servicecomb" \
       -e "MONGO_INITDB_ROOT_USERNAME=kie" \
       -e "MONGO_INITDB_ROOT_PASSWORD=123" \
       -p 27017:27017 \
       -v ./deployments/db.js:/docker-entrypoint-initdb.d/db.js:ro \
       mongo:4.0
   
   After:
   sudo docker run --name mongo -d \
       -e "MONGO_INITDB_DATABASE=kie" \
       -e "MONGO_INITDB_ROOT_USERNAME=kie" \
       -e "MONGO_INITDB_ROOT_PASSWORD=123" \
       -p 27017:27017 \
       -v ./deployments/db.js:/docker-entrypoint-initdb.d/db.js:ro \
       mongo:4.0
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-kie] tianxiaoliang commented on issue #244: Inconsistent script database name in Quick Start causes docker-compose service startup to fail

Posted by GitBox <gi...@apache.org>.
tianxiaoliang commented on issue #244:
URL: https://github.com/apache/servicecomb-kie/issues/244#issuecomment-1125945404

   would you like to fix this problem?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org