# External MongoDB With snaps Ubuntu 18.04

**URL:** <https://forums.rocket.chat/t/external-mongodb-with-snaps-ubuntu-18-04/12710>\
**Category:** Community Support\
**Created:** [November 29, 2021, 10:11pm UTC](https://forums.rocket.chat/t/external-mongodb-with-snaps-ubuntu-18-04/12710 "2021-11-29T22:11:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![principemestizo](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@principemestizo](https://forums.rocket.chat/u/principemestizo)\
**Post date:** [November 29, 2021, 10:11pm UTC](https://forums.rocket.chat/t/external-mongodb-with-snaps-ubuntu-18-04/12710/1 "2021-11-29T22:11:50Z")

</div>

Hello. I am trying to have an external database with the [mongodb.com](http://mongodb.com) cloud

I follow the documentation: [Snaps - Rocket.Chat Docs](https://docs.rocket.chat/quick-start/installing-and-updating/snaps#how-do-i-change-rocket.chat-port-mongo_url-and-mongo_oplog_url-in-my-) snap

But I get an error in console:

error: cannot perform the following tasks:

- Run configure hook of “rocketchat-server” snap (run hook “configure”: “mongodb://USER:PASSWORD@cluster0.rxpvg.mongodb.net:27017/DATABASE?authSource=admin” is not a valid url)

I have tried a lot of combinations. I manage to connect to MongoDb Compass with:  
mongodb+srv://USER:PASSWORD@cluster0.rxpvg.mongodb.net/DATABASE
