teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

追記2

2019/03/27 02:49

投稿

koume
koume

スコア458

title CHANGED
File without changes
body CHANGED
@@ -67,4 +67,7 @@
67
67
  SSHKit::Runner::ExecuteError: Exception while executing as pande@xxx.xxx.xxx.xx: scp: /var/www/html/shared/config/database.yml: Permission denied
68
68
 
69
69
  ```
70
- となります。
70
+ となります。
71
+
72
+ 追記2
73
+ /var/www/html/shared/config/database.ymlのファイルをVPS側でroot(#)で作成したのでそれが原因なのでしょうか?作業用ユーザー($)で作成しなければいけなかったのでしょうか?

2

間違い箇所修正

2019/03/27 02:49

投稿

koume
koume

スコア458

title CHANGED
File without changes
body CHANGED
@@ -64,7 +64,7 @@
64
64
  DEBUG [a63f4728] Finished in 0.200 seconds with exit status 1 (failed).
65
65
  DEBUG Uploading config/database.yml 0.0%
66
66
  cap aborted!
67
- SSHKit::Runner::ExecuteError: Exception while executing as kinoko@153.126.131.89: scp: /var/www/html/shared/config/database.yml: Permission denied
67
+ SSHKit::Runner::ExecuteError: Exception while executing as pande@xxx.xxx.xxx.xx: scp: /var/www/html/shared/config/database.yml: Permission denied
68
68
 
69
69
  ```
70
70
  となります。

1

コマンド実行箇所を追記しました。

2019/03/27 02:28

投稿

koume
koume

スコア458

title CHANGED
File without changes
body CHANGED
@@ -52,4 +52,19 @@
52
52
 
53
53
  解決方法をご教示していただけないでしょうか?
54
54
 
55
- はじめてのデプロイでかなり困惑していますが宜しくお願いします。
55
+ はじめてのデプロイでかなり困惑していますが宜しくお願いします。
56
+
57
+ 追記
58
+ 試しにbundle exec cap production deploy --traceのコマンドを実行してみました。
59
+ ```ここに言語を入力
60
+ ** Invoke deploy:upload (first_time)
61
+ ** Execute deploy:upload
62
+ DEBUG [46140fa8] Running [ ! -d /var/www/html/shared/config ] as panda@xxx.xxx.xxx.xx
63
+ DEBUG [46140fa8] Command: [ ! -d /var/www/html/shared/config ]
64
+ DEBUG [a63f4728] Finished in 0.200 seconds with exit status 1 (failed).
65
+ DEBUG Uploading config/database.yml 0.0%
66
+ cap aborted!
67
+ SSHKit::Runner::ExecuteError: Exception while executing as kinoko@153.126.131.89: scp: /var/www/html/shared/config/database.yml: Permission denied
68
+
69
+ ```
70
+ となります。