Discussion:
[tryton] Trying out Tryton via Docker
RisP
2018-08-08 03:56:28 UTC
Permalink
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.
--
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/247e76c0-c8e2-4546-8882-0079ade45397%40googlegroups.com.
Sergi Almacellas Abellana
2018-08-08 08:38:57 UTC
Permalink
Post by RisP
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?
Post by RisP
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
--
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/0ba157b7-0721-6c17-8f09-84ed7119859b%40koolpi.com.
'Cédric Krier' via tryton
2018-08-09 07:19:56 UTC
Permalink
Post by Sergi Almacellas Abellana
Post by RisP
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: ***@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
--
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/20180809071956.pwtd5ojj4tdv7dsb%40kei.
Mathias Behrle
2018-08-09 09:32:28 UTC
Permalink
* 'Cédric Krier' via tryton: " Re: [tryton] Trying out Tryton via Docker" (Thu,
Post by 'Cédric Krier' via tryton
Post by Sergi Almacellas Abellana
Post by RisP
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
--
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/20180809113228.008455c2%40monsterix.mbehrle.de.
Risto Paasila
2018-08-10 00:19:51 UTC
Permalink
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'
* 'Cédric Krier' via tryton: " Re: [tryton] Trying out Tryton via Docker" (Thu,
Post by 'Cédric Krier' via tryton
Post by Sergi Almacellas Abellana
Post by RisP
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
--
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.
--
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.
Raimon Esteve
2018-08-14 15:38:39 UTC
Permalink
Hie
Post by Risto Paasila
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
C:\Users\risto>docker run --link tryton-postgres:postgres -it
tryton/tryton trytond-admin -d tryton --all
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'
Last ldap3 require upgrade pyasn1

https://bitbucket.org/nantic/tryton-config/commits/0db3eb0d56a103e1935fc0e7729d1caa7f04e437
Post by Risto Paasila
Post by Mathias Behrle
* 'Cédric Krier' via tryton: " Re: [tryton] Trying out Tryton via
Docker" (Thu,
Post by Mathias Behrle
Post by 'Cédric Krier' via tryton
Post by Sergi Almacellas Abellana
Post by RisP
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
Post by Mathias Behrle
--
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
--
You received this message because you are subscribed to a topic in the
Google Groups "tryton" group.
Post by Mathias Behrle
To view this discussion on the web visit
https://groups.google.com/d/msgid/tryton/20180809113228.008455c2%40monsterix.mbehrle.de
.
--
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
.
--
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/CAN2HbXXR%2BYU6Xz_iiJiQvkcT74Wo1J3porkqgoeX%2B3W%3D_Tf7%2BQ%40mail.gmail.com.
Risto Paasila
2018-08-10 00:40:31 UTC
Permalink
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.
Post by Sergi Almacellas Abellana
Post by RisP
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?
Post by RisP
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
--
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.
--
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/CADK5BxissEtN1kbGFCTORr7uVr%3DA4WSUBtZJGw%2BBf5pG13z6oA%40mail.gmail.com.
Loading...