Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot restore renamed collections #60

Open
manidharkakarla opened this issue Aug 23, 2023 · 9 comments
Open

Cannot restore renamed collections #60

manidharkakarla opened this issue Aug 23, 2023 · 9 comments

Comments

@manidharkakarla
Copy link

manidharkakarla commented Aug 23, 2023

I have rocketchat 4.0 version in my old server.
I took new instance and installed 6.0 version.
I took backup from my old sever using dump
I need to restore those folders in new server while restoring some collections are missing or renamed when the application is updated.
How can i overcome this problem

@vamsikurimeti
Copy link

vamsikurimeti commented Aug 23, 2023

@debdutdeb can you please help on this issue

@vamsikurimeti
Copy link

@geekgonecrazy @Sing-Li @rodrigok @brunobcestari @jcbrtl @r0zbot @d-gubert @casalsgh @marceloschmidt @salvadorgiovani
any one please look in to this issue and help us to resolve as soon as possible

@geekgonecrazy
Copy link
Member

geekgonecrazy commented Aug 24, 2023

Not enough information to even begin guessing. I'll need logs of the actual mongo restore to see what succeeded and failed

Reminder that tagging a bunch of people and asking for support is typically considered bad form in open source.

@manidharkakarla
Copy link
Author

Aug 25 12:04:15 ip-10-0-26-168 rocketchat[401]: TypeError [ERR_INVALID_ARG_TYPE] [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined
Aug 25 12:04:15 ip-10-0-26-168 rocketchat[401]: at mkdir (internal/fs/promises.js:533:10)
Aug 25 12:04:15 ip-10-0-26-168 rocketchat[401]: at server/lib/dataExport/exportRoomMessagesToFile.ts:260:8
Aug 25 12:04:15 ip-10-0-26-168 rocketchat[401]: at /opt/Rocket.Chat/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
Aug 25 12:04:15 ip-10-0-26-168 rocketchat[401]: => awaited here:
Aug 25 12:04:15 ip-10-0-26-168 rocketchat[401]: at Function.Promise.await (/opt/Rocket.Chat/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)
Aug 25 12:04:15 ip-10-0-26-168 rocketchat[401]: at server/lib/dataExport/exportRoomMessagesToFile.ts:260:2
Aug 25 12:04:15 ip-10-0-26-168 rocketchat[401]: at /opt/Rocket.Chat/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
Aug 25 12:04:15 ip-10-0-26-168 rocketchat[401]: => awaited here:
Aug 25 12:04:15 ip-10-0-26-168 rocketchat[401]: at Function.Promise.await (/opt/Rocket.Chat/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)
Aug 25 12:04:15 ip-10-0-26-168 rocketchat[401]: at server/lib/dataExport/processDataDownloads.ts:181:22
Aug 25 12:04:15 ip-10-0-26-168 rocketchat[401]: at /opt/Rocket.Chat/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40 {
Aug 25 12:04:15 ip-10-0-26-168 rocketchat[401]: code: 'ERR_INVALID_ARG_TYPE'
Aug 25 12:04:15 ip-10-0-26-168 rocketchat[401]: }

These are the logs

@debdutdeb
Copy link
Member

That's a different error than what is mentioned above. Please share the output of the restore action as that is more relatable to what is posted above.

@manidharkakarla
Copy link
Author

manidharkakarla commented Aug 25, 2023

Please tell me how to resolve this error.
The restore action was successfully done
But the old collection name is created as new collection where the old collection is not present in new version of rocketchat

@manidharkakarla
Copy link
Author

Aug 25 12:03:32 ip-10-0-26-168 rocketchat[401]: === UnHandledPromiseRejection ===
Aug 25 12:03:32 ip-10-0-26-168 rocketchat[401]: TypeError: Cannot read property 'getRedirectURL' of undefined
Aug 25 12:03:32 ip-10-0-26-168 rocketchat[401]: at app/file-upload/server/config/AmazonS3.ts:16:35
Aug 25 12:03:32 ip-10-0-26-168 rocketchat[401]: at /opt/Rocket.Chat/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40
Aug 25 12:03:32 ip-10-0-26-168 rocketchat[401]: ---------------------------------
Aug 25 12:03:32 ip-10-0-26-168 rocketchat[401]: Errors like this can cause oplog processing errors.
Aug 25 12:03:32 ip-10-0-26-168 rocketchat[401]: Setting EXIT_UNHANDLEDPROMISEREJECTION will cause the process to exit allowing your service to automatically restart the process
Aug 25 12:03:32 ip-10-0-26-168 rocketchat[401]: Future node.js versions will automatically exit the process
Aug 25 12:03:32 ip-10-0-26-168 rocketchat[401]: =================================

These are existing logs of rocketchat

@manidharkakarla
Copy link
Author

what nodejs version did u used in latest rocketchat

@manidharkakarla
Copy link
Author

Hello anyone please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants