Coder Social home page Coder Social logo

Comments (7)

YuanmingLeee avatar YuanmingLeee commented on May 19, 2024

Can you go into the mongo docker see if the user has been created

docker exec -it modelci-mongo mongo

Inside mongo shell, try

> use modelci;
> db.getUsers();

from ml-model-ci.

huangyz0918 avatar huangyz0918 commented on May 19, 2024

Can you go into the mongo docker see if the user has been created

empty, no users, seems you have issues in the script

from ml-model-ci.

YuanmingLeee avatar YuanmingLeee commented on May 19, 2024

Seems strange.. Try stop and restart the service?

from ml-model-ci.

huangyz0918 avatar huangyz0918 commented on May 19, 2024
(hy) λ  ML-Model-CI git:(feature/diagnoser) ✗ sh scripts/start_service.sh
Using default tag: latest
latest: Pulling from library/mongo
Digest: sha256:50d7b0aef8165b542612a4f57fd7b70703eb7db095588fb76e5a3f01cda396a0
Status: Image is up to date for mongo:latest
docker.io/library/mongo:latest
09f30aac5c598783d130fd64273e9bda9c4e5e8375f8203046a8f0f986477cb9
MongoDB shell version v4.2.6
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("071000a7-914b-42ef-aa1e-81a9d202b391") }
MongoDB server version: 4.2.6
bad use parameter
2020-05-07T06:29:52.878+0000 E  QUERY    [js] uncaught exception: ReferenceError: modelci is not defined :
@(shell):1:1
Successfully added user: { "user" : "modelci", "roles" : [ "readWrite" ] }
bye
(hy) λ  ML-Model-CI git:(feature/diagnoser) ✗ source scripts/setup_env.sh
(hy) λ  ML-Model-CI git:(feature/diagnoser) ✗ cd example/diagnoser
(hy) λ  diagnoser git:(feature/diagnoser) ✗ python main.py
Traceback (most recent call last):
  File "main.py", line 46, in <module>
    register_model_from_yaml(model_path)
  File "/home/hyz/workspace/ML-Model-CI/modelci/hub/manager.py", line 167, in register_model_from_yaml
    no_generate=no_generate,
  File "/home/hyz/workspace/ML-Model-CI/modelci/hub/manager.py", line 103, in register_model
    ModelService.post_model(model)
  File "/home/hyz/workspace/ML-Model-CI/modelci/persistence/service.py", line 82, in post_model
    model_po = model.to_model_po()
  File "/home/hyz/workspace/ML-Model-CI/modelci/persistence/bo/model_bo.py", line 94, in to_model_po
    self.weight.weight, filename=self.weight.filename, content_type=self.weight.content_type
  File "/home/hyz/local/anaconda3/envs/hy/lib/python3.7/site-packages/mongoengine/fields.py", line 1758, in put
    self.grid_id = self.fs.put(file_obj, **kwargs)
  File "/home/hyz/local/anaconda3/envs/hy/lib/python3.7/site-packages/mongoengine/fields.py", line 1729, in fs
    self._fs = gridfs.GridFS(get_db(self.db_alias), self.collection_name)
  File "/home/hyz/local/anaconda3/envs/hy/lib/python3.7/site-packages/mongoengine/connection.py", line 369, in get_db
    conn_settings["username"], conn_settings["password"], **auth_kwargs
  File "/home/hyz/local/anaconda3/envs/hy/lib/python3.7/site-packages/pymongo/database.py", line 1471, in authenticate
    connect=True)
  File "/home/hyz/local/anaconda3/envs/hy/lib/python3.7/site-packages/pymongo/mongo_client.py", line 755, in _cache_credentials
    sock_info.authenticate(credentials)
  File "/home/hyz/local/anaconda3/envs/hy/lib/python3.7/site-packages/pymongo/pool.py", line 730, in authenticate
    auth.authenticate(credentials, self)
  File "/home/hyz/local/anaconda3/envs/hy/lib/python3.7/site-packages/pymongo/auth.py", line 564, in authenticate
    auth_func(credentials, sock_info)
  File "/home/hyz/local/anaconda3/envs/hy/lib/python3.7/site-packages/pymongo/auth.py", line 539, in _authenticate_default
    return _authenticate_scram(credentials, sock_info, 'SCRAM-SHA-1')
  File "/home/hyz/local/anaconda3/envs/hy/lib/python3.7/site-packages/pymongo/auth.py", line 263, in _authenticate_scram
    res = sock_info.command(source, cmd)
  File "/home/hyz/local/anaconda3/envs/hy/lib/python3.7/site-packages/pymongo/pool.py", line 613, in command
    user_fields=user_fields)
  File "/home/hyz/local/anaconda3/envs/hy/lib/python3.7/site-packages/pymongo/network.py", line 167, in command
    parse_write_concern_error=parse_write_concern_error)
  File "/home/hyz/local/anaconda3/envs/hy/lib/python3.7/site-packages/pymongo/helpers.py", line 159, in _check_command_response
    raise OperationFailure(msg % errmsg, code, response)
pymongo.errors.OperationFailure: Authentication failed.
(hy) λ  diagnoser git:(feature/diagnoser) ✗

the full logs.

from ml-model-ci.

huangyz0918 avatar huangyz0918 commented on May 19, 2024

Where do you run the start service script

ML-Model-CI home

from ml-model-ci.

huangyz0918 avatar huangyz0918 commented on May 19, 2024

@YuanmingLeee issue was gone when I add the user manually, seems it's a script issue, I use zsh to execute the scripts.

from ml-model-ci.

YuanmingLeee avatar YuanmingLeee commented on May 19, 2024

Seem that there is a syntax update for executing mongo shell command in js. Previous use modelci will get rejected.

from ml-model-ci.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.