# Problem with import

**URL:** https://discourse.beets.io/t/problem-with-import/1314
**Category:** Help
**Created:** [May 29, 2020, 6:16am UTC](https://discourse.beets.io/t/problem-with-import/1314 "2020-05-29T06:16:07Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Viking](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@Viking](https://discourse.beets.io/u/Viking)
#### Post date: [May 29, 2020, 6:16am UTC](https://discourse.beets.io/t/problem-with-import/1314/1 "2020-05-29T06:16:07Z")

</div>

Hi,  
I need some help with importing.

For testing I started with a basic config like this:

directory: /mnt/Music  
import:  
copy: yes  
group\_albums: yes

Now when I import folders beets stores them all just in /mnt/Music without any subfolders… I don’t know why.

Another issue is mangled filenames. On nearly every file there is a warning message:

“Fell back to default replacements when naming file xxx. Configure replacements to avoid lengthening the filename.”

Many times a part of the name is cut off, even if the file name is not long at all. Sometimes the filenames are crippled like “01 .mp3”.

Listing in beet library shows correct names.

I don’t know how to fix this.

Please help.

---

<div class="post-metadata">

### Author: ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)
#### Post date: [May 29, 2020, 11:15am UTC](https://discourse.beets.io/t/problem-with-import/1314/2 "2020-05-29T11:15:58Z")

</div>

That’s weird. Can you include details about your system? I think beets for some reason believes your filesystem has an extremely short maximum filename length.

You can try setting your maximum filename length in your config:  
[https://beets.readthedocs.io/en/stable/reference/config.html#max-filename-length](https://beets.readthedocs.io/en/stable/reference/config.html#max-filename-length)

---

<div class="post-metadata">

### Author: ![Viking](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@Viking](https://discourse.beets.io/u/Viking)
#### Post date: [May 29, 2020, 4:20pm UTC](https://discourse.beets.io/t/problem-with-import/1314/3 "2020-05-29T16:20:17Z")

</div>

Hi thank you for your help, setting max filename lengths fixed it.

My system setup is as follows:  
Debian Buster in a VM as guest on a windows server 2016 host. The data folder with music is on the host system and shared with the guest and mounted into the aforementioned folder.

Honestly I only did it this way because I had cryptic terminal output from beets on windows. Setting terminal to UTF didn’t work for me.

Thank you again.

---

<div class="post-metadata">

### Author: ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)
#### Post date: [May 29, 2020, 4:37pm UTC](https://discourse.beets.io/t/problem-with-import/1314/4 "2020-05-29T16:37:25Z")

</div>

Cool—you may have been running into this color issue on Windows, FWIW. [https://github.com/beetbox/beets/issues/2607](https://github.com/beetbox/beets/issues/2607)

---

<div class="post-metadata">

### Author: ![Viking](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@Viking](https://discourse.beets.io/u/Viking)
#### Post date: [May 29, 2020, 4:56pm UTC](https://discourse.beets.io/t/problem-with-import/1314/5 "2020-05-29T16:56:12Z")

</div>

Interesting. I will try that later. Thank you.  
Beets is awesome now that I got it working.

---

<div class="post-metadata">

### Author: ![Viking](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@Viking](https://discourse.beets.io/u/Viking)
#### Post date: [May 29, 2020, 8:51pm UTC](https://discourse.beets.io/t/problem-with-import/1314/6 "2020-05-29T20:51:11Z")

</div>

So I tried enabling ANSI color encoding… aaand it works now in windows. Should have come here at first, thank you!
