मैं एक dev PostgreSQL सर्वर सेट अप करने का प्रयास कर रहा हूं। यह चल रहा है और मैं कमांड लाइन से भूमिकाएं, टेबल इत्यादि बनाने में सक्षम हूं। लेकिन जब मैं खेलने का उपयोग कर विकास ने लागू करने का प्रयास, मैं निम्नलिखित त्रुटि मिलती है:PostgreSQL विकास: "PSQLException: FATAL: क्षमा करें, पहले से ही बहुत से ग्राहक"
org.postgresql.util.PSQLException: FATAL: sorry, too many clients already
मैं कनेक्ट करने में सक्षम हूँ और अगर मैं उद्देश्य पर एक सिंटैक्स त्रुटि में डाल दिया, यह वाक्य रचना त्रुटि देता है तो मुझे लगता है कि खेल पता डेटाबेस से कनेक्ट करने में सक्षम है। हालांकि, विकास सफलतापूर्वक लागू होने के बाद मुझे ऊपर दिखाई गई त्रुटि मिलती है।
मैं पोस्टग्रेएसक्यूएल प्रशासन में बहुत अच्छी तरह से ज्ञात नहीं हूं इसलिए मुझे यकीन नहीं है कि समस्या Play या my PostgreSQL स्थापना के साथ है या नहीं। मैंने बस मैक शेर के मैक पर हेरोकू के पोस्टग्रेस.एप का उपयोग करके इसे इंस्टॉल किया है।
यहाँ कंसोल के लिए लिखा जाता है:
! @6cnb0blpp - Internal server error, for request [GET /] ->
play.api.db.evolutions.InvalidDatabaseRevision: Database 'default' needs evolution! [An SQL script need to be run on your database.]
at play.api.db.evolutions.EvolutionsPlugin$$anonfun$onStart$1$$anonfun$apply$1.apply$mcV$sp(Evolutions.scala:427) ~[play_2.9.1.jar:2.0.4]
at play.api.db.evolutions.EvolutionsPlugin.withLock(Evolutions.scala:448) ~[play_2.9.1.jar:2.0.4]
at play.api.db.evolutions.EvolutionsPlugin$$anonfun$onStart$1.apply(Evolutions.scala:414) ~[play_2.9.1.jar:2.0.4]
at play.api.db.evolutions.EvolutionsPlugin$$anonfun$onStart$1.apply(Evolutions.scala:412) ~[play_2.9.1.jar:2.0.4]
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59) ~[scala-library.jar:0.11.3]
at scala.collection.immutable.List.foreach(List.scala:45) ~[scala-library.jar:0.11.3]
[error] c.j.b.h.AbstractConnectionHook - Failed to acquire connection Sleeping for 1000ms and trying again. Attempts left: 10. Exception: null
[error] c.j.b.h.AbstractConnectionHook - Failed to acquire connection Sleeping for 1000ms and trying again. Attempts left: 9. Exception: null
[error] c.j.b.h.AbstractConnectionHook - Failed to acquire connection Sleeping for 1000ms and trying again. Attempts left: 8. Exception: null
[error] c.j.b.h.AbstractConnectionHook - Failed to acquire connection Sleeping for 1000ms and trying again. Attempts left: 7. Exception: null
[error] c.j.b.h.AbstractConnectionHook - Failed to acquire connection Sleeping for 1000ms and trying again. Attempts left: 6. Exception: null
[error] c.j.b.h.AbstractConnectionHook - Failed to acquire connection Sleeping for 1000ms and trying again. Attempts left: 5. Exception: null
[error] c.j.b.h.AbstractConnectionHook - Failed to acquire connection Sleeping for 1000ms and trying again. Attempts left: 4. Exception: null
[error] c.j.b.h.AbstractConnectionHook - Failed to acquire connection Sleeping for 1000ms and trying again. Attempts left: 3. Exception: null
[error] c.j.b.h.AbstractConnectionHook - Failed to acquire connection Sleeping for 1000ms and trying again. Attempts left: 2. Exception: null
[error] c.j.b.h.AbstractConnectionHook - Failed to acquire connection Sleeping for 1000ms and trying again. Attempts left: 1. Exception: null
[error] application -
धन्यवाद!
मैंने उन सेटिंग्स को अपने application.conf में सेट कर दिया है लेकिन मैं अभी भी एक ही परिणाम के साथ समाप्त होता हूं। मैंने PlaygreSQL से अतीत में Play के साथ कनेक्ट किया है और मुझे यह समस्या कभी नहीं मिली है, मैं वास्तव में स्टंप हूं। – Ryan