We are new with Tryton.
We installed the docker aplication on windows and followed the https://hub.docker.com/r/tryton/tryton/ guide to install.
It did not produced any errors, when we try to connect to http://localhost:8080 it prompt us for the user for the tryton db, we input admin and the password used in the default installation which is “mysecretpassword” (we also tried different ones) but it keeps prompting for the password and we can never access it.
What are we doing wrong?
we also tried to connect with the windows desktop client but it cannt find the db.
Thank you very much
It is probably not the password you think you have typed.
You can reset the password with
trytond-admin --reset-password -d <database name>
I guess it is from another machine, so you must be sure that the docker host redirect the connection to the docker container.
Hello Cédric, we tried to change the password on the CMD but it says trytond is not a command. besides the tryton package do we need to install trytond?
It is a command to run on the docker container like:
docker run --link tryton-postgres:postgres -it tryton/tryton trytond-admin -d tryton --reset-password
With a docker image you have nothing to install, everything is embedded into the image.
>docker trytond-admin --reset-password -d tryton and got this: unknown flag: --reset-password See 'docker --help'
Thank you so much
It didnt work for us, it is really strange
the last command said:unknown flag: --reset-password
Well from what you copied, it is not the same command as the one I gave. You are missing the
run action and the
-it options etc.
you were right, when we run the complete command we get this:
Traceback (most recent call last):
File “/usr/local/bin/trytond-admin”, line 21, in
File “/usr/local/lib/python3.5/dist-packages/trytond/admin.py”, line 120, in run
File “/usr/local/lib/python3.5/dist-packages/trytond/transaction.py”, line 122, in exit
self.stop(type is None)
File “/usr/local/lib/python3.5/dist-packages/trytond/transaction.py”, line 133, in stop
File “/usr/local/lib/python3.5/dist-packages/trytond/transaction.py”, line 206, in commit
File “/usr/local/lib/python3.5/dist-packages/trytond/sendmail.py”, line 94, in tpc_vote
self._server = get_smtp_server(self.uri)
File “/usr/local/lib/python3.5/dist-packages/trytond/sendmail.py”, line 55, in get_smtp_server
server = smtplib.SMTP(uri.hostname, uri.port, **extra)
File “/usr/lib/python3.5/smtplib.py”, line 251, in init
(code, msg) = self.connect(host, port)
File “/usr/lib/python3.5/smtplib.py”, line 335, in connect
self.sock = self._get_socket(host, port, self.timeout)
File “/usr/lib/python3.5/smtplib.py”, line 306, in _get_socket
File “/usr/lib/python3.5/socket.py”, line 712, in create_connection
File “/usr/lib/python3.5/socket.py”, line 703, in create_connection
OSError: [Errno 99] Cannot assign requested address
could it have to do with firewall or antivirus?
Indeed I gave you the command to send a reset password so it requires to have an SMTP server configured.
Indeed you can just use the command to set the password:
docker run --link tryton-postgres:postgres -it tryton/tryton trytond-admin -d tryton --password
thank you sooo much Cédric.
Have a nice day