2013-06-18 8 views
7

क्यों क्रैश कर रहा है, मैं थोड़ी देर के लिए इस पर चारों ओर खोज कर रहा हूं और मेरी स्थिति में लागू होने वाली कुछ भी नहीं मिल सकती है। मैं इन लॉगों पर घूर रहा हूं और मैं नहीं देख सकता कि समस्या क्या है।हेरोकू कोड = एच 10 desc = "ऐप क्रैश हो गया" - यह पता नहीं लगा सकता कि यह

यह पहले तैनाती के दौरान हुआ था, लेकिन हमेशा खुद को हल करना प्रतीत होता था। अब यह सिर्फ अपने (कोई तैनाती नहीं) पर हुआ और मैं इससे बाहर नहीं निकल सकता। ऐप के पिछले संस्करण पर वापस लौटने का प्रयास किया, लेकिन ऐसा प्रतीत होता है कि मैं अटक गया हूं। मैंने dyno को रीसेट कर दिया है और एक रेक डीबी भी किया है: माइग्रेट करें।

लॉग में कुछ दोहराव वाली चीजें हैं, लेकिन मुझे नहीं पता कि उनमें से क्या पढ़ना है। किसी को भी कोई विचार है कि समस्या कहां है? किसी भी मार्गदर्शन की काफी सराहना की जाएगी। नीचे दिए गए लॉग देखें।

Jun 18 15:51:54 snapclass-production app/heroku-postgres: source=HEROKU_POSTGRESQL_WHITE measure.current_transaction=1077 measure.db_size=6153016bytes measure.tables=0 measure.active-connections=3 measure.waiting-connections=0 measure.index-cache-hit-rate=0.99981 measure.table-cache-hit-rate=0.99349 
Jun 18 15:52:06 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="46.165.195.139" dyno= connect= service= status=503 bytes= 
Jun 18 15:52:07 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="178.255.152.2" dyno= connect= service= status=503 bytes= 
Jun 18 15:52:12 snapclass-production app/postgres: [47-1] [] LOG: checkpoint starting: time 
Jun 18 15:52:13 snapclass-production app/postgres: [48-1] [] LOG: checkpoint complete: wrote 0 buffers (0.0%); 0 transaction log file(s) added, 0 removed, 0 recycled; write=0.000 s, sync=0.000 s, total=0.334 s; sync files=0, longest=0.000 s, average=0.000 s 
Jun 18 15:52:51 snapclass-production app/heroku-postgres: source=HEROKU_POSTGRESQL_WHITE measure.current_transaction=1077 measure.db_size=6153016bytes measure.tables=0 measure.active-connections=3 measure.waiting-connections=0 measure.index-cache-hit-rate=0.99994 measure.table-cache-hit-rate=0.99997 
Jun 18 15:53:06 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="95.141.32.46" dyno= connect= service= status=503 bytes= 
Jun 18 15:53:48 snapclass-production app/heroku-postgres: source=HEROKU_POSTGRESQL_WHITE measure.current_transaction=1077 measure.db_size=6153016bytes measure.tables=0 measure.active-connections=3 measure.waiting-connections=0 measure.index-cache-hit-rate=0.97826 measure.table-cache-hit-rate=0.99999 
Jun 18 15:54:06 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="95.211.217.68" dyno= connect= service= status=503 bytes= 
Jun 18 15:54:17 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="205.197.158.210" dyno= connect= service= status=503 bytes= 
Jun 18 15:54:17 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=www.snapclass.com fwd="205.197.158.210" dyno= connect= service= status=503 bytes= 
Jun 18 15:54:25 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/ host=demosidney.snapclass.com fwd="202.46.61.33" dyno= connect= service= status=503 bytes= 
Jun 18 15:54:44 snapclass-production heroku/web.1: State changed from crashed to starting 
Jun 18 15:54:44 snapclass-production app/heroku-postgres: source=HEROKU_POSTGRESQL_WHITE measure.current_transaction=1077 measure.db_size=6153016bytes measure.tables=0 measure.active-connections=3 measure.waiting-connections=0 measure.index-cache-hit-rate=0.98897 measure.table-cache-hit-rate=0.99087 
Jun 18 15:54:48 snapclass-production heroku/web.1: Starting process with command `bundle exec thin start -R config.ru -e $RAILS_ENV -p 50180` 
Jun 18 15:55:40 snapclass-production app/heroku-postgres: source=HEROKU_POSTGRESQL_WHITE measure.current_transaction=1077 measure.db_size=6153016bytes measure.tables=0 measure.active-connections=3 measure.waiting-connections=0 measure.index-cache-hit-rate=0.99926 measure.table-cache-hit-rate=0.99996 
Jun 18 15:55:50 snapclass-production heroku/web.1: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch 
Jun 18 15:55:50 snapclass-production heroku/web.1: Stopping process with SIGKILL 
Jun 18 15:55:51 snapclass-production heroku/web.1: Process exited with status 137 
Jun 18 15:55:51 snapclass-production heroku/web.1: State changed from starting to crashed 
Jun 18 15:55:52 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/ host=demosidney.snapclass.com fwd="119.63.193.130" dyno= connect= service= status=503 bytes= 
Jun 18 15:55:52 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/snapclasses/sat-prep-math/register host=www.snapclass.com fwd="173.199.115.115" dyno= connect= service= status=503 bytes= 
Jun 18 15:55:53 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="23.21.36.78" dyno= connect= service= status=503 bytes= 
Jun 18 15:55:54 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="23.22.98.102" dyno= connect= service= status=503 bytes= 
Jun 18 15:55:54 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="91.109.115.41" dyno= connect= service= status=503 bytes= 
Jun 18 15:56:06 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="174.34.224.167" dyno= connect= service= status=503 bytes= 
+0

