Instalasi OpenERP 6.0.3 pada Linux Ubuntu 10.4

| Posted in Daily life, Linux Server, Nigeria, Project

Instalasi dilakukan pada server Supermicro Blade, sistem operasi Ubuntu Linux dan aplikasi OpenEERP 6.0.3

root@netproject:/home/gtoms# uname -rvmo
2.6.32-33-generic-pae #70-Ubuntu SMP Thu Jul 7 22:51:12 UTC 2011 i686 GNU/Linux

gtoms@netproject:~$ sudo su
[sudo] password for gtoms:

root@netproject:/home/gtoms# nano /etc/sudoers

root@netproject:/home/gtoms# uname -rvmo
2.6.32-33-generic-pae #70-Ubuntu SMP Thu Jul 7 22:51:12 UTC 2011 i686 GNU/Linux
root@netproject:/home/gtoms# wget c https://github.com/gainroot/OpenERPInstall/blob/newdev/openERP/server.sh—2011-10-23 09:21:40—  https://github.com/gainroot/OpenERP-Install/blob/newdev/openERP/server.sh
Resolving github.com… 207.97.227.239
Connecting to github.com|207.97.227.239|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 42214 (41K)


Saving to: `server.sh’

	

100%[=================================================>] 42,214       124K/s   in 0.3s

2011-10-23 09:21:41 (124 KB/s) – `server.sh’ saved [42214/42214]

root@netproject:/home/gtoms# nano server.sh

root@netproject:/home/gtoms# wget c https://github.com/gainroot/OpenERPInstall/blob/newdev/openERP/client.sh—2011-10-23 09:23:24—  https://github.com/gainroot/OpenERP-Install/blob/newdev/openERP/client.sh
Resolving github.com… 207.97.227.239
Connecting to github.com|207.97.227.239|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 42221 (41K)

Saving to: `client.sh’

100%[==============================================>] 42,221       122K/s   in 0.3s

2011-10-23 09:23:26 (122 KB/s) – `client.sh’ saved [42221/42221]

root@netproject:/home/gtoms# wget c https://github.com/gainroot/OpenERPInstall/blob/newdev/openERP/web.sh—2011-10-23 09:23:58—  https://github.com/gainroot/OpenERP-Install/blob/newdev/openERP/web.sh
Resolving github.com… 207.97.227.239
Connecting to github.com|207.97.227.239|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 40459 (40K)

Saving to: `web.sh’

100%[=============================================>] 40,459       217K/s   in 0.2s

2011-10-23 09:23:59 (217 KB/s) – `web.sh’ saved [40459/40459]

root@netproject:/home/gtoms# wget c http://www.openerp.com/download/stable/source/openerpserver-6.0.3.tar.gz—2011-10-23 09:25:58—  http://www.openerp.com/download/stable/source/openerp-server-6.0.3.tar.gz
Resolving www.openerp.com… 91.121.144.77
Connecting to www.openerp.com|91.121.144.77|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 28477345 (27M) [application/octet-stream]
Saving to: `openerp-server-6.0.3.tar.gz’

100%[========================================>] 28,477,345   723K/s   in 41s

2011-10-23 09:26:40 (677 KB/s) – `openerp-server-6.0.3.tar.gz’ saved [28477345/28477345]

root@netproject:/home/gtoms# wget c http://www.openerp.com/download/stable/source/openerpclient-6.0.3.tar.gz—2011-10-23 09:28:10—  http://www.openerp.com/download/stable/source/openerp-client-6.0.3.tar.gz
Resolving www.openerp.com… 91.121.144.77
Connecting to www.openerp.com|91.121.144.77|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 2091944 (2.0M) [application/octet-stream]
Saving to: `openerp-client-6.0.3.tar.gz’

100%[=======================================>] 2,091,944    464K/s   in 5.2s

2011-10-23 09:28:16 (392 KB/s) – `openerp-client-6.0.3.tar.gz’ saved [2091944/2091944]

root@netproject:/home/gtoms# wget c http://www.openerp.com/download/stable/source/openerpweb-6.0.3.tar.gz—2011-10-23 09:29:10—  http://www.openerp.com/download/stable/source/openerp-web-6.0.3.tar.gz
Resolving www.openerp.com… 91.121.144.77
Connecting to www.openerp.com|91.121.144.77|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 2751623 (2.6M) [application/octet-stream]
Saving to: `openerp-web-6.0.3.tar.gz’

100%[==================================>] 2,751,623    524K/s   in 6.3s

2011-10-23 09:29:16 (427 KB/s) – `openerp-web-6.0.3.tar.gz’ saved [2751623/2751623]

root@netproject:/home/gtoms# ls
client.sh  openerp-client-6.0.3.tar.gz  openerp-server-6.0.3.tar.gz  openerp-web-6.0.3.tar.gz  server.sh  web.sh

root@netproject:/home/gtoms# wget https://github.com/gainroot/OpenERP-Install/blob/newdev/install—2011-10-23 09:34:39—  https://github.com/gainroot/OpenERP-Install/blob/newdev/install
Resolving github.com… 207.97.227.239
Connecting to github.com|207.97.227.239|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 52633 (51K)

Saving to: `install’

100%[=======================================================>] 52,633       152K/s   in 0.3s

2011-10-23 09:34:41 (152 KB/s) – `install’ saved [52633/52633]

root@netproject:/home/gtoms# apt-get update
Hit http://security.ubuntu.com lucid-security Release.gpg
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_NG
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_NG
Hit http://ng.archive.ubuntu.com lucid Release.gpg
Ign http://ng.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_NG
Ign http://ng.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_NG
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_NG
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_NG
Hit http://security.ubuntu.com lucid-security Release
Ign http://ng.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_NG
Ign http://ng.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_NG
Hit http://ng.archive.ubuntu.com lucid-updates Release.gpg
Ign http://ng.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_NG
Ign http://ng.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_NG
Ign http://ng.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_NG
Ign http://ng.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_NG
Hit http://ng.archive.ubuntu.com lucid Release
Hit http://ng.archive.ubuntu.com lucid-updates Release
Hit http://security.ubuntu.com lucid-security/main Packages
Hit http://ng.archive.ubuntu.com lucid/main Packages
Hit http://ng.archive.ubuntu.com lucid/restricted Packages
Hit http://ng.archive.ubuntu.com lucid/main Sources
Hit http://ng.archive.ubuntu.com lucid/restricted Sources
Hit http://ng.archive.ubuntu.com lucid/universe Packages
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/main Sources
Hit http://security.ubuntu.com lucid-security/restricted Sources
Hit http://security.ubuntu.com lucid-security/universe Packages
Hit http://security.ubuntu.com lucid-security/universe Sources
Hit http://security.ubuntu.com lucid-security/multiverse Packages
Hit http://ng.archive.ubuntu.com lucid/universe Sources
Hit http://ng.archive.ubuntu.com lucid/multiverse Packages
Hit http://ng.archive.ubuntu.com lucid/multiverse Sources
Hit http://ng.archive.ubuntu.com lucid-updates/main Packages
Hit http://ng.archive.ubuntu.com lucid-updates/restricted Packages
Hit http://ng.archive.ubuntu.com lucid-updates/main Sources
Hit http://ng.archive.ubuntu.com lucid-updates/restricted Sources
Hit http://ng.archive.ubuntu.com lucid-updates/universe Packages
Hit http://security.ubuntu.com lucid-security/multiverse Sources
Hit http://ng.archive.ubuntu.com lucid-updates/universe Sources
Hit http://ng.archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://ng.archive.ubuntu.com lucid-updates/multiverse Sources
Reading package lists… Done
root@netproject:/home/gtoms# apt-get install upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Couldn’t find package upgrade
root@netproject:/home/gtoms# apt-get install postgresql
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
libpq5 postgresql-8.4 postgresql-client-8.4 postgresql-client-common postgresql-common ssl-cert
Suggested packages:
oidentd ident-server postgresql-doc-8.4
The following NEW packages will be installed:
libpq5 postgresql postgresql-8.4 postgresql-client-8.4 postgresql-client-common postgresql-common ssl-cert
0 upgraded, 7 newly installed, 0 to remove and 21 not upgraded.
Need to get 4,955kB of archives.
After this operation, 21.1MB of additional disk space will be used.
Do you want to continue [Y/n]? y
————skip————————-
Setting up libpq5 (8.4.9-0ubuntu0.10.04) ...

Setting up postgresql-client-common (106ubuntu1) ...
Setting up postgresql-client-8.4 (8.4.9-0ubuntu0.10.04) ...
update-alternatives: using /usr/share/postgresql/8.4/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode.

Setting up ssl-cert (1.0.23ubuntu2) ...

Setting up postgresql-common (106ubuntu1) ...
Adding user postgres to group ssl-cert
Building PostgreSQL dictionaries from installed myspell/hunspell packages…

Setting up postgresql-8.4 (8.4.9-0ubuntu0.10.04) ...
Creating new cluster (configuration: /etc/postgresql/8.4/main, data: /var/lib/postgresql/8.4/main)...
Moving configuration file /var/lib/postgresql/8.4/main/postgresql.conf to /etc/postgresql/8.4/main…
Moving configuration file /var/lib/postgresql/8.4/main/pg_hba.conf to /etc/postgresql/8.4/main…
Moving configuration file /var/lib/postgresql/8.4/main/pg_ident.conf to /etc/postgresql/8.4/main…
Configuring postgresql.conf to use port 5432…
update-alternatives: using /usr/share/postgresql/8.4/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode.

  • Starting PostgreSQL 8.4 database server                                                                                                                                                              [ OK ]

Setting up postgresql (8.4.9-0ubuntu0.10.04) ...
Processing triggers for libc-bin …
ldconfig deferred processing now taking place
root@netproject:/home/gtoms#

root@netproject:/home/gtoms# apt-get install postgresql-client
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
postgresql-client
0 upgraded, 1 newly installed, 0 to remove and 21 not upgraded.
Need to get 23.2kB of archives.
After this operation, 57.3kB of additional disk space will be used.
Get:1 http://ng.archive.ubuntu.com/ubuntu/ lucid-updates/main postgresql-client 8.4.9-0ubuntu0.10.04 [23.2kB]
Fetched 23.2kB in 0s (32.1kB/s)
Selecting previously deselected package postgresql-client.
(Reading database … 38908 files and directories currently installed.)
Unpacking postgresql-client (from …/postgresql-client_8.4.9-0ubuntu0.10.04_all.deb) ...
Setting up postgresql-client (8.4.9-0ubuntu0.10.04) ...
root@netproject:/home/gtoms#

root@netproject:/home/gtoms# nano /etc/postgresql/8.4/main/postgresql.conf

listen_addresses = ‘*’
log_statement = ‘all’

root@netproject:/home/gtoms# nano /etc/postgresql/8.4/main/pg_hba.conf

  1. Database administrative login by UNIX sockets
    local   all         postgres                          ident
  1. TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
  1. “local” is for Unix domain socket connections only

#local   all         all                               ident
local   all         all                               trust

  1. IPv4 local connections:

#host    all         all         127.0.0.1/32          md5
host    all         all         127.0.0.1/32          trust

  1. IPv6 local connections:

#host    all         all         ::1/128               md5
host    all         all         ::1/128               ident

root@netproject:/home/gtoms# /etc/init.d/postgresql-8.4 restart

  • Restarting PostgreSQL 8.4 database server                                                                                                                                                            [ OK ]
    root@netproject:/home/gtoms# adduser openerp
    Adding user `openerp’ ...
    Adding new group `openerp’ (1001) ...
    Adding new user `openerp’ (1001) with group `openerp’ ...
    Creating home directory `/home/openerp’ ...
    Copying files from `/etc/skel’ ...
    Enter new UNIX password:
    Retype new UNIX password:
    passwd: password updated successfully
    Changing the user information for openerp
    Enter the new value, or press ENTER for the default
    Full Name []:
    Room Number []:
    Work Phone []:
    Home Phone []:
    Other []:
    Is the information correct? [Y/n] y
    root@netproject:/home/gtoms# su – postgres
    postgres@netproject:~$ createuser—createdb—no-createrole—pwprompt openerp
    Enter password for new role:
    Enter it again:
    Shall the new role be a superuser? (y/n) y
    postgres@netproject:~$

root@netproject:/home/gtoms# apt-get install python python-psycopg2 python-reportlab
Reading package lists… Done
Building dependency tree
Reading state information… Done
python is already the newest version.
The following extra packages will be installed:
libart-2.0-2 libjpeg62 liblcms1 python-egenix-mxdatetime python-egenix-mxtools python-imaging python-renderpm python-reportlab-accel
Suggested packages:
liblcms-utils python-egenix-mxdatetime-dbg python-egenix-mxtools-dbg python-egenix-mxtools-doc python-imaging-doc python-imaging-dbg python-renderpm-dbg pdf-viewer python-egenix-mxtexttools
python-reportlab-doc

