Talk deployment in Microsoft Azure Cloud


#1

Hi there,

does anyone of you have some experience in deploying the Talk project in Microsofts Cloud Azure and is willing to share some insights?

What needs to be done? Which services in Azure are you using? Are there some problems with CosmosDB (which seems to be needed since there is no plain MongoDB available) or is it ok to run MongoDB in a docker container.

Best,
Simon


#2

No experience at all? No one?


#3

Hi Simon,

Talk is completely dockerized, so you should be able to deploy on any cloud provider, including Azure. Our team hasn’t previously done Azure deploys, but you should be able to follow our docker playbook (https://docs.coralproject.net/talk/installation-from-docker/) and get all the services, including MongoDB setup.

Best,
Jeff


#4

Hi Jeff,

thanks for your support. I run into the following problem during startup:

{ MongoError: 'text' is not supported
    at Function.MongoError.create (/root/talk/node_modules/mongodb-core/lib/error.js:31:11)
    at /root/talk/node_modules/mongodb-core/lib/connection/pool.js:497:72
    at authenticateStragglers (/root/talk/node_modules/mongodb-core/lib/connection/pool.js:443:16)
    at Connection.messageHandler (/root/talk/node_modules/mongodb-core/lib/connection/pool.js:477:5)
    at TLSSocket.<anonymous> (/root/talk/node_modules/mongodb-core/lib/connection/connection.js:331:22)
    at emitOne (events.js:116:13)
    at TLSSocket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at TLSSocket.Readable.push (_stream_readable.js:208:10)
    at TLSWrap.onread (net.js:594:20)
  name: 'MongoError',
  message: '\'text\' is not supported',
  _t: 'OKMongoResponse',
  ok: 0,
  code: 67,
  errmsg: '\'text\' is not supported',
  '$err': '\'text\' is not supported' }
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "start:development" exited with 1.
[nodemon] app crashed - waiting for file changes before starting...

After some research, it seems that the Azure Cosmos DB support does not support $text.
The documentation says

Not supported. Use $regex instead

Is this something I can fix by my own? Would it still work if I change it to $regex?

I guess running Mongo in a docker container for production is no option because of missing automatic backup, recovery etc.

Best,
Simon


#5

Hi Simon! Unfortunately we don’t support Cosmos DB - you can certainly used Mongo hosted on Azure (https://docs.mongodb.com/ecosystem/platforms/windows-azure/) or you can used a separate hosted Mongo, like Atlas (https://www.mongodb.com/cloud/atlas).