Skip to content

ddev list returns "No Applications Found" if sitename contains a dash #30

Closed

Description

@tannerjfco

From @rfay on February 3, 2017 19:12

From @tannerjfco on January 17, 2017 20:51

drud dev list has recently stopped returning the list of applications provisioned on the system:

tannerjfco ~ » drud dev list
No Applications Found.
tannerjfco ~ » drud dev add drud-d7 staging
Getting Resources.
Getting source code.
Local copy of site exists, updating... Updated to latest in staging branch
Creating docker-compose config.
Creating legacy-drud-d7-staging-db
Creating legacy-drud-d7-staging-web
Successfully added drud-d7-staging
Your application can be reached at: http://legacy-drud-d7-staging
tannerjfco ~ » drud dev list
No Applications Found.

Copied from original issue: drud/bootstrap#250

Copied from original issue: drud/general#48

Activity

  1. tannerjfco commented on Feb 27, 2017

    @tannerjfco
    ContributorAuthor

    From @rfay on February 3, 2017 19:12

    From @frodopwns on January 18, 2017 17:43

    I don't think there is a regression here:

    ➜  cli git:(master) ✗ CGO_ENABLED=0 GOOS=darwin go build -installsuffix cgo -ldflags '-w' -o $GOPATH/bin/drud  ./main.go
    ➜  cli git:(master) ✗ drud dev list
    3 legacy sites found.
    NAME        ENVIRONMENT TYPE    URL                                 DATABASE URL    STATUS
    talentreef  production  drupal  http://legacy-talentreef-production 127.0.0.1:32780 running
    drudio      production  drupal  http://legacy-drudio-production     127.0.0.1:32774 running
    rnews       staging     drupal  http://legacy-rnews-staging         127.0.0.1:32771 running
    

    Something else is probably going on.

  2. tannerjfco commented on Feb 27, 2017

    @tannerjfco
    ContributorAuthor

    From @rfay on February 3, 2017 19:12

    From @tannerjfco on January 20, 2017 17:11

    Saw this again this morning and checked docker ps. In this case, it looks like the router container was MIA. Could be related, but drud dev list still fails to return a list after the router container is present again.

  3. tannerjfco commented on Feb 27, 2017

    @tannerjfco
    ContributorAuthor

    From @rfay on February 3, 2017 19:12

    From @tannerjfco on January 20, 2017 17:12

    tannerjfco ~ » drud dev list
    No Applications Found.
    tannerjfco ~ » docker ps
    CONTAINER ID        IMAGE                         COMMAND                  CREATED             STATUS              PORTS                                                     NAMES
    78636048a1b1        54db95a2d0ad                  "/start.sh"              2 days ago          Up 17 hours         443/tcp, 0.0.0.0:32770->80/tcp, 0.0.0.0:32769->8025/tcp   legacy-drud-d7-production-web
    eae574b8a2c3        drud/mysql-docker-local:5.7   "/entrypoint.sh my..."   2 days ago          Up 17 hours         33060/tcp, 0.0.0.0:32768->3306/tcp                        legacy-drud-d7-production-db
    tannerjfco ~ » docker stop legacy-drud-d7-production-web
    legacy-drud-d7-production-web
    tannerjfco ~ » docker stop legacy-drud-d7-production-db
    legacy-drud-d7-production-db
    tannerjfco ~ » drud dev add drud-d7 staging
    Getting Resources.
    Getting source code.
    Local copy of site exists, updating... Updated to latest in staging branch
    Creating docker-compose config.
    Creating legacy-drud-d7-staging-db
    Creating legacy-drud-d7-staging-web
    Successfully added drud-d7-staging
    Your application can be reached at: http://legacy-drud-d7-staging
    tannerjfco ~ » drud dev list
    No Applications Found.
    
  4. tannerjfco commented on Feb 27, 2017

    @tannerjfco
    ContributorAuthor

    From @rfay on February 3, 2017 19:12

    From @frodopwns on January 20, 2017 17:22

    I also saw this but it went away. Also mine wasn't saying no applications found it was just not returning anything at all.

  5. tannerjfco commented on Feb 27, 2017

    @tannerjfco
    ContributorAuthor

    From @frodopwns on February 3, 2017 19:42

    Has anyone been able to reproduce this?

  6. tannerjfco commented on Feb 27, 2017

    @tannerjfco
    ContributorAuthor

    I still see it frequently but it is not consistent.

  7. changed the title [-]drud dev list occasionally returns "No Applications Found" incorrectly[/-] [+]ddev list returns "No Applications Found" if sitename contains a dash[/+] on Feb 27, 2017
  8. tannerjfco commented on Feb 27, 2017

    @tannerjfco
    ContributorAuthor

    I just pinned this down to sites containing a dash. The ProcessContainer() function assumes it can break the container name by dashes, which doesn't work out so great when the sitename has a dash.

  9. self-assigned this
    on Feb 27, 2017
  10. beeradb commented on Feb 27, 2017

    @beeradb
    Contributor

    reviewers:
    @frodopwns
    @beeradb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions