<p>I'm trying to install the countly application on k8s. 
Countly needs mongodb to be able to write the data and I'm trying to configure the connection string. </p>

<pre><code>      - name: COUNTLY_CONFIG_API_MONGODB
        value: "mongodb://mongo-mongodb-statefulset.mongo-mongodb-statefulset:27017/countly?mongodb-0"
</code></pre>

<p>currently when i going to see the log on the <strong>mongodb</strong> pod  it said <code>waiting for connections on port 27017</code> </p>

<p>however when i watch the log on the countly pod i got</p>

<pre><code>2020-04-05T21:52:10.289Z: ERROR [db:read]   Error reading plugins {"name":"findOne","args":[{"_id":"plugins"},null]} MongoParseError: Incomplete key value pair for option {"name":"MongoParseError"}
2020-04-05T21:52:10.290Z: ERROR [db:read]   Error reading plugins {"name":"findOne","args":[{"_id":"plugins"},null]} MongoParseError: Incomplete key value pair for option {"name":"MongoParseError"}
2020-04-05T21:52:10.290Z: ERROR [db:write]  Error writing sessions_ {"name":"replaceOne","args":[{"_id":"16aCG-ceXPidlM5yDvoJn4wBRQGTy"},{"_id":"16aCG-ceXPidlM5yDvoJn4wBRQGTy","session":"{\"cookie\":{\"originalMaxAge\":86400000,\"expires\":\"2020-04-06T21:52:10.290Z\",\"secure\":false,\"httpOnly\":true,\"path\":\"/\"},\"csrfSecret\":\"NmOJ6Tki4LKeonLCborIYVxL\"}","expires":"2020-04-06T21:52:10.290Z"},{"upsert":true},null]} MongoParseError: Incomplete key value pair for option {"name":"MongoParseError"}
MongoParseError: Incomplete key value pair for option
</code></pre>

<p>do you know how i can test my connection string ? </p>

<p><em>i'dont have access to a terminal :(</em> </p>

morla
<p>The error says <code>Incomplete key value pair for option</code>, that's because you have <code>?mongodb-0</code> in the end which is treated as a key, but it doesn't have a value. Just remove it and it should work assuming the address itself is valid.</p>
