Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dbsearch not working in master branch #7860

Closed
karnakitab opened this issue Aug 23, 2019 · 7 comments

Comments

@karnakitab
Copy link

commented Aug 23, 2019

NodeBB master
Ubuntu 18.04
MongoDB 4.2 (also tried with 4.0)
Node 12 (also tried with 8.11)
I activated the nodebb-plugin-dbsearch
On running ./nodebb upgrade, the process never ends:

  → [2018/11/26] Changing dbsearch mongodb search schema to use _id...
2019-08-23T00:12:42.958Z [4567/29291] - error: ns not found {"operationTime":"6728148569347325974","ok":0,"errmsg":"ns not found","code":26,"codeName":"NamespaceNotFound","$clusterTime":{"clusterTime":"6728148569347325974","signature":{"hash":"orO9ai4oBDGNWv4lN9qzxTF057E=","keyId":"6727673687698309122"}},"name":"MongoError"}
2019-08-23T00:12:42.962Z [4567/29291] - error: ns not found {"operationTime":"6728148569347325974","ok":0,"errmsg":"ns not found","code":26,"codeName":"NamespaceNotFound","$clusterTime":{"clusterTime":"6728148569347325974","signature":{"hash":"orO9ai4oBDGNWv4lN9qzxTF057E=","keyId":"6727673687698309122"}},"name":"MongoError"}
@barisusakli

This comment has been minimized.

Copy link
Member

commented Aug 23, 2019

How big is your database? The reindex might take a long time.

@karnakitab

This comment has been minimized.

Copy link
Author

commented Aug 23, 2019

It is just newly installed nodebb. It is live on https://forum.pagol.in

@barisusakli barisusakli added the bug label Aug 23, 2019

@barisusakli barisusakli added this to the 1.13.0 milestone Aug 23, 2019

@barisusakli

This comment has been minimized.

barisusakli added a commit that referenced this issue Aug 23, 2019
@barisusakli

This comment has been minimized.

Copy link
Member

commented Aug 23, 2019

@karnakitab please let me know if it works now.

@karnakitab

This comment has been minimized.

Copy link
Author

commented Aug 23, 2019

@barisusakli Seems like it is working. The output of ./nodebb upgrade:

4. Updating NodeBB data store schema...[benchpressjs] Unable to build or find a suitable native module, falling back to JS version

Parsing upgrade scripts... 
OK | 1 script(s) found, 80 skipped
  → [2018/11/26] Changing dbsearch mongodb search schema to use _id...
2019-08-23T00:43:52.886Z [4567/30171] - error: can't find index with key: { id: 1 } {"operationTime":"6728156600936169474","ok":0,"errmsg":"can't find index with key: { id: 1 }","code":27,"codeName":"IndexNotFound","$clusterTime":{"clusterTime":"6728156600936169474","signature":{"hash":"WbQ1rwN4mj7Ybo0Yo8kDTYOc6SU=","keyId":"6727673687698309122"}},"name":"MongoError"}
2019-08-23T00:43:52.890Z [4567/30171] - error: can't find index with key: { id: 1 } {"operationTime":"6728156600936169474","ok":0,"errmsg":"can't find index with key: { id: 1 }","code":27,"codeName":"IndexNotFound","$clusterTime":{"clusterTime":"6728156600936169474","signature":{"hash":"WbQ1rwN4mj7Ybo0Yo8kDTYOc6SU=","keyId":"6727673687698  → [2018/11/26] Changing dbsearch mongodb search schema to use _id... OK
Schema update complete!
@barisusakli

This comment has been minimized.

Copy link
Member

commented Aug 23, 2019

Yes, that is the expected output for a new install.

@karnakitab

This comment has been minimized.

Copy link
Author

commented Aug 23, 2019

@barisusakli Thanks a lot. Keep up the good work, Sir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.