Odoo Help

Welcome!

This community 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.

0

How to fix this init.d t run Odoo as a service

By
sumit sinha
on 12/9/15, 1:04 PM 763 views

i need help i am unable to do this step etc/init.d .......Similar to the configuration file, you need to either copy it or paste the contents of this script to a file in /etc/init.d/ and call it odoo-server. Once it is in the right place you will need to make it executable and owned by root: sudo chmod 755 /etc/init.d/odoo-server sudo chown root: /etc/init.d/odoo-server In the configuration file there’s an entry for the server’s log file. We need to create that directory first so that the server has somewhere to log to and also we must make it writeable by the openerp user:

sumit@sumit-OptiPlex-990:~$ /opt/odoo/debian/init

bash: /opt/odoo/debian/init: No such file or directory

sumit@sumit-OptiPlex-990:~$ sudo chmod 755 /etc/init.d/odoo-server

chmod: cannot access ‘/etc/init.d/odoo-server’: No such file or directory

sumit@sumit-OptiPlex-990:~$ sudo blash

sudo: blash: command not found

sumit@sumit-OptiPlex-990:~$ sudo bash

root@sumit-OptiPlex-990:~# sudo chmod 755 /etc/init.d/odoo-server

chmod: cannot access ‘/etc/init.d/odoo-server’: No such file or directory

root@sumit-OptiPlex-990:~# sudo mkdir /var/log/odoo

root@sumit-OptiPlex-990:~# sudo chown odoo:root /var/log/odoo

root@sumit-OptiPlex-990:~#

root@sumit-OptiPlex-990:~# sudo chmod 755 /etc/init.d/odoo-server

chmod: cannot access ‘/etc/init.d/odoo-server’: No such file or directory

root@sumit-OptiPlex-990:~# sudo update-rc.d supervisor defaults

update-rc.d: error: initscript does not exist: /etc/init.d/supervisor

root@sumit-OptiPlex-990:~# 



from here i am completing my installation step 

http://www.theopensourcerer.com/2014/09/how-to-install-openerp-odoo-8-on-ubuntu-server-14-04-lts/


i am getting problem in step 7

0

Axel Mendoza

--Axel Mendoza--
10203
| 7 7 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full time employee trying to understand what to do an how

Reach me at aekroft@gmail.com

Axel Mendoza
On 12/9/15, 1:53 PM

Hi @sumit sinha

As the tutorial says there is a modified copy for Odoo 8 at:

http://www.theopensourcerer.com/wp-content/uploads/2014/09/odoo-server

that you could download and use it for the rest of the step like:

> cd /etc/init.d/

> sudo wget http://www.theopensourcerer.com/wp-content/uploads/2014/09/odoo-server

> sudo chmod 755 /etc/init.d/odoo-server

> sudo chown root: /etc/init.d/odoo-server

> sudo mkdir /var/log/odoo

> sudo chown odoo:root /var/log/odoo

Hope this helps

i can't complete my 7 step from this tutorial even i can't make directory so please help and how i will complete and start my server i need help

sumit sinha
on 12/10/15, 12:10 AM

why you can't make a directory? mkdir is not working? what directory you need to create? /var/log/odoo?

Axel Mendoza
on 12/10/15, 12:18 AM

I can help you but you need to provide more info about your errors, besides there are others resources to learn Ubuntu and Linux around internet. Just follow my commands to complete the step 7. Note that you don't execute "> cd /etc/init.d/", I added the char ">" to indicate a new line in the console, you need to copy the commands skipping the char ">"

Axel Mendoza
on 12/10/15, 12:56 AM

skype id- ssinha.zensoftware please add me if you have skype then

sumit sinha
on 12/10/15, 1:07 AM

You need to read carefully the logs you posted. The file odoo-server exist on /etc/init.d so the download file was saved on odoo-server.1
Also there is a file named odoo in /var/log/odoo, that's why you cannot create the directory. Delete with rm /var/log/odoo

Axel Mendoza
on 12/10/15, 1:14 AM

how i will be delete this and whats the step i can please send me step that i can install odoo 8 i am still facing 7 step.....

sumit sinha
on 12/10/15, 1:37 AM

I told you how to delete the file with the command "rm /var/log/odoo" rm is the command for delete files and folders, for folders just append -R to the rm call like:
rm -R /var/log/odoo/
Right now the answer's comments are off topic, If that command don't help you find the answer in another forum like stackoverflow, Odoo forum doesn't have anything to do with how to delete a directory or file. Hope you understand,

Axel Mendoza
on 12/10/15, 1:45 AM

Ok i have deleted so what was the next????

sumit sinha
on 12/10/15, 2:08 AM

please send me the next proper step that i can install odoo 8 i was still facing 7 step

sumit sinha
on 12/10/15, 2:10 AM

I give you all the steps to complete the tutorial step 7, maybe you should remove all the files generated and start again. also don't forget to vote if the answers were helpful

Axel Mendoza
on 12/10/15, 5:22 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 12/9/15, 1:04 PM
Seen: 763 times
Last updated: 12/9/15, 1:53 PM