# Importing SMF 2 to discourse

**URL:** https://meta.discourse.org/t/importing-smf-2-to-discourse/55919
**Category:** Support
**Created:** [1월 17, 2017, 6:18오후 UTC](https://meta.discourse.org/t/importing-smf-2-to-discourse/55919 "2017-01-17T18:18:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Miro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/miro/32/66156_2.png) [@Miro](https://meta.discourse.org/u/Miro)
#### Post date: [1월 17, 2017, 6:18오후 UTC](https://meta.discourse.org/t/importing-smf-2-to-discourse/55919/1 "2017-01-17T18:18:17Z")

</div>

Trying to import posts from SMF

getting error  
in each\_strongly\_connected\_component\_from’: stack level too deep

```
creating groups
        2 / 2 (100.0%)
creating users
       19 / 0 ( Inf%)
creating posts
//usr/local/lib/ruby/2.3.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from': stack level too deep (SystemStackError)
        from /usr/local/lib/ruby/2.3.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
        from /usr/local/lib/ruby/2.3.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
        from /usr/local/lib/ruby/2.3.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
        from /usr/local/lib/ruby/2.3.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
        from /usr/local/lib/ruby/2.3.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
        from /usr/local/lib/ruby/2.3.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
        from /usr/local/lib/ruby/2.3.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
        from /usr/local/lib/ruby/2.3.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
         ... 9868 levels...
        from smf2.rb:66:in `execute'
        from /var/www/discourse/script/import_scripts/base.rb:45:in `perform'
        from smf2.rb:25:in `run'
        from smf2.rb:667:in `<main>'

```

**_Any idea what to look for?_**

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [1월 17, 2017, 7:19오후 UTC](https://meta.discourse.org/t/importing-smf-2-to-discourse/55919/2 "2017-01-17T19:19:11Z")

</div>

You should see [this thread](https://meta.discourse.org/t/importer-for-simple-machines-2-forums/17656/97).

Looks like the problem is that the script tries to sort all of the posts at once and runs out of memory. Most importers pull in only 1000 posts at a time, which keeps that from happening. It looks like there’s something strange about how topics are ordered.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [10월 27, 2020, 12:23오전 UTC](https://meta.discourse.org/t/importing-smf-2-to-discourse/55919/4 "2020-10-27T00:23:35Z")

</div>


