Skip to content

LDAP importCronTab creates "TypeError: db.collection is not a function" errors in serverside log #406

@derwok

Description

@derwok

We use the current /develop/ branch as of this writing.
I have this line in my settings.json ldapsection: "importCronTab": "* 22 3 * * *"

Every night at exactly 3:22 I see this in my log file:

20180117-03:22:00.575(1) (STDERR) An error occurred: TypeError: db.collection is not a function
20180117-03:22:01.441(1) (STDERR) An error occurred: TypeError: db.collection is not a function
20180117-03:22:02.430(1) (STDERR) An error occurred: TypeError: db.collection is not a function
20180117-03:22:03.434(1) (STDERR) An error occurred: TypeError: db.collection is not a function
20180117-03:22:04.430(1) (STDERR) An error occurred: TypeError: db.collection is not a function
20180117-03:22:05.434(1) (STDERR) An error occurred: TypeError: db.collection is not a function
20180117-03:22:06.432(1) (STDERR) An error occurred: TypeError: db.collection is not a function
20180117-03:22:07.432(1) (STDERR) An error occurred: TypeError: db.collection is not a function
20180117-03:22:08.427(1) (STDERR) An error occurred: TypeError: db.collection is not a function
20180117-03:22:09.434(1) (STDERR) An error occurred: TypeError: db.collection is not a function
20180117-03:22:10.431(1) (STDERR) An error occurred: TypeError: db.collection is not a function
20180117-03:22:11.428(1) (STDERR) An error occurred: TypeError: db.collection is not a function
20180117-03:22:12.453(1) (STDERR) An error occurred: TypeError: db.collection is not a function

Every second one of these lines. For exactly one minute. ~ 60 error entries in log.

This seems like a mongodb related issue: https://www.google.de/search?q="TypeError%3A+db.collection+is+not+a+function"

We use meteor 1.6.0.1 with the embedded mongodb v3.2.15:

#  meteor mongo
meteor:PRIMARY> db.version()
3.2.15

These mongo related npm packages are installed:

├── mongo-uri@0.1.2
├─┬ mongodb@3.0.1
│ └─┬ mongodb-core@3.0.1
│   ├── bson@1.0.4 deduped
│   └─┬ require_optional@1.0.1
│     ├── resolve-from@2.0.0
│     └── semver@5.4.1 deduped
├─┬ mongodb-extended-json@1.10.0

Any idea?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions