質問編集履歴
8
コードの一部修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -110,11 +110,11 @@
|
|
110
110
|
|
111
111
|
amazon:
|
112
112
|
|
113
|
-
|
113
|
+
service: S3
|
114
|
-
|
114
|
+
|
115
|
-
|
115
|
+
region: ap-northeast-1
|
116
|
-
|
116
|
+
|
117
|
-
|
117
|
+
bucket: バケット名
|
118
118
|
|
119
119
|
```
|
120
120
|
|
@@ -168,15 +168,15 @@
|
|
168
168
|
|
169
169
|
amazon:
|
170
170
|
|
171
|
-
|
171
|
+
service: S3
|
172
|
-
|
172
|
+
|
173
|
-
|
173
|
+
region: ap-northeast-1
|
174
|
-
|
174
|
+
|
175
|
-
|
175
|
+
bucket: バケット名が記載されている状態
|
176
|
-
|
176
|
+
|
177
|
-
|
177
|
+
access_key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
|
178
|
-
|
178
|
+
|
179
|
-
|
179
|
+
secret_access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
|
180
180
|
|
181
181
|
```
|
182
182
|
|
7
エラー文の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,53 +38,13 @@
|
|
38
38
|
|
39
39
|
[ec2 リポジトリ 名]$ less log/unicorn.stderr.log
|
40
40
|
|
41
|
-
I, [2021-02-0
|
42
|
-
|
43
|
-
/home/ec2-user/.rbenv/versions/2.6.5/
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
# 省略
|
50
|
-
|
51
|
-
from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/http_server.rb:139:in `start'
|
52
|
-
|
53
|
-
from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/bin/unicorn_rails:209:in `<top (required)>'
|
54
|
-
|
55
|
-
from /home/ec2-user/.rbenv/versions/2.6.5/bin/unicorn_rails:23:in `load'
|
56
|
-
|
57
|
-
from /home/ec2-user/.rbenv/versions/2.6.5/bin/unicorn_rails:23:in `<main>'
|
58
|
-
|
59
|
-
/home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.4/lib/active_support/message_encryptor.rb:201:in `final': OpenSSL::Cipher::CipherError
|
60
|
-
|
61
|
-
from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.4/lib/active_support/message_encryptor.rb:201:in `_decrypt'
|
62
|
-
|
63
|
-
```
|
64
|
-
|
65
|
-
また
|
66
|
-
|
67
|
-
```
|
68
|
-
|
69
|
-
cat unicorn.stderr.log
|
70
|
-
|
71
|
-
```
|
72
|
-
|
73
|
-
を打って調べると更にエラーが見つかった
|
74
|
-
|
75
|
-
```
|
76
|
-
|
77
|
-
Cannot load `Rails.config.active_storage.service`: (RuntimeError)
|
78
|
-
|
79
|
-
```
|
80
|
-
|
81
|
-
```
|
82
|
-
|
83
|
-
`block in config_for': Missing configuration for the :amazon Active Storage service.
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
Configurations available for [:test, :local] (RuntimeError)
|
41
|
+
I, [2021-02-02T12:28:15.675241 #18872] INFO -- : Refreshing Gem list
|
42
|
+
|
43
|
+
bundler: failed to load command: unicorn_rails (/home/ec2-user/.rbenv/versions/2.6.5/bin/unicorn_rails)
|
44
|
+
|
45
|
+
NoMethodError: Cannot load `Rails.config.active_storage.service`:
|
46
|
+
|
47
|
+
undefined method `fetch' for nil:NilClass
|
88
48
|
|
89
49
|
```
|
90
50
|
|
6
文法の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -104,7 +104,7 @@
|
|
104
104
|
|
105
105
|
**"aws-sdk-s3"をGemfileに追記**
|
106
106
|
|
107
|
-
```
|
107
|
+
```Gemfile
|
108
108
|
|
109
109
|
gem "aws-sdk-s3", require: false
|
110
110
|
|
5
文章を一部修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,14 +30,6 @@
|
|
30
30
|
|
31
31
|
|
32
32
|
|
33
|
-
そこから2日間調べたがわからない
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
33
|
### 発生している問題・エラーメッセージ
|
42
34
|
|
43
35
|
|
4
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,62 +22,62 @@
|
|
22
22
|
|
23
23
|
```
|
24
24
|
|
25
|
+
less log/unicorn.stderr.log
|
26
|
+
|
27
|
+
```
|
28
|
+
|
29
|
+
で調べるとエラーを発見
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
そこから2日間調べたがわからない
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
### 発生している問題・エラーメッセージ
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
```
|
46
|
+
|
47
|
+
[ec2 リポジトリ 名]$ less log/unicorn.stderr.log
|
48
|
+
|
49
|
+
I, [2021-02-01T15:23:50.173556 #23368] INFO -- : Refreshing Gem list
|
50
|
+
|
51
|
+
/home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.4/lib/active_support/message_encryptor.rb:206:in `rescue in _decrypt': ActiveSupport::MessageEncryptor::InvalidMessage (ActiveSupport::MessageEncryptor::InvalidMessage)
|
52
|
+
|
53
|
+
from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.4/lib/active_support/message_encryptor.rb:183:in `_decrypt'
|
54
|
+
|
55
|
+
from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.4/lib/active_support/message_encryptor.rb:157:in `decrypt_and_verify'
|
56
|
+
|
57
|
+
# 省略
|
58
|
+
|
59
|
+
from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/http_server.rb:139:in `start'
|
60
|
+
|
61
|
+
from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/bin/unicorn_rails:209:in `<top (required)>'
|
62
|
+
|
63
|
+
from /home/ec2-user/.rbenv/versions/2.6.5/bin/unicorn_rails:23:in `load'
|
64
|
+
|
65
|
+
from /home/ec2-user/.rbenv/versions/2.6.5/bin/unicorn_rails:23:in `<main>'
|
66
|
+
|
67
|
+
/home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.4/lib/active_support/message_encryptor.rb:201:in `final': OpenSSL::Cipher::CipherError
|
68
|
+
|
69
|
+
from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.4/lib/active_support/message_encryptor.rb:201:in `_decrypt'
|
70
|
+
|
71
|
+
```
|
72
|
+
|
73
|
+
また
|
74
|
+
|
75
|
+
```
|
76
|
+
|
25
77
|
cat unicorn.stderr.log
|
26
78
|
|
27
79
|
```
|
28
80
|
|
29
|
-
で調べるとエラーを発見
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
そこから2日間調べたがわからない
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
### 発生している問題・エラーメッセージ
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
```
|
46
|
-
|
47
|
-
[ec2 リポジトリ 名]$ less log/unicorn.stderr.log
|
48
|
-
|
49
|
-
I, [2021-02-01T15:23:50.173556 #23368] INFO -- : Refreshing Gem list
|
50
|
-
|
51
|
-
/home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.4/lib/active_support/message_encryptor.rb:206:in `rescue in _decrypt': ActiveSupport::MessageEncryptor::InvalidMessage (ActiveSupport::MessageEncryptor::InvalidMessage)
|
52
|
-
|
53
|
-
from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.4/lib/active_support/message_encryptor.rb:183:in `_decrypt'
|
54
|
-
|
55
|
-
from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.4/lib/active_support/message_encryptor.rb:157:in `decrypt_and_verify'
|
56
|
-
|
57
|
-
# 省略
|
58
|
-
|
59
|
-
from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/lib/unicorn/http_server.rb:139:in `start'
|
60
|
-
|
61
|
-
from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/unicorn-5.4.1/bin/unicorn_rails:209:in `<top (required)>'
|
62
|
-
|
63
|
-
from /home/ec2-user/.rbenv/versions/2.6.5/bin/unicorn_rails:23:in `load'
|
64
|
-
|
65
|
-
from /home/ec2-user/.rbenv/versions/2.6.5/bin/unicorn_rails:23:in `<main>'
|
66
|
-
|
67
|
-
/home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.4/lib/active_support/message_encryptor.rb:201:in `final': OpenSSL::Cipher::CipherError
|
68
|
-
|
69
|
-
from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.4/lib/active_support/message_encryptor.rb:201:in `_decrypt'
|
70
|
-
|
71
|
-
```
|
72
|
-
|
73
|
-
また
|
74
|
-
|
75
|
-
```
|
76
|
-
|
77
|
-
cat unicorn.stderr.log
|
78
|
-
|
79
|
-
```
|
80
|
-
|
81
81
|
を打って調べると更にエラーが見つかった
|
82
82
|
|
83
83
|
```
|
3
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
```
|
24
24
|
|
25
|
-
|
25
|
+
cat unicorn.stderr.log
|
26
26
|
|
27
27
|
```
|
28
28
|
|
2
文章の一部修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -70,6 +70,16 @@
|
|
70
70
|
|
71
71
|
```
|
72
72
|
|
73
|
+
また
|
74
|
+
|
75
|
+
```
|
76
|
+
|
77
|
+
cat unicorn.stderr.log
|
78
|
+
|
79
|
+
```
|
80
|
+
|
81
|
+
を打って調べると更にエラーが見つかった
|
82
|
+
|
73
83
|
```
|
74
84
|
|
75
85
|
Cannot load `Rails.config.active_storage.service`: (RuntimeError)
|
1
エラー文の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -68,7 +68,21 @@
|
|
68
68
|
|
69
69
|
from /home/ec2-user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.4/lib/active_support/message_encryptor.rb:201:in `_decrypt'
|
70
70
|
|
71
|
-
|
71
|
+
```
|
72
|
+
|
73
|
+
```
|
74
|
+
|
75
|
+
Cannot load `Rails.config.active_storage.service`: (RuntimeError)
|
76
|
+
|
77
|
+
```
|
78
|
+
|
79
|
+
```
|
80
|
+
|
81
|
+
`block in config_for': Missing configuration for the :amazon Active Storage service.
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
Configurations available for [:test, :local] (RuntimeError)
|
72
86
|
|
73
87
|
```
|
74
88
|
|