Hello all,
I got past the yum install, ran initdb but running into errors when starting service. Do you have to login as user postgres to start the service? THANKS
I am on RHEL 6.5 and don't know the postgres user password.
service postgresql9.4 start
postgresql9.4: unrecognized service
-bash-4.1$ service postgresql start
postgresql: unrecognized service
-bash-4.1$ sudo passwd postgres
[sudo] password for postgres:
Sorry, try again.
[sudo] password for postgres:
Sorry, try again.
[sudo] password for postgres:
sudo: 2 incorrect password attempts
-bash-4.1$ service postgresql-9.4 restart
Stopping postgresql-9.4 service: [ OK ]
Starting postgresql-9.4 service: [FAILED]
-bash-4.1$ vi /var/lib/pgsql/9.4/pgstartup.log
On Thu, Oct 22, 2015 at 4:11 PM, Adrian Klaver <adrian.klaver@xxxxxxxxxxx> wrote:
On 10/22/2015 01:05 PM, anj patnaik wrote:
bash-4.1$ sudo yum install
http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-redhat94-9.4-1.noarch.rpm
Loaded plugins: security
Setting up Install Process
pgdg-redhat94-9.4-1.noarch.rpm
| 5.2 kB 00:00
Examining /var/tmp/yum-root-Ni6saZ/pgdg-redhat94-9.4-1.noarch.rpm:
pgdg-redhat94-9.4-1.noarch
/var/tmp/yum-root-Ni6saZ/pgdg-redhat94-9.4-1.noarch.rpm: does not update
installed package.
Error: Nothing to do
Looks to me("Loaded plugins: security") there is something monitoring downloads on you machine. Given that this is RedHat I would say SELinux. Might be why the installer failed. In any case I do not use RedHat so I am not much use here. Try what I suggest below and if that does not work I would re-post to list with the above as there are people there that know more about RedHat then I and will have the knowledge to get the install to work.
That is first step. Now go to next step:
http://www.postgresql.org/download/linux/redhat/
"
Once this is done, you can proceed to install and update packages the same way as the ones included in the distribution.
yum install postgresql94-server postgresql94-contrib
service postgresql-9.4 initdb
chkconfig postgresql-9.4 on "
On Thu, Oct 22, 2015 at 3:08 PM, Adrian Klaver
<adrian.klaver@xxxxxxxxxxx <mailto:adrian.klaver@xxxxxxxxxxx>> wrote:
On 10/22/2015 12:03 PM, anj patnaik wrote:
bash-4.1$ chmod 755 postgresql-9.5.0-beta1-linux-x64.run.1
bash-4.1$ ./postgresql-9.5.0-beta1-linux-x64.run.1
bash-4.1$ sudo ./postgresql-9.5.0-beta1-linux-x64.run.1
[sudo] password for apatnaik:
Installer payload initialization failed. This is likely due to an
incomplete or corrupt downloaded file.
Does it work for you? Can you let me know?
Yes, it works for me. I am not on RedHat though. At this point just
do the yum install, it is the better option anyway.
Thanks
On Thu, Oct 22, 2015 at 2:56 PM, Adrian Klaver
<adrian.klaver@xxxxxxxxxxx <mailto:adrian.klaver@xxxxxxxxxxx>
<mailto:adrian.klaver@xxxxxxxxxxx<mailto:adrian.klaver@xxxxxxxxxxx
<mailto:adrian.klaver@xxxxxxxxxxx>>> wrote:
On 10/22/2015 10:03 AM, anj patnaik wrote:
Adrian,
I am doing same steps as you. And my byte count matches
yours.
It is a
RHEL 6.5 Linux machine. If the byte count matches how
can it be
incomplete? I am baffled. Thanks for any clues!
bash-4.1$ ls -all
total 132452
-rwxrwxrwx 1 apatnaik oprofile 37659362 Oct 20 20:41
postgresql-9.4.4-3-linux-x64.run
-rw-r----- 1 apatnaik oprofile 37548416 Oct 22 12:51
postgresql-9.5.0-beta1-linux-x64.run
bash-4.1$ chmod 755 postgresql-9.5.0-beta1-linux-x64.run
bash-4.1$ sudo ./postgresql-9.5.0-beta1-linux-x64.run
[sudo] password for apatnaik:
Installer payload initialization failed. This is likely
due to an
incomplete or corrupt downloaded file
If you are dead set on using the installer you might try, from
command line:
wget
http://get.enterprisedb.com/postgresql/postgresql-9.5.0-beta1-linux-x64.run
See if the direct download does any better.
--
Adrian Klaver
adrian.klaver@xxxxxxxxxxx <mailto:adrian.klaver@xxxxxxxxxxx>
<mailto:adrian.klaver@xxxxxxxxxxx>>
--
Adrian Klaver
adrian.klaver@xxxxxxxxxxx <mailto:adrian.klaver@xxxxxxxxxxx>
--
Adrian Klaver
adrian.klaver@xxxxxxxxxxx