Well, it seems the instructions that come with openerp-server are okay so far, but there are two issues.
1. it does not require/recommend the installation of postgresql-server
2. there is not start/stop script for openerp-server, that is probably the biggest issue
I've did an installation, and it looks like this:
- install all openerp packages
- Code: Select all
[doktor5000@Mageia4 ~]$ sudo urpmi openerp-server openerp-risk-management openerp-openeducat openerp-google-api openerp-git openerp-gap-analysis openerp-extras
Um die Abhängigkeiten zu erfüllen, werden die folgenden Pakete installiert:
Paket Version Release Arch
(Medium »Core Release (distrib1)«)
openerp-extras 7.0 20131213.4.m> noarch
openerp-gap-analysis 7.0 20131213.4.m> noarch
openerp-git 7.0 20131213.4.m> noarch
openerp-google-api 7.0 20131213.4.m> noarch
openerp-openeducat 7.0 20131213.4.m> noarch
openerp-risk-management 7.0 20131213.4.m> noarch
openerp-server 7.0 20131213.4.m> noarch
python-async 0.6.1 4.mga4 x86_64
python-docutils 0.11 3.mga4 noarch
python-feedparser 5.1.3 3.mga4 noarch
python-gdata 2.0.18 3.mga4 noarch
python-gitdb 0.5.4 5.mga4 x86_64
python-gitpython 0.3.1 5.mga4 noarch
python-google-api-python-clie> 1.2 1.mga4 noarch
python-jinja2 2.7.2 2.mga4 noarch
python-ldap 2.4.13 3.mga4 x86_64
python-libxslt 1.1.28 4.mga4 x86_64
python-mock 1.0.1 3.mga4 noarch
python-openid 2.2.5 1.mga4 noarch
python-psutil 0.6.1 5.mga4 x86_64
python-pychart 1.39 5.mga4 noarch
python-pydot 1.0.25 6.mga4 noarch
python-pyparsing 2.0.1 4.mga4 noarch
python-pywebdav 0.9.4.1 4.mga4 noarch
python-smmap 0.8.2 4.mga4 noarch
python-unittest2 0.5.1 4.mga4 noarch
python-vatnumber 1.1 1.mga4 noarch
python-vobject 0.8.1c 5.mga4 noarch
python-werkzeug 0.9.4 3.mga4 noarch
python-xlrd 0.9.2 2.mga4 noarch
python-xlutils 1.7.0 2.mga4 noarch
python-xlwt 0.7.5 3.mga4 noarch
python-yaml 3.10 5.mga4 x86_64
304MB zusätzlicher Speicher werden benötigt
55MB an Paketen werden geholt
Fortfahren mit der Installation der 33 Pakete? (J/n)
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-google-api-python-client-1.2-1.mga4.noarch.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-gdata-2.0.18-3.mga4.noarch.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-werkzeug-0.9.4-3.mga4.noarch.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-ldap-2.4.13-3.mga4.x86_64.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-psutil-0.6.1-5.mga4.x86_64.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-mock-1.0.1-3.mga4.noarch.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-async-0.6.1-4.mga4.x86_64.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-vobject-0.8.1c-5.mga4.noarch.rpm
python-google-api-python-client-1.2-1.mga4.noarch.rpm python-werkzeug-0.9.4-3.mga4.noarch.rpm python-ldap-2.4.13-3.mga4.x86_64.rpm python-gdata-2.0.18-3.mga4.noarch.rpm python-mock-1.0.1-3.mga4.noarch.rpm python-psutil-0.6.1-5.mga4.x86_64.rpm python-async-0.6.1-4.mga4.x86_64.rpm python-vobject-0.8.1c-5.mga4.noarch.rpm von /var/cache/urpmi/rpms wird installiert
Vorbereiten … #####################################################################################################################################
1/33: python-vobject #####################################################################################################################################
2/33: python-async #####################################################################################################################################
3/33: python-psutil #####################################################################################################################################
4/33: python-mock #####################################################################################################################################
5/33: python-gdata #####################################################################################################################################
6/33: python-ldap #####################################################################################################################################
7/33: python-werkzeug #####################################################################################################################################
8/33: python-google-api-python-client
#####################################################################################################################################
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-vatnumber-1.1-1.mga4.noarch.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-libxslt-1.1.28-4.mga4.x86_64.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-pychart-1.39-5.mga4.noarch.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-smmap-0.8.2-4.mga4.noarch.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-unittest2-0.5.1-4.mga4.noarch.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-pywebdav-0.9.4.1-4.mga4.noarch.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-gitdb-0.5.4-5.mga4.x86_64.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-gitpython-0.3.1-5.mga4.noarch.rpm
python-vatnumber-1.1-1.mga4.noarch.rpm python-libxslt-1.1.28-4.mga4.x86_64.rpm python-pychart-1.39-5.mga4.noarch.rpm python-unittest2-0.5.1-4.mga4.noarch.rpm python-smmap-0.8.2-4.mga4.noarch.rpm python-gitpython-0.3.1-5.mga4.noarch.rpm python-pywebdav-0.9.4.1-4.mga4.noarch.rpm python-gitdb-0.5.4-5.mga4.x86_64.rpm von /var/cache/urpmi/rpms wird installiert
Vorbereiten … #####################################################################################################################################
9/33: python-smmap #####################################################################################################################################
10/33: python-gitdb #####################################################################################################################################
11/33: python-gitpython #####################################################################################################################################
12/33: python-pywebdav #####################################################################################################################################
13/33: python-unittest2 #####################################################################################################################################
14/33: python-pychart #####################################################################################################################################
15/33: python-libxslt #####################################################################################################################################
16/33: python-vatnumber #####################################################################################################################################
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-openid-2.2.5-1.mga4.noarch.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-pyparsing-2.0.1-4.mga4.noarch.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-docutils-0.11-3.mga4.noarch.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-xlrd-0.9.2-2.mga4.noarch.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-pydot-1.0.25-6.mga4.noarch.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-feedparser-5.1.3-3.mga4.noarch.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-yaml-3.10-5.mga4.x86_64.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-xlwt-0.7.5-3.mga4.noarch.rpm
python-yaml-3.10-5.mga4.x86_64.rpm python-feedparser-5.1.3-3.mga4.noarch.rpm python-pydot-1.0.25-6.mga4.noarch.rpm python-xlrd-0.9.2-2.mga4.noarch.rpm python-docutils-0.11-3.mga4.noarch.rpm python-pyparsing-2.0.1-4.mga4.noarch.rpm python-openid-2.2.5-1.mga4.noarch.rpm python-xlwt-0.7.5-3.mga4.noarch.rpm von /var/cache/urpmi/rpms wird installiert
Vorbereiten … #####################################################################################################################################
17/33: python-pyparsing #####################################################################################################################################
18/33: python-pydot #####################################################################################################################################
19/33: python-xlwt #####################################################################################################################################
20/33: python-openid #####################################################################################################################################
21/33: python-docutils #####################################################################################################################################
22/33: python-xlrd #####################################################################################################################################
23/33: python-feedparser #####################################################################################################################################
24/33: python-yaml #####################################################################################################################################
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-xlutils-1.7.0-2.mga4.noarch.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/openerp-extras-7.0-20131213.4.mga4.noarch.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/openerp-risk-management-7.0-20131213.4.mga4.noarch.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/openerp-google-api-7.0-20131213.4.mga4.noarch.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/openerp-gap-analysis-7.0-20131213.4.mga4.noarch.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/python-jinja2-2.7.2-2.mga4.noarch.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/openerp-openeducat-7.0-20131213.4.mga4.noarch.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/openerp-server-7.0-20131213.4.mga4.noarch.rpm
openerp-server-7.0-20131213.4.mga4.noarch.rpm python-jinja2-2.7.2-2.mga4.noarch.rpm openerp-openeducat-7.0-20131213.4.mga4.noarch.rpm openerp-gap-analysis-7.0-20131213.4.mga4.noarch.rpm openerp-google-api-7.0-20131213.4.mga4.noarch.rpm openerp-risk-management-7.0-20131213.4.mga4.noarch.rpm python-xlutils-1.7.0-2.mga4.noarch.rpm openerp-extras-7.0-20131213.4.mga4.noarch.rpm von /var/cache/urpmi/rpms wird installiert
Vorbereiten … #####################################################################################################################################
25/33: python-xlutils #####################################################################################################################################
26/33: python-jinja2 #####################################################################################################################################
27/33: openerp-server #####################################################################################################################################
28/33: openerp-openeducat #####################################################################################################################################
29/33: openerp-gap-analysis #####################################################################################################################################
30/33: openerp-google-api #####################################################################################################################################
31/33: openerp-risk-management
#####################################################################################################################################
32/33: openerp-extras #####################################################################################################################################
----------------------------------------------------------------------
Mehr Informationen über das Paket openerp-server-7.0-20131213.4.mga4.noarch
Installation Steps
------------------
1. Check that all the required dependencies are installed.
2. Create a postgresql database.
The default database name is "terp". If you want to use another name, you
will need to provide it when launching the server (by using the commandline
option --database).
To create a postgresql database named "terp" using the following command:
$ createdb --encoding=UNICODE terp
If it is the first time you use postgresql you might need to create a new user
to the postgres system using the following commands (where myusername is your
unix user name):
$ su -
# su - postgres
For postgresql 9.1 or earlier
$ createuser openerp
For later versions
$ createuser --interactive openerp
Shall the new role be a superuser? (y/n) n
Shall the new user be allowed to create databases? (y/n) y
Shall the new user be allowed to create more new users? (y/n) y
CREATE USER
$ logout
# logout
3. Launch service daemon by "service openerp-server start".
The first time it is run, the server will initialise the database with all the default values.
4. Connect to the server using the GUI client.
There are two accounts by default:
* login: admin, password:admin
* login: demo, password:demo
----------------------------------------------------------------------
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/release/openerp-git-7.0-20131213.4.mga4.noarch.rpm
openerp-git-7.0-20131213.4.mga4.noarch.rpm von /var/cache/urpmi/rpms wird installiert
Vorbereiten … #####################################################################################################################################
33/33: openerp-git
install, start postgresql server, and create DB user
- Code: Select all
[doktor5000@Mageia4 ~]$ sudo LC_ALL=C urpmi postgresql-server
In order to satisfy the 'postgresql9.0-server|postgresql9.2-server|postgresql9.1-server|postgresql9.3-server|postgresql9.2-server|postgresql9.1-server|postgresql9.3-server|postgresql9.0-server' dependency, one of the following packages is needed:
1- postgresql9.3-server-9.3.4-1.mga4.x86_64: The programs needed to create and run a PostgreSQL server (to install)
2- postgresql9.2-server-9.2.8-2.mga4.x86_64: The programs needed to create and run a PostgreSQL server (to install)
3- postgresql9.1-server-9.1.13-2.mga4.x86_64: The programs needed to create and run a PostgreSQL server (to install)
4- postgresql9.0-server-9.0.17-2.mga4.x86_64: The programs needed to create and run a PostgreSQL server (to install)
What is your choice? (1-4)
To satisfy dependencies, the following packages are going to be installed:
Package Version Release Arch
(medium "Core Updates (distrib3)")
postgresql9.3 9.3.4 1.mga4 x86_64
postgresql9.3-plpgsql 9.3.4 1.mga4 x86_64
postgresql9.3-server 9.3.4 1.mga4 x86_64
22MB of additional disk space will be used.
4.7MB of packages will be retrieved.
Proceed with the installation of the 3 packages? (Y/n)
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/updates/postgresql9.3-plpgsql-9.3.4-1.mga4.x86_64.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/updates/postgresql9.3-9.3.4-1.mga4.x86_64.rpm
http://ftp.snt.utwente.nl/pub/os/linux/mageia/distrib/4/x86_64/media/core/updates/postgresql9.3-server-9.3.4-1.mga4.x86_64.rpm
installing postgresql9.3-server-9.3.4-1.mga4.x86_64.rpm postgresql9.3-9.3.4-1.mga4.x86_64.rpm postgresql9.3-plpgsql-9.3.4-1.mga4.x86_64.rpm from /var/cache/urpmi/rpms
Preparing... #####################################################################################################################################
1/3: postgresql9.3 #####################################################################################################################################
2/3: postgresql9.3-plpgsql #####################################################################################################################################
3/3: postgresql9.3-server #####################################################################################################################################
----------------------------------------------------------------------
More information on package postgresql9.3-server-9.3.4-1.mga4.x86_64
You just installed or updated postgresql server.
You can find important information about Mageia postgresql rpms and database
management in:
/usr/share/doc/postgresql9.3-server/postgresql.Mageia.releasenote
Please read it.
----------------------------------------------------------------------
[doktor5000@Mageia4 ~]$ sudo systemctl status postgresql.service
postgresql.service - PostgreSQL database server
Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled)
Active: inactive (dead)
[doktor5000@Mageia4 ~]$ sudo systemctl start postgresql.service
[doktor5000@Mageia4 ~]$ sudo systemctl status postgresql.service
postgresql.service - PostgreSQL database server
Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled)
Active: active (running) since Mi 2014-10-01 15:03:28 CEST; 1s ago
Process: 17885 ExecStart=/usr/bin/pg_ctl start -D ${PGDATA} -s -o -p ${PGPORT} -w -t 300 (code=exited, status=0/SUCCESS)
Process: 17882 ExecStartPre=/usr/libexec/postgresql_initdb.sh ${PGDATA} (code=exited, status=0/SUCCESS)
Main PID: 17888 (postgres)
CGroup: /system.slice/postgresql.service
├─17888 /usr/bin/postgres -D /var/lib/pgsql/data -p 5432
├─17890 postgres: checkpointer process
├─17891 postgres: writer process
├─17892 postgres: wal writer process
├─17893 postgres: autovacuum launcher process
└─17894 postgres: stats collector process
Okt 01 15:03:27 Mageia4 pg_ctl[17885]: LOG: database system was shut down at 2014-07-05 20:00:56 CEST
Okt 01 15:03:27 Mageia4 pg_ctl[17885]: LOG: database system is ready to accept connections
Okt 01 15:03:27 Mageia4 pg_ctl[17885]: LOG: autovacuum launcher started
Okt 01 15:03:28 Mageia4 systemd[1]: Started PostgreSQL database server.
[doktor5000@Mageia4 ~]$ sudo su - postgres
[postgres@Mageia4 ~]$ createuser --interactive openerp
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) y
Shall the new role be allowed to create more new roles? (y/n) y
[postgres@Mageia4 ~]$ logout
[doktor5000@Mageia4 ~]$
edit doktor5000: Seems I've overlooked the startup script. Please see below.
This is where the problem comes up, there's no service start/stop script for openerp-server ... If you run the binary directly, you would have to specific the DB name, DB user and a lot of other options, but it starts and will listen on all interfaces on port 8069.query the status of openerp-server service, and start it:
- Code: Select all
[doktor5000@Mageia4 ~]$ sudo systemctl status openerp-server.service
openerp-server.service - OpenERP Server
Loaded: loaded (/usr/lib/systemd/system/openerp-server.service; disabled)
Active: inactive (dead)
Okt 01 16:23:09 Mageia4 systemd[1]: [/usr/lib/systemd/system/openerp-server.service:10] Executable path is not absolute, ignoring: run-parts /etc/openerp/start.d
[doktor5000@Mageia4 ~]$ sudo systemctl start openerp-server.service
[doktor5000@Mageia4 ~]$ sudo systemctl status openerp-server.service
openerp-server.service - OpenERP Server
Loaded: loaded (/usr/lib/systemd/system/openerp-server.service; disabled)
Active: active (running) since Mi 2014-10-01 16:23:21 CEST; 2s ago
Main PID: 29196 (openerp-server)
CGroup: /system.slice/openerp-server.service
└─29196 /usr/bin/python /usr/bin/openerp-server -c /etc/openerp/openerp-server.conf --addons-path=/usr/share/openerp/addons --logfile=/var/log/openerp/ope...
Okt 01 16:23:21 Mageia4 systemd[1]: Started OpenERP Server.
Then in your browser, open up
http://localhost:8069/ and it will forward you to
http://localhost:8069/#action=database_manager4. Connect to the server using the GUI client.
/usr/share/doc/openerp-server/README.urpmi wrote:There are two accounts by default:
* login: admin, password:admin
* login: demo, password:demo
Works fine here!