PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : اپگرید postgresql از 8.4 به 9.6



m2sh2
December 19th, 2016, 19:59
سلام خدمت اساتید محترم

دوستان کسی آموزش آپگرید postgresql از ورژن 8.4 به ورژن 9.6 رو در cpanel داره ؟

ممنونم

hegza
December 19th, 2016, 20:03
https://www.postgresql.org/docs/9.6/static/pgupgrade.html

m2sh2
December 19th, 2016, 20:08
https://www.postgresql.org/docs/9.6/static/pgupgrade.html


ممنونم دوست من برای cp مشکلی پیش نماید ؟

hegza
December 19th, 2016, 22:35
ممنونم دوست من برای cp مشکلی پیش نماید ؟
خیر مشکلی پیش نمیاد
در انجمن خود سی پنل هم روش سایت ساپورت postgresql رو پیشنهاد داده

m2sh2
December 26th, 2016, 02:06
با سلام دوستان من تو روند آپگرید به این خطا میخورم کسی میتونه کمک کنه ؟

*failure*
Consult the last few lines of "pg_upgrade_server.log" for
the probable cause of the failure.

connection to database failed: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.50432"?


could not connect to old postmaster started with the command:
"/usr/bin/pg_ctl" -w -l "pg_upgrade_server.log" -D "/var/lib/pgsql/data/" -o "-p 50432 -c autovacuum=off -c autovacuum_freeze_max_age=2000000000 -c listen_addresses='' -c unix_socket_permissions=0700" start
Failure, exiting



ممنونم

hegza
December 26th, 2016, 21:40
https://gist.github.com/eoinkelly/fd80465942c8ca4bd5c0

m2sh2
December 30th, 2016, 00:00
با سلام دوستان من کلا از یه راه دیگه رفتم راه قبلی همش خطا داد :|

من اول RPM رو اپدیت کردم که 9.6.1 بیاد توش بعد نصب کردم حالا این خطا رو میده :|

[root@cpanel ~]# /scripts/installpostgres
This script installs PostgreSQL 9.2.x or later.
If your system runs an older version of PostgreSQL, you must
dump your databases to a file, and then restore them after
installation.
PostgreSQL 9.2.x is NOT backwards compatible.
If no PostgreSQL databases exist on your system, run the
following command to force the creation of a PostgreSQL 9.2.x -style
setup:
mv /var/lib/pgsql /var/lib/pgsql.old
systemctl restart postgresql
Do not run this command if databases exist that you wish to keep!
Are you certain that you wish to proceed? [y/(n)]:y
Loaded plugins: fastestmirror, langpacks, tsflags, universal-hooks
Loading mirror speeds from cached hostfile
* EA4: 216.12.197.42
* base: mirror.readyspace.com
* extras: mirror.readyspace.com
* updates: mirror.0x.sg
No package rh-postgresql available.
No package rh-postgresql-devel available.
No package rh-postgresql-libs available.
No package rh-postgresql-server available.
Package postgresql-9.2.15-1.el7_2.x86_64 already installed and latest version
Package postgresql-devel-9.2.15-1.el7_2.x86_64 already installed and latest version
Package postgresql-libs-9.2.15-1.el7_2.x86_64 already installed and latest version
Package postgresql-server-9.2.15-1.el7_2.x86_64 already installed and latest version
Nothing to do
Failed to determine postgresql data directory
The PostgreSQL installation failed.
Building global cache for cpanel...Done

البته این متن من نیس ولی همسین خطا رو میده