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

Remove warning: "You have specified a project type of 'drupal10' but no project of that type is found in . ." #5498

Closed
1 task done
travisLilleberg opened this issue Nov 3, 2023 · 4 comments
Milestone

Comments

@travisLilleberg
Copy link

travisLilleberg commented Nov 3, 2023

Is there an existing issue for this?

  • I have searched the existing issues

When I try to run ddev config --project-type=drupal10 --create-docroot --docroot=web I get the error:

You have specified a project type of 'drupal10' but no project of that type is found in ..../my/folder and when I look in ./web, all I see is a sites directory.

I ran ddev start after ddev config, just to be sure and it still doesn't work.

I'm on the latest ddev version:

.... -> ddev -v
ddev version v1.22.4

I ran brew update, brew upgrade, and brew doctor. No issues.

I'm using Docker Desktop v4.25.0 as my docker provider.

I'm on a Mac M1, Sonoma 14.1

Thanks for any help.

Output of ddev debug test

Expand `ddev debug test` diagnostic information
Running bash [-c /var/folders/zc/3d3j76w10glbg_wq54hhs6ww0000gn/T/test_ddev.sh] 
======= Existing project config =========
These config files were loaded for project acquia-theme-class: [/Users/travislilleberg/Desktop/acquia-theme-class/.ddev/config.yaml]
name: acquia-theme-class
type: drupal10
docroot: web
php_version: 8.1
webserver_type: nginx-fpm
webimage: ddev/ddev-webserver:v1.22.4
additional_hostnames: []
additional_fqdns: []
database: {mariadb 10.4}
project_tld: ddev.site
use_dns_when_possible: true
composer_version: 2
nodejs_version: 18
default_container_timeout: 120
======= Creating dummy project named  tryddevproject-5800 in ../tryddevproject-5800 =========
OS Information: Darwin Traviss-MacBook-Air.local 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul  5 22:22:52 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T8103 arm64
ProductName:		macOS
ProductVersion:		13.5.2
BuildVersion:		22G91
User information: uid=501(travislilleberg) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),701(com.apple.sharepoint.group.1),33(_appstore),100(_lpoperator),204(_developer),250(_analyticsusers),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh),400(com.apple.access_remote_ae)
DDEV version:  ITEM             VALUE                                   
 DDEV version     v1.22.4                                 
 architecture     arm64                                   
 db               ddev/ddev-dbserver-mariadb-10.4:v1.22.4 
 ddev-ssh-agent   ddev/ddev-ssh-agent:v1.22.4             
 docker           24.0.6                                  
 docker-compose   v2.21.0                                 
 docker-platform  docker-desktop                          
 mutagen          0.17.2                                  
 os               darwin                                  
 router           ddev/ddev-traefik-router:v1.22.4        
 web              ddev/ddev-webserver:v1.22.4             
PROXY settings: HTTP_PROXY='' HTTPS_PROXY='' http_proxy='' NO_PROXY=''
======= DDEV global info =========
Global configuration:
instrumentation-opt-in=true
omit-containers=[]
performance-mode=mutagen
router-bind-all-interfaces=false
internet-detection-timeout-ms=3000
disable-http2=false
use-letsencrypt=false
letsencrypt-email=
table-style=default
simple-formatting=false
use-hardened-images=false
fail-on-hook-fail=false
required-docker-compose-version=v2.21.0
use-docker-compose-from-path=false
project-tld=
xdebug-ide-location=
no-bind-mounts=false
router=traefik
wsl2-no-windows-hosts-mgt=false
router-http-port=80
router-https-port=443
mailpit-http-port=8025
mailpit-https-port=8026
traefik-monitor-port=10999

======= DOCKER info =========
docker location: lrwxr-xr-x  1 root  wheel  54 Nov 17  2022 /usr/local/bin/docker -> /Applications/Docker.app/Contents/Resources/bin/docker
Docker Desktop Version: Docker Desktop for Mac 4.25.0 build 126437
docker version: 
Client:
 Cloud integration: v1.0.35+desktop.5
 Version:           24.0.6
 API version:       1.43
 Go version:        go1.20.7
 Git commit:        ed223bc
 Built:             Mon Sep  4 12:28:49 2023
 OS/Arch:           darwin/arm64
 Context:           default

