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

drupal playbook error #524

Closed
autogy opened this issue Feb 1, 2023 · 5 comments
Closed

drupal playbook error #524

autogy opened this issue Feb 1, 2023 · 5 comments

Comments

@autogy
Copy link

autogy commented Feb 1, 2023

when i ran drupal playbook gettin error at install drupal step

`- name: Install Drupal.
command: >
vendor/bin/drush si -y --site-name="{{ drupal_site_name }}"
--account-name=admin
--account-pass=admin
--db-url=mysql://{{ domain }}:1234@localhost/{{ domain }}
--root={{ drupal_core_path }}/web
chdir={{ drupal_core_path }}
creates={{ drupal_core_path }}/web/sites/default/settings.php
notify: restart apache
become_user: www-data

I am getting below error

TASK [Install Drupal.] *********************************************************
fatal: [default]: FAILED! => {"changed": false, "cmd": "vendor/bin/drush si -y '--site-name=Drupal Test' --account-name=admin --account-pass=admin '--db-url=mysql://drupal:********@localhost/drupal' --root=/var/www/drupal/web", "msg": "[Errno 2] No such file or directory: b'vendor/bin/drush'", "rc": 2, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

@ronsmits
Copy link

ronsmits commented Feb 5, 2023

According to the output the file vendor/bin/drush does not exist. are you sure the path is correct?

@autogy
Copy link
Author

autogy commented Feb 8, 2023

According to the output the file vendor/bin/drush does not exist. are you sure the path is correct?

I am not sure. I am new to Ansible, was following instruction mentioned in github and "ansible-for-devops" by Jeff Geerling. Tried debugging on my own, could not find a solution.

@voegelas
Copy link

Did you try to install PHP 7.4 and Drush 10? PHP 7.4 reached its end of life last year and is no longer supported by Drupal. See #526 for a fix that updates PHP to version 8.2 and Drush to version 11.

@Trugamr
Copy link

Trugamr commented Feb 16, 2023

Did you try to install PHP 7.4 and Drush 10? PHP 7.4 reached its end of life last year and is no longer supported by Drupal. See #526 for a fix that updates PHP to version 8.2 and Drush to version 11.

Thanks this fixed it for me!

@geerlingguy
Copy link
Owner

This should hopefully be fixed as part of #526 (changing to PHP 8.2 and Drush 11).

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

5 participants