LoginSignup
0
0

More than 3 years have passed since last update.

PAY.JPを使ってクレジットカードを登録して、決済を行う際にパーミッションエラーが出たときの対処法

Posted at

概要

WEBサービスの決済を実行する場面で、サブスクリプション決済を行おうとしたところ下記のようなエラーが発生。

$ Netrc::Error (Permission bits for '/Users/${username}/.netrc' should be 0600, but are 644):

※ ${username}の部分は人によって異なります。

また、使用しているngrolkでも下記のようなエラーが発生

500 Intenal Server Error

解決法

自分の場合は644の権限になっており、600の権限に直す必要があったので、
chmodコマンドを用いて下記のようにディレクトリのパーミッション(許可属性)を変更してあげれば良い

chmod 600 /Users/${username}/.netrc

参考

Rails x Cloudinaryでパーミッションエラーが出た時の対処
https://qiita.com/sayama0402/items/f6201459de6cb49f1521

【 chmod 】コマンド――ファイル/ディレクトリのパーミッション(許可属性)を変更する
https://www.atmarkit.co.jp/ait/articles/1605/23/news020.html

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0