Comments (3)
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.
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.
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)
- Is there any way to improve performance HOT 2
- README refers to -d option twice HOT 1
- migrate into an already existing s3 bucket HOT 1
- AttributeError: 'NoneType' object has no attribute 'lower' HOT 3
- umlauts in filenames HOT 2
- Upload error to S3 (DigitalOcean Spaces) HOT 2
- No files are copied if i run the dump command HOT 8
- panic: server returned error on SASL authentication step: BSON field 'saslContinue.mechanism' is an unknown field.
- Clarifications on #5 HOT 1
- Unable to authenticate local db HOT 1
- Unable to run script. HOT 3
- Doesn't work for me on 5.4.2 installed via Snaps
- Question regarding rocket_uploads paths in rocketchat
- md5 in current script is not present in newer versions of Rocket.Chat
- Moving to filesystem breaks images due to extensions HOT 7
- ./migrate.py HOT 17
- Not working with non English? HOT 4
- Support mongo url
- Add Requirements to README
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gridfsmigrate.