Error: Incompatible version of the server

270 views
Skip to first unread message

Ashish Kumar

unread,
Mar 9, 2016, 1:05:04 PM3/9/16
to tryton-dev
Hi,

I was trying to setup tryton on my machine (ubuntu) but I am getting Incompatible version of the server error. I have followed below steps:

2. Run bin/trytond
3. I have installed tryton from pip
4. Run tryton
5. Filled the database details (Image1)

6. Error (Image2)


Raimon Esteve

unread,
Mar 9, 2016, 1:12:25 PM3/9/16
to tryto...@googlegroups.com


El dia 09/03/2016 19.05, "Ashish Kumar" <ashish.ku...@gmail.com> va escriure:


>
> Hi,
>
> I was trying to setup tryton on my machine (ubuntu) but I am getting Incompatible version of the server error. I have followed below steps:
>
> 1.   hg clone https://hg.tryton.org/trytond

Default branch is v3.9. Change to 3.8 branch

> 2. Run bin/trytond
> 3. I have installed tryton from pip

Last version is 3.8

> 4. Run tryton
> 5. Filled the database details (Image1)
>

> 6. Error (Image2)

Ashish Kumar

unread,
Mar 10, 2016, 6:25:04 AM3/10/16
to tryton-dev
Hi,
I have changed the version but now it is giving IoError.

tryton --version
Tryton 3.8.4

trytond --version
trytond 3.8.0


Traceback:
ERROR:tryton.common.common:Traceback (most recent call last):
  File "/trytond/protocols/jsonrpc.py", line 162, in _marshaled_dispatch
    response['result'] = dispatch_method(method, params)
  File "/trytond/protocols/jsonrpc.py", line 191, in _dispatch
    res = dispatch(*args)
  File "/trytond/protocols/dispatcher.py", line 41, in dispatch
    res = security.login(database_name, user, session)
  File "/trytond/security.py", line 24, in login
    pool = _get_pool(dbname)
  File "/trytond/security.py", line 18, in _get_pool
    pool.init()
  File "/trytond/pool.py", line 144, in init
    self.start()
  File "/trytond/pool.py", line 97, in start
    register_classes()
  File "/trytond/modules/__init__.py", line 328, in register_classes
    for package in create_graph(get_module_list())[0]:
  File "/trytond/modules/__init__.py", line 158, in create_graph
    info = get_module_info(module)
  File "/trytond/modules/__init__.py", line 142, in get_module_info
    with tools.file_open(os.path.join(name, 'tryton.cfg')) as fp:
  File "/trytond/tools/misc.py", line 97, in file_open
    raise IOError('File not found : %s ' % name)
IOError: File not found : /trytond/modules/stock_location_sequence/tryton.cfg 

File not found : /usr/local/lib/python2.7/dist-packages/trytond-3.8.0-py2.7.egg/trytond/modules/stock_location_sequence/tryton.cfg

Jesús Martín Jiménez

unread,
Mar 10, 2016, 6:37:45 AM3/10/16
to tryto...@googlegroups.com
Hi,

You have downloaded a module that depends of stock_location_sequence module, but this module is not in your installation. You must download this module first.
 

On Wednesday, 9 March 2016 23:42:25 UTC+5:30, raimonesteve wrote:


El dia 09/03/2016 19.05, "Ashish Kumar" <ashish.ku...@gmail.com> va escriure:
>
> Hi,
>
> I was trying to setup tryton on my machine (ubuntu) but I am getting Incompatible version of the server error. I have followed below steps:
>
> 1.   hg clone https://hg.tryton.org/trytond

Default branch is v3.9. Change to 3.8 branch

> 2. Run bin/trytond
> 3. I have installed tryton from pip

Last version is 3.8

> 4. Run tryton
> 5. Filled the database details (Image1)
>
> 6. Error (Image2)

--
You received this message because you are subscribed to the Google Groups "tryton-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/edb2af69-1a58-4f68-a1db-a0e705d21300%40googlegroups.com.



--

Jesús Martín

Zikzakmedia SL
C/ de Sant Jaume, 9, baixos, 2ª
08720 Vilafranca del Penedès
☏ 93 890 21 08

Cédric Krier

unread,
Mar 10, 2016, 6:40:03 AM3/10/16
to tryton-dev
It means that the module stock_location_sequence is not installed but it
is defined in your database.

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/

Ashish Kumar

unread,
Mar 11, 2016, 3:25:05 AM3/11/16
to tryton-dev
Hi,
 

It means that the module stock_location_sequence is not installed but it
is defined in your database.

Ok, I tried reinstalling everything as below.

I have followed below steps for installing tryton in my machine (32 bit ubuntu).
3. In each directory, sudo python setup.py install
4. Create postgresql database,  sudo -u postgres createdb tryton-db
5. Create superuser, sudo -u postgres createuser --superuser ashish
6. Created a config.ini file with following details:
[database]
uri = postgresql://ashish:ashish@localhost:8000/ 
path = /var/lib/trytond
7. Initialize the database as follows:
trytond -c config.ini -d trytond --all

It is stuck in this command, no prompt for password as mentioned on the http://doc.tryton.org/3.4/trytond/doc/topics/setup_database.html.

8. I ran bin/tryton and filled the details as below
host: localhost:8000
database: tryton-db
username: ashish (postgresql-user)
password: ashish (password)

GETTING CONNECTION ERROR (BAD USERNAME/PASSWORD). I TRIED WITH ROOT USERNAME AND PASSWORD BUT STILL THE SAME ERROR. I THINK IT IS BECAUSE MY DATABASE IS NOT GETTING INITIALIZED. I THINK I AM MISSING SOMETHING HERE. CAN SOMEONE PLEASE HELP ME OUT HERE.

9. localhost:8000 in the browser is giving:

Error response

Error code 404.

Message: File not found.

Error code explanation: 404 = Nothing matches the given URI.


Thanks

Jesús Martín Jiménez

unread,
Mar 11, 2016, 3:35:35 AM3/11/16
to tryto...@googlegroups.com
Hi,

2016-03-11 7:26 GMT+01:00 Ashish Kumar <ashish.ku...@gmail.com>:
Hi,
 

It means that the module stock_location_sequence is not installed but it
is defined in your database.

Ok, I tried reinstalling everything as below.

I have followed below steps for installing tryton in my machine (32 bit ubuntu).
3. In each directory, sudo python setup.py install
4. Create postgresql database,  sudo -u postgres createdb tryton-db
5. Create superuser, sudo -u postgres createuser --superuser ashish
6. Created a config.ini file with following details:
[database]
uri = postgresql://ashish:ashish@localhost:8000/ 
path = /var/lib/trytond

You must set the super user password on this config file [1]

[1] http://doc.tryton.org/3.4/trytond/doc/topics/configuration.html#super-pwd
 
7. Initialize the database as follows:
trytond -c config.ini -d trytond --all

It is stuck in this command, no prompt for password as mentioned on the http://doc.tryton.org/3.4/trytond/doc/topics/setup_database.html.

8. I ran bin/tryton and filled the details as below
host: localhost:8000
database: tryton-db
username: ashish (postgresql-user)
password: ashish (password)

GETTING CONNECTION ERROR (BAD USERNAME/PASSWORD). I TRIED WITH ROOT USERNAME AND PASSWORD BUT STILL THE SAME ERROR. I THINK IT IS BECAUSE MY DATABASE IS NOT GETTING INITIALIZED. I THINK I AM MISSING SOMETHING HERE. CAN SOMEONE PLEASE HELP ME OUT HERE.

9. localhost:8000 in the browser is giving:

Error response

Error code 404.

Message: File not found.

Error code explanation: 404 = Nothing matches the given URI.


Thanks

--
You received this message because you are subscribed to the Google Groups "tryton-dev" group.

Cédric Krier

unread,
Mar 11, 2016, 3:45:04 AM3/11/16
to tryton-dev
On 2016-03-10 22:26, Ashish Kumar wrote:
> Hi,
>
>
> >
> > It means that the module stock_location_sequence is not installed but it
> > is defined in your database.
> >
> > Ok, I tried reinstalling everything as below.
>
> I have followed below steps for installing tryton in my machine (32 bit
> ubuntu).
> 1. hg clone http://hg.tryton.org/trytond/
> 2. hg clone http://hg.tryton.org/tryton/
> 3. In each directory, sudo python setup.py install
> 4. Create postgresql database, sudo -u postgres createdb tryton-db
> 5. Create superuser, sudo -u postgres createuser --superuser ashish
> 6. Created a config.ini file with following details:
> [database]
> uri = postgresql://ashish:ashish@localhost:8000/
> path = /var/lib/trytond
> 7. Initialize the database as follows:
> trytond -c config.ini -d trytond --all
>
> It is stuck in this command, no prompt for password as mentioned on the
> http://doc.tryton.org/3.4/trytond/doc/topics/setup_database.html.

Did you have to run this command twice (because of any exception)?
If yes, trytond doesn't ask for a password the second time, you have to
drop the database and start again.

Rem: use the 3.8 documentation which is closer to trunk.

> 8. I ran bin/tryton and filled the details as below
> host: localhost:8000
> database: tryton-db
> username: ashish (postgresql-user)
> password: ashish (password)

The credential are admin and the password trytond should ask you.

> GETTING CONNECTION ERROR (BAD USERNAME/PASSWORD). I TRIED WITH ROOT
> USERNAME AND PASSWORD BUT STILL THE SAME ERROR. I THINK IT IS BECAUSE MY
> DATABASE IS NOT GETTING INITIALIZED. I THINK I AM MISSING SOMETHING HERE.
> CAN SOMEONE PLEASE HELP ME OUT HERE.

Please avoid capital letter, it is felt as if you were yelling. See
http://groups.tryton.org/netiquette

> 9. localhost:8000 in the browser is giving:
> Error response
>
> Error code 404.
>
> Message: File not found.
>
> Error code explanation: 404 = Nothing matches the given URI.

If you want to use the web client, you must setup 'sao' by looking at
its README.

Cédric Krier

unread,
Mar 11, 2016, 3:50:05 AM3/11/16
to tryto...@googlegroups.com
On 2016-03-11 09:35, Jesús Martín Jiménez wrote:
> Hi,
>
> 2016-03-11 7:26 GMT+01:00 Ashish Kumar <ashish.ku...@gmail.com>:
>
> > Hi,
> >
> >
> >>
> >> It means that the module stock_location_sequence is not installed but it
> >> is defined in your database.
> >>
> >> Ok, I tried reinstalling everything as below.
> >
> > I have followed below steps for installing tryton in my machine (32 bit
> > ubuntu).
> > 1. hg clone http://hg.tryton.org/trytond/
> > 2. hg clone http://hg.tryton.org/tryton/
> > 3. In each directory, sudo python setup.py install
> > 4. Create postgresql database, sudo -u postgres createdb tryton-db
> > 5. Create superuser, sudo -u postgres createuser --superuser ashish
> > 6. Created a config.ini file with following details:
> > [database]
> > uri = postgresql://ashish:ashish@localhost:8000/
> > path = /var/lib/trytond
> >
>
> You must set the super user password on this config file [1]
>
> [1]
> http://doc.tryton.org/3.4/trytond/doc/topics/configuration.html#super-pwd

I don't think it is wise to advertise about usage that is going to
disappear: https://bugs.tryton.org/issue5384
Especially when Ashish is clearly using the documentation with the
server side creation.
Reply all
Reply to author
Forward
0 new messages