It is currently Sat Feb 11, 2012 12:15 pm

All times are UTC + 2 hours




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: INFO:init:could not connect to database 'terp'!
PostPosted: Thu Sep 13, 2007 11:44 pm 
Offline

Joined: Thu Sep 13, 2007 10:55 pm
Posts: 5
Hello everyone

When I start terp/server here's the first output lines:

[b]cata:/usr/down/tinyerp-server-4.2.0-rc2/bin # python tinyerp-server.py -d terp -r terp
Thu, 13 Sep 2007 17:58:05 INFO:objects:initialising distributed objects services
Thu, 13 Sep 2007 17:58:05 INFO:init:connecting to database
Thu, 13 Sep 2007 17:58:05 INFO:init:could not connect to database 'terp'![/b]

I'tried I guess everything I read... from dropping the terp db and user within PGAdmin from another machine and creating them again, to deal without success with the .conf files.

I have installed Tiny 4.2 on Suse 9.3 and Postgres 8.2.4. Thank you!

Any ideas


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 14, 2007 8:38 am 
Offline
Site Admin

Joined: Tue Feb 08, 2005 9:48 am
Posts: 2118
Location: Grand-Rosiere, Belgium
Did you tried to create the database from the Tiny eRP client ?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 14, 2007 8:48 am 
Offline

Joined: Fri Apr 21, 2006 7:28 pm
Posts: 1332
Location: Cambridge, UK
Proposed enhancement: http://tinyforge.org/tracker/index.php?func=detail&aid=155&group_id=13&atid=132

Regards,
Geoff

_________________
Regards, Geoff

Seath Solutions Ltd, Cambridge, UK


Top
 Profile  
 
 Post subject: Again
PostPosted: Fri Sep 14, 2007 2:41 pm 
Offline

Joined: Fri Apr 06, 2007 4:20 am
Posts: 216
Location: Beijing
See
http://tinyerp.org/forum/topic4636.html

Michael


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 14, 2007 8:02 pm 
Offline

Joined: Thu Sep 13, 2007 10:55 pm
Posts: 5
Okay first of all thanks guys. I cannot make it work yet. These are mi news:

Fabien: Yes, tried that, but it (after connect to server) simply says Could not create database, while in the server the output is as follows:

createdb: could not connect to database template1: FATAL: Ident authentication failed for user "terp"
Fri, 14 Sep 2007 14:42:12 ERROR:web-services:Exception in call: Traceback (most recent call last):
File "/usr/down/tinyerp-server-4.2.0-rc2/bin/netsvc.py", line 206, in _dispatch
r=m(*params)
File "/usr/down/tinyerp-server-4.2.0-rc2/bin/service/web_services.py", line 120, in create
raise Exception, "Couldn't create database"
Exception: Couldn't create database


And when I try with a diferent than the default "admin" password asked in TerpClient in order to create a new database, the output on server is the same except for the exception that is in this case "Access denied!".



Geoff:
Great advice, thank you. Based on your post I stopped worrying about that startup message. Now I'm facing the problem that I cannot neither create a database from client nor connect or login at all, altough the ports are wide open and I can see it telneting to that ports (8069 and 8070 in my case).


Michael
I followed your instructions that follow:

First: Sudo su postgres. Then: python2.4 ./bin/tinyerp-server.py
does it with me. If I forget the su postgres then it does not find my databases.

Michael


cata:~ # sudo su postgres
postgres@cata:/root> cd /usr/down/tinyerp-server-4.2.0-rc2/bin/
postgres@cata:/usr/down/tinyerp-server-4.2.0-rc2/bin> python tinyerp-server.py -d terp -r terp


... but as I tell Geoff, it seems I can't go far than this point by now.


Sincerely yours
Martin


Top
 Profile  
 
 Post subject: Please help me
PostPosted: Fri Sep 21, 2007 7:08 pm 
Offline

Joined: Thu Sep 13, 2007 10:55 pm
Posts: 5
Guys... I know you know a lot of this software.
I'm not asking you to solve my problem but as documentation is poor yet, I would really appreciate some guidelines regardin for example:

- do i need to create a linux account named terp so postgres in the identsameuser mode authenticate it?

- why before I follow your suggestions the output on server was "could not connect to database terp" and now is the database template1?

I really thank your help.
Regards

Martin


Top
 Profile  
 
 Post subject: Re: Please help me
PostPosted: Fri Sep 21, 2007 7:33 pm 
Offline

Joined: Fri Apr 21, 2006 7:28 pm
Posts: 1332
Location: Cambridge, UK
piratacentenario wrote:
- do i need to create a linux account named terp so postgres in the identsameuser mode authenticate it?

- why before I follow your suggestions the output on server was "could not connect to database terp" and now is the database template1?

