[GRASS-user] Grass 7 and postgresql

Benoit ANDRE benoit.andre at bcgeol.be
Fri Sep 2 03:51:11 PDT 2016


Moritz,

First, I move from 6 to 7 with /v.build/ or /v.build.all/ (depends on 
locations)

Here, connections are already gone...

I connect with :
/db.connect driver=pg database="host=192.168.1.200,dbname=administration"/

/db.connect -p/ :
driver: pg
database: host=192.168.1.200,dbname=administration
schema: public
group:

/db.login --overwrite user=benoit/
ATTENTION: DB connection <pg/host=192.168.1.200,dbname=administration>
            already exists and will be overwritten


When I try a /db.tables -p/, I get :
DBMI-PostgreSQL erreur de pilote :
Connection failed.
n'a pas pu se connecter au serveur : Aucun fichier ou dossier de ce type
     Le serveur est-il actif localement et accepte-t-il les connexions 
sur la
      socket Unix « /var/run/postgresql/.s.PGSQL.5432 » ?


DBMI-PostgreSQL erreur de pilote :
Connection failed.
n'a pas pu se connecter au serveur : Aucun fichier ou dossier de ce type
     Le serveur est-il actif localement et accepte-t-il les connexions 
sur la
      socket Unix « /var/run/postgresql/.s.PGSQL.5432 » ?


ERREUR :Unable to open database <host=192.168.1.200,dbname=administration>


/v.db.connect/ (dialog box) isn't usable, because the field 'Name of 
attribute table' is empty...

Il I try : /v.db.connect -o map=survey_bcg at benoit table=survey_bcg 
key=cat layer=1/ (for facility, table name is the same as map name), 
result is
DBMI-PostgreSQL erreur de pilote :
Connection failed.
n'a pas pu se connecter au serveur : Aucun fichier ou dossier de ce type
     Le serveur est-il actif localement et accepte-t-il les connexions 
sur la
      socket Unix « /var/run/postgresql/.s.PGSQL.5432 » ?


DBMI-PostgreSQL erreur de pilote :
Connection failed.
n'a pas pu se connecter au serveur : Aucun fichier ou dossier de ce type
     Le serveur est-il actif localement et accepte-t-il les connexions 
sur la
      socket Unix « /var/run/postgresql/.s.PGSQL.5432 » ?


ATTENTION: Impossible d'ouvrir la base de données
            <host=192.168.1.200,dbname=administration> avec le driver <pg>
ATTENTION: Impossible d'ouvrir la base de données
            <host=192.168.1.200,dbname=administration> avec le driver <pg>
ERREUR :La table <survey_bcg7> n'existe pas dans la base de données

***********************

On my computer (192.168.1.11) :  psql -V is psql (PostgreSQL) 9.2.8
The server (192.168.1.200) : psql -V is psql (PostgreSQL) 9.2.15


All the other programs using postresql, including grass 6.4.4 work fine


Thank you







Le 02/09/16 12:04, Moritz Lennert a écrit :
> On 02/09/16 11:38, Benoit ANDRE wrote:
>> Hi all,
>>
>> Our GIS infrastructure is based on Grass 6.4.4, postrgresql 9.x and
>> Qgis.  Those all together are perfectly working.
>>
>> We want to update from 6.4.4 to 7.0.4.  But we are confronted to a
>> problem with the database : connection to postgresql is no more possible
>> for all our maps (but still working with 6.4.4, and all the other soft
>> overlying on postgresql).  The message is the 'normal' message wen the
>> connection is no possible (in french) :
>>
>> /DBMI-PostgreSQL erreur de pilote ://
>> //Connection failed.//
>> //n'a pas pu se connecter au serveur : Aucun fichier ou dossier de ce 
>> type//
>> //    Le serveur est-il actif localement et accepte-t-il les connexions
>> sur la//
>> //     socket Unix « /var/run/postgresql/.s.PGSQL.5432 » ?/
>>
>> I really don't understand the problem.
>>
>> Any idea ?
>
> We need a bit more information to be able to help you. What command 
> leads to this error ? What did you do to move from grass6 to grass7 ? 
> How is the data connection defined ('v.db.connect -p' and 'db.connect 
> -p') ?
>
> Moritz

-- 

	

*Benoit André*
*Directeur - Gérant*

benoit.andre at bcgeol.be <mailto:benoit.andre at bcgeol.be>
Tel. | +32 475 61 84 94
skype | benoit_andre_bcg
Voir le profil de Benoit André sur LinkedIn 
<https://be.linkedin.com/in/benoitandre>

*BCG SPRL*
Tél. | +32(0)81 58 26 11
Fax | +32(0)81 58 26 12
Chemin de la Foliette, 4 Bte 2
B-5000 - Namur
www.bcgeol.be <http://www.bcgeol.be>  - plan d'accès 
<https://maps.google.be/maps/ms?msid=210366068780572446312.0004dc0b834462107c00f&msa=0&ll=50.460427,4.856445&spn=0.001279,0.002411&iwloc=0004dc0b8345e35a35a20> 


	BCG LOGO <http://www.bcgeol.be>

Suivez-nous sur Lien Linkedin 
<https://www.linkedin.com/company/bureau-conseil-en-g%C3%A9ologie-sprl> 
Lien Facebook 
<https://www.facebook.com/Bureau-Conseil-en-G%C3%A9ologie-153924548320189/?ref=hl> 


Allons plus loin dans le respect de l'environnement : N'utilisons que 
des produits sans empreinte écologiqueLogo Modere 
<https://www.modere.eu/?referralCode=050281>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160902/4fa2ffde/attachment-0002.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160902/4fa2ffde/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bcg_logo.gif
Type: image/gif
Size: 4376 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160902/4fa2ffde/attachment-0003.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BCG_bas.gif
Type: image/gif
Size: 4888 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160902/4fa2ffde/attachment-0004.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: In-2C-21px-TM.png
Type: image/png
Size: 1242 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160902/4fa2ffde/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: icone_fb.gif
Type: image/gif
Size: 1317 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160902/4fa2ffde/attachment-0005.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Modere_SocialMarketer_logomark.png
Type: image/png
Size: 2910 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160902/4fa2ffde/attachment-0003.png>


More information about the grass-user mailing list