Mongodump: Error parsing command line: unrecognised option '--uri' - linux

I am trying to achieve a database dump using this command:
mongodump --uri
mongodb+srv://ACC_NAME:PASSWORD#cluster0.fklgt.mongodb.net/DATABASE_NAME
But, I keep getting this error:
Error parsing command line: unrecognised option '--uri'
CONTEXT:
I have done this several times before on my local machine. And now I am attempting to do this on a VPS where I am installing mongodb from scratch.
I tried installing it following the official documentation until I reached this step:
sudo apt-get install -y mongodb-org
Which throws this error:
E: Unable to locate package mongodb-org
After doing some research, I have found this stackoverflow question where most answers say that I should just:
At first try with this command: sudo apt-get install -y mongodb
This is the unofficial mongodb package provided by Ubuntu and it is
not maintained by MongoDB and conflict with MongoDB’s offically
supported packages.
So I did exactly that, and the rest is what I explained earlier in this post.
mongo --version
MongoDB shell version: 2.6.10
mongod --version
db version v2.6.10
hostnamectl
Operating System: Ubuntu 16.04.7 LTS
Kernel: Linux 4.4.0-210-generic
Architecture: x86-64

Related

Error "No package postgresql12-server available" how to install postgres sql on oracle linux

I am trying to install postgress on oracle linux (checked on oracle linux 7.5 and 6.8) using the following command. ( https://www.postgresql.org/download/linux/redhat/ )
sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
But when I run this command it takes some time and gives following error.
No package postgresql12-server available
Error: Nothing to do
Then I tried `yum install postgressql-server. Then it gives error.
No package postgressql-server available
I can use docker and run it from a docker container. But I found out it is only for dev and testing only.
I tried with different versions of postgres and same issue occurs.
can someone point out what is the issue here. I did find so much but still couldnt find a solution.

Missing dependency installing mongodb in openSUSE linux

How can I install MongoDB in openSUSE tumbleweed I have tried
sudo zypper install mongodb
and I get the following output:
Problem: nothing provides 'libboost_program_options.so.1.76.0()(64bit)' needed by the to be installed mongodb-server-3.6.8-4.46.x86_64
while I already have the following packages installed:
libboost_program_options-devel
libboost_program_options1_79_0
libboost_program_options1_79_0-devel
Anyone with solutions to this?

PostgreSQL on Elastic Beanstalk (Amazon Linux 2)

With former generation of Amazon Linux, all I needed to do is add the following in .ebextensions in order to use PostgreSQL:
packages:
yum:
postgresql93-devel: []
Now when I deploy on EB with the following platform:
Python 3.7 running on 64bit Amazon Linux 2/3.0.0
I get the following error on deployment:
[ERROR] Error occurred during build: Yum does not have postgresql93-devel available for installation
Therefore it is impossible to deploy as I need to connect to a PostgreSQL database in RDS.
What config in .ebextensions do I need to do?
The following works:
packages:
yum:
amazon-linux-extras: []
commands:
01_postgres_activate:
command: sudo amazon-linux-extras enable postgresql10
02_postgres_install:
command: sudo yum install -y postgresql-devel
postgresql93-devel is pretty old. The yum PostgreSQL repository starts at 9.5. Depending on your needs you may want to upgrade to at least 9.5. PostgreSQL 12 is the latest production release.
EDIT
As to the comment #jordanm made - that's correct, the AWS Linux 2 environment does have PostgreSQL 9.2.24 available. If you're ok with that version then you can just install postgresql-devel. Change your .ebextensions to just run:
packages:
yum:
postgresql-devel: []
This will install the devel package for 9.2.24.
If you'd like something a bit newer, it's apparently a bunch harder. I was unable to get this to work for the devel package. If you change your .ebextensions to contain something like (not tested!):
container_commands:
command: 'amazon-linux-extras install -y postgresql9.6'
Then you'll get PostgreSQL 9.6 but it does not appear to have the devel package available.
It doesn't look possible to use the RPM's from https://yum.postgresql.org/ as AWS Linux 2 is not supported. Trying CentOS or RHEL gives an error.
Is 9.2 usable for your environment?
Something that helped me with Amazon Linus 1, is the fact that I didn't need to install Postgres at all when plugging in a RDS service and specifying Postgres as the driver. It's just a thought for people having this problem. But maybe just try to not explicitly install Postgres.
I haven't validated which version will be installed by default.
This configuration works fine with the ElasticBeanstalk environment (Python 3.6 running on 64bit Amazon Linux). After this, I was able to install psycopg2 with requirements.txt
packages:
yum:
libicu-devel: []
commands:
01_postgres_libs:
command: rpm -ivh --force https://yum.postgresql.org/10/redhat/rhel-6.9-x86_64/postgresql10-libs-10.7-1PGDG.rhel6.x86_64.rpm
02_postgres_install:
command: rpm -ivh --force https://yum.postgresql.org/10/redhat/rhel-6.9-x86_64/postgresql10-10.7-1PGDG.rhel6.x86_64.rpm
03_symink_pg_config:
command: sudo ln -sf /usr/pgsql-10/bin/pg_config /usr/bin/pg_config
04_postgres_devel:
command: sudo rpm -ivh --force https://yum.postgresql.org/10/redhat/rhel-6.9-x86_64/postgresql10-devel-10.7-1PGDG.rhel6.x86_64.rpm

Installing mysql cluster on Ubuntu

Mysql supposedly provides an APT repository for installing mysql cluster
https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/#repo-qg-apt-cluster-install
My understanding is that in order to use this repository I need to install the mysql-apt-config package, which I have done:
sudo dpkg -i mysql-apt-config_0.8.4-1_all.deb
However when I try to run the command:
sudo apt-get install mysql-cluster-community-server
I get this error:
E: Unable to locate package mysql-cluster-community-server
Any ideas why I get this?
Also, has anyone else installed mysql cluster using any other methods that you can recommend?

Installing RPostgreSQL on Linux

When I try on linux in R
install.packages('RPostgreSQL')
it fails with unspecified errors:
Warning message:
In install.packages("RPostgreSQL") :
installation of package ‘RPostgreSQL’ had non-zero exit status
I tried to solve problem with:
sudo apt-get install postgresql-server-dev-8.4 for postgresql version 8.4.
but it doesn't seems to work.
sudo: apt-get: command not found
I have PostgreSQL 9.1.11 version.
Read the configure log.
You most likely "merely" forgot to read the README and DESCRIPTION and other documentation telling you to do
sudo apt-get install libpq-dev
We develop this on, inter alia, Debian/Ubuntu systems so can be more than sure that it works there.

Resources