Vanilla Importer (vanilla.rb) - Error while importing users

AI-generated summary

The discussion revolves around an error during the import of users from Vanilla to Discourse using the vanilla.rb importer. harinayar reports that the import job fails consistently while processing users, with the error message indicating that JavaScript was terminated due to a timeout or explicit termination. The issue appears to affect different users each time, suggesting it’s not tied to specific user data. zogstrip initially suggests the problem might be related to user bios, but harinayar confirms no users have bios. meldsza confirms experiencing the same issue, and harinayar notes that rebooting the machine and restarting Docker resolved the timeout issue, implying it may be related to memory or resource constraints.

Hello,

I am trying to migrate from vanilla into discourse. I am trying the import steps outlined here.

The import job errors out always while importing users (see screenshot attached). When I rerun the script the error repeats for a different user leading me to believe that the issue is not specific to a specific user record but instead a problem with the the db schema or a timeout of some sort (as evidenced by the line in the error dump - “Javascript was terminated either by timeout or explicitly”)

I tried combing thru vanilla.rb to check for timeout values that I can maybe increase but I couldn’t find any such references. Thoughts?

Bump. Anyone having a similar issue? I couldn’t find any topics within the meta that addressed a similar issue.

Does that user have a bio by any chances?

I dont believe they do. But what I have noticed is that, every time the import job runs, it fails on a different user but with the same error, which leads me to believe that the issue might not be with a specific user but with the timeout not being high enough (my export file from vanilla is pretty huge ~1.2GB).

What are the other errors?

Seems to be the same as the previous one.

" ‘eval_unsafe’: Javascript was terminated (either by timeout or explicity)"

bump, anyone have a similar issue?

According to the stack trace it’s timing out when “cooking” the bio of that user. Are you sure that your users don’t have any bio?

I am experiencing the same issue. No none of my users have bio’s.

Looks like a memory issue, i restarted the docker and it worked

Same here, issue went away after rebooting the machine and restarting docker. Have a couple of REDIS issues now (seems unrelated) but this timeout was solved by “turnin’ it off and on again” :slight_smile: