Running Tryton on Ubuntu

101 views
Skip to first unread message

Bob W

unread,
Jan 5, 2010, 4:18:48 PM1/5/10
to Tryton
I recently upgraded to Ubuntu 9.10 and found Tryton 1.2 available in
the Synaptic package manager. I installed Tryton and Postgresql, but
have been unable to get past the login screen. On the Database: line,
it says "Could not connect to server!". I have been able to go into
the postgresql user and create and drop databases, so I know
Postgresql is available.

I've spent two days trying to find a solution, and have gotten
nowhere. Any help would be appreciated.

Bob W.

Daniel Baumann

unread,
Jan 5, 2010, 4:32:07 PM1/5/10
to try...@googlegroups.com
Bob W wrote:
> I've spent two days trying to find a solution, and have gotten
> nowhere. Any help would be appreciated.

use the debian packages[0], they work on ubuntu as well.

Regards,
Daniel

[0] http://tryton.debian-maintainers.org/

--
Address: Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email: daniel....@panthera-systems.net
Internet: http://people.panthera-systems.net/~daniel-baumann/

Chenal Bertrand

unread,
Jan 5, 2010, 4:39:18 PM1/5/10
to try...@googlegroups.com
Le 05/01/10 22:18, Bob W a �crit :
Hi,
The following command:
"netstat -lpn |grep python"
should give you a list of all python program that are listening on a
port. By default Trytond listen on 8070. If you don't find it, this
means that the server has not been launched.
Actually, "ps aux |grep trytond" should also tell if the server is running.

Another possible problem is that the user that is running the tryton
server is not allowed to create databases (the "ps aux.." command gives
you which user is running the server).

HTH

--
Bertrand Chenal

B2CK SPRL
Rue de Rotterdam, 4
4000 Li�ge
Belgium
Tel: +32 474 207 906
Email: bertran...@b2ck.com
Website: http://www.b2ck.com/

Bob W

unread,
Jan 5, 2010, 5:08:27 PM1/5/10
to Tryton

On Jan 5, 2:32 pm, Daniel Baumann <dan...@debian.org> wrote:
> Bob W wrote:
> > I've spent two days trying to find a solution, and have gotten
> > nowhere.  Any help would be appreciated.
>
> use the debian packages[0], they work on ubuntu as well.
>
> Regards,
> Daniel
>
> [0]http://tryton.debian-maintainers.org/
>
> --
> Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
> Email:          daniel.baum...@panthera-systems.net
> Internet:      http://people.panthera-systems.net/~daniel-baumann/


OK, I added the deb repository to Synaptic as indicated at
http://packages.debian.org/sid/all/tryton-server/download
and downloaded Tryton 1.4. I get exactly the same result. It seems
to me that Tryton is not
finding the connection to Postgresql. What can I do to sort that out.

Bob W

unread,
Jan 5, 2010, 5:31:14 PM1/5/10
to Tryton
>
> Hi,
> The following command:
> "netstat -lpn |grep python"
> should give you a list of all python program that are listening on a
> port. By default Trytond listen on 8070. If you don't find it, this
> means that the server has not been launched.
> Actually, "ps aux |grep trytond" should also tell if the server is running.
>
> Another possible problem is that the user that is running the tryton
> server is not allowed to create databases (the "ps aux.." command gives
> you which user is running the server).
>
> HTH
>
> --
> Bertrand Chenal
>
> B2CK SPRL
> Rue de Rotterdam, 4
> 4000 Li ge
> Belgium
> Tel: +32 474 207 906
> Email: bertrand.che...@b2ck.com
> Website:http://www.b2ck.com/

netstat gives me
tcp6 0 0 :::8070 :::*
LISTEN 9678/python

ps gives me
tryton 9678 0.0 3.7 53016 18624 ? Sl 14:52 0:01 /usr/
bin/python /usr/bin/trytond --config=/etc/trytond.conf --logfile=/var/
log/trytond.log

I changed the port to localhost 9678 although I'm not sure that's
correct. It didn't help.

Bob W.

ced

unread,
Jan 5, 2010, 5:41:10 PM1/5/10
to Tryton

No, 9678 is the process id of the server.
The port is 8070.
Do you still have "Could not connect to server!" in the client?
Do you have any firewall that is running and that could block local
connection to port 8070?
Is there something in /var/log/trytond.log?

Bob W

unread,
Jan 5, 2010, 5:52:39 PM1/5/10
to Tryton

