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).

Filter by
Sorted by
Tagged with
0 votes
3 answers
5k views

How can I set TLS for Mongoose connection

I'm trying to migrate my mongo database from Compose to IBM Cloud Databases for Mongo and in their documnetations (https://www.compose.com/articles/exporting-databases-from-compose-for-mongodb-to-ibm-...
godzo101's user avatar
  • 237
2 votes
0 answers
453 views

How can I set database failover portal with Sequelize?

I am using sequelize to connect to a postgres db which is hosted on compose.io. const db = new Sequelize(DATABASE_URL, { logging: false, pool: { max: 15, min: 1, idle: 10000, ...
perrosnk's user avatar
  • 835
1 vote
0 answers
146 views

Compose Transporter throws error when collection_filters is set to sync data for current day from DocumentDB/MongoDB to file/ElasticSearch

I am using Compose Transporter to sync data from DocumentDB to ElasticSearch instance in AWS. After one time sync, I added following collection_filters in pipeline.js to sync incremental data daily: /...
Ritu's user avatar
  • 11
1 vote
3 answers
1k views

IBM Cloud Compose PostgresSQL FATAL: no pg_hba.conf entry for host

Provisioned an IBM Cloud Compose PostgreSQL instance. Then tried to connect the instance to the Watson Studio. Although establishing a connection works fine, when I try to save retraining ...
KosiB's user avatar
  • 1,086
0 votes
1 answer
30 views

Why is the "download_link" result from Compose for MySQL API set to "true" instead of a url?

With the Compose for MySQL api, when I query for the details of a logfile, a download link is not provided as it should, per the docs at https://www.compose.com/articles/the-ibm-cloud-compose-api/. ...
mdl1550's user avatar
0 votes
2 answers
45 views

Is there support of Cloud databases for Mobile Foundation Service in IBM Cloud?

Does Mobile Foundation Service in IBM Cloud Public support the new service Cloud Databases for Postgres instead of compose for Postgres?
Giancarlo Tupac Gutierrez's user avatar
0 votes
1 answer
287 views

how to split mongo DB document into multiple documents using compose transporter

I had a document like below I need to send this document to elasticsearch as 3 documents with title contains each of array and I am using compose transporter to send my documents to elasticsearch. ...
satya's user avatar
  • 152
1 vote
1 answer
1k views

Connecting to compose Janusgraph from Java for remote traversal

I am trying to connect to a remote compose-janusgraph server to create a graph and add vertices. Note that I don't have access to the server configurations or ability to change server settings. I am ...
Max Arbiter's user avatar
0 votes
1 answer
1k views

Weighted Average for nested aggregation in Elastic Search

I am trying to obtain the weighted average by aggregating a nested list. Each document has details of a single student, and the subjects vary across each student and each subject has different ...
User54211's user avatar
  • 121
0 votes
1 answer
65 views

Saving dates in Mongo via Compose.io vs. dates in Mongo via Meteor

In Meteor: Events.insert({ 'start': new Date(2018, 9, 5, 7, 0, 0, 0) }); In Meteor Mongo the saved date: { "start" : ISODate("2018-10-05T11:00:00.000+0000"), // UTC time } Browser will display ...
flimflam57's user avatar
  • 1,334
1 vote
1 answer
470 views

Could not get a Transport from the Transport Pool for host

I'm trying to write to an IBM Compose Elasticsearch sink from Spark Structured Streaming on IBM Analytics Engine. My spark code: dataDf .writeStream .outputMode(OutputMode.Append) .format("...
Chris Snow's user avatar
  • 23.9k
1 vote
1 answer
549 views

WARN Session: Error creating pool to /xxx.xxx.xxx.xxx:28730

I'm trying to connect to a ScyllaDB database running on IBM Cloud from Spark 2.3 running on IBM Analytics Engine. I'm starting the spark shell like so ... $ spark-shell --master local[1] \ --...
Chris Snow's user avatar
  • 23.9k
6 votes
1 answer
589 views

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 ...
Marc's user avatar
  • 1,832
0 votes
1 answer
473 views

How to index(elasticsearch) a specific collection of a specific db of mongodb using transporter?

I want to index only specific mongodb collection in elastic search using transporter. Mongodb server has multiple databases having multiple collections. I dont want to index entire database.
Lakshay Badak's user avatar
2 votes
1 answer
349 views

How to access oplog database on MongoDB on compose (IBM Cloud)

i am trying to setup a HA instance of rocket chat on IBM Cloud (Bluemix). My application nodes are running on Cloud Foundry while I use for the database MongoDB on compose. I followed this guide: ...
Patrick P.'s user avatar
0 votes
2 answers
2k views

MongoDB Connector for BI using compose.io

im trying to use the MongoDB Connector for BI on my cloud instance which runs on compose.io. This is the command im using: ./mongosqld --mongo-uri mongodb://%host%:%port% --mongo-username %myuser% --...
Alem Filli's user avatar
5 votes
1 answer
6k views

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 ...
Nick's user avatar
  • 61
0 votes
0 answers
66 views

Compose.io MongoDB memory usage uneven between data servers

I have a FeathersJS and Apollo graphql app that uses a Compose.io as the database. The portal servers have similar memory consumption but the data servers are very different (see screenshot below). A ...
sagannotcarl's user avatar
2 votes
1 answer
422 views

IBM Cloud - Compose for MySQL - Change sql_mode - to enable GROUP BY queries

I'm using the Compose for MySQL DB within my IBM Cloud CF app, however the current sql_mode settings for the DB DO NOT ALLOW ME me to run standard SQL queries using the GROUP BY statement. I ...
user9354812's user avatar
0 votes
1 answer
541 views

How to Connect Compose for PostgreSQL from IBM Cloud Functions?

I am using IBM Cloud Functions to convert the audio file into text and I am using IBM Watson speech to text service for that. Here I want to store the transcript to PostgreSQL Database. Is there any ...
Mdumanoj's user avatar
  • 517
1 vote
1 answer
3k views

Compose io cant connect to Mongo Compass

Using compose.io with a MongoDB it does have SSL. when copying the URI string i go into Compass and am prompted to fill in details from a string which I do, when trying to connect I get this error ...
Nicholas Ritson's user avatar
0 votes
1 answer
43 views

Issue in connecting mongodatabase

I am using mongoose version 4.13.6 and mongodb from compose, and below is my code for connecting to mongo database. mongoose.createConnection('mongodb://[user]:[pass]@[host1]:[port1],[host2]:[port2]/...
Kishore Indraganti's user avatar
0 votes
1 answer
221 views

Can I manage Compose for MySQL using workbench?

Here is my connection string: mysql://admin:RandomString@sl-us-south-1-portal.serverNumber.dblayer.com:MyPORT/compose Is the "RandomString" my password (obviously I changed it). Or what is that? ...
tjcinnamon's user avatar
0 votes
0 answers
297 views

Unable to get last_insert_id() from MySQL Compose DB

My spring-batch application generates the following error while trying to get "last_insert_id()" from Compose for MySQL database privided by IBM bluemix: org.springframework.dao....
Gilles's user avatar
  • 1
2 votes
1 answer
283 views

How to manage connections in compose for postgresql in bluemix?

We are using pgadmin with postgresql on bluemix and keep seeing connections from our web app and pgadmin just lingering. Is there a way to set postgresql on bluemix with a max connection time? Is ...
Johnson's user avatar
  • 133
2 votes
1 answer
350 views

Django doesn't support MySQL Group Replication

I'm using Compose for MySQL which uses MySQL 5.7 Group Replication When trying doing DB tests with Django 1.11.4 i get errors regarding the rollback_test (because it doesn't hold the requirement of ...
Yarh's user avatar
  • 925
1 vote
1 answer
192 views

Security / TLS support of Compose for Redis on IBM Bluemix Public?

I am thinking about using Compose for Redis on Bluemix Public but... In Bluemix catalog, there is the sentence: Compose's platform gives you a configuration pre-tuned for high availability and locked ...
Zdeněk's user avatar
  • 323
0 votes
1 answer
288 views

Where is the Compose Scylladb SSL certificate?

I'm trying to connect to my scylladb 1.7.4 instance using the connection string provided for me in the compose overview section of the management UI: $ cqlsh --ssl portal-xxxx.ibm-343.composedb.com ...
Chris Snow's user avatar
  • 23.9k
1 vote
1 answer
183 views

Openwhisk failing to call compose postgre sql

I have tried for more hours than I care to admit to get an openWhisk function to call a postgre sql datbase on Compose.io. Here is my code: My latest incarnation is this: function myAction(...
Chris Miyachi's user avatar
0 votes
1 answer
683 views

Using Python 3.6.2 to connect to MongoDB on IBM Bluemix

So I'm attempting connect to a MongoDB on Bluemix (Compose for MongoDB service) through Python 3.6.2 on my local machine using the following code: import json import urllib.request import pymongo ...
Jack Nelson's user avatar
3 votes
1 answer
5k views

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 ...
jimmiebtlr's user avatar
1 vote
1 answer
97 views

How to retrieve the APIKEY for a Compose database instance on Bluemix?

The Compose documentation describes how a backup can be initiated: export APIKEY=your_apikey_here export DEPLOYMENT=your_deployment_id curl -X POST -H "Authorization: Bearer $APIKEY" -H "Content-...
Chris Snow's user avatar
  • 23.9k
0 votes
1 answer
2k views

How to debug MongoError failed to connect

In the server logs after a process has been successfully connected to mongo via node 6.11.1 and mongoose 4.10.4 I started seeing this error: MongoError: failed to connect to server [aws-us-east-1-...
dylanjha's user avatar
  • 2,313
8 votes
0 answers
5k views

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

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 (...
Athulya's user avatar
  • 181
0 votes
1 answer
564 views

SequelizeHostNotFoundError on Cloud functions

I am trying to run sequelize on Google Cloud functions, and trying to connect to a remote db hosted on compose.com, but I am getting this error ` SequelizeHostNotFoundError: getaddrinfo ENOTFOUND ...
perrosnk's user avatar
  • 835
0 votes
1 answer
2k views

compose - how to create a PostgreSQL user with superuser or replication roles?

I'm trying to use compose transporter to replicate changes from postgres to rabbitmq: var source = postgres({   "uri": "postgres://admin:****@****.dblayer.com:17596/compose"   "debug": true,   "tail":...
Chris Snow's user avatar
  • 23.9k
0 votes
1 answer
46 views

Custom extension on Compose.IO PostgreSQL cluster

The Compose.IO postgresql documentation describes how to install an extension from a list of available extensions. I would like to install the decoderbufs extension, but this extension is not in the ...
Chris Snow's user avatar
  • 23.9k
0 votes
1 answer
627 views

How to do port translation when using an address translation map with cassandra?

I'm trying to connect to a scylladb cluster on compose using the Address Translation Map. I can only get the code working if I hard code the port when instantiating the Cluster instance: from ...
Chris Snow's user avatar
  • 23.9k
1 vote
1 answer
1k views

Setting up mongodb config in Laravel with Compose.io

Its my first time use compose.io as my mongodb hosting. I was trying to configure compose.io mongodb with Laravel but ended up this error: ConnectionTimeoutException in Collection.php line 432: No ...
arjayads's user avatar
  • 553
1 vote
2 answers
1k views

Unable to insert records using insertMany using compose for mongodb

I am using nodejs to connect and insert records in compose for mongodb.I am getting the below error when I try to use insertMany and save records. (node:10140) UnhandledPromiseRejectionWarning: ...
Monesh's user avatar
  • 21
1 vote
1 answer
1k views

Connect SpringBoot to MySQL hosted in the cloud requires SSL

I am successful using MySQL Workbench to do full crud on a Bluemix hosted MySQL Compose service. I then built a simple Microservice with SpringBoot on my local laptop with Apache Derby... successful. ...
xpagesbeast's user avatar
4 votes
1 answer
3k views

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 ...
CD-jS's user avatar
  • 1,125
0 votes
1 answer
665 views

Failed to connect to mongodb in Bluemix, failed to find certificate path

I am unable to connect to my Compose MongoDB service from my deployed bluemix app. It seems that it cannot find the necessary certificate. I had expected that it would pick that up directly from ...
DungeonTiger's user avatar
0 votes
1 answer
152 views

Compose-for-mongodb Bluemix connection with pencilblue

Currently, I am using Bluemix to deploy and host a website with PencilBlue. My issue lies in the connection of a storage service "compose-for-mongo" and the pencilblue framework. This connection is ...
Joel Almeida's user avatar
3 votes
2 answers
5k views

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 ...
Wilco Bakker's user avatar
1 vote
2 answers
658 views

How can we access Bluemix hosted "Compose for MongoDB" service from "outside"?

Situation: Have created today a new Compose for MongoDB Service instance in Bluemix Need: I have to access this MongoDB DIRECTLY with tools (eg. Mongo Managemant Studio Pro, mongo.exe, etc.) for ...
René Baron's user avatar
0 votes
1 answer
638 views

Mongo SSL config with CA cert only works for rails console, not rails server

I am trying to configure a Rails 4.2.6 app to connect over SSL to a MongoDB cluster on compose.io. The app uses the mongo 2.4.1 and mongoid 5.1.5 gems. Compose.io MongoDB clusters use self-signed SSL ...
Jon Ekdahl's user avatar
0 votes
2 answers
596 views

Trouble Connecting to compose.io mongodb instance with mongoose

I am using these instructions: https://help.compose.com/docs/connecting-to-mongodb#mongoose-node-and-compose This is the connection string they gave me: MONGO_URI=mongodb://*****:******@aws-us-west-...
d4rklit3's user avatar
  • 417
0 votes
1 answer
655 views

Reduce the memory usage and the FAILCNT for MongoDB (compose)

I have a Compose.io MongoDB deploy. The deployment has a database (11.5 GB) with 18 collections and documents: Collection Documents Size a.. 195 168 KB b.. 39 ...
jay's user avatar
  • 1,463
0 votes
2 answers
1k views

Node, Mongoose connection to IBM Bluemix Compose for Mongodb

How do you use Mongoose: https://github.com/Automattic/mongoose ? The example here: https://github.com/IBM-Bluemix/compose-mongodb-helloworld-nodejs worked great. Here is a simplified snippet of the ...
Powell Quiring's user avatar