S
S
Sergey Beloventsev2017-03-17 15:13:13
Yii
Sergey Beloventsev, 2017-03-17 15:13:13

Why is there an error in MongoDB Model Generator?

the error occurs in gii here is the error itself

MongoDB\Driver\Exception\AuthenticationException: field missing/wrong type in received authenticate command in /var/www/film.lc/vendor/yiisoft/yii2-mongodb/Command.php:187 Stack trace:

this is how it is configured in the config
'mongodb'=>[
            'class' => 'yii\mongodb\Connection',
            'dsn' => 'mongodb://admin:[email protected]:27017/film',
        ],

here is the mongodb log
2017-03-17T17:09:58.725+0300 [initandlisten] MongoDB starting : pid=1046 port=27017 dbpath=/var/lib/mongodb 64-bit host=sergalas-Lenovo-Z710...
2017-03-17T17:13:07.520+0300 [conn1]  authenticate db: film { authenticate: 1, user: "admin", nonce: "xxx", key: "xxx" }
2017-03-17T17:18:44.698+0300 [conn2]  authenticate db: film { authenticate: 1, user: "admin", nonce: "xxx", key: "xxx" }

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question