Questions tagged [compose-db]

DO NOT USE FOR THE ANDROID JETPACK COMPOSE (use [android-jetpack-compose] for those questions!) Compose is a Database as a Service (DBaaS) provider that offers cloud-based databases (MongoDB, Elasticsearch, RethinkDB, Redis, PostgreSQL).

94 questions
31
votes
7 answers

MongoSocketReadException: Prematurely reached end of stream (after a period of inactivity)

I get this error on a find call (default Java Driver) after a period of inactivity. I tried to add a manual heartbeat (writing to a capped collection), but it didn't help. I only get the issue while being connected to an instance on compose (i.e.…
Rhangaun
  • 1,430
  • 2
  • 15
  • 34
13
votes
1 answer

Restore a mongo DB from a compose.io backup?

If you download a compose.io backup of a mongodb instance and uncompress the .tar file you end up with .ns and extensions that are single digits. How do you restore the db from these?
Shwaydogg
  • 2,499
  • 27
  • 28
8
votes
0 answers

Socket closed abruptly during opening handshake: rabbitmq using nodejs connection fail

Error: Socket closed abruptly during opening handshake at TLSSocket.endWhileOpening (/app/node_modules/amqplib/lib/connection.js:258:17) at emitNone (events.js:91:20) at TLSSocket.emit (events.js:185:7) at endReadableNT…
Athulya
  • 181
  • 1
  • 13
6
votes
1 answer

Meteor consuming huge number of Mongo connections

We've been having this issue in prod for the past few weeks. Every few days, the number of connections to our compose.io Mongo db spikes to nearly 5000, which is the connection limit. There doesn't appear to be any specific trigger for this…
Marc
  • 1,812
  • 4
  • 23
  • 36
6
votes
1 answer

Local mongodb with Compose.io as replica set?

Basically, I'm considering this: A local MongoDB server backed up by Compose.io. So Compose handles HA, backups, etc - but I get the speed of a local MongoDB instance. Is this possible/sane? Would this actually solve the HA/backups problem, or…
Michael Cole
  • 15,473
  • 7
  • 79
  • 96
5
votes
1 answer

intermittent "connection reset by peer" sql postgres

After a period of inactivity, my go web service is getting a net.OpError with message read tcp x.x.x.x:52086->x.x.x.x:24414: read: connection reset by peer when executing the first postgres sql query. After the error, the subsequent requests will…
Nick
  • 61
  • 1
  • 4
5
votes
1 answer

Connecting to Compose.io MongoDB deployment using SSL and mongos through Mongoose.js

I'm using compose.io for hosting test and production mongodb databases and am attempting to connect through a node app using mongoose.js (which uses the standard nodejs mongodb driver under the hood). My connection options are as follows: var…
chas
  • 407
  • 4
  • 6
5
votes
0 answers

Connecting to remote mongodb quite slow

I have an website which is set up to use a MongoDB instance on compose.io. Everything is working ok, except for that my connection to compose.io and mongoDB takes about 1.2 seconds to connect. In my opinion this is quite slow, especially when…
Patrick Steenks
  • 612
  • 1
  • 11
  • 24
4
votes
1 answer

MongoImport Error: X509_STORE_add_cert:cert already in hash table

I am currently trying to import a group of JSON files containing data into my mongo database hosted on IBM Bluemix/Compose. I have a script that runs through the files creating and then running a mongoimport command to import the files into the…
CD-jS
  • 1,125
  • 1
  • 15
  • 32
4
votes
2 answers

Mongodb bulk Insert connection timeout

I have a bulk operation where I upsert 10000 items every 2 hours in my mongodb database. The code for that looks like this let bulk = models.Product.collection.initializeUnorderedBulkOp(); ... if (bulk.length > 0) { bulk.find({ …
PirateApp
  • 5,433
  • 4
  • 57
  • 90
3
votes
1 answer

Connecting golang mgo to mongo via ssl

I'm trying to setup mongo locally to test the setup described in https://www.compose.com/articles/connect-to-mongo-3-2-on-compose-from-golang/ "A Little Harder" section Mongo I have a working set of self signed credentials, and mongo setup. I've…
jimmiebtlr
  • 438
  • 4
  • 14
3
votes
2 answers

Open port on Google Cloud Shell

Update: The problem described in this question is no longer relevant as the limitation that caused this problem has been lifted. Feel free to create a new question may you encounter similiar issues but as far as I know, the problem I faced was…
3
votes
2 answers

How to monitor IBM Compose DB

I have an IBM Bluemix app. Bluemix created & deployed a Compose powered MongoDB for me. But I also have a seperate MongoDB deployment on Compose (http://compose.com). Problem is, the Bluemix created version of MongoDB deployment has some issue I…
somnathbm
  • 649
  • 1
  • 9
  • 19
3
votes
1 answer

Why am I getting this error when I run 'mup deploy': "build: You're not in a Meteor project directory"?

I'm attempting to deploy a meteor app to Digital Ocean and Compose.io and am getting this error when I run mup deploy: build: You're not in a Meteor project directory. I am in the meteor project directory.
Galen King
  • 772
  • 10
  • 18
3
votes
1 answer

What do I set MONGO_OPLOG_URL to in Meteor Up?

I have created a database and a user with oplog access in Compose.io. The URI I get looks like this: mongodb://:@lamppost.11.mongolayer.com:10022,lamppost.10.mongolayer.com:10024/cardmaker?replicaSet=set- Knowing…
Yeats
  • 2,112
  • 3
  • 30
  • 46
1
2 3 4 5 6 7