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

Error when Downloading or Exporting My Data #11082

Closed
etyack opened this issue Jun 11, 2018 · 18 comments
Closed

Error when Downloading or Exporting My Data #11082

etyack opened this issue Jun 11, 2018 · 18 comments
Assignees
Milestone

Comments

@etyack
Copy link

etyack commented Jun 11, 2018

Description:

We are unable to Download or Export My Data.

Steps to reproduce:

  1. Log in to RocketChat
  2. Click on My Account
  3. Scroll to the bottom of the page
  4. Click either DOWNLOAD MY DATA or EXPORT MY DATA

Expected behavior:

Clicking on either button, I expect an email with instructions how to access a file containing my chat history.

Actual behavior:

An email is never received with instructions how to access my chat history.

Server Setup Information:

  • Version of Rocket.Chat Server: 0.65.1 DB Migration 121
  • Operating System: Ubuntu 16.04.4
  • Deployment Method: Snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: 8.11.2
  • MongoDB Version:

Additional context

Relevant logs:

There are no errors generated in the browser.

Server log:
�[34mI20180611-08:39:00.876(-4) �[34mSyncedCron ➔ info Starting "Generate download files for user data".
�[34mI20180611-08:39:00.903(-4) Exception in callback of async function: Error: ENOENT: no such file or directory, open '/tmp/rocket_chat_export_compressed/MfANF2qwBemicsdJB.zip'
�[34mI20180611-08:39:00.912(-4) �[34mSyncedCron ➔ info Not running "Generate download files for user data" again.
�[34mI20180611-08:39:00.948(-4) �[34mSyncedCron ➔ info Not running "Generate download files for user data" again.
�[34mI20180611-08:39:00.951(-4) �[34mSyncedCron ➔ info Finished "Generate download files for user data".

@kaiiiiiiiii
Copy link
Contributor

kaiiiiiiiii commented Jun 11, 2018

Hi @etyack,

this should be fixed with PR #10837 (Release 0.65.0). Are you sure you're on the latest version?

Cheers

@etyack
Copy link
Author

etyack commented Jun 11, 2018

Yes, I double checked since I found the issue you referenced before I submitted this issue.

According to the snap output:
erickt@wiki:~ sudo snap list
Name Version Rev Tracking Developer Notes
core 16-2.32.8 4650 stable canonical core
rocketchat-server 0.65.1 1273 stable rocketchat -

And admin Info output.
screen shot 2018-06-11 at 10 28 34 am

@kaiiiiiiiii
Copy link
Contributor

Thanks for the quick reply @etyack :)

@Hudell You may want to have a look?

@phillipplum
Copy link

phillipplum commented Jun 13, 2018

We are unable to Download or Export My Data, too. But in our logs, are no error messages.

Here are the only lines:

�[34mI20180613-08:27:05.962(0) �[34mMeteor ➔ method requestDataDownload -> userId: dc45SQus6oW8Ajutc , arguments:  { '0': { fullExport: true } } 
[ ... ]
�[34mI20180613-08:30:00.500(0) �[34mSyncedCron ➔ info Starting "Generate download files for user data". 
�[34mI20180613-08:30:00.505(0) �[34mSyncedCron ➔ info Not running "Generate download files for user data" again. 
�[34mI20180613-08:30:01.023(0) �[34mSyncedCron ➔ info Finished "Generate download files for user data". 

bildschirmfoto 2018-06-13 um 10 46 33

@Hudell
Copy link
Contributor

Hudell commented Jun 19, 2018

@phillipplum Can you check your "User Data Download" admin settings? Based on your log, it seems like there's no Processing Frequency configured.

@phillipplum
Copy link

phillipplum commented Jun 19, 2018

@Hudell Here are our settings. We don't change something.

image

@Hudell
Copy link
Contributor

Hudell commented Jun 19, 2018

I'll look into it.

@torgeirl
Copy link
Contributor

@Hudell: I also experience this issue. It seems identical to the others here:

  • Email is never received with instructions how to access the chat history
  • No error message presented to the user
  • No error message in logs

Setup:

  • Server version: 0.65.1 deployed with Snap, on Ubuntu Ubuntu 16.04 (newest available for snap)
  • Default User Data Download settings (enabled, frequency=15m, message limit=100)
  • Email verified working. Logging suggests Rocket.Chat server never attempts to send the email.

Please let us know if you need any debugging assistance.

@rodrigok rodrigok added this to the 0.66.0 milestone Jun 20, 2018
@phillipplum
Copy link

Unfortunately, it still does not work after the update to 0.66.0.

@phillipplum
Copy link

Update:
Now (3-4 hours later) I get a e-mail with an download link.
The link looks like this: https://chat.domain/ufs/FileSystem:UserDataFiles/Yu7JK49278JiX8duy/2018-06-28-firstname%2520lastname.zip

But it is a 0kb zip-file and after extracting it I get a file with the same name and at the end .cpgz.

@john171
Copy link

john171 commented Jul 19, 2018

Doesn't work even in latest version.

@jcatarino
Copy link

I think this still doesnt work...

@bkraul
Copy link

bkraul commented Apr 16, 2019

Same here with latest docker develop image.

@engelgabriel
Copy link
Member

Guys, can you please test this with version 2.0.0 ?

@bkraul
Copy link

bkraul commented Sep 20, 2019

Getting this with 2.1.0-develop, commit 72aaeb3 which is after the commit that addressed the download.

TypeError: Cannot read property 'username' of undefined
    at generateUserAvatarFile (app/user-data-download/server/cronProcessDownloads.js:477:62)
    at Promise.asyncApply (app/user-data-download/server/cronProcessDownloads.js:503:4)
    at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40

@raziel900
Copy link

Getting this with 2.1.0-develop, commit 72aaeb3 which is after the commit that addressed the download.

TypeError: Cannot read property 'username' of undefined
    at generateUserAvatarFile (app/user-data-download/server/cronProcessDownloads.js:477:62)
    at Promise.asyncApply (app/user-data-download/server/cronProcessDownloads.js:503:4)
    at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40

Same here on 2.1.0 (not develop)

@bbrauns
Copy link
Contributor

bbrauns commented Oct 24, 2019

Getting the same with docker image: rocketchat/rocket.chat:2.1.1:

 TypeError: Cannot read property 'username' of undefined
Oct 24 17:28:00 chat rocketchat_app2_1[2683]:     at generateUserAvatarFile (app/user-data-download/server/cronProcessDownloads.js:477:62)
Oct 24 17:28:00 chat rocketchat_app2_1[2683]:     at Promise.asyncApply (app/user-data-download/server/cronProcessDownloads.js:503:4)
Oct 24 17:28:00 chat rocketchat_app2_1[2683]:     at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40

@charlyrock
Copy link

We are testing the function "Download my Data". Yesterday it works and I get a E-Mail to download the data. After that and today I would to export the data again, because there are many new conversations, that would I save.
Then I click on "Download My Data" I get the message: "Your data file was already generated. Click here to download it."
Then I click on the link I get the data from yesterday again but no new data. How can I get new data?

Version of RocketChat: 3.4.0

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