enviromatics / Hello-django

Hello django
1 stars 0 forks source link

geodjango instalation #2

Open akromachmad opened 13 years ago

akromachmad commented 13 years ago

Kemarin sy installasi geodjango di ubuntu.9.04 ada beberpa pesan error.

failed to start. Please check the log output: 2011-04-20 01:57:20 WIT FATAL: unsafe permissions on private key file "server.key" 2011-04-20 01:57:20 WIT 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". [fail] invoke-rc.d: initscript postgresql-8.3, action "start" failed. dpkg: error processing postgresql-8.3 (--configure): subprocess post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of postgresql-8.3-postgis: postgresql-8.3-postgis depends on postgresql-8.3; however: Package postgresql-8.3 is not configured yet. dpkg: error processing postgresql-8.3-postgis (--configure): dependency problems - leaving unconfigured No apport report written because MaxReports is reached already Errors were encountered while processing: postgresql-8.4 postgresql postgresql-8.3 postgresql-8.3-postgis E: Sub-process /usr/bin/dpkg returned an error code (1)

saya lihat di baris:

2011-04-20 01:57:20 WIT 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".

sepertinya dia minta hak aksesnya dirubah, dan itu sudah sya rubah sesuai permintaannya, namun masih tetep sama saja.Mungkin ada solusi lain? terimakasih.

akromachmad commented 13 years ago

saya coba kembali pesan error-nya...

akrom@akrom-desktop:~$ sudo apt-get install binutils gdal-bin postgresql-8.3-postgis \

postgresql-server-dev-8.3 python-psycopg2 python-setuptools [sudo] password for akrom: Sorry, try again. [sudo] password for akrom: Reading package lists... Done Building dependency tree
Reading state information... Done binutils is already the newest version. gdal-bin is already the newest version. postgresql-8.3-postgis is already the newest version. postgresql-server-dev-8.3 is already the newest version. python-psycopg2 is already the newest version. python-setuptools is already the newest version. The following packages were automatically installed and are no longer required: libgda3-common libboost-thread1.37.0 libtorrent-rasterbar2 libgda3-bin libgda3-3 libboost-filesystem1.37.0 libboost-system1.37.0 libboost-python1.37.0 Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 324 not upgraded. 4 not fully installed or removed. After this operation, 0B of additional disk space will be used. Setting up postgresql-8.4 (8.4.4-1~jaunty1) ...

  • Starting PostgreSQL 8.4 database server * Error: Invalid data directory [fail] invoke-rc.d: initscript postgresql-8.4, action "start" failed. dpkg: error processing postgresql-8.4 (--configure): subprocess post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of postgresql: postgresql depends on postgresql-8.4; however: Package postgresql-8.4 is not configured yet. dpkg: error processing postgresql (--configure): dependency problems - leaving unconfigured Setting up postgresql-8.3 (8.3.12-0ubuntu9.04) ... No apport report written because the error message indicates its a followup error from a previous failure. * Starting PostgreSQL 8.3 database server * Error: Invalid data directory [fail] invoke-rc.d: initscript postgresql-8.3, action "start" failed. dpkg: error processing postgresql-8.3 (--configure): subprocess post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of postgresql-8.3-postgis: postgresql-8.3-postgis depends on postgresql-8.3; however: Package postgresql-8.3 is not configured yet. dpkg: error processing postgresql-8.3-postgis (--configure): dependency problems - leaving unconfigured No apport report written because MaxReports is reached already Errors were encountered while processing: postgresql-8.4 postgresql postgresql-8.3 postgresql-8.3-postgis E: Sub-process /usr/bin/dpkg returned an error code (1) akrom@akrom-desktop:~$
enviromatics commented 13 years ago

Tutorial: $ sudo apt-get install binutils gdal-bin postgresql-8.3-postgis postgresql-server-dev-8.3 python-psycopg2 python-setuptools

Komputermu: ~$ sudo apt-get install binutils gdal-bin postgresql-8.3-postgis postgresql-server-dev-8.3 python-psycopg2 python-setuptools

Error:

Resolusi:

  1. Busak salah 1 Paket postgresql (8.3 atau 8.4). Mgk konflik. Tak kira Jaunty ijik nganggo 8.3, dudu 8.4. cite Instalanmu nyampur antarane saka source (prosedur atas) karo binary (prosedur Platform Specific Instructions)? $ sudo apt-get remove --purge postgresql-8.4
  2. $ sudo dpkg --reconfigure postgresql-8.3
  3. Yen isa, ganti Lucid (10.04) utawa Debian Squeeze.