root@netproject:/home/gtoms# apt-get install python-egenix-mxdatetime python-tz python-pychart
Reading package lists… Done
Building dependency tree
Reading state information… Done
python-egenix-mxdatetime is already the newest version.
python-egenix-mxdatetime set to manually installed.
The following extra packages will be installed:
defoma fontconfig-config ghostscript gsfonts libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libcupsimage2 libfontconfig1 libgs8 libpaper-utils libpaper1 libtiff4 psfontmgr
ttf-dejavu-core
Suggested packages:
defoma-doc x-ttcidfont-conf dfontmgr libfont-freetype-perl ghostscript-cups ghostscript-x hpijs cups-common python-pychart-doc
The following NEW packages will be installed:

root@netproject:/home/gtoms# apt-get install python-pydot python-lxml python-vobject python-setuptools
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
fontconfig graphviz libcairo2 libdatrie1 libdirectfb-1.2-0 libfontenc1 libgd2-noxpm libgraphviz4 libice6 libltdl7 libpango1.0-0 libpango1.0-common libpixman-1-0 libsm6 libsysfs2 libthai-data libthai0
libts-0.0-0 libxaw7 libxcb-render-util0 libxcb-render0 libxfont1 libxft2 libxmu6 libxpm4 libxrender1 libxslt1.1 libxt6 python-dateutil python-pkg-resources python-pyparsing tsconf ttf-liberation
x-ttcidfont-conf x11-common xfonts-encodings xfonts-utils
Suggested packages:
graphviz-doc libgd-tools ttf-japanese-gothic ttf-japanese-mincho ttf-thryomanes ttf-baekmuk ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp ttf-arphic-bkai00mp python-lxml-dbg
python-distribute python-distribute-doc
The following NEW packages will be installed:
fontconfig graphviz libcairo2 libdatrie1 libdirectfb-1.2-0 libfontenc1 libgd2-noxpm libgraphviz4 libice6 libltdl7 libpango1.0-0 libpango1.0-common libpixman-1-0 libsm6 libsysfs2 libthai-data libthai0
libts-0.0-0 libxaw7 libxcb-render-util0 libxcb-render0 libxfont1 libxft2 libxmu6 libxpm4 libxrender1 libxslt1.1 libxt6 python-dateutil python-lxml python-pkg-resources python-pydot python-pyparsing
python-setuptools python-vobject tsconf ttf-liberation x-ttcidfont-conf x11-common xfonts-encodings xfonts-utils
0 upgraded, 41 newly installed, 0 to remove and 21 not upgraded.
Need to get 8,842kB of archives.
After this operation, 23.7MB of additional disk space will be used.
Do you want to continue [Y/n]? y

root@netproject:/home/gtoms# easy_install PyYaml
Searching for PyYaml
Reading http://pypi.python.org/simple/PyYaml/
Reading http://pyyaml.org/wiki/PyYAML
Best match: PyYAML 3.10
Downloading http://pyyaml.org/download/pyyaml/PyYAML-3.10.zip
Processing PyYAML-3.10.zip
Running PyYAML-3.10/setup.py q bdist_egg—distdir /tmp/easy_install-HVJoEN/PyYAML-3.10/egg-dist-tmp-EzUJGw
unable to execute gcc: No such file or directory

libyaml is not found or a compiler error: forcing—without-libyaml
(if libyaml is installed correctly, you may need to
specify the option—include-dirs or uncomment and
modify the parameter include_dirs in setup.cfg)
zip_safe flag not set; analyzing archive contents…
Adding PyYAML 3.10 to easy-install.pth file

Installed /usr/local/lib/python2.6/dist-packages/PyYAML-3.10-py2.6-linux-i686.egg
Processing dependencies for PyYaml
Finished processing dependencies for PyYaml
root@netproject:/home/gtoms#

root@netproject:/home/gtoms# apt-get install python-mako
Reading package lists… Done
Building dependency tree
Reading state information… Done
Suggested packages:
python-beaker
The following NEW packages will be installed:
python-mako
0 upgraded, 1 newly installed, 0 to remove and 21 not upgraded.
Need to get 101kB of archives.
After this operation, 991kB of additional disk space will be used.
Get:1 http://ng.archive.ubuntu.com/ubuntu/ lucid-updates/main python-mako 0.2.5-2ubuntu1.3 [101kB]
Fetched 101kB in 1s (88.7kB/s)
Selecting previously deselected package python-mako.
(Reading database … 41263 files and directories currently installed.)
Unpacking python-mako (from …/python-mako_0.2.5-2ubuntu1.3_all.deb) ...
Processing triggers for man-db …
Setting up python-mako (0.2.5-2ubuntu1.3) ...

