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

Travis email error starting with Drupal 8.3.0 and Lightning 2.1.0 #1336

Closed
damontgomery opened this issue Apr 7, 2017 · 1 comment
Closed
Assignees
Labels
Bug Something isn't working

Comments

@damontgomery
Copy link
Contributor

I have a fix listed at the end. I'm mostly leaving this here in case someone gets a similar issue.

My system information:

  • Operating system type: Travis CI
  • Operating system version: unknown
  • BLT version: 8.6.15

Drupal 8.3.0 and Lightning 2.1.0. I could not update one without the other. Previous versions of Drupal / Lightning did not share this issue.

When I run this command:

Travis CI:
blt ci:setup (install drupal)

I get the following output:

Installation complete.  User name: admin  User password: admin       [ok]
Unable to send email. Contact the site administrator if the problem  [error]
persists.
Existing files must be classified according to the currently defined [status]

And I expected this to happen:

The BLT target supposedly tells drush to install without sending notices, but that doesn't happen.

Fix:

Copying the following from Lightning into the travis.yml seems to have fixed it by configuring PHP to use a dummy service for mail.

# Tweak PHP configuration.
  # Copied from Lightning.
  # We were getting an error where drush si is trying to send mail even though the flag to prevent that was set.
  - echo 'max_execution_time = 120' >> drupal.php.ini;
  - echo 'sendmail_path = /bin/true' >> drupal.php.ini;
  - phpenv config-add drupal.php.ini
  - phpenv rehash
@grasmash grasmash added ready Bug Something isn't working labels Apr 7, 2017
@grasmash
Copy link
Contributor

grasmash commented Apr 7, 2017

Hm. Seems like a drush or Drupal core bug right? I can implement this workaround in the mean time.

grasmash added a commit to grasmash/bolt that referenced this issue Apr 7, 2017
@grasmash grasmash self-assigned this Apr 7, 2017
@grasmash grasmash added in progress and removed ready labels Apr 7, 2017
grasmash added a commit that referenced this issue Apr 10, 2017
…ing 2.1.0. (#1338)

* Fixes #1336: Travis email error starting with Drupal 8.3.0 and Lightning 2.1.0.

* Simplifying.
grasmash added a commit that referenced this issue Apr 12, 2017
…ing 2.1.0. (#1338)

* Fixes #1336: Travis email error starting with Drupal 8.3.0 and Lightning 2.1.0.

* Simplifying.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants