trytond 4.0 new install - http 500

273 views
Skip to first unread message

Balazs Nagy

unread,
Jun 1, 2016, 10:50:04 AM6/1/16
to tryton
Hello Everybody!

I am just trying to install for testing and learning the tryton server from source on debian 8.4, following the documentation. The prerequisites are installed, I've downloaded the source relase (tryton-sao-4.0.0.tgz) unpacked and run the 'python setup.py install'. The configuration file contains the following keys:
[database]
uri = postgresql://tryton:123456@localhost/
data_path = /root/trytond_lib
[web]
listen = *:80

The database initalize went well, so I started the server with the following command: trytond -c ~/tryton.conf -v -d trytondb

/usr/local/lib/python3.4/dist-packages/relatorio-0.6.2-py3.4.egg/relatorio/templates/__init__.py:29: UserWarning: Unable to load plugin 'chart'
  warnings.warn("Unable to load plugin '%s'" % name)
/usr/local/lib/python3.4/dist-packages/trytond-4.0.0-py3.4.egg/trytond/modules/__init__.py:143: DeprecationWarning: This method will be removed in future versions.  Use 'parser.read_file()' instead.
  module_config.readfp(fp)
5284 -1219880640 [2016-06-01 14:16:08,353] INFO trytond.config using /root/tryton.conf as configuration file
5284 -1219880640 [2016-06-01 14:16:08,358] INFO trytond.pool init pool for "trytondb"
5284 -1219880640 [2016-06-01 14:16:08,410] INFO trytond.backend.postgresql.database connect to "trytondb"
5284 -1219880640 [2016-06-01 14:16:08,706] INFO trytond.modules ir
5284 -1219880640 [2016-06-01 14:16:08,711] INFO trytond.modules res
5284 -1219880640 [2016-06-01 14:16:08,714] INFO trytond.pool setup pool for "trytondb"
5284 -1219880640 [2016-06-01 14:16:08,883] INFO trytond.modules all modules loaded
5284 -1219880640 [2016-06-01 14:16:08,902] INFO werkzeug  * Running on http://localhost:80/ (Press CTRL+C to quit)

When I try to reach the server :
 curl -v -L http://localhost
* Rebuilt URL to: http://localhost/
* Hostname was NOT found in DNS cache
*   Trying ::1...
* connect to ::1 port 80 failed: Connection refused
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.38.0
> Host: localhost
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 302 FOUND
< Content-Type: text/html; charset=utf-8
< Content-Length: 229
< Location: http://localhost/index.html
< Server: Werkzeug/0.11.10 Python/3.4.2
< Date: Wed, 01 Jun 2016 14:18:17 GMT
<
* Closing connection 0
* Issue another request to this URL: 'http://localhost/index.html'
* Hostname was found in DNS cache
*   Trying ::1...
* connect to ::1 port 80 failed: Connection refused
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 80 (#1)
> GET /index.html HTTP/1.0
> User-Agent: curl/7.38.0
> Host: localhost
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 500 INTERNAL SERVER ERROR
< Content-Type: text/html
< Content-Length: 291
< Server: Werkzeug/0.11.10 Python/3.4.2
< Date: Wed, 01 Jun 2016 14:18:17 GMT
<
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request.  Either the server is overloaded or there is an error in the application.</p>
* Closing connection 1

I got HTTP 500 response and I see the following in trytond logs:
5284 -1246794944 [2016-06-01 14:18:17,083] INFO werkzeug 127.0.0.1 - - [01/Jun/2016 14:18:17] "GET / HTTP/1.1" 302 -
5284 -1246794944 [2016-06-01 14:18:17,235] INFO werkzeug 127.0.0.1 - - [01/Jun/2016 14:18:17] "GET /index.html HTTP/1.0" 500 -
5284 -1246794944 [2016-06-01 14:18:17,259] ERROR werkzeug Error on request:
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/Werkzeug-0.11.10-py3.4.egg/werkzeug/serving.py", line 193, in run_wsgi
    execute(self.server.app)
  File "/usr/local/lib/python3.4/dist-packages/Werkzeug-0.11.10-py3.4.egg/werkzeug/serving.py", line 183, in execute
    for data in application_iter:
  File "/usr/local/lib/python3.4/dist-packages/Werkzeug-0.11.10-py3.4.egg/werkzeug/wsgi.py", line 703, in __next__
    return self._next()
  File "/usr/local/lib/python3.4/dist-packages/Werkzeug-0.11.10-py3.4.egg/werkzeug/wrappers.py", line 81, in _iter_encoded
    for item in iterable:
TypeError: 'RequestRedirect' object is not iterable

What is missing or what did I wrong?

Thank you,
Balazs

Balazs Nagy

unread,
Jun 1, 2016, 11:55:04 AM6/1/16
to tryton
Hello,

I have to correct myselft, I have downloaded the trytond-4.0.0.tar.gz package, not the sao :)

