Trying out Tryton via Docker

75 views
Skip to first unread message

RisP

unread,
Aug 8, 2018, 3:25:05 AM8/8/18
to tryton
Hi,

I would like to try out Tryton, and decided to use Docker.

The instructions seem to be ok, but the latest version didn't work.
So I tried version 4.6 and that started no problem.

So now my issue is, that on the localhost:8000, I get the login box.
However, I cannot find the credentials to use.

Could you please help me past this initial hurdle.

Thanks.

Sergi Almacellas Abellana

unread,
Aug 8, 2018, 4:39:01 AM8/8/18
to try...@googlegroups.com
El 08/08/18 a les 05:56, RisP ha escrit:
> Hi,
>
> I would like to try out Tryton, and decided to use Docker.
>
> The instructions seem to be ok, but the latest version didn't work.

What does not work?

> So I tried version 4.6 and that started no problem.
>
> So now my issue is, that on the localhost:8000, I get the login box.
> However, I cannot find the credentials to use.

When setting up the database the server will ask you for the password of
the admin user. You should use 'admin' and login and the password you
entered on the first run.

If you did not remember the password, you can reset it using the -p flag
of the trytond-admin command.

Hope it helps!


--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Cédric Krier

unread,
Aug 9, 2018, 3:20:07 AM8/9/18
to try...@googlegroups.com
On 2018-08-08 10:38, Sergi Almacellas Abellana wrote:
> El 08/08/18 a les 05:56, RisP ha escrit:
> > Hi,
> >
> > I would like to try out Tryton, and decided to use Docker.
> >
> > The instructions seem to be ok, but the latest version didn't work.
>
> What does not work?

If you have activated the ldap_authentication module, you may have this
problem https://bugs.tryton.org/issue7611

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Mathias Behrle

unread,
Aug 9, 2018, 5:32:39 AM8/9/18
to try...@googlegroups.com
* 'Cédric Krier' via tryton: " Re: [tryton] Trying out Tryton via Docker" (Thu,
9 Aug 2018 09:19:56 +0200):

> On 2018-08-08 10:38, Sergi Almacellas Abellana wrote:
> > El 08/08/18 a les 05:56, RisP ha escrit:
> > > Hi,
> > >
> > > I would like to try out Tryton, and decided to use Docker.
> > >
> > > The instructions seem to be ok, but the latest version didn't work.
> >
> > What does not work?
>
> If you have activated the ldap_authentication module, you may have this
> problem https://bugs.tryton.org/issue7611

There seems to be a problem with the image. I guess that it installs
the PyPi package which it shouldnt't.

S. my answer at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=905757#10

--

Mathias Behrle
MBSolutions
Gilgenmatten 10 A
D-79114 Freiburg

Tel: +49(761)471023
Fax: +49(761)4770816
http://www.m9s.biz
UStIdNr: DE 142009020
PGP/GnuPG key availabable from any keyserver, ID: 0xD6D09BE48405BBF6
AC29 7E5C 46B9 D0B6 1C71 7681 D6D0 9BE4 8405 BBF6

Risto Paasila

unread,
Aug 10, 2018, 3:25:07 AM8/10/18
to try...@googlegroups.com
Thank you for looking into this, and please excuse me for not
responding earlier. This is the error I got, which is related to LDAP
as you say:

C:\Users\risto>docker run --link tryton-postgres:postgres -it
tryton/tryton trytond-admin -d tryton --all
Traceback (most recent call last):
File "/usr/local/bin/trytond-admin", line 21, in <module>
admin.run(options)
File "/usr/local/lib/python3.5/dist-packages/trytond/admin.py", line
54, in run
installdeps=options.installdeps)
File "/usr/local/lib/python3.5/dist-packages/trytond/pool.py", line
149, in init
self.start()
File "/usr/local/lib/python3.5/dist-packages/trytond/pool.py", line
102, in start
register_classes()
File "/usr/local/lib/python3.5/dist-packages/trytond/modules/__init__.py",
line 378, in register_classes
mod_file, pathname, description)
File "/usr/lib/python3.5/imp.py", line 244, in load_module
return load_package(name, filename)
File "/usr/lib/python3.5/imp.py", line 216, in load_package
return _load(spec)
File "<frozen importlib._bootstrap>", line 693, in _load
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 673, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/usr/local/lib/python3.5/dist-packages/trytond/modules/ldap_authentication/__init__.py",
line 5, in <module>
from .res import *
File "/usr/local/lib/python3.5/dist-packages/trytond/modules/ldap_authentication/res.py",
line 6, in <module>
import ldap3
File "/usr/local/lib/python3.5/dist-packages/ldap3/__init__.py",
line 138, in <module>
from .core.connection import Connection
File "/usr/local/lib/python3.5/dist-packages/ldap3/core/connection.py",
line 37, in <module>
from ..extend import ExtendedOperationsRoot
File "/usr/local/lib/python3.5/dist-packages/ldap3/extend/__init__.py",
line 45, in <module>
from .standard.whoAmI import WhoAmI
File "/usr/local/lib/python3.5/dist-packages/ldap3/extend/standard/whoAmI.py",
line 27, in <module>
from pyasn1.type.univ import NoValue
ImportError: cannot import name 'NoValue'
> --
> You received this message because you are subscribed to a topic in the Google Groups "tryton" group.
> To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/20180809113228.008455c2%40monsterix.mbehrle.de.

Risto Paasila

unread,
Aug 10, 2018, 3:25:09 AM8/10/18
to try...@googlegroups.com
Got it going with 4.6 now. Thanks.

As a suggestion for the docker instructions, please add an instruction
for setting the admin password, something like:

docker run --link tryton-postgres:postgres -it tryton/tryton:4.6
trytond-admin -d tryton -p

Thanks again for your help.
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "tryton" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tryton/0ba157b7-0721-6c17-8f09-84ed7119859b%40koolpi.com.

Raimon Esteve

unread,
Aug 14, 2018, 11:38:52 AM8/14/18
to try...@googlegroups.com
Hie

El dv., 10 d’ag. 2018, 09:25, Risto Paasila <ri...@longpoint.org.au> va escriure:
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/CADK5Bxj-hFZih8SZFtX21EoBc_HQG%2BV4f6p-dR7555KuKpbvjg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages