mongodb-labs / drivers-evergreen-tools

Scripts for MongoDB drivers to bootstrap their Evergreen configuration file - This Repository is NOT a supported MongoDB product
10 stars 64 forks source link

DRIVERS-2991 Prefer lsof over fuser for macos support #506

Closed ShaneHarvey closed 4 weeks ago

ShaneHarvey commented 4 weeks ago

DRIVERS-2991 Prefer lsof over fuser for macos support.

ShaneHarvey commented 4 weeks ago

Testing: https://spruce.mongodb.com/version/66f5dcc6aac4f70007254d1d/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC

blink1073 commented 4 weeks ago

Does this supersede #507?

blink1073 commented 4 weeks ago

Maybe try pinning pymongo<4.9?

nbbeeken commented 4 weeks ago

I think this should work with killport running for the mongod/s now: https://spruce.mongodb.com/version/66f6c8986b942e0007c938e7

Ah still not cleared, new bug 🐛 :

pymongo.errors.OperationFailure: command addShard requires authentication, full error: {'ok': 0.0, 'errmsg': 'command addShard requires authentication', 'code': 13, 'codeName': 'Unauthorized', 'operationTime': Timestamp(1727448894, 2), '$clusterTime': {'clusterTime': Timestamp(1727448894, 2), 'signature': {'hash': b'0\x0e\xe0\xb2yF`\xc6 8@#q!\xea\x00V\x1a\xfe[', 'keyId': 7419333640498184225}}}

Finding different errors:

pymongo.errors.OperationFailure: no such cmd: replSetInitiate, full error: {'ok': 0.0, 'errmsg': 'no such cmd: replSetInitiate', 'code': 59, 'codeName': 'CommandNotFound', 'operationTime': Timestamp(1727448890, 3), '$clusterTime': {'clusterTime': Timestamp(1727448890, 3), 'signature': {'hash': b'\x99\xee\x0f\xef\xef&\xf1\xc6\xd6B\x10>?\x8c\xe0<W\x07\x98\xb1', 'keyId': 7419333661973020705}}}

Maybe "no such cmd: replSetInitiate," is a manifestation of "server not killed" bug, like the leftover mongod is standalone? 🤔

ShaneHarvey commented 4 weeks ago

Neglected to add an update here on my progress from yesterday. I was hoping that the original commit would fix it but I saw the replSetInitiate errors Neal pointed out above.

I'm testing a new approach which sends SIGTERM to 8889 and other common mongodb server ports used by MO: https://spruce.mongodb.com/version/66f6e7d69dd7c000079c1191/

ShaneHarvey commented 4 weeks ago

I was hoping to merge the revert (https://github.com/mongodb-labs/drivers-evergreen-tools/pull/507) first to unblock macos tests and then merge this fix once it's ready. If this one gets approved first then I'll close #507.

nbbeeken commented 4 weeks ago

thanks so much for staying on top of this!!!

I already restarted: spruce.mongodb.com/version/66f6c8986b942e0007c938e7 which will pull this new commit

some of the logs are showing up and we're making it past mongo-orch on win, linux, and mac 🎉 🤞🏻