Install OpenERP 7.0 from trunk


While expecting the new release of OpenERP 7.0 I’ve wrote this simple tutorial how to install OpenERP 7.0 on Debian Linux and testing your custom modules.

Prepare your Debian Squeeze server

Create openerp user that will be used for running the OpenERP application

adduser --system --quiet --shell=/bin/bash --home=/opt/openerp --gecos 'OpenERP' --group openerp

Install PostgreSQL database server and add openerp as a postgres superuser

apt-get install postgresql
su - postgres -c "createuser -s openerp" 2> /dev/null || true

Install all the required dependencies for OpenERP

# EDIT: added python-unittest2 and python-mock thanks for the comments
# EDIT2: Added python-jinja2 because i got error: openerp.addons.email_template.email_template: jinja2 not available, templating features will not work!

apt-get install python-dateutil python-feedparser python-gdata python-ldap \
    python-libxslt1 python-lxml python-mako python-openid python-psycopg2 \
    python-pybabel python-pychart python-pydot python-pyparsing python-reportlab \
    python-simplejson python-tz python-vatnumber python-vobject python-webdav \
    python-werkzeug python-xlwt python-yaml python-zsi python-docutils \
    python-psutil bzr wget python-unittest2 python-mock python-jinja2

install latest gdata-python-client from http://code.google.com/p/gdata-python-client/downloads/list

wget http://gdata-python-client.googlecode.com/files/gdata-2.0.17.tar.gz
tar zxvf gdata-2.0.17.tar.gz
cd gdata-2.0.17/
python setup.py install

Install OpenERP 7.0 from launchpad’s trunk

We are going to get the latest files from launchpad.net repository and place them into /opt/openerp

EDIT: changed the trunk branch to 7.0 branch which was created after the 7.0 launch

su - openerp
cd /opt/openerp
bzr branch lp:openobject-server/7.0 server
bzr branch lp:openobject-addons/7.0 addons
bzr branch lp:openerp-web/7.0 web

I’ve created a simple bash script for starting OpenERP where i and changing just the ports so i can run multiple instances and also catch 5 args for some custom start

vi start

# EDIT: added full path to addons-path

#!/bin/bash
./server/openerp-server --xmlrpc-port=40069 --netrpc-port=40070 --addons-path=/opt/openerp/addons,/opt/openerp/web/addons $1 $2 $3 $4 $5 &

If you want to see all the options that you can use type

./server/openerp-server -h

Now make the file executable and start the server

chmod +x start
./start

# EDIT: if you want yo use all options see my post where I’ve explained most of the config options openerp-server.conf for OpenERP 7 explained

Now you can start your OpenERP 7.0 server on http://<Your_Server_IP>:40069/ and start testing your modules. Also don’t forget that this is a development versions and changes are made every day.

OpenERP 7.0 Web Interface

To enable the old Extended view and have more options available for you make sure you enable Technical Features under Settings-> Administrator-> Access Rights

OpenERP7 Technical Features

Note: If you want to contribute to the community visit the launchpad’s OpenERP project website.

OpenERP Server: https://launchpad.net/openobject-server
OpenERP Addons: https://launchpad.net/openobject-addons
Web modules: https://launchpad.net/openerp-web



Subscribe
Notify of
guest
108 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Yug Faa
Yug Faa
7 years ago

Thank you so much
it’s very intersting

i think you have a probleme in the user openerp creation, i report a problem

Manuel Altamirano
Manuel Altamirano
7 years ago

error
openerp@OpenERP-desktop:~$ ./start
2012-11-24 14:46:56,966 4254 INFO ? openerp: OpenERP version 7.0alpha
2012-11-24 14:46:56,967 4254 INFO ? openerp: addons paths: /opt/openerp/addons,/opt/openerp/web/addons
2012-11-24 14:46:56,967 4254 INFO ? openerp: database hostname: localhost
2012-11-24 14:46:56,967 4254 INFO ? openerp: database port: 5432
2012-11-24 14:46:56,967 4254 INFO ? openerp: database user: openerp
2012-11-24 14:46:57,297 4254 CRITICAL ? openerp.modules.module: Couldn’t load module web
2012-11-24 14:46:57,298 4254 CRITICAL ? openerp.modules.module: No module named wsgi
2012-11-24 14:46:57,298 4254 ERROR ? openerp.service: Failed to load server-wide module `web`.
…..

Manuel Altamirano
Manuel Altamirano
7 years ago

Thank you so much
but can not get it to work, I get the error stated above.

murali krishna
murali krishna
7 years ago

Same Issue For me also… I didn’t installed it. I just try to start the server manually like:

./openerp-server –addons-path=openerp/addons,web/addons

getting error like :

openerp.modules.module: Couldn’t load module web
2012-11-27 06:11:35,115 16436 CRITICAL ? openerp.modules.module: No module named docutils.core
2012-11-27 06:11:35,115 16436 ERROR ? openerp.service: Failed to load server-wide module `web`.

murali krishna
murali krishna
7 years ago

I installed the “werkzeug” also using “sudo pip install werkzeug”.But, still same issue

yoga
yoga
7 years ago

like this.. when openerp 7.0 stable done? do you know? tanks

chizuoka
chizuoka
7 years ago

I got this error … killed KB. It always ends at 477407. Whats it mean?

openerp@ip-10-131-25-135:~$ bzr branch lp:openobject-addons addons
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See “bzr help launchpad-login”.
KilledkB 972kB/s | Fetching revisions:Inserting stream:Estimate 477407/567303

Ariel
Ariel
7 years ago

In my case, the process was auto-killed because my small amount of RAM (Amazon Micro Instance).

Simply add some swap!

Colin Mollenhour
Colin Mollenhour
7 years ago
Reply to  chizuoka

Same problem for me. I used this method:

$ bzr branch lp:openobject-addons addons -r1

$ cd addons

$ bzr pull -r2000 && bzr pull -r 4000 && bzr pull -r 6000 && bzr pull

chizuoka
chizuoka
7 years ago

I also get this later.. I assume is because of the above error

openerp@ip-10-131-25-135:~$ Usage: openerp-server [options]

openerp-server: error: option –addons-path: The addons-path ‘addons’ does not seem to a be a valid Addons Directory!

chizuoka
chizuoka
7 years ago

Nope.. im the only one on the server. It also gets killed on that exact same number… 477407.. any idea why that could happen? something wrong with the branch?

chizuoka
chizuoka
7 years ago

Could i perhaps download it manually then copy it over? Is that possible?

metabyte
metabyte
7 years ago

Hello, Thank you for this nice article 9and the others). Now, I tried the installation process following all these steps. I am trying this on TurnkeyLinux version 12 (which is Debian based). Here is the error and get when I executre ./start Traceback (most recent call last): File “./server/openerp-server”, line 2, in import openerp File “/opt/openerp/server/openerp/__init__.py”, line 28, in import addons File “/opt/openerp/server/openerp/addons/__init__.py”, line 38, in from openerp.modules import get_module_resource, get_module_path File “/opt/openerp/server/openerp/modules/__init__.py”, line 27, in from . import db, graph, loading, migration, module, registry File “/opt/openerp/server/openerp/modules/graph.py”, line 32, in import openerp.osv as osv File “/opt/openerp/server/openerp/osv/__init__.py”, line 22, in import… Read more »

Chris_C_
Chris_C_
7 years ago

Thanks for the instructions.

But I got the serious error “openerp.service: Failed to load server-wide module `web`.”

Browser on port 40069 gave error “No handler found.”.
Found this page: https://bugs.launchpad.net/openobject-server/+bug/1088660

Solution: I installed these 2 missing packages.

apt-get install python-unittest2 python-mock

Now the ./start script works perfectly, no errors.
When you go to the address of the server, port 40069, OpenERP “Create Database” screen shows up in the browser.

Thanks again!!

James Coulombe
7 years ago
Reply to  Chris_C_

Thanks Chris!
This did the trick for my install -works great now! – Many thanks.

Victor
7 years ago

I had problems using the instructions on this post in Debian Wheezy 64bit, but installing unittest2 and python-mock as suggested by Chris_C_ ( apt-get install python-unittest2 python-mock ) solved them.

Thanks!

Philippe
Philippe
7 years ago

Hi, Thanks for your tutorial. I’m having a problem on the wbsite at the firts launch. I’m trying to create the database, but I get some errors : OpenERP Server Error Client Traceback (most recent call last): File “/opt/openerp/web/addons/web/http.py”, line 195, in dispatch response[“result”] = method(self, **self.params) File “/opt/openerp/web/addons/web/controllers/main.py”, line 718, in create params[‘create_admin_pwd’]) File “/opt/openerp/web/addons/web/session.py”, line 28, in proxy_method result = self.session.send(self.service_name, method, *args) File “/opt/openerp/web/addons/web/session.py”, line 101, in send raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info) Server Traceback (most recent call last): File “/opt/openerp/web/addons/web/session.py”, line 87, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File “/opt/openerp/server/openerp/netsvc.py”, line 281, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params)… Read more »

trackback

[…] opératoire basé sur cet article de Nikola […]

barrief
7 years ago

Had the same problem, Nikola gave the good hint.

What I did on my Debian box with root :

# sudo -u postgres psql

Then :

postgres=# UPDATE pg_database SET datistemplate = FALSE WHERE datname = ‘template1’;

postgres=# DROP DATABASE template1;

postgres=# CREATE DATABASE template1 WITH TEMPLATE = template0 ENCODING = ‘UNICODE’;

postgres=# UPDATE pg_database SET datistemplate = TRUE WHERE datname = template 1′;

postgres=# c template1
psql (8.4.13)
You are now connected to database “template1”.
template1=# VACUUM FREEZE;

Then you just have to q to quit. and rerun the openerp server + run the database creation.

Alex
Alex
7 years ago

I’m getting a repeating error:
2012-12-28 19:24:30,032 9710 CRITICAL ? openerp.modules.module: Couldn’t load module web
2012-12-28 19:24:30,033 9710 CRITICAL ? openerp.modules.module: No module named openid
2012-12-28 19:24:30,033 9710 ERROR ? openerp.service: Failed to load server-wide module `web`.
The `web` module is provided by the addons found in the `openerp-web` project.
Maybe you forgot to add those addons in your addons_path configuration.

I’m absolutely certain the addons_path is correct.. when I launch the browser I only get a message saying: “No handler found.”

patos
patos
7 years ago
Reply to  Alex

I’m getting exactly the same issue on a Debian. any Idea?

Wyn Williams
Wyn Williams
7 years ago

Very nicely done mate, very nicely done ;)

roque
7 years ago

howto I can change netport ?

roque
7 years ago

It’s ok, thanks

roque
7 years ago

howto I can change 0.0.0.0 by 127.0.0.1 ?

roque
7 years ago

ok and howto I can change password “admin” ?

roque
7 years ago

thanks, thanks, thanks.

Rodrigo
Rodrigo
7 years ago

Hi Nikola, your tutorial is very good.. my OpenERP 7 server is working.

Now I have a problem, when I need print some Invoice, exist this error:

“can’t map determine family/bold/italic for dejavu sans handle_pagebegin args=()”

I installed the “ttf-dejavu-extra” fonts and reboot the server, but the problem persist.

Can you any idea???, thank.

trackback

[…] web. Per qualche altra informazione su queste fasi potete anche consultare il link http://www.vionblog.com/install-openerp-7-0-from-trunk/, anche se non riguarda il sistema CentOS. Anche se non strettamente necessario, ho quindi lanciato […]

roque
7 years ago

run but

/usr/lib/pymodules/python2.6/babel/__init__.py:33: UserWarning: Module openerp was already imported from /home/openerp40010/server/openerp/__init__.pyc, but /usr/lib/pymodules/python2.6 is being added to sys.path
from pkg_resources import get_distribution, ResolutionError

thanks

roque
7 years ago
Reply to  roque

solved. I had an installation openerp6.1

AlexT
AlexT
7 years ago
Reply to  roque

Hi

Having the exact same message – don’t quite understand your mention of “I had an installation openerp 6.1”. I also had such an install and I “simply” rename the “server” folder before installing 7.0. Is there more to it ?

Thanks

sulliwane
sulliwane
7 years ago

Hi Nikola,

great tuto !

however, after 30mn of download with bzr branch lp:openobject-addons/7.0 addons
nothing in the folder addons !!!

and when trying to launch openerp with empty addons folder, I get this error :

error: option –addons-path: The addons-path ‘addons’ does not seem to a be a valid Addons Directory!

Do you have an idea ?

Thx !

roque
7 years ago

Hi Nikila.

I want to migrate openerp. I have my backups of postgresql and .openerp_serverrc but .. Do I need anything more?

thanks

sulliwane
sulliwane
7 years ago

!! you were right.

I’ve been downloading from a poor internet connection and in VM ubuntu….

now repeating the steps from a good IC and my real ubuntu, it works !

thx a lot.

Siraj Mounir
Siraj Mounir
7 years ago

Thanks a lot for this tutorial it’s very helpfull. i’ve encountred the same problems and i’ve verified that all my dependencies are Ok? then i’ve reinstalled the gdata again from it’s source (googlecode) as it’s shown in the tutorial. and I have my new OpenERP 7 working properly.
Thanks again!

roque
7 years ago

Hi again.

Does anyone know how to make a file log and a startup script?

Aziz
Aziz
7 years ago

Hi

Thank you for the great tutorial

i got this error any ideas

OpenERP Server Error

Client Traceback (most recent call last):
File “/opt/openerp/web/addons/web/http.py”, line 195, in dispatch
response[“result”] = method(self, **self.params)
File “/opt/openerp/web/addons/web/controllers/main.py”, line 718, in create
params[‘create_admin_pwd’])
File “/opt/openerp/web/addons/web/session.py”, line 31, in proxy_method
result = self.session.send(self.service_name, method, *args)
File “/opt/openerp/web/addons/web/session.py”, line 98, in send
raise xmlrpclib.Fault(‘AccessDenied’, str(e))

Server Access denied.

plopplip
plopplip
7 years ago
Reply to  Aziz

Aziz I have the same problem did you find a solution?

Khizer
Khizer
7 years ago

Hi

This might come off as a very dumb question as I am a newbie but what is he password for user openerp?

I tried my root password, “OpenERP”, “openerp” but nothing seems to work

Thanks

Mobios
Mobios
7 years ago

Its the same error occurs for me on Debian Squezze upon creating the Database via Webfrontend. brz was done as “openerp” user. Rights on the files is: group “openerp” / user “openerp” 0755 password was set to openerp with “passwd openerp” pwd: openerp OpenERP Server Error Client Traceback (most recent call last): File “/opt/openerp/web/addons/web/http.py”, line 195, in dispatch response[“result”] = method(self, **self.params) File “/opt/openerp/web/addons/web/controllers/main.py”, line 718, in create params[‘create_admin_pwd’]) File “/opt/openerp/web/addons/web/session.py”, line 31, in proxy_method result = self.session.send(self.service_name, method, *args) File “/opt/openerp/web/addons/web/session.py”, line 98, in send raise xmlrpclib.Fault(‘AccessDenied’, str(e)) Server Access denied. any suggestions, how to go about this issue?… Read more »

Mobios
Mobios
7 years ago

#SOLVED
use password “admin” as Master
After first installation, the password is admin.
It worked for me, for the above issue.
If you still get an error, make sure you have Postgre Server running

# service postgresql start

Source:
http://doc.openerp.com/v6.1/book/1/1_1_Inst_Config/1_1_Inst_Config_db_create.html

revathi
revathi
7 years ago

Hi,

I got the following error after installing openep 7.0 and running the server. Plz help me out.

/usr/local/lib/python2.7/dist-packages/Babel-0.9.6-py2.7.egg/babel/__init__.py:33: UserWarning: Module openerp was already imported from /home/devika/openerp-7.0/openerp/__init__.pyc, but /usr/local/lib/python2.7/dist-packages/openerp_web-5.0.6-py2.7.egg is being added to sys.path
from pkg_resources import get_distribution, ResolutionError

Olympus
Olympus
7 years ago

Thanks for the script. All working well. Excellent script.

Question, everytime I reboot my debian server, i would need to do a su – openerp and then run the ./opt/openerp/start script.

How do I run it automatically on startup?

Landis
Landis
7 years ago

I followed the directions I had thought very well, but I expect there was a logout between BZR – Server and BZR -Addon Steps. In any case Addons, WEB and Python Client ended up in my Root Folder. Moving Addons and Web to /opt/openerp folder still yields errors that Web Module and (at least) Web Kanban not being found. I find also /opt/server/openerp/addons is the folder that .openerp_serverrc points at for Addons. I have moved bzr “addons” and “web” folders to be parallel to “server” in /opt/openerp and “chown -R openerp: /opt/openerp” for now. Google Python Client remains in Root.… Read more »

Landis
Landis
7 years ago

I had not seen your reply till I just posted this (below the line here) BZR worked better when I upped VM ram to 1 GB (from 256). Came to that last night, but it is why I had a restart too. Should I consolidate the two (actually three) addons folder? The “addons” path you call out has two (including web)? The one within /opt/openerp/server/openerp/addons seems critical, though I would rather have “one path” for Addons. (I suppose web can have its own) Learning time now. Thanks again. My initial post reply update is below. ——- I seem to have… Read more »

Landis
Landis
7 years ago
Reply to  Landis

I seem to have just got it running right now. I simply put them where they should be, restarted then wrestled more with the start file. Somewhat of a lesson in keeping thing straight and working at options. “start” would invoke from Root, but get blocked as a security risk “start” would not invoke from -su openerp however, finally I ran from -su openerp /bin/bash start and I got no errors (ie, vis a vis Web and Kanban etc) that I had seen. I did get an error with “authentication” so I reran the su – postgres create user script… Read more »

ALexT
ALexT
7 years ago

Any reason you are building your own “start” script ?

What would be the “clean” way of stopping and openerp server instance under this scenario ?

Thanks for the article – got me started quickly !

AlexT
AlexT
7 years ago

Great – looking very much forward to it (although things seem to be working reasonably well based on these instructions)

GRAHAM
GRAHAM
6 years ago

Thanks for a great “how to”. Did you ever get around to creating the “Production” post and if so what is the URL.

Fred
Fred
7 years ago

Thanks for the guide! I am trying to load addons by placing them in /opt/openerp/addons but I am unable to see the new addons on the web interface (I have enabled technical features). Any ideas?

Fred
Fred
7 years ago

Thanks a lot,

Some were as you said embedded in a double directory structure and moving them up fixed it, thanks!

Others I just realized were tagged as not active / not installable in the __openerp__.py file…

Thanks a lot!

djo
djo
7 years ago

Hi, I try to install openerp 7.0 on ubuntu 12.10 but when I start openerp server I have an error in my browser :”No handler found.” Could you help me please. Many thanks. openerp@djo-VirtualBox:~$ /opt/openerp/server/openerp-server 2013-02-04 19:39:05,038 2314 INFO ? openerp: OpenERP version 7.0alpha-20130125-000101 2013-02-04 19:39:05,039 2314 INFO ? openerp: addons paths: /opt/openerp/server/openerp/addons 2013-02-04 19:39:05,039 2314 INFO ? openerp: database hostname: localhost 2013-02-04 19:39:05,040 2314 INFO ? openerp: database port: 5432 2013-02-04 19:39:05,040 2314 INFO ? openerp: database user: openerp 2013-02-04 19:39:13,606 2314 WARNING ? openerp.addons.email_template.email_template: jinja2 not available, templating features will not work! 2013-02-04 19:39:26,051 2314 INFO ? openerp.service.wsgi_server:… Read more »

djo
djo
7 years ago

Thanks a lot, I installed jinja2!! now it’s OK.
My server is running ;)
But now,how can I change the path of addons to remplace
openerp: addons paths: /opt/openerp/server/openerp/addons
to
openerp: addons paths: /opt/openerp/server/openerp/addons, /opt/openerp/addons, /opt/openerp/web/addons

Regards.

Danimar Ribeiro
Danimar Ribeiro
7 years ago

Hey man, Great post.
You answered a lot of questions. I also have a question :)
In the apps list, it just show apps from apps.openerp.com, but as I’m debugging openerp, I’d like to install local apps.
Any guess?

Dipesh
7 years ago

hi, i face a strange problem. Yesterday, accidentally my server reboot, so openerp server was also stopped. Today when i tired to start openerp server (./start command) using putty access then its start but when i close putty then openerp server is also stopped. I am using three instance of openerp server and both instance are behaving like this.

Can you please tell me why this problem occurs. Please help me. It’s very urgent

Thanks in advance

Jacob Clark
Jacob Clark
7 years ago

Hi, Nikola Stojanoski

First, Thanks for sharing.

I’m working on updgrading my addons to v7.0, I tried fetching openerp-addons trunk version using bzr but it’s always hung because my internet connection, if you zip it to make people quickly download and just use “bzr pull” for daily updating it would be great,

Thanks again.

Renee
Renee
7 years ago

Hey Nikola. I’ve been trying to install the hr_payroll module on my existing ERP. Unfortunately, i get this error. Client Traceback (most recent call last): File “C:Program Files (x86)OpenERP 7.0-20130127-000101Serverserveropenerpaddonswebhttp.py”, line 195, in dispatch File “C:Program Files (x86)OpenERP 7.0-20130127-000101Serverserveropenerpaddonswebcontrollersmain.py”, line 1374, in run File “C:Program Files (x86)OpenERP 7.0-20130127-000101Serverserveropenerpaddonswebsession.py”, line 43, in proxy File “C:Program Files (x86)OpenERP 7.0-20130127-000101Serverserveropenerpaddonswebsession.py”, line 31, in proxy_method File “C:Program Files (x86)OpenERP 7.0-20130127-000101Serverserveropenerpaddonswebsession.py”, line 104, in send Server Traceback (most recent call last): File “C:Program Files (x86)OpenERP 7.0-20130127-000101Serverserveropenerpaddonswebsession.py”, line 90, in send File “C:Program Files (x86)OpenERP 7.0-20130127-000101Serverserver.openerpnetsvc.py”, line 289, in dispatch_rpc File “C:Program Files (x86)OpenERP 7.0-20130127-000101Serverserver.openerpserviceweb_services.py”, line… Read more »

L. Arnold
L. Arnold
7 years ago

Hi Nikola, I am running an install based upon your tutorial here. I have 2 problems. 1: How to effectively do new Pulls from the Trunk? The only way I have found to do so is to rename /opt/openerp/server (ie server) to server-1, addons to addons-1 and web to web-1 then rerun your BZR branch commands. I am sure there is a better way. 2: having installed “Document Management System” (which installs Knowledge module) I can no longer send emails from RFQ or Sales Quotation mode (and their derivatives). I am getting the following error. Have asked at OpenERP with… Read more »

L. Arnold
L. Arnold
7 years ago
Reply to  L. Arnold

As a clarification. I am using a smtp-> Zimbra connection to send emails and can send from Opportunities and other generic locations. I moved the localhost entry do seq: 20 and it will not work by itself. This should not be about the Email setup, though I certainly want to explore the mail.catchall.domain and how to configure with Zimbra (separate subject).

L. Arnold
L. Arnold
7 years ago
Reply to  L. Arnold

To question 1: I am trying
cd /opt/openerp/server
then
bzr pull

(seems to be working but we will see)
Moved to revision 4814 from 4769

I will try this on the other folders but perhaps I could on the full openerp folder.

L. Arnold
L. Arnold
7 years ago
Reply to  L. Arnold

Unfortunately then, this stopped the server from starting: This is the log: root@postgresql /# su – openerp openerp@postgresql:~$ /bin/bash start openerp@postgresql:~$ Traceback (most recent call last): File “/opt/openerp/server/openerp-server”, line 2, in import openerp File “/opt/openerp/server/openerp/__init__.py”, line 28, in import addons File “/opt/openerp/server/openerp/addons/__init__.py”, line 38, in from openerp.modules import get_module_resource, get_module_path File “/opt/openerp/server/openerp/modules/__init__.py”, line 27, in from . import db, graph, loading, migration, module, registry File “/opt/openerp/server/openerp/modules/graph.py”, line 32, in import openerp.osv as osv File “/opt/openerp/server/openerp/osv/__init__.py”, line 22, in import osv File “/opt/openerp/server/openerp/osv/osv.py”, line 22 <<<<<<< TREE ^ SyntaxError: invalid syntax I will go back to Snapshot. I would like to… Read more »

L. Arnold
L. Arnold
7 years ago

Interesting comment about the change with Knowledge. What I ended up doing was recreating the database. I fundamentally couldn’t send a new RFQ or Quotation out on an automated basis and that seems to be a huge part of the functionality I need. It takes quite a while to move just a basic database over and I will be wanting to learn more on automation. The built in export/import system you will find is difficult simply to do an export and reimport with because if offers up so many fields, related fields and the like that have to be remapped… Read more »

Tunjung
Tunjung
7 years ago

Tried to install OpenERP using apt-get, but end up having this error, tried once more, but still got this error, any ideas would be greatly appreciated,thx Client Traceback (most recent call last): File “/home/tunjung/openerp-7.0/openerp/addons/web/http.py”, line 203, in dispatch response[“result”] = method(self, **self.params) File “/home/tunjung/openerp-7.0/openerp/addons/web/controllers/main.py”, line 759, in get_list return db_list(req) File “/home/tunjung/openerp-7.0/openerp/addons/web/controllers/main.py”, line 89, in db_list dbs = proxy.list() File “/home/tunjung/openerp-7.0/openerp/addons/web/session.py”, line 31, in proxy_method result = self.session.send(self.service_name, method, *args) File “/home/tunjung/openerp-7.0/openerp/addons/web/session.py”, line 104, in send raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info) Server Traceback (most recent call last): File “/home/tunjung/openerp-7.0/openerp/addons/web/session.py”, line 90, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File “/home/tunjung/openerp-7.0/openerp/netsvc.py”, line 293, in… Read more »

Tunjung
Tunjung
7 years ago

Thank’s Nicola, turned out I forgot I made the username as “openerp”

anselmo
7 years ago

Hi nikola

when I connect to the Server-XMLRPC url = http://openerpServerName:8069/xmlrpc via xml-rpc error here that I meet

Error: XML-RPC Fault #-1 : Traceback (most recent call last): File “/opt/openerp/server/openerp/service/wsgi_server.py”, line 82, in xmlrpc_return result = openerp.netsvc.dispatch_rpc(service, method, params) File “/opt/openerp/server/openerp/netsvc.py”, line 293, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File “/opt/openerp/server/openerp/netsvc.py”, line 118, in getService return cls._services[name] KeyError: ‘

please can you help me?

anselmo
7 years ago

I speak French so it will be a little difficult to speak in English. forgive my sins. I actually want to use the xml rpc protocol to connect openerp 7 to other applications. So I want to use the xml rpc interface of openerp7 by typing in the url link http://openerpServerName:8069/xmlrpc. I followed the documentation on this site http://doc.openerp.com/v6.0/developer/6_22_XML-RPC_web_services/ using xml rpc for php. I tested the code using the tool: xmlrpc-test tool where I set: XMLRPC-Server = http://openerpServerName:8069/xmlrpc/ Following error are raised: Error: XML-RPC Fault #-1 : Traceback (most recent call last): File “/opt/openerp/server/openerp/service/wsgi_server.py”, line 82, in xmlrpc_return result… Read more »

anselmo
7 years ago

if you allow here is my code: 0) { return $_COOKIE[“user_id”]; } } $sock = new xmlrpc_client($server_url.’common’); $msg = new xmlrpcmsg(‘login’); $msg->addParam(new xmlrpcval($dbname, “string”)); $msg->addParam(new xmlrpcval($user, “string”)); $msg->addParam(new xmlrpcval($password, “string”)); $resp = $sock->send($msg); $val = $resp->value(); $id = $val->scalarval(); setcookie(“user_id”,$id,time()+3600); if($id > 0) { return $id; }else{ return -1; } } include(‘xmlrpc.inc’); $arrayVal = array( ‘name’=>new xmlrpcval(‘Anselme Dacouri’, “string”) , ‘vat’=>new xmlrpcval(‘BE477472701’ , “string”) ); $client = new xmlrpc_client(“openerpServerName:8069/xmlrpc./object”); $msg = new xmlrpcmsg(‘execute’); $msg->addParam(new xmlrpcval(“dbname”, “string”)); $msg->addParam(new xmlrpcval(“3”, “int”)); $msg->addParam(new xmlrpcval(“demo”, “string”)); $msg->addParam(new xmlrpcval(“res.partner”, “string”)); $msg->addParam(new xmlrpcval(“create”, “string”)); $msg->addParam(new xmlrpcval($arrayVal, “struct”)); $resp = $client->send($msg); if ($resp->faultCode()) echo ‘Error: ‘.$resp->faultString(); else… Read more »

email to fax
7 years ago

Good post, any article for install OpenERP 7.0 from trunk in windows

Reddy
Reddy
7 years ago

Hello there. How are you i hope your doing great. i have got this erro Can you please tell me why this happend to me Internal Server Error {“message”: “OpenERP Server Error”, “code”: 200, “data”: {“debug”: “Server Traceback (most recent call last):n File “/opt/openerp/web/addons/web/session.py”, line 89, in sendn return openerp.netsvc.dispatch_rpc(service_name, method, args)n File “/opt/openerp/server/openerp/netsvc.py”, line 292, in dispatch_rpcn result = ExportService.getService(service_name).dispatch(method, params)n File “/opt/openerp/server/openerp/service/web_services.py”, line 122, in dispatchn return fn(*params)n File “/opt/openerp/server/openerp/service/web_services.py”, line 359, in exp_listn cr = db.cursor()n File “/opt/openerp/server/openerp/sql_db.py”, line 484, in cursorn return Cursor(self._pool, self.dbname, serialized=serialized)n File “/opt/openerp/server/openerp/sql_db.py”, line 182, in __init__n self._cnx = pool.borrow(dsn(dbname))n File “/opt/openerp/server/openerp/sql_db.py”,… Read more »

nana
nana
6 years ago

hello, and can you tell me how to solve this problem?

nstojanoski
nstojanoski
6 years ago
Reply to  nana

if you run your instance under openerp user type:

su – postgres -c “createuser -s openerp”

or change openerp with the user you run your openerp server

if you run it under different user change the settings in your conf file and type:

su – postgres -c “createuser -s youusername”

Regards

Advertisement