Есть абсолютно идентичный скрипт, который локально работает на сервере почему то перестал
лог:[2016-08-17 18:50:03] local.ERROR: exception 'Swift_TransportException' with message 'Connection to ssl://smtp.gmail.com:465 Timed Out' in /var/www/mysite.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:404
Stack trace:
#0 /var/www/mysite.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(277): Swift_Transport_AbstractSmtpTransport->_getFullResponse(NULL)
#1 /var/www/mysite.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php(270): Swift_Transport_AbstractSmtpTransport->executeCommand('HELO [127.0.0.1...', Array, Array)
#2 /var/www/mysite.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(297): Swift_Transport_EsmtpTransport->executeCommand('HELO [127.0.0.1...', Array)
#3 /var/www/mysite.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php(308): Swift_Transport_AbstractSmtpTransport->_doHeloCommand()
#4 /var/www/mysite.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(118): Swift_Transport_EsmtpTransport->_doHeloCommand()
#5 /var/www/mysite.com/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mailer.php(79): Swift_Transport_AbstractSmtpTransport->start()
#6 /var/www/mysite.com/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php(385): Swift_Mailer->send(Object(Swift_Message), Array)
#7 /var/www/mysite.com/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php(171): Illuminate\Mail\Mailer->sendSwiftMessage(Object(Swift_Message))
#8 /var/www/mysite.com/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php(276): Illuminate\Mail\Mailer->send('emails.queued_e...', Array, Object(Closure))
#9 /var/www/mysite.com/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(130): Illuminate\Mail\Mailer->handleQueuedMessage(Object(Illuminate\Queue\Jobs\DatabaseJob), Array)
#10 /var/www/mysite.com/vendor/laravel/framework/src/Illuminate/Queue/Jobs/DatabaseJob.php(49): Illuminate\Queue\Jobs\Job->resolveAndFire(Array)
#11 /var/www/mysite.com/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(213): Illuminate\Queue\Jobs\DatabaseJob->fire()
#12 /var/www/mysite.com/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(157): Illuminate\Queue\Worker->process('database', Object(Illuminate\Queue\Jobs\DatabaseJob), '3', 0)
#13 /var/www/mysite.com/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(111): Illuminate\Queue\Worker->pop(NULL, NULL, 0, '3', '3')
#14 /var/www/mysite.com/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(87): Illuminate\Queue\Worker->runNextJobForDaemon(NULL, NULL, 0, '3', '3')
#15 /var/www/mysite.com/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(120): Illuminate\Queue\Worker->daemon(NULL, NULL, 0, 128, '3', '3')
#16 /var/www/mysite.com/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(79): Illuminate\Queue\Console\WorkCommand->runWorker(NULL, NULL, 0, 128, true)
#17 [internal function]: Illuminate\Queue\Console\WorkCommand->fire()
#18 /var/www/mysite.com/vendor/laravel/framework/src/Illuminate/Container/Container.php(507): call_user_func_array(Array, Array)
#19 /var/www/mysite.com/vendor/laravel/framework/src/Illuminate/Console/Command.php(169): Illuminate\Container\Container->call(Array)
#20 /var/www/mysite.com/vendor/symfony/console/Command/Command.php(256): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#21 /var/www/mysite.com/vendor/laravel/framework/src/Illuminate/Console/Command.php(155): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#22 /var/www/mysite.com/vendor/symfony/console/Application.php(794): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#23 /var/www/mysite.com/vendor/symfony/console/Application.php(186): Symfony\Component\Console\Application->doRunCommand(Object(Illuminate\Queue\Console\WorkCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#24 /var/www/mysite.com/vendor/symfony/console/Application.php(117): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#25 /var/www/mysite.com/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(107): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#26 /var/www/mysite.com/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#27 {main}
.env файл:MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
MAIL_USERNAME=mail@mail.com
MAIL_PASSWORD=password
MAIL_ENCRYPTION=ssl
пробовал менять по разному, ничего не срабатывает, причем одну и туже ошибку пишет
Сервер Debian# netstat -anp | grep 465
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2465/rpcbind
tcp 0 0 89.218.73.194:37292 173.194.73.109:465 ESTABLISHED 26818/php
tcp6 0 0 :::111 :::* LISTEN 2465/rpcbind
udp 0 0 0.0.0.0:111 0.0.0.0:* 2465/rpcbind
udp 0 0 0.0.0.0:944 0.0.0.0:* 2465/rpcbind
udp6 0 0 :::111 :::* 2465/rpcbind
udp6 0 0 :::944 :::* 2465/rpcbind
unix 2 [ ACC ] STREAM LISTENING 16663 2465/rpcbind /var/run/rpcbind.sock
У кого какие догадки ?
Вопрос задан
более трёх лет назад
926 просмотров