Dhii / scotch-bedrock

2 stars 2 forks source link

Error At End Of Provisioning #3

Closed XedinUnknown closed 8 years ago

XedinUnknown commented 8 years ago

The Symptoms

At the end of the provisioning process, the following output is displayed:

==> default: Installing WordPress
==> default: /home/vagrant/.rbenv/versions/2.2.2/lib/ruby/2.2.0/net/smtp.rb:541:in `initialize'
==> default: : 
==> default: Connection refused - connect(2) for "127.0.0.1" port 1025
==> default:  (
==> default: Errno::ECONNREFUSED
==> default: )
==> default:    from /home/vagrant/.rbenv/versions/2.2.2/lib/ruby/2.2.0/net/smtp.rb:541:in `open'
==> default:    from /home/vagrant/.rbenv/versions/2.2.2/lib/ruby/2.2.0/net/smtp.rb:541:in `tcp_socket'
==> default:    from /home/vagrant/.rbenv/versions/2.2.2/lib/ruby/2.2.0/net/smtp.rb:551:in `block in do_start'
==> default:    from /home/vagrant/.rbenv/versions/2.2.2/lib/ruby/2.2.0/timeout.rb:89:in `block in timeout'
==> default:    from /home/vagrant/.rbenv/versions/2.2.2/lib/ruby/2.2.0/timeout.rb:99:in `call'
==> default:    from /home/vagrant/.rbenv/versions/2.2.2/lib/ruby/2.2.0/timeout.rb:99:in `timeout'
==> default:    from /home/vagrant/.rbenv/versions/2.2.2/lib/ruby/2.2.0/net/smtp.rb:550:in `do_start'
==> default:    from /home/vagrant/.rbenv/versions/2.2.2/lib/ruby/2.2.0/net/smtp.rb:520:in `start'
==> default:    from /home/vagrant/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/mail-2.6.3/lib/mail/network/delivery_methods/smtp.rb:112:in `deliver!'
==> default:    from /home/vagrant/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/mail-2.6.3/lib/mail/message.rb:2141:in `do_delivery'
==> default:    from /home/vagrant/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/mail-2.6.3/lib/mail/message.rb:238:in `deliver'
==> default:    from /home/vagrant/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/mailcatcher-0.6.1/bin/catchmail:71:in `<top (required)>'
==> default:    from /home/vagrant/.rbenv/versions/2.2.2/bin/catchmail:23:in `load'
==> default:    from /home/vagrant/.rbenv/versions/2.2.2/bin/catchmail:23:in `<main>'
==> default: Cleaning up repo

Possible Cause

During installation, WP tries to send an email to the site administrator. If mailcatcher is not started, this may result in an error message.

Suggested Solution

One of:

  1. Use the --skip-email flag to prevent sending the email;
  2. Start mailcatcher before WP installation.