Dreamfactory 2.0.3 / admin application version 2.0.6 gmail error

I configured smtp with tls 587 along gmail username and password

{
“error”: {
“context”: null,
“message”: “Connection could not be established with host smtp.gmail.com [Connection timed out #110]”,
“code”: 500,
“trace”: [
“0 /opt/bitnami/apps/dreamfactory/htdocs/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php(62): Swift_Transport_StreamBuffer->_establishSocketConnection()”,
“1 /opt/bitnami/apps/dreamfactory/htdocs/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(113): Swift_Transport_StreamBuffer->initialize(Array)”,
“2 /opt/bitnami/apps/dreamfactory/htdocs/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mailer.php(79): Swift_Transport_AbstractSmtpTransport->start()”,
“3 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php(395): Swift_Mailer->send(Object(Swift_Message), Array)”,
“4 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php(181): Illuminate\Mail\Mailer->sendSwiftMessage(Object(Swift_Message))”,
“5 /opt/bitnami/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Services/Email/BaseService.php(198): Illuminate\Mail\Mailer->send(Array, Array, Object(Closure))”,
“6 /opt/bitnami/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Services/Email/BaseService.php(112): DreamFactory\Core\Services\Email\BaseService->sendEmail(Array, ‘this is a test’, NULL)”,
“7 [internal function]: DreamFactory\Core\Services\Email\BaseService->handlePOST()”,
“8 /opt/bitnami/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Components/RestHandler.php(271): call_user_func(Array)”,
“9 /opt/bitnami/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Components/RestHandler.php(177): DreamFactory\Core\Components\RestHandler->processRequest()”,
“10 /opt/bitnami/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Services/BaseRestService.php(65): DreamFactory\Core\Components\RestHandler->handleRequest(Object(DreamFactory\Core\Utility\ServiceRequest), NULL)”,
“11 /opt/bitnami/apps/dreamfactory/htdocs/vendor/dreamfactory/df-core/src/Utility/ServiceHandler.php(57): DreamFactory\Core\Services\BaseRestService->handleRequest(Object(DreamFactory\Core\Utility\ServiceRequest), NULL)”,
“12 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(17653): DreamFactory\Core\Utility\ServiceHandler::processRequest(‘v2’, ‘email-passber-i…’, NULL)”,
“13 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(17629): DreamFactory\Http\Controllers\RestController->handleService(‘v2’, ‘email-passber-i…’, NULL)”,
“14 [internal function]: DreamFactory\Http\Controllers\RestController->handlePOST(‘v2’, ‘email-passber-i…’)”,
“15 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(8873): call_user_func_array(Array, Array)”,
“16 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(8942): Illuminate\Routing\Controller->callAction(‘handlePOST’, Array)”,
“17 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(8922): Illuminate\Routing\ControllerDispatcher->call(Object(DreamFactory\Http\Controllers\RestController), Object(Illuminate\Routing\Route), ‘handlePOST’)”,
“18 [internal function]: Illuminate\Routing\ControllerDispatcher->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,
“19 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9592): call_user_func(Object(Closure), Object(Illuminate\Http\Request))”,
“20 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(17802): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,
“21 [internal function]: DreamFactory\Http\Middleware\AccessCheck->handle(Object(Illuminate\Http\Request), Object(Closure))”,
“22 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9584): call_user_func_array(Array, Array)”,
“23 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,
“24 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9574): call_user_func(Object(Closure), Object(Illuminate\Http\Request))”,
“25 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(8923): Illuminate\Pipeline\Pipeline->then(Object(Closure))”,
“26 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(8908): Illuminate\Routing\ControllerDispatcher->callWithinStack(Object(DreamFactory\Http\Controllers\RestController), Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), ‘handlePOST’)”,
“27 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(7862): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), ‘DreamFactory\\Ht…’, ‘handlePOST’)”,
“28 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(7833): Illuminate\Routing\Route->runWithCustomDispatcher(Object(Illuminate\Http\Request))”,
“29 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(7486): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))”,
“30 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))”,
“31 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9592): call_user_func(Object(Closure), Object(Illuminate\Http\Request))”,
“32 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,
“33 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9574): call_user_func(Object(Closure), Object(Illuminate\Http\Request))”,
“34 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(7487): Illuminate\Pipeline\Pipeline->then(Object(Closure))”,
“35 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(7475): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))”,
“36 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(7460): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))”,
“37 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(2307): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))”,
“38 [internal function]: Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))”,
“39 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9592): call_user_func(Object(Closure), Object(Illuminate\Http\Request))”,
“40 /opt/bitnami/apps/dreamfactory/htdocs/app/Http/Middleware/AuthCheck.php(170): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,
“41 [internal function]: DreamFactory\Http\Middleware\AuthCheck->handle(Object(Illuminate\Http\Request), Object(Closure))”,
“42 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9584): call_user_func_array(Array, Array)”,
“43 /opt/bitnami/apps/dreamfactory/htdocs/vendor/barryvdh/laravel-cors/src/HandleCors.php(34): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,
“44 [internal function]: Barryvdh\Cors\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))”,
“45 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9584): call_user_func_array(Array, Array)”,
“46 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(17894): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,
“47 [internal function]: DreamFactory\Http\Middleware\FirstUserCheck->handle(Object(Illuminate\Http\Request), Object(Closure))”,
“48 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9584): call_user_func_array(Array, Array)”,
“49 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(12952): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,
“50 [internal function]: Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))”,
“51 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9584): call_user_func_array(Array, Array)”,
“52 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(11549): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,
“53 [internal function]: Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))”,
“54 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9584): call_user_func_array(Array, Array)”,
“55 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(12689): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,
“56 [internal function]: Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))”,
“57 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9584): call_user_func_array(Array, Array)”,
“58 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(12626): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,
“59 [internal function]: Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))”,
“60 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9584): call_user_func_array(Array, Array)”,
“61 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(2982): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,
“62 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))”,
“63 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9584): call_user_func_array(Array, Array)”,
“64 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))”,
“65 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(9574): call_user_func(Object(Closure), Object(Illuminate\Http\Request))”,
“66 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(2254): Illuminate\Pipeline\Pipeline->then(Object(Closure))”,
“67 /opt/bitnami/apps/dreamfactory/htdocs/bootstrap/cache/compiled.php(2237): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))”,
“68 /opt/bitnami/apps/dreamfactory/htdocs/public/index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))”,
“69 {main}”
]
}
}

Hi Rusher. I just tested smtp on a 2.0.3 install and did not have any trouble with smtp.gmail.com
Perhaps you should try pinging from your DF server to smtp.gmail.com to see if the route is open.
If that works you can also try telnetting on port 587 to smtp.gmail.com to see if it’s a firewall issue.

Hi Drew,

I added a new SMTP Service… but Host,portno, Username, password details are not getting saved…
Its working in 2.0.3 but It seems there is a bug in 2.0.4.I have Tested it…2.0.4 SMTP details are not getting SAved…

Thanks. I will investigate.

Confirmed this bug. Filing a report.

FYI, this error @screenivas is reporting only exists in 2.0.4.

The original error reported in this thread has not been duplicated.

Dear drewpearce.

Has this been patched with 2.0.4.2?

Rusher, the issue you reported has not been verified as a bug. See my response to you above.
The issue that screenivas reported only existed in 2.4 (all releases.) His issue should be fixed in the forthcoming release.

I have faced the similar issue with Gmail id. Yesterday, My friend told me to contact Gmail Error 007 services for a set up account on Dreamfactory 2.0.3. I have made contact with him and my problem gets resolved successfully. You should contact them. Thank you!