Best Regards,
Balazs

Udo Spallek

unread,
Jun 3, 2016, 3:57:51 AM6/3/16
to try...@googlegroups.com
Hi,

Wed, 1 Jun 2016 07:34:26 -0700 (PDT)
Balazs Nagy <fla...@gmail.com>:

>[web]
>listen = *:80

Did you try another port like 8000? and maybe use localhost instead of
*:

listen = localhost:8000

Regards Udo
--
_____________________________
virtual things
Preisler & Spallek GbR
München - Aachen

Windeckstr. 77
81375 München
Tel: +49 (89) 710 481 55
Fax: +49 (89) 710 481 56

in...@virtual-things.biz
http://www.virtual-things.biz

Balazs Nagy

unread,
Jun 17, 2016, 8:50:04 AM6/17/16
to tryton
Hi,

Yes, after I wrote found the problem with the config [web] - I forget change the default folder path. 
So now I have an another problem :)
I'm trying to install the SAO web client v4.0.0 but I got always the following error

Step 10 : RUN curl -SL https://downloads.tryton.org/4.0/tryton-sao-4.0.0.tgz | tar xz -C /usr/src/app --strip 1  && npm install -g
 ---> Running in 6632edb76ab5
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  492k  100  492k    0     0   170k      0  0:00:02  0:00:02 --:--:--  170k
> tryto...@4.0.0 postinstall /usr/local/node/lib/node_modules/tryton-sao
> bower install

Error: EACCES, permission denied '/root/.config/configstore/bower-github.json'
You don't have access to this file.
    at Object.fs.openSync (fs.js:439:18)
    at Object.fs.readFileSync (fs.js:290:15)
    at Object.create.all.get (/usr/local/nodejs/lib/node_modules/tryton-sao/node_modules/bower/lib/node_modules/configstore/index.js:35:26)
    at Object.Configstore (/usr/local/nodejs/lib/node_modules/tryton-sao/node_modules/bower/lib/node_modules/configstore/index.js:28:44)
    at readCachedConfig (/usr/local/nodejs/lib/node_modules/tryton-sao/node_modules/bower/lib/config.js:19:23)
    at defaultConfig (/usr/local/nodejs/lib/node_modules/tryton-sao/node_modules/bower/lib/config.js:11:12)
    at Object.<anonymous> (/usr/local/nodejs/lib/node_modules/tryton-sao/node_modules/bower/lib/index.js:16:32)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/usr/local/node/bin/node" "/usr/local/node/bin/npm" "install" "-g"
npm ERR! node v0.10.45
npm ERR! npm  v2.15.1
npm ERR! code ELIFECYCLE
npm ERR! tryto...@4.0.0 postinstall: `bower install`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the tryto...@4.0.0 postinstall script 'bower install'.

It is a docker debian jessie conatiner, I've tried other node.js versions with the same result. Could please give me some help or advice?

Thank you,
Balazs

Cédric Krier

unread,
Jun 17, 2016, 9:10:03 AM6/17/16
to tryton
On 2016-06-17 05:08, Balazs Nagy wrote:
> I'm trying to install the SAO web client v4.0.0 but I got always the
> following error
>
> Step 10 : RUN curl -SL https://downloads.tryton.org/4.0/tryton-sao-4.0.0.tgz
> | tar xz -C /usr/src/app --strip 1 && npm install -g
> ---> Running in 6632edb76ab5
> % Total % Received % Xferd Average Speed Time Time Time
> Current
> Dload Upload Total Spent Left
> Speed
> 100 492k 100 492k 0 0 170k 0 0:00:02 0:00:02 --:--:--
> 170k
> > tryto...@4.0.0 postinstall /usr/local/node/lib/node_modules/tryton-sao
> > bower install
>
> Error: EACCES, permission denied
> '/root/.config/configstore/bower-github.json'

This is a bower use. But I guess you are not root but for some reason
bower tries to store data in root home.
So you could try to run it as root.


PS: Please don't top-post on this mailing list, see
http://groups.tryton.org/netiquette
--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Balazs Nagy

unread,
Jun 17, 2016, 9:35:04 AM6/17/16
to tryton
Hi Cédric,

Thank you the advice, I'm going the update the docker build file :)

Regards,
Balazs

 
 
Reply all
Reply to author
Forward
0 new messages