Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find .ddev/router-compose.yaml when restarting ddev when it has never been started #1779

Closed
mherchel opened this issue Aug 10, 2019 · 4 comments
Milestone

Comments

@mherchel
Copy link

mherchel commented Aug 10, 2019

Describe the bug
When following directions with the Drupal 8 quickstart, I receive the following error when attempting ddev restart:

.FileNotFoundError: [Errno 2] No such file or directory: '/Users/mherchel/.ddev/router-compose.yaml'
Failed to restart xxx-d8: Failed to run docker-compose [-f /Users/mherchel/.ddev/router-compose.yaml -p ddev-router down], err='exit status 1', stdout='', stderr='.FileNotFoundError: [Errno 2] No such file or directory: '/Users/mherchel/.ddev/router-compose.yaml''

Note that the /Users/mherchel/.ddev/router-compose.yaml does not exist

To Reproduce
Steps to reproduce the behavior:

  1. Follow quickstart guide located at https://ddev.readthedocs.io/en/stable/users/cli-usage/#drupal-8-quickstart
  2. The only difference is I'm using an existing site along with it's composer files.
  3. When running ddev restart per documentation, I receive the error.

Version and configuration information (please complete the following information):

  • Host computer OS and Version: MacOS 10.14.5 Mojave
  • Docker version information: 19.03.1
  • ddev version information: v1.10.2
  • config.yaml contents for the misbehaving project
  • Do you have any custom configuration (nginx, php, mysql) in the .ddev folder? If so, have you tried without them? Nope. Evaluating for the very first time.
@rfay
Copy link
Member

rfay commented Aug 10, 2019

Thanks for the report. I can recreate this, it's an interesting bug.

Basically, ddev has never been run before, and as a result it can't find the router_compose.yaml to stop anything.

If you had used the more appropriate drupal8 quickstart git clone instructions instead it would have worked; in the composer situation you've already started it once.

But for you... just use ddev start instead of ddev restart and you'll be fine (and ddev restart will then work in the future too). Since it hasn't been started before it doesn't need to be stopped and started.

@rfay rfay changed the title Unable to find .ddev/router-compose.yaml when starting DDEV for the very first time Unable to find .ddev/router-compose.yaml when restarting ddev when it has never been started Aug 10, 2019
@mherchel
Copy link
Author

Looks to be working! Thanks @rfay !

@rfay
Copy link
Member

rfay commented Aug 10, 2019

Might as well keep this open and fix the bug.

@rfay rfay reopened this Aug 10, 2019
@rfay
Copy link
Member

rfay commented Dec 30, 2019

This also happens if your first-ever ddev start fails (like the bind-mount failure from docker) or is interrupted, and then you do a ddev stop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants