Odoo Help


[9.0] Odoo not starting because of data_dir in config

Mike Greenish
on 11/2/16, 12:13 PM 914 views

I re-cloned Odoo 9, keeping the same config.  When I restarted through the start-stop-daemon, Odoo wouldn't start.  I commented out each line in the config until it would start to find the offending line.  It turns out the data_dir parameter causes odoo not to start.  

data_dir = /opt/odoo9-live/.local/share/Odoo

If I comment out the line, the server starts.  If I uncomment it, it doesn't.  I believe this was a standard line but don't remember, it has been a few months since I installed Odoo 9.

ls -la /opt/odoo9-live/.local/share/Odoo/total 20d

rwx------ 5 root root 4096 Nov 2 16:33 .

drwx------ 3 root root 4096 Nov 2 16:06 ..

drwx------ 3 root root 4096 Nov 2 16:06 addons

drwxr-xr-x 3 root root 4096 Nov 2 16:33 filestore

drwx------ 2 root root 4096 Nov 2 16:33 sessions

I tried changing ownership to odoo_user:odoo_user but that made no difference.  Anyone have any ideas about what could cause this data_dir parameter to stop the daemon from starting?


Cybrosys Technologies

--Cybrosys Technologies--
| 2 2 4
Calicut, India
--Cybrosys Technologies--

Cybrosys Technologies is a private limited ISO certified company in Technology and Software Engineering sector. We serve as one of the best and trusted Odoo official partner, providing ultimate Customization and Implementation services in Odoo ERP. A frequent contributor to Odoo Apps, our customized free apps are downloaded by more than one lakh users. Most of our apps augment the potentialities of Odoo and are trending in the Odoo app store.

Cybrosys keeps privilege to be one among the finest Odoo Official Partners with 200+ free apps contribution towards the Odoo community. Cybrosys also stands number one in Odoo-social Media Integration empowering every kind of business solutions.

We are also enriched with highly skilled UI/UX technical experts for Developing, Implementing and Designing, thereby providing ultimate benefit to our customer base.

Today Cybrosys has reached par excellent in Odoo Implementation and allied services, proving its credibility and reliability. Our proven services are used by customers sprawling across 160+ countries including Middle East, African continents, UK, Germany, Spain, Thailand, Hong Kong, New Zealand, Australia, Malaysia, Singapore, Egypt etc.

We are rapidly expanding our base with robust quality management and business process re-engineering to meet the ultimate customer desire.

To know more about Cybrosys Technologies and our Odoo Apps, Kindly visit:

Cybrosys Technologies 

Odoo Apps 

And inbox us your queries to odoo@cybrosys.com

Cybrosys Technologies
On 11/3/16, 1:03 AM

As the name indicates, this is the data directory of odoo. But files that related to the instance you are trying to access are not in this directory.
when you mention 'data_dir' in config, odoo only checks that location. when you comment it, odoo will find its path,
if you are creating a new instance..i hope it will work with the current uncommented  'data_dir' conf.
lemme know am i right

Mike Greenish
On 11/3/16, 3:57 AM

So this time when I changed ownership to odoo_user:odoo_user, odoo started.  So it seems to have been a permissions issue, which makes sense as odoo is running under odoo_user and needs permission to access that directory.  

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 11/2/16, 12:13 PM
Seen: 914 times
Last updated: 11/11/16, 6:59 AM