Could not connect to server tryton 4.2

290 views
Skip to first unread message

Khurram Shahzad

unread,
Jul 14, 2017, 6:31:27 AM7/14/17
to try...@googlegroups.com
Dear All,

After installing GNU Health 3.2 in virtual environment, I am able to start trytond and can see the following last line in the log:

23324 139852617877248 [2017-07-14 03:50:30,892] INFO werkzeug  * Running on http://localhost:8000/ (Press CTRL+C to quit)

However, when I connect when I connect from Tryton 4.2 client, client shows error 'Could not connect to the server'. The log shows the following line:

'23324 139852519048960 [2017-07-14 03:51:14,490] INFO werkzeug 172.29.2.217 - - [14/Jul/2017 03:51:14] "POST / HTTP/1.1" 200 -

Kindly help.

--
 
Regards,
Khurram.

Sergi Almacellas Abellana

unread,
Jul 14, 2017, 6:47:32 AM7/14/17
to try...@googlegroups.com
El 14/07/17 a les 12:31, Khurram Shahzad ha escrit:
> Dear All,
>
> After installing GNU Health 3.2 in virtual environment, I am able to
> start trytond and can see the following last line in the log:
>
> *23324 139852617877248 [2017-07-14 03:50:30,892] INFO werkzeug *
> Running on http://localhost:8000/ (Press CTRL+C to quit)*
if you are conection from another machine, you should modify your config
files to listen to all interfaces. See:

http://doc.tryton.org/4.2/trytond/doc/topics/configuration.html#listen

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

Khurram Shahzad

unread,
Jul 14, 2017, 11:06:17 AM7/14/17
to try...@googlegroups.com
On Fri, Jul 14, 2017 at 3:47 PM, Sergi Almacellas Abellana <se...@koolpi.com> wrote:
El 14/07/17 a les 12:31, Khurram Shahzad ha escrit:
Dear All,

After installing GNU Health 3.2 in virtual environment, I am able to start trytond and can see the following last line in the log:

*23324 139852617877248 [2017-07-14 03:50:30,892] INFO werkzeug  * Running on http://localhost:8000/ (Press CTRL+C to quit)*
if you are conection from another machine, you should modify your config files to listen to all interfaces. See:

Whenever I try to connect, I see a message in the log file as stated earlier.
 

http://doc.tryton.org/4.2/trytond/doc/topics/configuration.html#listen


I have tried connecting from the same machine as well but failed.
--
 
Regards,
Khurram.

Sergi Almacellas Abellana

unread,
Jul 17, 2017, 3:54:45 AM7/17/17
to try...@googlegroups.com
El 14/07/17 a les 17:06, Khurram Shahzad ha escrit:
>
>
> On Fri, Jul 14, 2017 at 3:47 PM, Sergi Almacellas Abellana
> <se...@koolpi.com <mailto:se...@koolpi.com>> wrote:
>
> El 14/07/17 a les 12:31, Khurram Shahzad ha escrit:
>
> Dear All,
>
> After installing GNU Health 3.2 in virtual environment, I am
> able to start trytond and can see the following last line in the
> log:
>
> *23324 139852617877248 [2017-07-14 03:50:30,892] INFO werkzeug
> * Running on http://localhost:8000/ (Press CTRL+C to quit)*
>
> if you are conection from another machine, you should modify your
> config files to listen to all interfaces. See:
>
>
> Whenever I try to connect, I see a message in the log file as stated
> earlier.
But this log says that the tryton client is conecting to the server.

Can you use the --dev flag on client and the --verbose and --dev flag on
server to see the full output and paste it here?

Khurram Shahzad

unread,
Jul 27, 2017, 4:04:12 AM7/27/17
to try...@googlegroups.com
Dear Sergi,

After using these flags, following are the outputs:

********************** From Tryton Server:
21892 139993720813312 [2017-07-27 07:56:59,261] INFO werkzeug 127.0.0.1 - - [27/Jul/2017 07:56:59] "POST / HTTP/1.1" 200 -
21892 139993720813312 [2017-07-27 07:56:59,347] INFO werkzeug 127.0.0.1 - - [27/Jul/2017 07:56:59] "POST / HTTP/1.1" 200 -

******************** From tryton Client
INFO:tryton.rpc:common.db.list()
INFO:tryton.rpc:common.server.version(None, None)

I am extremely sorry for the late response as I got stuck in  some domestic issues.

Another interesting thing I want to share is that when I install GNU Health in Virtual Environment, it gets installed successfully and all the following modules are installed during this process:
pip install werkzeug
pip install numpy
pip install table
pip install python-sql (please note that only 'sql' package will not work)
pip install wrapt
pip install lxml
pip install polib
pip install genshi
pip install relatorio
pip install python-stdnum
pip install caldav
pip install PyWebDAV3 (please note 3 at end for python3)
pip install pytz
pip install simpleeval
pip install python-levenshtein
pip install pybarcode

However, when I start the Tryton Server, I get the error like 'werkzeug' module not found. So, I installed it manually using PIP. Then I get error for numpy and so on. So, I have to install all the above mentioned modules again and then I am able to run the Tryton Server. Does it relate to this 'unable to connect to server' error?


--
 
Regards,
Khurram.

Sergi Almacellas Abellana

unread,
Jul 27, 2017, 4:06:26 AM7/27/17
to try...@googlegroups.com
El 27/07/17 a les 10:04, Khurram Shahzad ha escrit:
> Dear Sergi,
>
> On Mon, Jul 17, 2017 at 12:54 PM, Sergi Almacellas Abellana
> <se...@koolpi.com <mailto:se...@koolpi.com>> wrote:
>
> El 14/07/17 a les 17:06, Khurram Shahzad ha escrit:
>
>
>
> On Fri, Jul 14, 2017 at 3:47 PM, Sergi Almacellas Abellana
> <se...@koolpi.com <mailto:se...@koolpi.com>
I don't see any error on the server nor the client. So it seems that
everything is ok.
Please use a new thread for separate issues. Thanks
Reply all
Reply to author
Forward
0 new messages