# \[CLOSED\] Mopidy Scan failing

**URL:** <https://discourse.mopidy.com/t/closed-mopidy-scan-failing/5025>\
**Category:** Misc\
**Created:** [June 22, 2021, 2:11pm UTC](https://discourse.mopidy.com/t/closed-mopidy-scan-failing/5025 "2021-06-22T14:11:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dee1](https://avatars.discourse-cdn.com/v4/letter/d/aca169/32.png) [@Dee1](https://discourse.mopidy.com/u/Dee1)\
**Post date:** [June 22, 2021, 2:11pm UTC](https://discourse.mopidy.com/t/closed-mopidy-scan-failing/5025/1 "2021-06-22T14:11:44Z")

</div>

whenever i do `mopidy local scan` and `mopidy local scan --force`, both times, i get these errors:

```auto
h: 0: getcwd() failed: No such file or directory
Traceback (most recent call last):
  File "/usr/local/bin/mopidy", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/dist-packages/mopidy/ __main__.py", line 59, in main
    args.config_overrides,
  File "/usr/local/lib/python3.7/dist-packages/mopidy/config/ __init__.py", line 111, in load
    return _validate(raw_config, schemas)
  File "/usr/local/lib/python3.7/dist-packages/mopidy/config/ __init__.py", line 220, in _validate
    result, error = schema.deserialize(values)
  File "/usr/local/lib/python3.7/dist-packages/mopidy/config/schemas.py", line 64, in deserialize
    result[key] = self[key].deserialize(value)
  File "/usr/local/lib/python3.7/dist-packages/mopidy/config/types.py", line 311, in deserialize
    expanded = path.expand_path(value)
  File "/usr/local/lib/python3.7/dist-packages/mopidy/internal/path.py", line 80, in expand_path
    return pathlib.Path(path).expanduser().resolve()
  File "/usr/lib/python3.7/pathlib.py", line 1144, in resolve
    s = self._flavour.resolve(self, strict=strict)
  File "/usr/lib/python3.7/pathlib.py", line 353, in resolve
    base = '' if path.is_absolute() else os.getcwd()
FileNotFoundError: [Errno 2] No such file or directory

```

Just as a side note, i am on a raspberry pi, and using mopidy-iris, mopidy-local, setting the local directory to /media/pi/.  
Also i am using abcde to import cds to the drive, so that might interfere?  
(Additionally, I tested mopidy-iris’es local scan, this does not load anything for me UNTIL i load it on the command line with `mopidy local scan`. This has worked before, i do not know why it will not anymore.

---

<div class="post-metadata">

**Author:** ![Dee1](https://avatars.discourse-cdn.com/v4/letter/d/aca169/32.png) [@Dee1](https://discourse.mopidy.com/u/Dee1)\
**Post date:** [June 22, 2021, 2:31pm UTC](https://discourse.mopidy.com/t/closed-mopidy-scan-failing/5025/2 "2021-06-22T14:31:26Z")

</div>

i was being an idiot. i was in an abcde. folder, which will be deleted after importing cd’s. my current directory as gone, so it cannot load programs.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/system/32/1_2.png) [@system](https://discourse.mopidy.com/u/system)\
**Post date:** [December 22, 2021, 2:31am UTC](https://discourse.mopidy.com/t/closed-mopidy-scan-failing/5025/3 "2021-12-22T02:31:59Z")

</div>

Closed on December 22, 2021, 2:31am UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
