GrafiteInc / CMS

Decoupled CMS for any Laravel app, gain control of: pages, blogs, galleries, events, images, custom modules and more.
https://cms.grafite.ca
MIT License
495 stars 104 forks source link

LogicException : Key path does not exist or is not readable #191

Closed karneaud closed 5 years ago

karneaud commented 5 years ago

Describe the bug When trying to run the command php artisan route:list I get the subject error

To Reproduce Steps to reproduce the behavior:

  1. install laravel
  2. run php artisan grafite:cms-setup
  3. run php artisan route:list
  4. See error

Expected behavior Should get a list of routes

Desktop (please complete the following information):

Additional context Full Error

LogicException : Key path "file:///var/www/html/storage/oauth-private.key" does not exist or is not readable

at /var/www/html/vendor/league/oauth2-server/src/CryptKey.php:45 41| $keyPath = 'file://' . $keyPath; 42| } 43| 44| if (!file_exists($keyPath) || !is_readable($keyPath)) {

45| throw new \LogicException(sprintf('Key path "%s" does not exist or is not readable', $keyPath)); 46| } 47| 48| if ($keyPermissionsCheck === true) { 49| // Verify the permissions of the key

Exception trace:

1 League\OAuth2\Server\CryptKey::__construct("file:///var/www/html/storage/oauth-private.key") /var/www/html/vendor/laravel/passport/src/PassportServiceProvider.php:234

2 Laravel\Passport\PassportServiceProvider::makeCryptKey("oauth-private.key") /var/www/html/vendor/laravel/passport/src/PassportServiceProvider.php:203

Please use the argument -v to see more details.

mlantz commented 5 years ago

The cms-setup will only work on an a fresh Laravel application it will not likely work if its being added to an existing app. PassportServiceProvider is not a default portion of the Laravel framework.