Не удалось подключиться к порту 80 127.0.0.1: соединение отказало, конечная точка проверки работоспособности ddev-router не отвечает - PullRequest
0 голосов
/ 06 апреля 2020

DDEV-Локальная версия v1.13.1
commit v1.13.1
db drud / ddev-dbserver-mariadb-10.2: v1.13.0 dba phpmyadmin / phpmyadmin: 5
ddev-s sh - агент drud / ddev-s sh -агент: v1.13.0
docker 19.03.8
docker -композит 1.25.0-rc4
os linux
маршрутизатор drud / ddev-router: v1.13.0
web drud / ddev-webserver: v1.13.1

Composer версия 1.9.3 2020-02-04 12: 58: 49

Starting d8views... 
Building ddev-ssh-agent 
Creating ddev-ssh-agent ... done

ssh-agent container is running: If you want to add authentication to the ssh-agent container, run 'ddev auth ssh' to enable your keys. 
Pushing mkcert rootca certs to ddev-global-cache 
Pushed mkcert rootca certs to ddev-global-cache 
Running   Command=ip address show dev docker0
ddev needs to add an entry to your hostfile.
It will require administrative privileges via the sudo command, so you may be required
to enter your password for sudo. ddev is about to issue the command: 
    sudo /home/linuxbrew/.linuxbrew/Cellar/ddev/1.13.1/bin/ddev hostname d8views.ddev.site 127.0.0.1 
Please enter your password if prompted. 
Running   Command=sudo /home/linuxbrew/.linuxbrew/Cellar/ddev/1.13.1/bin/ddev hostname d8views.ddev.site 127.0.0.1
[sudo] password for james: 
Building db 
Building web 
Creating ddev-d8views-db ... done
Creating ddev-d8views-dba ... done
Creating ddev-d8views-web ... done

Creating ddev-router ... done

Failed to start d8views: ddev-router failed to become ready: logOutput=nginx config: OK  nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to 127.0.0.1 port 80: Connection refused
ddev-router healthcheck endpoint not responding 
, err=container /ddev-router unhealthy: nginx config: OK  nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to 127.0.0.1 port 80: Connection refused
ddev-router healthcheck endpoint not responding

Итак, я запустил ddev description, чтобы посмотреть, что к чему:

ddev describe
NAME     TYPE     LOCATION            URL                        STATUS        
d8views  drupal8  ~/Projects/d8views  https://d8views.ddev.site  running

Project Information
-------------------
PHP version:    7.3
MariaDB version    
MySQL version      

URLs
----
http://d8views.ddev.site 
http://127.0.0.1:32786   
https://d8views.ddev.site
https://127.0.0.1:32785  

MySQL/MariaDB Credentials
-------------------------
Username: "db", Password: "db", Default database: "db"

or use root credentials when needed: Username: "root", Password: "root"

Database hostname and port INSIDE container: db:3306
To connect to db server inside container or in project settings files: 
mysql --host=db --user=db --password=db --database=db
Database hostname and port from HOST: 127.0.0.1:32784
To connect to mysql from your host machine, 
mysql --host=127.0.0.1 --port=32784 --user=db --password=db --database=db

Other Services
--------------
MailHog:    http://d8views.ddev.site:8025
phpMyAdmin: http://d8views.ddev.site:8036

DDEV ROUTER STATUS: healthy 
ssh-auth status: healthy

У меня есть ddev на другом ноутбуке, который работает нормально, но все версии более старые, чего-то не хватает в этой настройке? Я заметил, что я должен предоставить пароль во время начального процесса запуска ddev.

...