{"action":"opened","issue":{"url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/805","repository_url":"https://api.github.com/repos/mongodb-labs/mongo-connector","labels_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/805/labels{/name}","comments_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/805/comments","events_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/805/events","html_url":"https://github.com/mongodb-labs/mongo-connector/issues/805","id":306339859,"number":805,"title":"Log more debugging info from mongo-connector","user":{"login":"jayendra13","id":651057,"avatar_url":"https://avatars2.githubusercontent.com/u/651057?v=4","gravatar_id":"","url":"https://api.github.com/users/jayendra13","html_url":"https://github.com/jayendra13","followers_url":"https://api.github.com/users/jayendra13/followers","following_url":"https://api.github.com/users/jayendra13/following{/other_user}","gists_url":"https://api.github.com/users/jayendra13/gists{/gist_id}","starred_url":"https://api.github.com/users/jayendra13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayendra13/subscriptions","organizations_url":"https://api.github.com/users/jayendra13/orgs","repos_url":"https://api.github.com/users/jayendra13/repos","events_url":"https://api.github.com/users/jayendra13/events{/privacy}","received_events_url":"https://api.github.com/users/jayendra13/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-19T05:45:31Z","updated_at":"2018-03-19T05:45:31Z","closed_at":null,"author_association":"NONE","body":"I am trying to use mongo-connector with solr. The problem I am facing is that the after running the `mongo-connector` is stuck and doesn't give any indication in log what's happening. The solr dashboard doesn't show any documents.\r\nMy `mongo-connector` version is `2.5.1`. The operating system I am using is `Ubuntu-16`. I have started the mongo server in replica-set mode with the command `sudo mongod --replSet myDevReplSet`.\r\n\r\n```\r\n$ mongo-connector --version\r\nmongo-connector version: 2.5.1\r\n```\r\nI have tried the following ways to increase the verbosity of log, but none of them worked. In my case too mongo-connector hung without any indication of errors in log.\r\n\r\n```\r\n$ mongo-connector --verbose 3 --unique-key=id -n solr_test.films -m localhost:27017 -t http://localhost:8983/solr/films -d solr_doc_manager\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/mongo-connector\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/local/lib/python2.7/dist-packages/mongo_connector/util.py\", line 104, in wrapped\r\n    func(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/mongo_connector/connector.py\", line 1275, in main\r\n    conf.parse_args()\r\n  File \"/usr/local/lib/python2.7/dist-packages/mongo_connector/config.py\", line 106, in parse_args\r\n    + ', '.join(args))\r\nmongo_connector.errors.InvalidConfiguration: The following command line arguments are not recognized: 3\r\n```\r\n\r\n```\r\n$ mongo-connector -v 3 --unique-key=id -n solr_test.films -m localhost:27017 -t http://localhost:8983/solr/films -d solr_doc_manager\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/mongo-connector\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/local/lib/python2.7/dist-packages/mongo_connector/util.py\", line 104, in wrapped\r\n    func(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/mongo_connector/connector.py\", line 1275, in main\r\n    conf.parse_args()\r\n  File \"/usr/local/lib/python2.7/dist-packages/mongo_connector/config.py\", line 106, in parse_args\r\n    + ', '.join(args))\r\nmongo_connector.errors.InvalidConfiguration: The following command line arguments are not recognized: 3\r\n```\r\n\r\n```\r\n$ mongo-connector --verbose=3 --unique-key=id -n solr_test.films -m localhost:27017 -t http://localhost:8983/solr/films -d solr_doc_manager\r\nUsage: mongo-connector [options]\r\n\r\nmongo-connector: error: --verbose option does not take a value\r\n```\r\n\r\n```\r\n$ mongo-connector -v=3 --unique-key=id -n solr_test.films -m localhost:27017 -t http://localhost:8983/solr/films -d solr_doc_manager\r\nUsage: mongo-connector [options]\r\n\r\nmongo-connector: error: no such option: -=\r\n```\r\n\r\nIt stucks here without pushing/syncing any data to solr\r\n```\r\n$ mongo-connector --verbose --unique-key=id -n solr_test.films -m localhost:27017 -t http://localhost:8983/solr/films -d solr_doc_manager\r\nLogging to /home/eddie7/mongo-connector.log.\r\n````\r\n\r\nHere is the log from `mongo-connector.log`\r\n```\r\n2018-03-15 17:19:20,607 [ALWAYS] mongo_connector.connector:51 - Starting mongo-connector version: 2.5.1\r\n2018-03-15 17:19:20,607 [ALWAYS] mongo_connector.connector:51 - Python version: 2.7.12 (default, Nov 20 2017, 18:23:56)\r\n[GCC 5.4.0 20160609]\r\n2018-03-15 17:19:20,607 [ALWAYS] mongo_connector.connector:51 - Platform: Linux-4.4.0-116-generic-x86_64-with-Ubuntu-16.04-xenial\r\n2018-03-15 17:19:20,607 [ALWAYS] mongo_connector.connector:51 - pymongo version: 3.3.0\r\n2018-03-15 17:19:20,610 [ALWAYS] mongo_connector.connector:51 - Source MongoDB version: 3.2.18\r\n2018-03-15 17:19:20,611 [ALWAYS] mongo_connector.connector:51 - Target DocManager: mongo_connector.doc_managers.solr_doc_manager version: 0.1.0\r\n2018-03-15 17:19:20,616 [INFO] mongo_connector.oplog_manager:120 - OplogThread: Initializing oplog thread\r\n2018-03-15 17:19:20,617 [INFO] mongo_connector.connector:390 - MongoConnector: Starting connection thread MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True, replicaset=u'myDevReplSet')\r\n2018-03-15 17:19:20,618 [DEBUG] mongo_connector.oplog_manager:194 - OplogThread: Run thread started\r\n2018-03-15 17:19:20,618 [DEBUG] mongo_connector.oplog_manager:196 - OplogThread: Getting cursor\r\n2018-03-15 17:19:20,618 [DEBUG] mongo_connector.oplog_manager:830 - OplogThread: reading last checkpoint as Timestamp(1521109253, 1)\r\n2018-03-15 17:19:20,619 [DEBUG] mongo_connector.oplog_manager:704 - OplogThread: Oldest oplog entry has timestamp Timestamp(1520932472, 1).\r\n2018-03-15 17:19:20,620 [DEBUG] mongo_connector.oplog_manager:217 - OplogThread: about to process new oplog entries\r\n2018-03-15 17:19:20,620 [DEBUG] mongo_connector.oplog_manager:219 - OplogThread: Cursor is still alive and thread is still running.\r\n2018-03-15 17:19:21,620 [DEBUG] mongo_connector.oplog_manager:219 - OplogThread: Cursor is still alive and thread is still running.\r\n```\r\n\r\nHere is a `strace`  log if that can be helpful.\r\n\r\n```\r\nps -aux | grep mongo-connector\r\nuserx    9351  0.0  0.0  54108  8744 pts/28   S+   17:23   0:00 vim mongo-connector.log\r\nuserx   10824  4.7  0.1 745076 35296 pts/19   Sl+  17:31   0:00 /usr/bin/python /usr/local/bin/mongo-connector --verbose --unique-key=id -n solr_test.films -m localhost:27017 -t http://localhost:8983/solr/films -d solr_doc_manager\r\nuserx   10904  0.0  0.0  14228   932 pts/30   S+   17:31   0:00 grep --color=auto mongo-connector\r\n\r\n$ sudo strace -p 10824\r\n[sudo] password for eddie7: \r\nstrace: Process 10824 attached\r\nselect(0, NULL, NULL, NULL, {2, 839525}) = 0 (Timeout)\r\nselect(0, NULL, NULL, NULL, {3, 0})     = 0 (Timeout)\r\nselect(0, NULL, NULL, NULL, {3, 0})     = 0 (Timeout)\r\nselect(0, NULL, NULL, NULL, {3, 0})     = 0 (Timeout)\r\nselect(0, NULL, NULL, NULL, {3, 0})     = 0 (Timeout)\r\nselect(0, NULL, NULL, NULL, {3, 0})     = 0 (Timeout)\r\nselect(0, NULL, NULL, NULL, {3, 0})     = 0 (Timeout)\r\nselect(0, NULL, NULL, NULL, {3, 0})     = 0 (Timeout)\r\nselect(0, NULL, NULL, NULL, {3, 0})     = 0 (Timeout)\r\nselect(0, NULL, NULL, NULL, {3, 0})     = 0 (Timeout)\r\nselect(0, NULL, NULL, NULL, {3, 0})     = 0 (Timeout)\r\nselect(0, NULL, NULL, NULL, {3, 0})     = 0 (Timeout)\r\nselect(0, NULL, NULL, NULL, {3, 0})     = 0 (Timeout)\r\n```"}}
{"actor":{"display_login":"jayendra13"}}