It is currently Thu May 17, 2012 2:23 am

All times are UTC + 2 hours




Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Thu Mar 19, 2009 9:22 am 
Offline

Joined: Wed Jun 13, 2007 9:59 pm
Posts: 6
Location: The Netherlands
GrahamLorraine wrote:
I have tried to connect to this but get a FATAL connection error regarding the incorrect password for user "openpg". I have not changed any passwords so assumed it would be "admin" as per the super administrator within OpenERP.



Password for user "openpg" is "openpgpwd".

I have the same issue with this backup - restore in OpenERP 5.0 and this is the only way to work around it. It has something to do with the rights-management on the server though.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 19, 2009 10:42 am 
Offline

Joined: Tue Mar 10, 2009 6:36 am
Posts: 8
jlproductions
Password for user "openpg" is "openpgpwd".


Thank you very much. At least now I can back up even if it is not by the "proper" route. :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 09, 2009 12:32 am 
Offline

Joined: Thu Apr 09, 2009 12:13 am
Posts: 6
Location: Lyon (France)
You need to edit this file:

pg_hba.conf
http://www.postgresql.org/docs/8.3/stat ... -conf.html
ie:
Code:
host    all         all         127.0.0.1/32          trust


and add this:
pgpass.conf
http://www.postgresql.org/docs/8.3/stat ... gpass.html
ie:
Code:
localhost:*:*:openpg:openpgpwd

Don't forget to add the environment variable:
variable: PGPASSFILE
value: path to pgpass.conf
[/quote]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 16, 2009 8:39 am 
Offline

Joined: Thu Apr 16, 2009 8:34 am
Posts: 4
Quote:
Don't forget to add the environment variable:
variable: PGPASSFILE
value: path to pgpass.conf


Could you be more specific for the non-technical - where exactly does this go? Windows? postgresql? OpenERP?

For the record I am having the same problem and I am also unable to get the database backed up via pgadmin - it exits complaining of version mismatch or something.


Top
 Profile  
 
 Post subject: [Tinyerp-users] I Can not save the database
PostPosted: Thu Apr 16, 2009 12:01 pm 
Offline

Joined: Sat Aug 16, 2008 12:52 pm
Posts: 229
Hi.

On linux version mismatch occurs when you upgrade (esp. on rpm-based distributions) and PG_VERSION links to old version. On windows it occurs if pg_dump you are using does not match Postgres version (check if you have two installations of postgres). From pgadmin go to File > Options and verify PG bin path. However, you can instruct pg_dump to ignore version mismatch (using -i or --ignore-version) if running from command line.

Cheers.

Mugoma,
Yengas.



forum-user@tinyerp.org wrote:
Quote:
Quote:
Don't forget to add the environment variable:
variable: PGPASSFILE
value: path to pgpass.conf
Could you be more specific for the non-technical - where exactly does this go? Windows? postgresql? OpenERP?
For the record I am having the same problem and I am also unable to get the database backed up via pgadmin - it exits complaining of version mismatch or something.
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

_________________
Mugoma,
Software : Open Source Software, ERP Software, Payroll Software
Reliable Web Hosting


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 21, 2009 5:54 pm 
Offline

Joined: Thu Apr 09, 2009 12:13 am
Posts: 6
Location: Lyon (France)
@ Strannik

My post is related to Windows.

http://vlaurie.com/computers2/Articles/environment.htm


Top
 Profile  
 
 Post subject: Got backups working from the OpenERP client
PostPosted: Fri Sep 04, 2009 6:13 pm 
Offline

Joined: Sat Jun 20, 2009 7:28 pm
Posts: 42
Location: Playa del Carmen, Mexico
Hi

I had the same problem that trying to backup the db on v5 would give a "could not connect to server" error.

The problem was resolved by following patdec's instructions above (thanks!).

Here are some clarifications in case anyone is having problems:

