# Errno 2 No such file or directory

**URL:** <https://discourse.beets.io/t/errno-2-no-such-file-or-directory/839>\
**Category:** Help\
**Created:** [July 18, 2019, 2:56pm UTC](https://discourse.beets.io/t/errno-2-no-such-file-or-directory/839 "2019-07-18T14:56:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chet](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@chet](https://discourse.beets.io/u/chet)\
**Post date:** [July 18, 2019, 2:56pm UTC](https://discourse.beets.io/t/errno-2-no-such-file-or-directory/839/1 "2019-07-18T14:56:56Z")

</div>

Hi there, happy beets user here so far.

I’ve been having this issue with beets lately when I try to add to the library an album that already exists but in a different format. Say, I have it on mp3 and I want to import the FLAC version. Instead of asking me what to do and import, I’m seeing this error message:

 ![49](https://canada1.discourse-cdn.com/flex029/uploads/beets/original/1X/65b9ee8ea310f83c7eb95cfad4048da36e50a9d3.png)

It says “No such file”, but as you can see in the screenshot above, those mp3 does exist in the folder. I don’t know how to fix it. Any clues?

I’m running beets in a seedbox using Gentoo.

---

<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:** [July 18, 2019, 3:38pm UTC](https://discourse.beets.io/t/errno-2-no-such-file-or-directory/839/2 "2019-07-18T15:38:12Z")

</div>

Hi! I see that those files are there in your home directory (`~`), but what about the location that seems to be in the imported library (`/mnt/mpathl/chetbaker/media`)? Or is that your home directory, just with a funky path?

You can see exactly what files beets thinks are in your library, according to is database, using `beet ls -p`.

---

<div class="post-metadata">

**Author:** ![chet](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@chet](https://discourse.beets.io/u/chet)\
**Post date:** [July 18, 2019, 4:42pm UTC](https://discourse.beets.io/t/errno-2-no-such-file-or-directory/839/3 "2019-07-18T16:42:38Z")

</div>

Thanks, adrian!  
It should be the same path indeed. Because it’s a seedbox, the paths can be dodgy sometimes 😉

But after reading your comment I run `beet ls -p` and I found a mix of paths on the library I wasn’t aware of. Some files are under `/mnt/mpathl/chetbaker/media/Music/` and others under `/home/chetbaker/media/Music/`. Holy crap.

Is that the problem? What do you recommend me to do considering we are talking about a ~400GB library?

---

<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:** [July 18, 2019, 7:43pm UTC](https://discourse.beets.io/t/errno-2-no-such-file-or-directory/839/4 "2019-07-18T19:43:54Z")

</div>

Hmm… if all of the actual music files are in one location, but the database is pointing to paths in both locations (some of which are nonexistent), that would indeed be the problem. 🙂

One thing you could do is move your database file aside and try recreating it by running a `beet import -A`. Non-autotagged imports are usually a pretty fast way to reconstruct a database from files.
