kapit4n / laravel-example

This is laravel example to practice this framework
0 stars 0 forks source link

Issue to run laravel project in ubuntu #1

Open kapit4n opened 7 years ago

kapit4n commented 7 years ago

project doesn't run it throws: [2017-03-12 00:57:07] production.ERROR: RuntimeException: No supported encrypter found. The cipher and / or key length are invalid. in /home/larce/projects/laravel-example/bootstrap/cache/compiled.php:6632 Stack trace:

0 /home/larce/projects/laravel-example/bootstrap/cache/compiled.php(1059): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption{closure}(Object(Illuminate\Foundation\Application), Array)

1 /home/larce/projects/laravel-example/bootstrap/cache/compiled.php(1012): Illuminate\Container\Container->build(Object(Closure), Array)

2 /home/larce/projects/laravel-example/bootstrap/cache/compiled.php(1550): Illuminate\Container\Container->make('encrypter', Array)

3 /home/larce/projects/laravel-example/bootstrap/cache/compiled.php(1104): Illuminate\Foundation\Application->make('encrypter')

4 /home/larce/projects/laravel-example/bootstrap/cache/compiled.php(1088): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))

5 /home/larce/projects/laravel-example/bootstrap/cache/compiled.php(1074): Illuminate\Container\Container->getDependencies(Array, Array)

6 /home/larce/projects/laravel-example/bootstrap/cache/compiled.php(1012): Illuminate\Container\Container->build('App\Http\Middle...', Array)

7 /home/larce/projects/laravel-example/bootstrap/cache/compiled.php(1550): Illuminate\Container\Container->make('App\Http\Middle...', Array)

8 /home/larce/projects/laravel-example/bootstrap/cache/compiled.php(9127): Illuminate\Foundation\Application->make('App\Http\Middle...')

9 /home/larce/projects/laravel-example/bootstrap/cache/compiled.php(2737): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))

10 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))

11 /home/larce/projects/laravel-example/bootstrap/cache/compiled.php(9127): call_user_func_array(Array, Array)

12 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))

13 /home/larce/projects/laravel-example/bootstrap/cache/compiled.php(9117): call_user_func(Object(Closure), Object(Illuminate\Http\Request))

14 /home/larce/projects/laravel-example/bootstrap/cache/compiled.php(2013): Illuminate\Pipeline\Pipeline->then(Object(Closure))

15 /home/larce/projects/laravel-example/bootstrap/cache/compiled.php(1999): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))

16 /home/larce/projects/laravel-example/public/index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))

17 /home/larce/projects/laravel-example/server.php(21): require_once('/home/larce/pro...')

18 {main}

[2017-03-12 00:57:07] production.ERROR: RuntimeException: No supported encrypter found. The cipher and / or key length are invalid. in /home/larce/projects/laravel-example/bootstrap/cache/compiled.php:6632

kapit4n commented 7 years ago

Solution: https://laravel.io/forum/06-09-2015-no-supported-encrypter-found-the-cipher-and-or-key-length-are-invalid

I manually added the key laravel generated to my .env file APP_KEY=xlhF31NeOlibJcoOW9tvZg7TkHcAZI3a