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

質問編集履歴

1

エラー内容の修正

2016/12/01 09:27

投稿

ryuji.morimoto
ryuji.morimoto

スコア10

title CHANGED
File without changes
body CHANGED
@@ -13,4 +13,230 @@
13
13
  また、対策を検討するにあたり何の情報を提供すれば良いかも
14
14
  わかっていないので、必要な情報があればご教授いただけますと幸いです。
15
15
 
16
- よろしくお願いします。
16
+ よろしくお願いします。
17
+
18
+
19
+ ーーーーーーーーーーーーーーーーーーーーーーーーーー
20
+ バージョン情報
21
+ Ruby 2.2.5
22
+ Rails 5.0.0.1
23
+
24
+ エラー内容表示
25
+ コマンド >rails s
26
+ localhost:3000を開くと、下記のようなエラーが表示されます。
27
+ ```C:\RubyWork\gatebook>rails s
28
+ Your bundle is locked to rails (5.0.0.1), but that version could not be found in
29
+ any of the sources listed in your Gemfile. If you haven't changed sources, that
30
+ means the author of rails (5.0.0.1) has removed it. You'll need to update your
31
+ bundle to a different version of rails (5.0.0.1) that hasn't been removed in ord
32
+ er to install.
33
+ Run `bundle install` to install missing gems.
34
+
35
+ C:\RubyWork\gatebook> gem install rails --version="~> 4.2.3" --no-ri --no-rdoc
36
+ Successfully installed rails-4.2.7.1
37
+ 1 gem installed
38
+
39
+ C:\RubyWork\gatebook>rails -v
40
+ Could not find gem 'rails (>= 5.0.0.1, ~> 5.0.0) x64-mingw32' in any of the gem
41
+ sources listed in your Gemfile or available on this machine.
42
+ Run `bundle install` to install missing gems.
43
+
44
+ C:\RubyWork\gatebook>bundle install
45
+ Fetching gem metadata from https://rubygems.org/..........
46
+ Fetching version metadata from https://rubygems.org/..
47
+ Fetching dependency metadata from https://rubygems.org/.
48
+ Resolving dependencies...
49
+ Bundler could not find compatible versions for gem "activemodel":
50
+ In snapshot (Gemfile.lock):
51
+ activemodel (= 4.2.7.1)
52
+
53
+ In Gemfile:
54
+ rails (>= 5.0.0.1, ~> 5.0.0) x64-mingw32 was resolved to 5.0.0.1, which
55
+ depends on
56
+ activemodel (= 5.0.0.1) x64-mingw32
57
+
58
+ rails (>= 5.0.0.1, ~> 5.0.0) x64-mingw32 was resolved to 5.0.0.1, which
59
+ depends on
60
+ activemodel (= 5.0.0.1) x64-mingw32
61
+
62
+ web-console x64-mingw32 was resolved to 3.4.0, which depends on
63
+ activemodel (>= 5.0) x64-mingw32
64
+
65
+ Running `bundle update` will rebuild your snapshot from scratch, using only
66
+ the gems in your Gemfile, which may resolve the conflict.
67
+
68
+ C:\RubyWork\gatebook>rails -v
69
+ Could not find gem 'rails (>= 5.0.0.1, ~> 5.0.0) x64-mingw32' in any of the gem
70
+ sources listed in your Gemfile or available on this machine.
71
+ Run `bundle install` to install missing gems.
72
+
73
+ C:\RubyWork\gatebook>bundle update
74
+ Fetching gem metadata from https://rubygems.org/..........
75
+ Fetching version metadata from https://rubygems.org/..
76
+ Fetching dependency metadata from https://rubygems.org/.
77
+ Resolving dependencies...
78
+ Using rake 11.3.0
79
+ Using concurrent-ruby 1.0.2
80
+ Using i18n 0.7.0
81
+ Using minitest 5.10.0
82
+ Using thread_safe 0.3.5
83
+ Using builder 3.2.2
84
+ Using erubis 2.7.0
85
+ Using mini_portile2 2.1.0
86
+ Using rack 2.0.1
87
+ Using nio4r 1.2.1
88
+ Using websocket-extensions 0.1.2
89
+ Using mime-types-data 3.2016.0521
90
+ Using arel 7.1.4
91
+ Using bundler 1.13.6
92
+ Using coffee-script-source 1.11.1
93
+ Using execjs 2.7.0
94
+ Using method_source 0.8.2
95
+ Using thor 0.19.4
96
+ Using debug_inspector 0.0.2
97
+ Using multi_json 1.12.1
98
+ Using json 2.0.2
99
+ Using puma 3.6.2
100
+ Using sass 3.4.22
101
+ Using tilt 2.0.5
102
+ Using temple 0.7.7
103
+ Using sqlite3 1.3.12
104
+ Using turbolinks-source 5.0.0
105
+ Using tzinfo 1.2.2
106
+ Using nokogiri 1.6.8.1
107
+ Using rack-test 0.6.3
108
+ Using sprockets 3.7.0
109
+ Using websocket-driver 0.6.4
110
+ Using mime-types 3.1
111
+ Using coffee-script 2.4.1
112
+ Using uglifier 2.7.1
113
+ Using slim 3.0.0
114
+ Using turbolinks 5.0.1
115
+ Using activesupport 5.0.0.1 (was 4.2.7.1)
116
+ Using tzinfo-data 1.2016.10
117
+ Using loofah 2.0.3
118
+ Using mail 2.6.4
119
+ Using rails-dom-testing 2.0.1
120
+ Using globalid 0.3.7
121
+ Using activemodel 5.0.0.1 (was 4.2.7.1)
122
+ Using jbuilder 2.6.1
123
+ Using rails-html-sanitizer 1.0.3
124
+ Using activejob 5.0.0.1 (was 4.2.7.1)
125
+ Using activerecord 5.0.0.1 (was 4.2.7.1)
126
+ Using actionview 5.0.0.1 (was 4.2.7.1)
127
+ Using actionpack 5.0.0.1 (was 4.2.7.1)
128
+ Using actioncable 5.0.0.1 (was 4.2.7.1)
129
+ Using actionmailer 5.0.0.1 (was 4.2.7.1)
130
+ Using railties 5.0.0.1 (was 4.2.7.1)
131
+ Using sprockets-rails 3.2.0
132
+ Using coffee-rails 4.2.1
133
+ Using jquery-rails 4.2.1
134
+ Using web-console 3.4.0
135
+ Installing rails 5.0.0.1 (was 4.2.7.1)
136
+ Using sass-rails 5.0.6
137
+ Bundle updated!
138
+
139
+ C:\RubyWork\gatebook>
140
+ C:\RubyWork\gatebook>rails -v
141
+ Rails 5.0.0.1
142
+
143
+ C:\RubyWork\gatebook>rails s
144
+ => Booting Puma
145
+ => Rails 5.0.0.1 application starting in development on http://localhost:3000
146
+ => Run `rails server -h` for more startup options
147
+ *** SIGUSR2 not implemented, signal based restart unavailable!
148
+ *** SIGUSR1 not implemented, signal based restart unavailable!
149
+ *** SIGHUP not implemented, signal based logs reopening unavailable!
150
+ Puma starting in single mode...
151
+ * Version 3.6.2 (ruby 2.2.5-p319), codename: Sleepy Sunday Serenity
152
+ * Min threads: 5, max threads: 5
153
+ * Environment: development
154
+ * Listening on tcp://localhost:3000
155
+ Use Ctrl-C to stop
156
+ Started GET "/" for ::1 at 2016-12-01 18:22:09 +0900
157
+ Started GET "/" for ::1 at 2016-12-01 18:22:10 +0900
158
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM
159
+ "schema_migrations"
160
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM
161
+ "schema_migrations"
162
+ Processing by HomeController#top as HTML
163
+ Processing by HomeController#top as HTML
164
+ Rendering home/top.html.erb within layouts/application
165
+ Rendering home/top.html.erb within layouts/application
166
+ Rendered home/top.html.erb within layouts/application (5.0ms)
167
+ Rendered home/top.html.erb within layouts/application (2.5ms)
168
+ Completed 500 Internal Server Error in 398ms (ActiveRecord: 0.0ms)
169
+
170
+
171
+
172
+ ActionView::Template::Error (Permission denied @ utime_failed - C:/RubyWork/gate
173
+ book/tmp/cache/assets/sprockets/v3.0/2B/2BLEsUhwGIsUvJQ37HFD_Hf9qHpr1OHl2YeZ8X16
174
+ uzA.cache):
175
+ 3: <head>
176
+ 4: <title>Gatebook</title>
177
+ 5: <%= csrf_meta_tags %>
178
+ 6: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolin
179
+ ks-track' => true %>
180
+ 7: <%= javascript_include_tag 'application', 'data-turbolinks-track' => t
181
+ rue %>
182
+ 8: <style>/* 共通レイアウト ================================ */
183
+ 9: body {
184
+
185
+ app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html
186
+ _erb__2079029030_63889060'
187
+ Rendering C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action
188
+ _dispatch/middleware/templates/rescues/template_error.html.erb within rescues/la
189
+ yout
190
+ Rendering C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action
191
+ _dispatch/middleware/templates/rescues/_source.html.erb
192
+ Rendered C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_
193
+ dispatch/middleware/templates/rescues/_source.html.erb (7.5ms)
194
+ Rendering C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action
195
+ _dispatch/middleware/templates/rescues/_trace.html.erb
196
+ Rendered C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_
197
+ dispatch/middleware/templates/rescues/_trace.html.erb (5.0ms)
198
+ Completed 500 Internal Server Error in 2170ms (ActiveRecord: 0.0ms)
199
+
200
+
201
+ Rendering C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action
202
+ _dispatch/middleware/templates/rescues/_request_and_response.html.erb
203
+
204
+ Rendered C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_
205
+ dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.0ms)
206
+ ActionView::Template::Error (TypeError: オブジェクトでサポートされていないプロパ
207
+ ティまたはメソッドです。):
208
+ Rendered C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_
209
+ dispatch/middleware/templates/rescues/template_error.html.erb within rescues/lay
210
+ out (1052.5ms)
211
+ 3: <head>
212
+ 4: <title>Gatebook</title>
213
+ 5: <%= csrf_meta_tags %>
214
+ 6: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolin
215
+ ks-track' => true %>
216
+ 7: <%= javascript_include_tag 'application', 'data-turbolinks-track' => t
217
+ rue %>
218
+ 8: <style>/* 共通レイアウト ================================ */
219
+ 9: body {
220
+
221
+ app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html
222
+ _erb__2079029030_63889060'
223
+ Rendering C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action
224
+ _dispatch/middleware/templates/rescues/template_error.html.erb within rescues/la
225
+ yout
226
+ Rendering C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action
227
+ _dispatch/middleware/templates/rescues/_source.html.erb
228
+ Rendered C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_
229
+ dispatch/middleware/templates/rescues/_source.html.erb (7.5ms)
230
+ Rendering C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action
231
+ _dispatch/middleware/templates/rescues/_trace.html.erb
232
+ Rendered C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_
233
+ dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms)
234
+ Rendering C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action
235
+ _dispatch/middleware/templates/rescues/_request_and_response.html.erb
236
+ Rendered C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_
237
+ dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.5ms)
238
+ Rendered C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_
239
+ dispatch/middleware/templates/rescues/template_error.html.erb within rescues/lay
240
+ out (942.5ms)
241
+
242
+ ```