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

**URL:** https://meta.discourse.org/t/vanilla-importer-vanilla-rb-error-while-importing-users/66150
**Category:** Migration
**Created:** [7월 13, 2017, 7:13오후 UTC](https://meta.discourse.org/t/vanilla-importer-vanilla-rb-error-while-importing-users/66150 "2017-07-13T19:13:49Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![harinayar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/harinayar/32/75237_2.png) [@harinayar](https://meta.discourse.org/u/harinayar)
#### Post date: [7월 13, 2017, 7:13오후 UTC](https://meta.discourse.org/t/vanilla-importer-vanilla-rb-error-while-importing-users/66150/1 "2017-07-13T19:13:49Z")

</div>

Hello,

I am trying to migrate from vanilla into discourse. I am trying the import steps outlined [here](https://meta.discourse.org/t/how-to-migrate-from-vanilla-to-discourse/27273).

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”)

 ![](https://global.discourse-cdn.com/meta/original/3X/3/e/3eb703fbe2d5f2207241c15b52188a828354b984.png)

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?

---

<div class="post-metadata">

### Author: ![harinayar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/harinayar/32/75237_2.png) [@harinayar](https://meta.discourse.org/u/harinayar)
#### Post date: [7월 14, 2017, 5:12오후 UTC](https://meta.discourse.org/t/vanilla-importer-vanilla-rb-error-while-importing-users/66150/2 "2017-07-14T17:12:49Z")

</div>

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

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [7월 15, 2017, 9:37오후 UTC](https://meta.discourse.org/t/vanilla-importer-vanilla-rb-error-while-importing-users/66150/3 "2017-07-15T21:37:03Z")

</div>

Does that user have a bio by any chances?

---

<div class="post-metadata">

### Author: ![harinayar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/harinayar/32/75237_2.png) [@harinayar](https://meta.discourse.org/u/harinayar)
#### Post date: [7월 17, 2017, 5:53오후 UTC](https://meta.discourse.org/t/vanilla-importer-vanilla-rb-error-while-importing-users/66150/4 "2017-07-17T17:53:21Z")

</div>

> [@zogstrip](#):
>
> 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).

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [7월 17, 2017, 6:25오후 UTC](https://meta.discourse.org/t/vanilla-importer-vanilla-rb-error-while-importing-users/66150/5 "2017-07-17T18:25:11Z")

</div>

What are the other errors?

---

<div class="post-metadata">

### Author: ![harinayar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/harinayar/32/75237_2.png) [@harinayar](https://meta.discourse.org/u/harinayar)
#### Post date: [7월 17, 2017, 6:38오후 UTC](https://meta.discourse.org/t/vanilla-importer-vanilla-rb-error-while-importing-users/66150/6 "2017-07-17T18:38:36Z")

</div>

Seems to be the same as the previous one.

" ‘eval\_unsafe’: Javascript was terminated (either by timeout or explicity)"

 ![](https://global.discourse-cdn.com/meta/original/3X/5/0/50c3443cd300e8866ed5ad2a39a0b98e5400bd2b.png)

---

<div class="post-metadata">

### Author: ![harinayar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/harinayar/32/75237_2.png) [@harinayar](https://meta.discourse.org/u/harinayar)
#### Post date: [7월 18, 2017, 10:01오후 UTC](https://meta.discourse.org/t/vanilla-importer-vanilla-rb-error-while-importing-users/66150/7 "2017-07-18T22:01:57Z")

</div>

bump, anyone have a similar issue?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [7월 19, 2017, 7:06오전 UTC](https://meta.discourse.org/t/vanilla-importer-vanilla-rb-error-while-importing-users/66150/8 "2017-07-19T07:06:58Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![meldsza](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meldsza/32/120840_2.png) [@meldsza](https://meta.discourse.org/u/meldsza)
#### Post date: [7월 27, 2017, 2:09오후 UTC](https://meta.discourse.org/t/vanilla-importer-vanilla-rb-error-while-importing-users/66150/9 "2017-07-27T14:09:12Z")

</div>

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

---

<div class="post-metadata">

### Author: ![meldsza](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meldsza/32/120840_2.png) [@meldsza](https://meta.discourse.org/u/meldsza)
#### Post date: [7월 27, 2017, 2:21오후 UTC](https://meta.discourse.org/t/vanilla-importer-vanilla-rb-error-while-importing-users/66150/10 "2017-07-27T14:21:38Z")

</div>

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

---

<div class="post-metadata">

### Author: ![harinayar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/harinayar/32/75237_2.png) [@harinayar](https://meta.discourse.org/u/harinayar)
#### Post date: [7월 27, 2017, 4:59오후 UTC](https://meta.discourse.org/t/vanilla-importer-vanilla-rb-error-while-importing-users/66150/11 "2017-07-27T16:59:13Z")

</div>

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” 🙂
