Tôi có một ứng dụng RoR hoạt động trên máy tính cục bộ của mình, nhưng khi tôi gửi nó cho heroku, nó bị hỏng. Nhật ký lỗi đưa ra lỗi H10 và cho biết:
2012-11-21T15:26:47+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.2/lib/new_relic/control/instance_methods.rb:95:in `start_agent'
2012-11-21T15:26:48+00:00 heroku[web.1]: State changed from starting to crashed
2012-11-21T15:26:48+00:00 heroku[web.1]: Process exited with status 1
2012-11-21T15:26:59+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=xxx.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes=
2012-11-21T15:27:00+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=xxx.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes=
2012-11-21T15:30:08+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=xxx.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes=
2012-11-21T15:30:08+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=xxx.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes=
2012-11-21T15:30:59+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=xxx.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes=
2012-11-21T15:31:19+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=xxx.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes=
2012-11-21T15:31:19+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=xxx.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes=
2012-11-21T15:32:08+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=xxx.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes=
2012-11-21T15:32:08+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=xxx.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes=
Chỉnh sửa:
2012-11-22T10:00:58+00:00 app[web.1]:
2012-11-22T10:00:59+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=xxx.herokuapp.com fwd= dyno=web.1 queue=0 wait=0ms connect=1ms service=26ms status=200 bytes=0
Có ai đã có điều này trước đây, và biết những gì có thể gây ra vấn đề? Tôi không thể tìm ra giải pháp.
Cảm ơn.
Có lỗi tương tự vài tháng trước. Chỉ cần bắt đầu ứng dụng HEROKU mới, và nó giúp. Tôi không có vẻ như bạn đã phá vỡ dyno trong hồ bơi dyno.
– Dương Bích Ðào 17:05:04 21/11/2012Thật không may điều này đã không giải quyết vấn đề của tôi.
– Phan Bích Hạnh 17:45:30 21/11/2012Có điều gì bạn cần làm để định cấu hình Relic mới trên Heroku, hoặc có lẽ trong ứng dụng của bạn không? (NewRelic là phần mềm giám sát ứng dụng và máy chủ, vì vậy có thể những gì bạn đang thấy là NewRelic đang nói rằng "Ứng dụng đã bị sập"). Ngoài ra, đây là một bài viết SO khác - xem hướng dẫn trong câu trả lời.
– Nguyễn Mai Khanh 19:53:10 21/11/2012Cảm ơn đã trả lời. Tôi dường như vẫn không thể vượt qua vấn đề này. Về liên kết mà bạn đã đăng, tôi muốn chỉ ra rằng viên ngọc Heroku bị mất giá và đã được chuyển từ SQLite3 sang PostgreQuery.
– Nguyễn Uyên Minh 10:03:25 22/11/2012Hãy thử điều này: heroku config: thêm BUILDPACK_URL = github.com/joelcogen/heroku-buildpack-rails-unicorn-nginx
– Đỗ Sỹ Ðan 20:24:19 29/08/2014