Processing triggers for python-support …
root@netproject:/home/gtoms#

root@netproject:/home/gtoms# apt-get install python-yaml
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
libyaml-0-2
The following NEW packages will be installed:
libyaml-0-2 python-yaml
0 upgraded, 2 newly installed, 0 to remove and 21 not upgraded.
Need to get 162kB of archives.
After this operation, 733kB of additional disk space will be used.

root@netproject:/home/gtoms# tar xvf openerp-server-6.0.3.tar.gz——skip——————openerp-server-6.0.3/bin/addons/l10n_in/account_tax.xml
openerp-server-6.0.3/bin/pooler.py
openerp-server-6.0.3/bin/workflow/
openerp-server-6.0.3/bin/workflow/__init__.py
openerp-server-6.0.3/bin/workflow/instance.py
openerp-server-6.0.3/bin/workflow/wkf_service.py
openerp-server-6.0.3/bin/workflow/wkf_logs.py
openerp-server-6.0.3/bin/workflow/workitem.py
openerp-server-6.0.3/bin/workflow/wkf_expr.py
openerp-server-6.0.3/bin/workflow/common.py
openerp-server-6.0.3/bin/openerp-server.py
openerp-server-6.0.3/bin/osv/
openerp-server-6.0.3/bin/osv/orm.py
openerp-server-6.0.3/bin/osv/__init__.py
openerp-server-6.0.3/bin/osv/query.py
openerp-server-6.0.3/bin/osv/osv.py
openerp-server-6.0.3/bin/osv/expression.py
openerp-server-6.0.3/bin/osv/fields.py
openerp-server-6.0.3/setup.py
root@netproject:/home/gtoms#

root@netproject:/home/gtoms# cd openerp-server-6.0.3

root@netproject:/home/gtoms/openerp-server-6.0.3# ls
bin  debian  doc  LICENSE  man  MANIFEST.in  openerp-server  openerp_server.egg-info  pixmaps  PKG-INFO  python25-compat  README  rpminstall_sh.txt  setup.cfg  setup.nsi  setup.py  win32
root@netproject:/home/gtoms/openerp-server-6.0.3#

root@netproject:/home/gtoms/openerp-server-6.0.3# python setup.py install—————-skip————————-
running install_data
creating /usr/local/share/man/man1
copying man/openerp-server.1 -> /usr/local/share/man/man1
creating /usr/local/share/man/man5
copying man/openerp_serverrc.5 -> /usr/local/share/man/man5
creating /usr/local/share/doc
creating /usr/local/share/doc/openerp-server-6.0.3
copying doc/openerp-server.conf -> /usr/local/share/doc/openerp-server-6.0.3
copying doc/Changelog -> /usr/local/share/doc/openerp-server-6.0.3
copying doc/README.userchange -> /usr/local/share/doc/openerp-server-6.0.3
copying doc/Changelog-4.x -> /usr/local/share/doc/openerp-server-6.0.3
copying doc/README.urpmi -> /usr/local/share/doc/openerp-server-6.0.3
copying doc/openerp-server.logrotate -> /usr/local/share/doc/openerp-server-6.0.3
copying doc/INSTALL -> /usr/local/share/doc/openerp-server-6.0.3
copying doc/Changelog-6.x -> /usr/local/share/doc/openerp-server-6.0.3
copying doc/Changelog-4.x.moved -> /usr/local/share/doc/openerp-server-6.0.3
copying doc/openerp-server.init -> /usr/local/share/doc/openerp-server-6.0.3
creating /usr/local/share/doc/openerp-server-6.0.3/migrate
creating /usr/local/share/doc/openerp-server-6.0.3/migrate/3.3.0-3.4.0
copying doc/migrate/3.3.0-3.4.0/pre.py -> /usr/local/share/doc/openerp-server-6.0.3/migrate/3.3.0-3.4.0
copying doc/migrate/3.3.0-3.4.0/post.py -> /usr/local/share/doc/openerp-server-6.0.3/migrate/3.3.0-3.4.0
copying doc/migrate/3.3.0-3.4.0/README -> /usr/local/share/doc/openerp-server-6.0.3/migrate/3.3.0-3.4.0
creating /usr/local/share/doc/openerp-server-6.0.3/migrate/3.4.0-4.0.0
copying doc/migrate/3.4.0-4.0.0/post-tiny.py -> /usr/local/share/doc/openerp-server-6.0.3/migrate/3.4.0-4.0.0
copying doc/migrate/3.4.0-4.0.0/pre.py -> /usr/local/share/doc/openerp-server-6.0.3/migrate/3.4.0-4.0.0
copying doc/migrate/3.4.0-4.0.0/pre-tiny.py -> /usr/local/share/doc/openerp-server-6.0.3/migrate/3.4.0-4.0.0
copying doc/migrate/3.4.0-4.0.0/post.py -> /usr/local/share/doc/openerp-server-6.0.3/migrate/3.4.0-4.0.0
copying doc/migrate/3.4.0-4.0.0/README -> /usr/local/share/doc/openerp-server-6.0.3/migrate/3.4.0-4.0.0
running install_egg_info
Copying openerp_server.egg-info to /usr/local/lib/python2.6/dist-packages/openerp_server-6.0.3.egg-info
running install_scripts
copying build/scripts-2.6/openerp-server -> /usr/local/bin
changing mode of /usr/local/bin/openerp-server to 755
root@netproject:/home/gtoms/openerp-server-6.0.3#

root@netproject:/home/gtoms/openerp-server-6.0.3# sudo u openerp openerpserver
Traceback (most recent call last):
File “./openerp-server.py”, line 58, in
import netsvc
File “/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py”, line 293, in
init_logger()
File “/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py”, line 187, in init_logger
resetlocale()
File “/usr/local/lib/python2.6/dist-packages/openerp-server/tools/translate.py”, line 985, in resetlocale
for ln in get_locales():
File “/usr/local/lib/python2.6/dist-packages/openerp-server/tools/translate.py”, line 953, in get_locales
lang = locale.getdefaultlocale()[0]
File “/usr/lib/python2.6/locale.py”, line 478, in getdefaultlocale
return parselocalename(localename)
File “/usr/lib/python2.6/locale.py”, line 410, in parselocalename
raise ValueError, ‘unknown locale: %s’ % localename
ValueError: unknown locale: en_NG
root@netproject:/home/gtoms/openerp-server-6.0.3#

Solve this problem with edit locale :

root@netproject:/home/gtoms# nano /etc/default/locale
LANG=”en_US”

root@netproject:/home/gtoms# nano /etc/environment
PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games”
LANG=”en_US.UTF-8”
LANGUAGE=”en_US:en”

root@netproject:/home/gtoms# nano /var/lib/locales/supported.d/local
en_US UTF-8
en_US.UTF-8 UTF-8

root@netproject:/home/gtoms# dpkg-reconfigure locales

root@netproject:/home/gtoms# reboot

LOGIN AGAIN :

gtoms@netproject:~$ /opt/openerp/server/bin/openerp-server.py—config=/etc/openerp-server.conf
[2011-10-25 23:28:14,142][?] INFO:server:OpenERP version – 6.0.3
[2011-10-25 23:28:14,143][?] INFO:server:addons_path – /opt/openerp/server/bin/addons
[2011-10-25 23:28:14,143][?] INFO:server:database hostname – localhost
[2011-10-25 23:28:14,143][?] INFO:server:database port – 5432
[2011-10-25 23:28:14,143][?] INFO:server:database user – gtoms
[2011-10-25 23:28:14,143][?] INFO:server:initialising distributed objects services
[2011-10-25 23:28:14,954][?] INFO:web-services:starting HTTP service at 0.0.0.0 port 8069
[2011-10-25 23:28:14,954][?] INFO:web-services:starting HTTPS service at 0.0.0.0 port 8071
[2011-10-25 23:28:14,954][?] INFO:web-services:Registered XML-RPC over HTTP
[2011-10-25 23:28:14,966][?] INFO:web-services:starting NET-RPC service at 0.0.0.0 port 8070
[2011-10-25 23:28:14,966][?] INFO:server:Starting 3 services
[2011-10-25 23:28:14,966][?] INFO:server:OpenERP server is running, waiting for connections…

