@fevzikorkutata I don't understand what you're saying.
That fix is in 1.17.0 so you shouldn't have run into that issue if you went straight from 1.0.3 to 1.17.0 as I recommended.
I 've same error
MongoDB shell version v3.4.18
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.4.18
> use nodebb
switched to db nodebb
> db.currentOp();
{
"ok" : 0,
"errmsg" : "not authorized on admin to execute command { currentOp: 1.0 }",
"code" : 13,
"codeName" : "Unauthorized"
}
>
NB : I'm use external mogodb server
@baris said in Upgrade to v1.11 MongoDb not authorized to execute command:
This should be addressed in the 1.11.x branch, git pull and try
Same error in upgrade :
→ [2018/12/26] Changing dbsearch mongodb search schema to use _id...
2018-11-30T18:00:37.706Z [7780] - error: can't find index with key: { id: 1 }
MongoError: can't find index with key: { id: 1 }
at /srv/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/pool.js:581:63
at authenticateStragglers (/srv/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/pool.js:504:16)
at Connection.messageHandler (/srv/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/pool.js:540:5)
at emitMessageHandler (/srv/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:310:10)
at Socket.<anonymous> (/srv/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:453:17)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at Socket.Readable.push (_stream_readable.js:208:10) {"nIndexesWas":2,"ok":0,"errmsg":"can't find index with key: { id: 1 }","code":27,"codeName":"IndexNotFound","name":"MongoError"}
2018-11-30T18:00:37.708Z [7780] - error: can't find index with key: { id: 1 }
MongoError: can't find index with key: { id: 1 }
at /srv/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/pool.js:581:63
at authenticateStragglers (/srv/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/pool.js:504:16)
at Connection.messageHandler (/srv/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/pool.js:540:5)
at emitMessageHandler (/srv/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:310:10)
at Socket.<anonymous> (/srv/nodebb/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:453:17)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at Socket.Readable.push (_stream_readable.js:208:10) {"nIndexesWas":2,"ok":0,"errmsg":"can't find index with key: { id: 1 }","code":27,"codeName":"IndexN → [2018/12/26] Changing dbsearch mongodb search schema to use _id... OK
Schema update complete!
./nodebb start
i've this log :
2018-11-30T18:01:09.847Z [7868] - warn: [deprecated] requiring core modules with `module.parent.require('../src/database.js')` is deprecated. Please use `require.main.require("./src/<module_name>")` instead.
at /srv/nodebb/node_modules/nodebb-plugin-blog-comments/library.js:6:25
2018-11-30T18:01:09.847Z [7868] - warn: [deprecated] requiring core modules with `module.parent.require('../../src/database.js')` is deprecated. Please use `require.main.require("./src/<module_name>")` instead.
at /srv/nodebb/node_modules/nodebb-plugin-blog-comments/library.js:6:25
2018-11-30T18:01:09.848Z [7868] - error: Error: Cannot find module '../../src/database.js'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at Module.module.require (/srv/nodebb/src/plugins/index.js:55:26)
at /srv/nodebb/node_modules/nodebb-plugin-blog-comments/library.js:6:25
at Object.<anonymous> (/srv/nodebb/node_modules/nodebb-plugin-blog-comments/library.js:250:2)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at Module.module.require (/srv/nodebb/src/plugins/index.js:43:25)
at require (internal/module.js:11:18)
at Object.Plugins.requireLibrary (/srv/nodebb/src/plugins/index.js:62:32)
at registerHooks (/srv/nodebb/src/plugins/load.js:183:13)
module grpr error :
2018-11-30T18:11:32.558Z [8209] - warn: [deprecated] requiring core modules with `module.parent.require('./database')` is deprecated. Please use `require.main.require("./src/<module_name>")` instead.
at Object.<anonymous> (/srv/nodebb/node_modules/nodebb-plugin-gdpr/library.js:5:24)
2018-11-30T18:11:32.559Z [8209] - warn: [deprecated] requiring core modules with `module.parent.require('./meta')` is deprecated. Please use `require.main.require("./src/<module_name>")` instead.
at Object.<anonymous> (/srv/nodebb/node_modules/nodebb-plugin-gdpr/library.js:6:26)
2018-11-30T18:11:32.559Z [8209] - warn: [deprecated] requiring core modules with `module.parent.require('./user')` is deprecated. Please use `require.main.require("./src/<module_name>")` instead.
at Object.<anonymous> (/srv/nodebb/node_modules/nodebb-plugin-gdpr/library.js:7:26)
2018-11-30T18:11:32.560Z [8209] - warn: [deprecated] requiring core modules with `module.parent.require('./pagination')` is deprecated. Please use `require.main.require("./src/<module_name>")` instead.
at Object.<anonymous> (/srv/nodebb/node_modules/nodebb-plugin-gdpr/library.js:8:32)