Once Python and the needed libraries are installed, and postgres is installed in its default state, I found that I needed do almost nothing on a fresh installation of Ubuntu 7.04 to make it all work.

So I just download the server and client files, run
Code:
python setup.py build
sudo python setup.py install

on them, and then in one terminal window
Code:
sudo su postgres -c tinyerp-server

and in another terminal window
Code:
tinyerp-client

So I've not encountered the problems you've run into. No messing with accounts (for single server mode). No messing with terp or template1 databases. No pgadmin III! The client says it's got no database so you create one through File > Databases > New database. That's all I needed.

I know that I'd reinstall Ubuntu and start again (and I have done that a few times). Maybe you're not in a position to be able to do that.

Regards,
Geoff

_________________
Regards, Geoff

Seath Solutions Ltd, Cambridge, UK


Top
 Profile  
 
 Post subject: Okydoky
PostPosted: Fri Sep 21, 2007 8:45 pm 
Offline

Joined: Thu Sep 13, 2007 10:55 pm
Posts: 5
Thanks Geoff. I'll try with the linux client on the same machine to se what happens.

If I make it work I'll let you know, and also if I dont.

Regards.


Top
 Profile  
 
 Post subject: Re: Please help me
PostPosted: Wed Sep 26, 2007 11:01 am 
Offline

Joined: Fri Apr 21, 2006 7:28 pm
Posts: 1332
Location: Cambridge, UK
gegard wrote:
then in one terminal window
Code:
sudo su postgres -c tinyerp-server

and in another

Because of a conversation elsewhere, I feel compelled to add that I'm doing this for trial systems not for use in production. For that case I would naturally set up more secure (i.e. less insecure) database users! In this case this is just a simple method of getting it to work.

Regards,
Geoff

_________________
Regards, Geoff

Seath Solutions Ltd, Cambridge, UK


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 27, 2007 7:40 pm 
Offline

Joined: Thu Sep 13, 2007 10:55 pm
Posts: 5
Well, after a period of inactivity I could get it work.

After I tried many ways, simply compiled the latest version of Postresql and it worked for me.

Aparently the postgresql that came with suse 9.3 does not like Tiny erp.


Thank you guys, I appreciate your advices that leaded me to the final solution.


Top
 Profile  
 
 Post subject: Re: Please help me
PostPosted: Thu Dec 13, 2007 9:07 am 
Offline

Joined: Thu Dec 13, 2007 8:59 am
Posts: 7
gegard wrote:
gegard wrote:
then in one terminal window
Code:
sudo su postgres -c tinyerp-server

and in another

Because of a conversation elsewhere, I feel compelled to add that I'm doing this for trial systems not for use in production. For that case I would naturally set up more secure (i.e. less insecure) database users! In this case this is just a simple method of getting it to work.

Regards,
Geoff


I just wanted to add that after wrestling with getting the client to connect with the server this worked like a charm.

Now I am curious on the comment about security. Anyone willing to elaborate?


Top
 Profile  
 
 Post subject: Re: Please help me
PostPosted: Thu Dec 13, 2007 10:07 am 
Offline

Joined: Wed Feb 16, 2005 12:26 pm
Posts: 2513
Location: Annecy & Toulon,France
cdschofield wrote:
Now I am curious on the comment about security. Anyone willing to elaborate?

I'm afraid I don't understand what your question is about. Can you be more precise ?
regards

_________________
openerp demo http://sisalp.fr/demo.html
free hosting http://sisalp.fr/openerp-serveur-gratuit.html


Top
 Profile  
 
 Post subject: Re: Please help me
PostPosted: Thu Dec 13, 2007 5:10 pm 
Offline

Joined: Fri Apr 21, 2006 7:28 pm
Posts: 1332
Location: Cambridge, UK
cdschofield wrote:
Now I am curious on the comment about security. Anyone willing to elaborate?

You would not want to run tinyerp-server as user postgres in a production environment, nor from a command prompt. There are posts on this topic in these forums.

Regards,
Geoff

_________________
Regards, Geoff

Seath Solutions Ltd, Cambridge, UK


Top
 Profile  
 
 Post subject: Re: Please help me
PostPosted: Thu Dec 13, 2007 8:36 pm 
Offline

Joined: Wed Feb 16, 2005 12:26 pm
Posts: 2513
Location: Annecy & Toulon,France
gegard wrote:
You would not want to run tinyerp-server as user postgres in a production environment, nor from a command prompt. There are posts on this topic in these forums.

Ok, I see what was meant. Thank you.
I don't see postgres user as a real threat anyway but I don't use it for other reasons. There are several concerns I would rank far above.
Cheers.

_________________
openerp demo http://sisalp.fr/demo.html
free hosting http://sisalp.fr/openerp-serveur-gratuit.html


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

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