[2011-10-25 23:34:04,739][?] INFO:server:OpenERP version – 6.0.3
[2011-10-25 23:34:04,739][?] INFO:server:addons_path – /opt/openerp/server/bin/addons
[2011-10-25 23:34:04,739][?] INFO:server:database hostname – localhost
[2011-10-25 23:34:04,739][?] INFO:server:database port – 5432
[2011-10-25 23:34:04,739][?] INFO:server:database user – openerp
[2011-10-25 23:34:04,739][?] INFO:server:initialising distributed objects services
[2011-10-25 23:34:05,022][?] INFO:web-services:starting HTTP service at 0.0.0.0 port 8069
[2011-10-25 23:34:05,022][?] INFO:web-services:starting HTTPS service at 0.0.0.0 port 8071
[2011-10-25 23:34:05,022][?] INFO:web-services:Registered XML-RPC over HTTP
[2011-10-25 23:34:05,025][?] INFO:web-services:starting NET-RPC service at 0.0.0.0 port 8070
[2011-10-25 23:34:05,025][?] INFO:server:Starting 3 services
[2011-10-25 23:34:05,026][?] INFO:server:OpenERP server is running, waiting for connections…
/var/log/openerp/openerp-server.log (END)

root@netproject:/home/gtoms# ps aux | grep openerp
openerp    823  0.0  0.9  67984 19120 ?        Sl   17:38   0:00 python /opt/openerp/server/bin/openerp-server.py c /etc/openerpserver.conf
root      1000  0.0  0.0   3324   784 pts/0    S+   17:48   0:00 grep—color=auto openerp
root@netproject:/home/gtoms#

[2011-10-25 23:34:04,739][?] INFO:server:OpenERP version – 6.0.3
[2011-10-25 23:34:04,739][?] INFO:server:addons_path – /opt/openerp/server/bin/addons
[2011-10-25 23:34:04,739][?] INFO:server:database hostname – localhost
[2011-10-25 23:34:04,739][?] INFO:server:database port – 5432
[2011-10-25 23:34:04,739][?] INFO:server:database user – openerp
[2011-10-25 23:34:04,739][?] INFO:server:initialising distributed objects services
[2011-10-25 23:34:05,022][?] INFO:web-services:starting HTTP service at 0.0.0.0 port 8069
[2011-10-25 23:34:05,022][?] INFO:web-services:starting HTTPS service at 0.0.0.0 port 8071
[2011-10-25 23:34:05,022][?] INFO:web-services:Registered XML-RPC over HTTP
[2011-10-25 23:34:05,025][?] INFO:web-services:starting NET-RPC service at 0.0.0.0 port 8070
[2011-10-25 23:34:05,025][?] INFO:server:Starting 3 services
[2011-10-25 23:34:05,026][?] INFO:server:OpenERP server is running, waiting for connections…
[2011-10-26 16:32:30,202][?] INFO:server:Stopping 3 services
[2011-10-26 16:32:30,203][?] INFO:shutdown:Initiating OpenERP Server shutdown
[2011-10-26 16:32:30,203][?] INFO:shutdown:Hit CTRL-C again or send a second signal to immediately terminate the server…
[2011-10-26 16:32:30,203][?] WARNING:web-services:Netrpc: closing because of exception (9, ‘Bad file descriptor’)
[2011-10-26 17:38:53,982][?] INFO:server:OpenERP version – 6.0.3
[2011-10-26 17:38:53,982][?] INFO:server:addons_path – /opt/openerp/server/bin/addons
[2011-10-26 17:38:53,983][?] INFO:server:database hostname – localhost
[2011-10-26 17:38:53,983][?] INFO:server:database port – 5432
[2011-10-26 17:38:53,983][?] INFO:server:database user – openerp
[2011-10-26 17:38:53,983][?] INFO:server:initialising distributed objects services
[2011-10-26 17:38:54,375][?] INFO:web-services:starting HTTP service at 0.0.0.0 port 8069
[2011-10-26 17:38:54,375][?] INFO:web-services:starting HTTPS service at 0.0.0.0 port 8071
[2011-10-26 17:38:54,375][?] INFO:web-services:Registered XML-RPC over HTTP
[2011-10-26 17:38:54,375][?] INFO:web-services:starting NET-RPC service at 0.0.0.0 port 8070
[2011-10-26 17:38:54,375][?] INFO:server:Starting 3 services
[2011-10-26 17:38:54,376][?] INFO:server:OpenERP server is running, waiting for connections…
/var/log/openerp/openerp-server.log (END)

Open web browser https://hostname/openerp/

Write a comment