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

The Mongo executable should be cleaned at start #7

Open
ArnaudLavallee opened this issue Oct 26, 2016 · 0 comments
Open

The Mongo executable should be cleaned at start #7

ArnaudLavallee opened this issue Oct 26, 2016 · 0 comments

Comments

@ArnaudLavallee
Copy link

Sometimes we create tests and stops those test with CTRL+C.

The result is that the MongoDB executable installed in C:\User\myuser\AppData\Local\Temp is not deleted and we encounter the following error at start.

Warning: socket_connect(): unable to connect [10061]: No connection could be made because the target machine actively refused it.
 in D:\workspace\myproject\vendor\gomoob\php-embedded-mongo\src\main\php\Gomoob\Embedded\MongoServer.php on line 71

Warning: socket_sendto(): unable to write to socket [10057]: A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
 in D:\workspace\myproject\vendor\gomoob\php-embedded-mongo\src\main\php\Gomoob\Embedded\MongoServer.php on line 76
Failed

And also

MongoDB\Driver\Exception\ConnectionTimeoutException: No suitable servers found (`serverselectiontryonce` set): [Failed connecting to 'localhost:27017': No connection could be made because the target machine actively refused it.
]

Temporarily to fix the error we can manually delete the extract-*-extractmongod.exe executable from the OS temporary directory by ideally this should be done automatically.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant