I am trying to install PostgreSQL on my micro Amazon EC2 instance through the commands:
sudo su
yum install postgresql postgresql-server postgresql-devel postgresql-contrib postgresql-docs
except it returns the following error message:
yum install postgresql postgresql-server postgresql-devel postgresql-contrib postgresql-docs
Loaded plugins: amazon-id, rhui-lb, security
Setting up Install Process
https://download.postgresql.org/pub/repos/yum/9.3/redhat/rhel-6-x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 407"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: pgdg93. Please verify its path and try again
I have been trying to figure out the cause of this error to no prevail, could anyone shine some light on potential problems on my instance that I could try correcting?
Thank you in advance,
Try out the steps here. This should work
https://wiki.postgresql.org/wiki/YUM_Installation
Related
I have set up the database on Mongodb Atlas and have connected to the database via application however it is not connecting to the database, I have tried using the Mongo shell also
I have tried to set up a new connection thinking it may be a corrupt file on my project but it still has the same issue. I also tried to run:
sudo apt update
sudo apt install -y mongodb
sudo systemctl status mongodb
but i get:
dpkg: error processing package mongodb (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mongodb-server
mongodb
likewise if i try sudo service mongodb restart it then displays:
Tue Apr 2 21:16:28.214 Error: Invalid port number "//testdb-sc1hr.mongodb.net" in connection string "mongodb+srv://testdb-sc1hr.mongodb.net/cookbook" at src/mongo/shell/mongo.js:134
exception: connect failed
I have tried using sudo apt remove but i also get
invoke-rc.d: initscript mongodb, action "start" failed.
dpkg: error processing package mongodb-server (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mongodb:
mongodb depends on mongodb-server (>= 1:2.4.1-2); however:
Package mongodb-server is not configured yet.
Im very new to this and i feel like im just going round in circles now.
I have also tried connecting with mongodb compass but it also displays "Authenication Failed"
Im not sure what else to try
I'm trying to install Postgres 11 on an EC2 CentOS 7 server but can't get past the Postgres yum repo. I try to install the repo:
yum install https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_64/pgdg-centos11-11-2.noarch.rpm
and get [Errno 14] HTTPS Error 404 - Not Found for the URL https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-2-x86_64/repodata/repomd.xml.
The error is correct - that URL does NOT exist. rhel-2* doesn't exist in https://download.postgresql.org/pub/repos/yum/11/redhat/. How can I work around what appears to be a yum definition bug? Is there a more valid mirror somewhere?
I was having the same problem on Amazon Linux 2.
This worked for me:
sudo rpm -Uvh https://yum.postgresql.org/11/redhat/rhel-7-x86_64/pgdg-centos11-11-2.noarch.rpm
sudo sed -i "s/rhel-\$releasever-\$basearch/rhel-7.5-x86_64/g" "/etc/yum.repos.d/pgdg-11-centos.repo"
sudo yum install postgresql11
Found the correct 2nd statement here:
https://installvirtual.com/how-to-install-postgresql-11-on-amazon-ec2-amazon-linux/
I am using Debian 7 amd64, sensu (version 0.28.4-1).
I install sensu-plugins through a proxy with the command:
/opt/sensu/embedded/bin/gem install sensu-plugins-redis --user-install --no-document -p http://myproxy:3128 --verbose -s https://rubygems.org/
But have an error:
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - send(2)
When I try to directly install it in a server, which have directly internet connection, everything is successful.
I don't know why.
I also find key work: install sensu-plugins by offline package, but not have recommendation.
Please help me, thanks so much.
I am trying to install PostgreSQL 9.3 on CentOS 6.5 with command:
rpm -i https://download.postgresql.org/pub/repos/yum/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-2.noarch.rpm
But I got an error message:
curl: (35) SSL connect error
error: skipping https://download.postgresql.org/pub/repos/yum/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-2.noarch.rpm - transfer failed
Please help!
please also follow this steps :
1- first download rpm file :
wget https://download.postgresql.org/pub/repos/yum/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-2.noarch.rpm
2- then install it :
rpm -ivh pgdg-centos93-9.3-2.noarch.rpm
what is the result of these command?
I was trying to install PostgreSQL-9.3 and postgis-2.1 using this command
sudo apt-get install postgresql postgresql-contrib postgis postgresql-9.3-postgis-2.1
I got this error
The PostgreSQL server failed to start. Please check the log output:
2016-03-18 10:54:56 IST FATAL: private key file "/etc/ssl/private/ssl-cert-snakeoil.key" has group or world access
2016-03-18 10:54:56 IST DETAIL: File must be owned by the database user or root, must have no write permission for "group", and must have no permissions for "other".
I searched for the error and got some solutions from the below links
PostgreSQL won't start: "server.key" has group or world access
I tried the solution but this gave me error permission denied..
and the second one I tried was
chmod 640 /etc/ssl/private/ssl-cert-snakeoil.key
this gave error operation not permitted. Please help me with this..