Server: Docker Desktop 4.25.0 (126437)
 Engine:
  Version:          24.0.6
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.7
  Git commit:       1a79695
  Built:            Mon Sep  4 12:31:36 2023
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.6.22
  GitCommit:        8165feabfdfe38c65b599c4993d227328c231fca
 runc:
  Version:          1.1.8
  GitCommit:        v1.1.8-0-g82f18fe
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
DOCKER_DEFAULT_PLATFORM=notset
======= Mutagen Info =========
Mutagen is installed in ddev, version=0.17.2
--------------------------------------------------------------------------------
No synchronization sessions found
--------------------------------------------------------------------------------
======= Docker Info =========
Docker platform: docker-desktop 
Using Docker context: default (unix:///Users/travislilleberg/.docker/run/docker.sock) 
docker-compose: v2.21.0 
Using DOCKER_HOST=unix:///Users/travislilleberg/.docker/run/docker.sock 
Docker version: 24.0.6 
Able to run simple container that mounts a volume. 
Able to use internet inside container. 
Docker disk space:
Filesystem                Size      Used Available Use% Mounted on
overlay                  58.4G     45.2G     10.2G  82% /

Stopped Mutagen daemon 
The ddev-ssh-agent container has been removed. When you start it again you will have to use 'ddev auth ssh' to provide key authentication again. 
Existing docker containers: 
CONTAINER ID   IMAGE                         COMMAND                  CREATED        STATUS                    PORTS     NAMES
261663417d5d   drud/ddev-webserver:v1.21.4   "sh -c 'chown -R 501…"   8 months ago   Exited (0) 8 months ago             heuristic_goldberg
Network ddev_default created 
Starting tryddevproject-5800... 
 Container ddev-ssh-agent  Created 
 Container ddev-ssh-agent  Started 
ssh-agent container is running: If you want to add authentication to the ssh-agent container, run 'ddev auth ssh' to enable your keys. 
Building project images... 
Project images built in 0s. 
 Network ddev-tryddevproject-5800_default  Created 
 Container ddev-tryddevproject-5800-web  Created 
 Container ddev-tryddevproject-5800-db  Created 
 Container ddev-tryddevproject-5800-web  Started 
 Container ddev-tryddevproject-5800-db  Started 
You have Mutagen enabled and your 'php' project type doesn't have `upload_dirs` set. 
For faster startup and less disk usage, set upload_dirs to where your user-generated files are stored. 
If this is intended you can disable this warning with `ddev config --disable-upload-dirs-warning`. 
Starting Mutagen sync process... 
Mutagen sync flush completed in 1s.
For details on sync status 'ddev mutagen st tryddevproject-5800 -l' 
Waiting for web/db containers to become ready: [web db] 
Starting ddev-router if necessary... 
 Container ddev-router  Created 
 Container ddev-router  Started 
Waiting for additional project containers to become ready... 
All project containers are now ready. 
Successfully started tryddevproject-5800 
Project can be reached at https://tryddevproject-5800.ddev.site https://127.0.0.1:49784 
======== Curl of site from inside container:
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 03 Nov 2023 15:40:06 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding

======== curl -I of http://tryddevproject-5800.ddev.site from outside:
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Fri, 03 Nov 2023 15:40:06 GMT
Server: nginx
Vary: Accept-Encoding

======== full curl of http://tryddevproject-5800.ddev.site from outside:
Success accessing database... db via TCP/IP
ddev is working. You will want to delete this project with 'ddev delete -Oy tryddevproject-5800'
======== Project ownership on host:
drwxr-xr-x  4 travislilleberg  staff  128 Nov  3 09:39 ../tryddevproject-5800
======== Project ownership in container:
drwxr-xr-x 4 travislilleberg dialout 4096 Nov  3 15:39 /var/www/html
======== In-container filesystem:
Filesystem     Type 1K-blocks     Used Available Use% Mounted on
/dev/vda1      ext4  61202244 48870060   9190860  85% /var/www
======== curl again of tryddevproject-5800 from host:
Success accessing database... db via TCP/IP
ddev is working. You will want to delete this project with 'ddev delete -Oy tryddevproject-5800'
Thanks for running the diagnostic. It was successful.
Please provide the output of this script in a new gist at gist.github.com
Running ddev launch in 5 seconds

Please run cleanup after debugging with 'ddev debug testcleanup'

Expected Behavior

ddev config --project-type=drupal10 --create-docroot --docroot=web should create a working Drupal 10 site

Actual Behavior

I get an error saying drupal10 is not a valid type and nothing but a sites directory is created in docroot.

Steps To Reproduce

On a Mac M1 terminal:

  • Create a directory
  • cd into the directory
  • ddev config --project-type=drupal10 --create-docroot --docroot=web

Anything else?

No response

@stasadev
Copy link
Member

stasadev commented Nov 3, 2023

You need to follow all the steps for Drupal to create a new project: https://ddev.readthedocs.io/en/latest/users/quickstart/#drupal

You have specified a project type of 'drupal10' but no project of that type is found in

This isn't an error, it's just a warning, and it's expected since you're creating a new project.

@rfay
Copy link
Member

rfay commented Nov 3, 2023

Agreeing with @stasadev - The thing here is that ddev is configuring the project before there's any code. It is certainly possible that we should remove that warning. I'm not sure it's useful. It goes back to a time when almost all projects were created with a git checkout.

@rfay rfay changed the title "You have specified a project type of 'drupal10' but no project of that type is found in . ." when creating d10 site on Mac Consider removing warning: "You have specified a project type of 'drupal10' but no project of that type is found in . ." Nov 3, 2023
@travisLilleberg
Copy link
Author

My bad. I was reading bad documentation that was stopping after ddev start. It's working for me, now.

Thanks!

@gitressa
Copy link
Contributor

gitressa commented Nov 4, 2023

I agree @rfay. Running ddev config followed by ddev composer create is almost the norm now, and the warning not so useful.

Maybe the feedback could be this instead, by removing that line, and adding the version? (in bold)

Current

Created docroot at /home/user/dev/test/web
You have specified a project type of 'drupal10' but no project of that type is found in /home/user/dev/test/web
No settings.php file exists, creating one
Configuration complete. You may now run 'ddev start'.

Better?

Created docroot at /home/user/dev/test/web
No settings.php file exists, creating one for Drupal 10.
Configuration complete. You may now run 'ddev start'.

@rfay rfay added this to the v1.22.6 milestone Nov 27, 2023
@rfay rfay changed the title Consider removing warning: "You have specified a project type of 'drupal10' but no project of that type is found in . ." Remove warning: "You have specified a project type of 'drupal10' but no project of that type is found in . ." Nov 28, 2023
@stasadev stasadev modified the milestones: v1.22.6, v1.22.7 Dec 13, 2023
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

4 participants