Passport: chmod Operation failed: Operation not permitted

Created on 2 Jul 2017  Â·  9Comments  Â·  Source: laravel/passport

Today I update composer and i got this error.
at Application->Laravel\Lumen\Concerns\{closure}(2, 'chmod(/var/www/app/storage/oauth-private.key): Operation failed: Operation not permitted', '/var/www/app/vendor/league/oauth2-server/src/CryptKey.php', 51, array('keyPath' => 'file:///var/www/app/storage/oauth-private.key', 'passPhrase' => null, 'keyPathPerms' => '777'))
I was not able to solve this problem.
Thanks for help

All 9 comments

Can you run the following commands on the server:

chmod 600 /var/www/app/storage/oauth-private.key
chmod 600 /var/www/app/storage/oauth-public.key

That will fix your problem.

Thank you @alexbilbie .

@alexbilbie use your, it still wrong, key path "/storage/oauth-private.key" does not exist or is not readable,can you help me.

@alexbilbie it is work in local,but use in center Os service, it is not work.

Same issue for me, even in local environment.

Same +1

same for online server. if 777 .key files its not permitted error. if 600 not readable error.

@alexbilbie Do you find reason。

Please move conversation to #441

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Adesubomi picture Adesubomi  Â·  4Comments

gbgelado picture gbgelado  Â·  3Comments

duccanh0022 picture duccanh0022  Â·  3Comments

soubhikchatterjee picture soubhikchatterjee  Â·  4Comments

mind-control picture mind-control  Â·  3Comments