On Jan 5, 3:08 pm, Bob W <b...@bob-white.com> wrote:
> On Jan 5, 2:32 pm, Daniel Baumann <dan...@debian.org> wrote:
>
> > Bob W wrote:
> > > I've spent two days trying to find a solution, and have gotten
> > > nowhere.  Any help would be appreciated.
>
> > use the debian packages[0], they work on ubuntu as well.
>
> > Regards,
> > Daniel
>
> > [0]http://tryton.debian-maintainers.org/
>
> > --
> > Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
> > Email:          daniel.baum...@panthera-systems.net
> > Internet:      http://people.panthera-systems.net/~daniel-baumann/
>

> OK, I added the deb repository to Synaptic as indicated athttp://packages.debian.org/sid/all/tryton-server/download


> and downloaded Tryton 1.4.  I get exactly the same result.  It seems
> to me that Tryton is not
> finding the connection to Postgresql.  What can I do to sort that out.

OK, I got it working!!! I had to create user tryton in Postgresql
first. Now I'm up to "Welcome to the module
configuration wizard!" and on my way.

Thanks for the suggestions. I'm now running 1.4 instead of 1.2 thanks
to Daniel B.

Bob W.

Daniel Baumann

unread,
Jan 5, 2010, 5:55:56 PM1/5/10
to try...@googlegroups.com
Bob W wrote:
> I had to create user tryton in Postgresql first.

ftr: which is documented in /usr/share/tryton-server/README.Debian,
which you're prompted to read during installation of tryton-server.

--
Address: Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist

Email: daniel....@panthera-systems.net
Internet: http://people.panthera-systems.net/~daniel-baumann/

Bob W

unread,
Jan 5, 2010, 6:13:15 PM1/5/10
to Tryton

On Jan 5, 3:55 pm, Daniel Baumann <dan...@debian.org> wrote:
> Bob W wrote:
> > I had to create user tryton in Postgresql first.
>
> ftr: which is documented in /usr/share/tryton-server/README.Debian,
> which you're prompted to read during installation of tryton-server.
>
> --
> Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist

> Email:          daniel.baum...@panthera-systems.net
> Internet:      http://people.panthera-systems.net/~daniel-baumann/

Apparently I didn't get that prompt when I used Synaptic for
installation.

Bob W.

Daniel Baumann

unread,
Jan 5, 2010, 6:38:56 PM1/5/10
to try...@googlegroups.com
Bob W wrote:
> Apparently I didn't get that prompt when I used Synaptic for
> installation.

you do unless you klick the 'show details' away.

--
Address: Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist

Email: daniel....@panthera-systems.net
Internet: http://people.panthera-systems.net/~daniel-baumann/

Hartmut Goebel

unread,
Jan 6, 2010, 5:50:03 AM1/6/10
to try...@googlegroups.com
Daniel Baumann schrieb:

> Bob W wrote:
>> I had to create user tryton in Postgresql first.
>
> ftr: which is documented in /usr/share/tryton-server/README.Debian,
> which you're prompted to read during installation of tryton-server.

I'm curious. Isn't it common on Debian to do all the preparations when
installing a module. I personally would expect the user is added to the
server automatically. (But this would not be the first point where
Debian an me are incompatible ;-)

--
Schönen Gruß - Regards
Hartmut Goebel
Dipl.-Informatiker (univ.), CISSP, CSSLP

Goebel Consult
Spezialist für IT-Sicherheit in komplexen Umgebungen
http://www.goebel-consult.de

Monatliche Kolumne: http://www.cissp-gefluester.de/
Goebel Consult mit Mitglied bei http://www.7-it.de

Daniel Baumann

unread,
Jan 6, 2010, 6:11:36 AM1/6/10
to try...@googlegroups.com
Hartmut Goebel wrote:
> I'm curious. Isn't it common on Debian to do all the preparations when
> installing a module. I personally would expect the user is added to the
> server automatically. (But this would not be the first point where
> Debian an me are incompatible ;-)

there are two cases where debian doesn't do that:

* if it's not possible to setup a sane 'default' system because the
defaults do vary from each and every installation (not such things
like ip or passwords that can be asked through debconf)

* if the maintainer(s) did not have had the time yet to properly
implement the setup with debconf.

for tryton, the latter is the case. using debconf to setup dbs in a
policy conformant way is not that trivial, and dbconfig-common is a bit
underdocumented to be used easily without prior experience.

if you want to help on getting it done, you're most welcome.

Hartmut Goebel

unread,
Jan 6, 2010, 7:24:28 AM1/6/10
to try...@googlegroups.com
Daniel Baumann schrieb:

> for tryton, the latter is the case. using debconf to setup dbs in a
> policy conformant way is not that trivial, and dbconfig-common is a bit
> underdocumented to be used easily without prior experience.

IC. This is a common problem for all distributions.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages