Jump to the navigation menu

Fixing DDEV's "Failed to get project(s)" error

After re-organising my project directory, I got this error when running ddev start:

Failed to start project(s): stat /home/opdavies/Code/github.com/: no such file or directory

The old directory was ~/Code, but has been renamed to ~/Repos.

To fix this, I edited ~/.config/ddev/global_config.yaml by changing approot to the new location.

<name>:
  approot: /home/opdavies/Repos/github.com/<path>
  used_host_ports: ["59002"]

After running ddev poweroff and ddev start, the project started successfully.