Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-32470

A request to [http://localhost/link] failed. Received status code [500].

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major Major
    • ant-plugin
    • None

      I am getting follwoing issue building my php laravel project tried all possible solution including setting the env app key and related fix still I am getting following result.

      -------------------
      [phpunit] 1) ExampleTest::testBasicExample
      [phpunit] A request to http://localhost/admin/customer failed. Received status code [500].
      [phpunit]
      [phpunit] /var/lib/jenkins/jobs/getlocale-server/workspace/vendor/laravel/framework/src/Illuminate/Foundation/Testing/InteractsWithPages.php:165
      [phpunit] /var/lib/jenkins/jobs/getlocale-server/workspace/vendor/laravel/framework/src/Illuminate/Foundation/Testing/InteractsWithPages.php:63
      [phpunit] /var/lib/jenkins/jobs/getlocale-server/workspace/vendor/laravel/framework/src/Illuminate/Foundation/Testing/InteractsWithPages.php:109
      [phpunit] /var/lib/jenkins/jobs/getlocale-server/workspace/vendor/laravel/framework/src/Illuminate/Foundation/Testing/InteractsWithPages.php:63
      [phpunit] /var/lib/jenkins/jobs/getlocale-server/workspace/vendor/laravel/framework/src/Illuminate/Foundation/Testing/InteractsWithPages.php:44
      [phpunit] /var/lib/jenkins/jobs/getlocale-server/workspace/tests/ExampleTest.php:16
      [phpunit]
      [phpunit] Caused by
      [phpunit] exception 'PDOException' with message 'could not find driver' in /var/lib/jenkins/jobs/getlocale-server/workspace/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:55
      [phpunit] Stack trace:
      [phpunit] #0 /var/lib/jenkins/jobs/getlocale-server/workspace/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(55): PDO->__construct('mysql:host=loca...', 'root', '', Array)
      [phpunit] #1 /var/lib/jenkins/jobs/getlocale-server/workspace/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(22): Illuminate\Database\Connectors\Connector->createConnection('mysql:host=loca...', Array, Array)
      [phpunit] #2 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(11415): Illuminate\Database\Connectors\MySqlConnector->connect(Array)
      [phpunit] #3 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(11411): Illuminate\Database\Connectors\ConnectionFactory->createSingleConnection(Array)
      [phpunit] #4 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(11326): Illuminate\Database\Connectors\ConnectionFactory->make(Array, 'mysql')
      [phpunit] #5 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(11281): Illuminate\Database\DatabaseManager->makeConnection('mysql')
      [phpunit] #6 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(11158): Illuminate\Database\DatabaseManager->connection(NULL)
      [phpunit] #7 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(11145): Illuminate\Database\Eloquent\Model::resolveConnection(NULL)
      [phpunit] #8 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(10592): Illuminate\Database\Eloquent\Model->getConnection()
      [phpunit] #9 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(10569): Illuminate\Database\Eloquent\Model->newBaseQueryBuilder()
      [phpunit] #10 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(10559): Illuminate\Database\Eloquent\Model->newQueryWithoutScopes()
      [phpunit] #11 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(11242): Illuminate\Database\Eloquent\Model->newQuery()
      [phpunit] #12 [internal function]: Illuminate\Database\Eloquent\Model->__call('latest', Array)
      [phpunit] #13 [internal function]: App\Customer->latest()
      [phpunit] #14 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(11248): call_user_func_array(Array, Array)
      [phpunit] #15 /var/lib/jenkins/jobs/getlocale-server/workspace/app/Http/Controllers/CustomerController.php(22): Illuminate\Database\Eloquent\Model::__callStatic('latest', Array)
      [phpunit] #16 /var/lib/jenkins/jobs/getlocale-server/workspace/app/Http/Controllers/CustomerController.php(22): App\Customer::latest()
      [phpunit] #17 [internal function]: App\Http\Controllers\CustomerController->index(Object(Illuminate\Http\Request))
      [phpunit] #18 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(8862): call_user_func_array(Array, Array)
      [phpunit] #19 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(8931): Illuminate\Routing\Controller->callAction('index', Array)
      [phpunit] #20 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(8911): Illuminate\Routing\ControllerDispatcher->call(Object(App\Http\Controllers\CustomerController), Object(Illuminate\Routing\Route), 'index')
      [phpunit] #21 [internal function]: Illuminate\Routing\ControllerDispatcher->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))
      [phpunit] #22 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(9581): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
      [phpunit] #23 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))
      [phpunit] #24 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(9563): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
      [phpunit] #25 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(8912): Illuminate\Pipeline\Pipeline->then(Object(Closure))
      [phpunit] #26 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(8897): Illuminate\Routing\ControllerDispatcher->callWithinStack(Object(App\Http\Controllers\CustomerController), Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'index')
      [phpunit] #27 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(7851): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'App\Http\Contro...', 'index')
      [phpunit] #28 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(7822): Illuminate\Routing\Route->runWithCustomDispatcher(Object(Illuminate\Http\Request))
      [phpunit] #29 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(7475): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
      [phpunit] #30 [internal function]: Illuminate\Routing\Router->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))
      [phpunit] #31 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(9581): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
      [phpunit] #32 /var/lib/jenkins/jobs/getlocale-server/workspace/app/Http/Middleware/CorsMiddleware.php(18): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))
      [phpunit] #33 [internal function]: App\Http\Middleware\CorsMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure))
      [phpunit] #34 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(9573): call_user_func_array(Array, Array)
      [phpunit] #35 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))
      [phpunit] #36 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(9563): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
      [phpunit] #37 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(7476): Illuminate\Pipeline\Pipeline->then(Object(Closure))
      [phpunit] #38 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(7464): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
      [phpunit] #39 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(7449): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
      [phpunit] #40 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(2302): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
      [phpunit] #41 [internal function]: Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http{closure}(Object(Illuminate\Http\Request))
      [phpunit] #42 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(9581): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
      [phpunit] #43 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(2926): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))
      [phpunit] #44 [internal function]: Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
      [phpunit] #45 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(9573): call_user_func_array(Array, Array)
      [phpunit] #46 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(12925): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))
      [phpunit] #47 [internal function]: Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
      [phpunit] #48 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(9573): call_user_func_array(Array, Array)
      [phpunit] #49 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(11532): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))
      [phpunit] #50 [internal function]: Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
      [phpunit] #51 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(9573): call_user_func_array(Array, Array)
      [phpunit] #52 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(12666): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))
      [phpunit] #53 [internal function]: Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
      [phpunit] #54 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(9573): call_user_func_array(Array, Array)
      [phpunit] #55 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(12605): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))
      [phpunit] #56 [internal function]: Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
      [phpunit] #57 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(9573): call_user_func_array(Array, Array)
      [phpunit] #58 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(2979): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))
      [phpunit] #59 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
      [phpunit] #60 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(9573): call_user_func_array(Array, Array)
      [phpunit] #61 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))
      [phpunit] #62 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(9563): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
      [phpunit] #63 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(2249): Illuminate\Pipeline\Pipeline->then(Object(Closure))
      [phpunit] #64 /var/lib/jenkins/jobs/getlocale-server/workspace/bootstrap/cache/compiled.php(2232): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
      [phpunit] #65 /var/lib/jenkins/jobs/getlocale-server/workspace/vendor/laravel/framework/src/Illuminate/Foundation/Testing/CrawlerTrait.php(393): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
      [phpunit] #66 /var/lib/jenkins/jobs/getlocale-server/workspace/vendor/laravel/framework/src/Illuminate/Foundation/Testing/InteractsWithPages.php(61): Illuminate\Foundation\Testing\TestCase->call('GET', 'http://localhos...', Array, Array, Array)
      [phpunit] #67 /var/lib/jenkins/jobs/getlocale-server/workspace/vendor/laravel/framework/src/Illuminate/Foundation/Testing/InteractsWithPages.php(109): Illuminate\Foundation\Testing\TestCase->makeRequest('GET', 'http://localhos...')
      [phpunit] #68 /var/lib/jenkins/jobs/getlocale-server/workspace/vendor/laravel/framework/src/Illuminate/Foundation/Testing/InteractsWithPages.php(63): Illuminate\Foundation\Testing\TestCase->followRedirects()
      [phpunit] #69 /var/lib/jenkins/jobs/getlocale-server/workspace/vendor/laravel/framework/src/Illuminate/Foundation/Testing/InteractsWithPages.php(44): Illuminate\Foundation\Testing\TestCase->makeRequest('GET', '/')
      [phpunit] #70 /var/lib/jenkins/jobs/getlocale-server/workspace/tests/ExampleTest.php(16): Illuminate\Foundation\Testing\TestCase->visit('/')
      [phpunit] #71 [internal function]: ExampleTest->testBasicExample()
      [phpunit] #72 phar:///usr/local/bin/phpunit/phpunit/Framework/TestCase.php(909): ReflectionMethod->invokeArgs(Object(ExampleTest), Array)
      [phpunit] #73 phar:///usr/local/bin/phpunit/phpunit/Framework/TestCase.php(768): PHPUnit_Framework_TestCase->runTest()
      [phpunit] #74 phar:///usr/local/bin/phpunit/phpunit/Framework/TestResult.php(612): PHPUnit_Framework_TestCase->runBare()
      [phpunit] #75 phar:///usr/local/bin/phpunit/phpunit/Framework/TestCase.php(724): PHPUnit_Framework_TestResult->run(Object(ExampleTest))
      [phpunit] #76 phar:///usr/local/bin/phpunit/phpunit/Framework/TestSuite.php(747): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))
      [phpunit] #77 phar:///usr/local/bin/phpunit/phpunit/Framework/TestSuite.php(747): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
      [phpunit] #78 phar:///usr/local/bin/phpunit/phpunit/TextUI/TestRunner.php(440): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))
      [phpunit] #79 phar:///usr/local/bin/phpunit/phpunit/TextUI/Command.php(149): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array)
      [phpunit] #80 phar:///usr/local/bin/phpunit/phpunit/TextUI/Command.php(100): PHPUnit_TextUI_Command->run(Array, true)
      [phpunit] #81 /usr/local/bin/phpunit(545): PHPUnit_TextUI_Command::main()
      [phpunit] #82

      {main}

      [phpunit] FAILURES!
      [phpunit] Tests: 1, Assertions: 1, Failures: 1.

      BUILD FAILED
      /var/lib/jenkins/jobs/getlocale-server/workspace/build.xml:168: exec returned: 1

      Total time: 39 seconds
      Build step 'Invoke Ant' marked build as failure

            armfergom Armando Fernandez
            saurabhnsonar Saurabh Sonar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: