Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#46168 - [mongodb-tools] 3.1.7 cannot connect to server when importing

Attached to Project: Community Packages
Opened by Justin Vreeland (jvreeland) - Tuesday, 01 September 2015, 16:18 GMT
Last edited by Felix Yan (felixonmars) - Thursday, 17 December 2015, 02:53 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

mongodbimport will not import files into the database. Fails and says it cannot connect to server.

$ mongoimport -vvvvv --host localhost:27017 --file grades.json
2015-09-01T08:59:18.983-0600 using 24 decoding workers
2015-09-01T08:59:18.983-0600 using 1 insert workers
2015-09-01T08:59:18.983-0600 no collection specified
2015-09-01T08:59:18.983-0600 using filename 'grades' as collection
2015-09-01T08:59:18.983-0600 filesize: 95483 bytes
2015-09-01T08:59:18.983-0600 using fields:
2015-09-01T08:59:21.984-0600 [........................] test.grades 0.0 B/93.2 KB (0.0%)
2015-09-01T08:59:22.488-0600 [........................] test.grades 0.0 B/93.2 KB (0.0%)
2015-09-01T08:59:22.488-0600 Failed: error connecting to db server: no reachable servers
2015-09-01T08:59:22.488-0600 imported 0 documents

This works perfectly well in version 3.1.6.

The mongodb distributed versions found on their download page work perfectly fine.
My ABS build fails with the same error as the version from the repo.

Additional info:
mongoimport --version
mongoimport version: 3.1.7
git version: not-built-with-ldflags


Steps to reproduce:

install mongodb-tools

try and use mongoimport to import json file.

Additional Info:

Initially filed bug upstream:

https://jira.mongodb.org/browse/TOOLS-898
This task depends upon

Closed by  Felix Yan (felixonmars)
Thursday, 17 December 2015, 02:53 GMT
Reason for closing:  Upstream
Additional comments about closing:  fixed.
Comment by Guilherme Nakayama (guilherme.nakayama) - Wednesday, 14 October 2015, 09:10 GMT
Try to run the command with the option --host=127.0.0.1
Comment by Felix Yan (felixonmars) - Thursday, 17 December 2015, 02:53 GMT
This should be no longer a problem now.

Loading...