Book Image

Working with OpenERP

By : Greg Moss
Book Image

Working with OpenERP

By: Greg Moss

Overview of this book

<p>OpenERP continues to gain momentum throughout the world in providing the best platform for open source ERP installations. This book covers all the essential modules and how to get the power of OpenERP to work for you.</p> <p>"Working with OpenERP" provides a real-world business solution approach to integrating OpenERP into your small or medium sized business. This book begins by walking you through how to install OpenERP on a Windows or Ubuntu server then takes you through all the essential modules you will need to get OpenERP up and running for your company.</p> <p>All through the book, "Working with OpenERP" provides real-world examples in sales, customer relationship management (CRM), purchasing, manufacturing, human resources, and financial accounting. After covering the basics, you will learn how to customize various methods to configure OpenERP for your business and even build your own custom modules.</p> <p>"Working with OpenERP" covers all the basics of installing and using OpenERP along with advanced real-world examples you will not find anywhere else.</p>
Table of Contents (21 chapters)
Working with OpenERP
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Troubleshooting and OpenERP management tips


Even if you experience no snags when first installing or running OpenERP, it would be wise to peruse the following section to familiar yourself with some of the tricks for dealing with common problems. Many of these guidelines are also useful for managing your system and thwarting potential problems.

Troubleshooting OpenERP installations

As far as ERP installations go, OpenERP is typically very easy to install. Unfortunately, it is possible for an installation to fail for a variety of reasons. In this next section, we will discuss some of the more common installation issues and provide some troubleshooting tips for diagnosing problems with an OpenERP installation.

Checking your browser destination

If you have followed the default installation then your OpenERP installation should be accessing OpenERP at:

http://localhost:8069

Make sure the URL is exactly as shown previously. If you did change the port number during installation, make sure you change the port in the URL.

Verifying that the OpenERP service is running

If you are unable to pull up OpenERP in the browser, it can be good to verify that the OpenERP services are running.

Checking for the OpenERP services running in Windows

Pull up the task manager and navigate to the Services tab, then look for openerp-server-7.0. The status should be Running.

The preceding screenshot is an example of the openerp-server-7.0 service successfully running under Windows.

Additional OpenERP troubleshooting steps for Windows can be found here:

https://doc.openerp.com/install/windows/server/complementary_install_information/

Checking for OpenERP services running in Ubuntu

In Ubuntu you can locate the OpenERP services by running the following command in a terminal window:

ps aux | grep openerp

You will then see the OpenERP service listed if it is running.

Starting and stopping OpenERP services in Ubuntu

When managing an OpenERP server, one of the most common tasks you will find yourself performing is starting and stoping the OpenERP services. OpenERP allows you to start and stop the services with a command switch.

To start the services use the following command:

sudo /etc/init.d/openerp-server start

To stop the services use the following command:

sudo /etc/init.d/openerp-server stop

Finding the primary OpenERP logfile

OpenERP writes many messages, warnings, and error messages to a log. Often when troubleshooting problems, this logfile is valuable in determining what action you should take. In a default installation the logfile is located at:

{install directory}/server/server/openerp-server.log

The log is especially valuable to locate problems you may have while installing new modules.

Modifying the OpenERP configuration file

The OpenERP framework allows you to specify a configuration file for your installation. By default, this file is located at:

/etc/openerp/openerp-server.conf

Using this file, you can change many of the attributes of OpenERP.

Changing port numbers

By default, OpenERP 7 runs on port 8069. For many installations, the default port will work fine. However, there are situations where it can be useful to change this default port. One common scenario would be the need to run more than one version of OpenERP. Multiple installations cannot run on port 8069, so you will need to modify the port. Sometimes there are security reasons behind changing ports as many hackers are aware of the default ports people use.

Fortunately, changing the default port number is easy. Simply specify the following:

Port=[port]

For example, Port=8059 will change the default port for the web client to port 8059.

Changing the admin password

OpenERP offers database management tools that can be accessed easily through your web browser. This makes it easy to create, backup, and even delete a database, all through a web interface. By default, OpenERP sets the password for these operations to admin. To secure your server, it is necessary to change this password in your configuration file:

Admin_password=[your password]