-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 4.2.3
-
Component/s: mongorestore
-
Environment:Docker
-
(copied to CRM)
Hello
I have an error that throw during mongorestore
2020-02-25T11:53:08.976+0000 app.order 160MB 2020-02-25T11:53:08.976+0000 app.activity 130MB 2020-02-25T11:53:08.976+0000 app.opportunity 64.0MB 2020-02-25T11:53:08.976+0000 app.delivery 9.15MB 2020-02-25T11:53:08.976+0000 2020-02-25T11:53:11.043+0000 app.delivery 9.15MB 2020-02-25T11:53:11.043+0000 no indexes to restore 2020-02-25T11:53:11.044+0000 finished restoring app.delivery (16233 documents, 0 failures) 2020-02-25T11:53:11.976+0000 app.order 184MB 2020-02-25T11:53:11.976+0000 app.activity 144MB 2020-02-25T11:53:11.976+0000 app.opportunity 79.8MB 2020-02-25T11:53:11.976+0000 2020-02-25T11:53:12.228+0000 app.opportunity 79.8MB 2020-02-25T11:53:12.228+0000 finished restoring app.opportunity (4256 documents, 0 failures) 2020-02-25T11:53:12.520+0000 app.order 184MB panic: close of closed channel goroutine 72 [running]: github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreCollectionToDB(0xc0005881c0, 0xc00042edc0, 0xa, 0xc00042edcb, 0x5, 0xc0003cfe40, 0x7fe589b89b48, 0xc0000bcfd0, 0x0, 0x0, ...) /data/mci/32ed412df1ed901e62146749519d6310/src/src/mongo/gotools/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:503 +0x49b github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreIntent(0xc0005881c0, 0xc00017b200, 0x0, 0x0, 0x0, 0x0) /data/mci/32ed412df1ed901e62146749519d6310/src/src/mongo/gotools/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:311 +0xbe9 github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreIntents.func1(0xc0005881c0, 0xc0001741e0, 0x3) /data/mci/32ed412df1ed901e62146749519d6310/src/src/mongo/gotools/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:126 +0x1cb created by github.com/mongodb/mongo-tools/mongorestore.(*MongoRestore).RestoreIntents /data/mci/32ed412df1ed901e62146749519d6310/src/src/mongo/gotools/src/github.com/mongodb/mongo-tools/mongorestore/restore.go:109 +0x12d
I run mongorestore inside Docker
This is the Dockerfile
FROM mongo RUN mkdir -p /var/lib/mongodb /opt/output RUN apt-get update && apt-get upgrade RUN apt-get install -y curl psmisc awscli RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - RUN apt-get install -y nodejs RUN apt-get clean RUN echo "Europe/Paris" > /etc/timezone COPY anonymize /opt WORKDIR /opt RUN npm install --prefix "transform" CMD ["/opt/anonymize"]
So this is last version of MongoDB
Do you think it's a bug or other thing ?
Regards