काम आप Heroku की सहायता से संपर्क करने का प्रयास किया है? – mor

+0

अब उनकी समर्थन टीम तक पहुंचने का एक अच्छा तरीका प्रतीत नहीं होता है। मुझे केवल [क्रिटिकल सपोर्ट सर्विस] (https://www.heroku.com/critical) के लिए एक पृष्ठ दिखाई देता है। अधिकांश चीजें वापस [सहायता] (https://help.heroku.com/) दस्तावेज़ों को निर्देशित करती हैं। आप टिकट जमा करने में सक्षम होते थे, लेकिन ऐसा नहीं लगता कि क्रिटिकल सपोर्ट कुछ अतिरिक्त सेवा है। तो मैं कुछ मदद के लिए अपने दस्तावेज़ों से गुजर चुका हूं और खाली आ गया हूं, लेकिन उनके महत्वपूर्ण समर्थन से संपर्क नहीं किया है। – mgreich

उत्तर

16

निम्नलिखित का प्रयास करें कदम: मिनट की

- git push heroku master # if not done 
- heroku run rake db:migrate 
- heroku restart 

प्रतीक्षा जोड़ी ...

+4

'हेरोकू रीस्टार्ट' यह मेरे PHP ऐप के लिए तय किया गया था। धन्यवाद! –

+4

'heroku restart' ने तुरंत मेरे सिनात्रा ऐप को ठीक किया। आपका बहुत बहुत धन्यवाद। – Julian

+0

मुझे रेक कमांड नहीं मिल रहा है – garima

3

एक Heroku खाता

$heroku create 

बनाने के लिए अपना Git configration सत्यापित करने के लिए अच्छी तरह से है

$git remote -v 

एक मौजूदा अनुप्रयोग

$heroku git:remote -a herokuapp-name 

धक्का करने के लिए के साथ एक Git रेपो संबद्ध करें

$git push heroku master 

महारत हासिल करने के काम करने के लिए आप उत्पादन डेटाबेस में माइग्रेट करना होगा अपने डेटाबेस प्राप्त करने के लिए

$heroku run bundle exec rake db:migrate 

फिर

पुनरारंभ करें

फिनली आपके स्थान पर ब्राउज़ करें

0

आपको स्थानीय रूप से अपनी संपत्तियों को संकलित करने की आवश्यकता है। मैं आमतौर पर

bundle exec rake assets:precompile 

चलाने के लिए और उसके बाद के लिए प्रतिबद्ध और Heroku करने के लिए धक्का।

0

मेरे मामले में यह था, क्योंकि मैं हार्डकोड था बंदरगाह इस्तेमाल किया जा करने के लिए,

मैं इस का उपयोग कर बदल गया है, और यह

app.listen(process.env.PORT || 3000); 
संबंधित मुद्दे

 संबंधित मुद्दे