1. The file pg_hba.conf is located in the data directory of the posgreSQL instalation, which is located in the "OpenERP All-in-one" directory for the all-in-one windows installation. From the standard file, you just need to change the word "md5" to "trust" (there are probably security issues here but I am ignorant of them)

2. You need to create a file called pgpass.conf (in fact you can probably call it anything). Copy the text line patdec suggests and store the file anywhere.

3. In Control Panel | System, find the "Environment Variables" button. Create a new _system_ environment variable called PGPASSFILE. The value is the full path of the pgpass file you created, eg. "c:\program files\OpenERP all-in-one\pgpass.conf" (if your path has spaces in it you probably NEED the quotes)

4. I found it necessary to restart my entire machine after making the changes (I tried just stopping and starting the posgreSQL and OpenERP services but this didn't work)

That's it.

When you restore the database created, it gives you the option to restore the database to a new name (i.e. create a copy)


Top
 Profile  
 
 Post subject: On Ubuntu
PostPosted: Tue Feb 09, 2010 1:29 pm 
Offline

Joined: Fri Feb 15, 2008 2:55 pm
Posts: 6
Location: Kampala, Uganda
On Ubuntu (Hardy) the pgpass.conf file is called .pgpass and is located in the root of the user that openerp is running under (normally, openerp)

Code:
pico /home/openerp/.passwd


and add

Code:
localhost:5432:*:openerpuser:opeerppassword


(the 5432 is the port where postgres is listening. 5432 is the standard port.)

The change to pg_hba.conf is the same on Windows & Linux.

You dont have to set an environment variable on Ubuntu.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 12, 2010 11:38 am 
Offline

Joined: Sat Oct 04, 2008 3:33 pm
Posts: 58
Hello,

I had the problem with the database backup on Ubuntu 9.10 I becam a backup file with size 0, but as described I created a .pgpass file on /home/openerp and not on my user account and now it works.

The next problem is after restore this database under another new database name, I receive the error message:

Quote:
Access denied!
You can not connect to the system!
Ask the administrator to check
that your user has a defined action


In the postgres log file there are following error entries:

Quote:
2010-02-12 10:14:14 CET FATAL: the database « test » don't exist.
2010-02-12 10:14:22 CET ERROR: a value NULL violates the constraint NOT NULL of the column « name »
2010-02-12 10:14:22 CET CONTEXTE : COPY ir_act_window, ligne 174 : « 243 \N ir.actions.act_window \N \N account.analytic.line form [('account_id','child_of',[active_id])... »
2010-02-12 10:14:22 CET INSTRUCTION : COPY ir_act_window (id, name, type, usage, view_id, res_model, view_type, domain, create_uid, create_date, write_date, write_uid, auto_refresh, view_mode, target, src_model, "limit", context) FROM stdin;

2010-02-12 10:14:28 CET ERROR: an instruction insert ou update on the table « ir_act_window_view » violates the contraint foreign key
« ir_act_window_view_act_window_id_fkey »
2010-02-12 10:14:28 CET DÉTAIL: The key (act_window_id)=(13) is not present on the table « ir_act_window ».



All tables are succesfully created, I see this on the postgres log file and with the tool pgadmin3.

Somebody has an idea how can I restablish a restore database?

Regards
red


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 24, 2010 3:12 pm 
Offline

Joined: Thu Apr 17, 2008 8:00 am
Posts: 183
create the new DB name first, then restore into it?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 24, 2010 4:26 pm 
Offline

Joined: Mon Feb 15, 2010 10:00 am
Posts: 32
Quote:
The next problem is after restore this database under another new database name, I receive the error message:

Quote:

Access denied!
You can not connect to the system!
Ask the administrator to check
that your user has a defined action


I am having the same trouble and

Quote:
create the new DB name first, then restore into it?


does not work (displays a "Impossible to create database" message). Is there anyone who got into the same situation and managed to solve it without going into pgadmin ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP