Git Product home page Git Product logo

Comments (3)

xxzk avatar xxzk commented on May 20, 2024

Update infomation.

I dump the rocketchat database from MongoDB in docker container,and restore to another VM which installed MongoDB x86_64.
The restore progress done as well.
RocketChat version is v3.6.1 and MongoDB docker image version is 4.4.

from gridfsmigrate.

tamasgal avatar tamasgal commented on May 20, 2024

I have a similar setup, trying to move from 3.18.7 (snap) with MongoDB 3.6 to 3.18.7 (Docker) with MongoDB 4.4.15 and when I try to dump the files in the 4.4.15 MongoDB service, I get

2423. Dumping iqL6yZ5ZP3F3yK4ME Untersuchen_von_Silizium_Photomultipliern__SiPM__zur_Verwendung__in_der_Intensit_tsinterferometrie.pdf
2424. Dumping Bi85dHH23Kbao6WiR Tuerschilde.pdf
2425. Dumping ioWaWWpA5ZhdXpNgD lecture_literature.pdf
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/gridfs/grid_file.py", line 794, in next
    chunk = self._next_with_retry()
  File "/usr/local/lib/python3.7/dist-packages/gridfs/grid_file.py", line 786, in _next_with_retry
    return self._cursor.next()
  File "/usr/local/lib/python3.7/dist-packages/pymongo/cursor.py", line 1251, in next
    raise StopIteration
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./migrate.py", line 244, in <module>
    obj.dumpfiles("rocketchat_uploads", store)
  File "./migrate.py", line 115, in dumpfiles
    data = res.read()
  File "/usr/local/lib/python3.7/dist-packages/gridfs/grid_file.py", line 606, in read
    return self._read_size_or_line(size=size)
  File "/usr/local/lib/python3.7/dist-packages/gridfs/grid_file.py", line 563, in _read_size_or_line
    buf = self.readchunk()
  File "/usr/local/lib/python3.7/dist-packages/gridfs/grid_file.py", line 529, in readchunk
    chunk = self.__chunk_iter.next()
  File "/usr/local/lib/python3.7/dist-packages/gridfs/grid_file.py", line 798, in next
    raise CorruptGridFile("no chunk #%d" % self._next_chunk)
gridfs.errors.CorruptGridFile: no chunk #0
I have no name!@b6ea9e515433:/bitnami/mongodb/upload_dump$

from gridfsmigrate.

tamasgal avatar tamasgal commented on May 20, 2024

It turned out to be a migration error, probably caused by RocketChat or so, no idea. If I run the dump on the original server with MongoDB 3.6, it works. If I run it on the already migrated backup under MongoDB 4.4.15, I get the corruption errors.

from gridfsmigrate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.