This question has been flagged
2 Replies
12770 Views

Hello everyone,

I am new at OpenERP and I just installed OpenERP 7.0 on Ubuntu 12.04 using the All-In-One ".deb" file. But when I tried to open it it gave me this error message:

Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

What is going wrong and how can I fix it?

Thanks!

I did the "tail -f /var/log/openerp-server.log" command line and it gave me this:

    self.gen.next()
    File "/usr/share/pyshared/openerp/addons/web/http.py", line 422, in session_context
    session_store.save(request.session)
    File "/usr/share/pyshared/werkzeug/contrib/sessions.py", line 237, in save
dir=self.path)
    File "/usr/lib/python2.7/tempfile.py", line 300, in mkstemp
    return _mkstemp_inner(dir, prefix, suffix, flags)
    File "/usr/lib/python2.7/tempfile.py", line 235, in _mkstemp_inner
    fd = _os.open(file, flags, 0600)
    OSError: [Errno 13] Permission non accordée: '/tmp/oe-sessions-openerp/tmpNUQsbf.__wz_sess'
Avatar
Discard
Best Answer

There is a file openerp-server.log, probably in a path such as /var/log/openerp.

Please try:

 tail -f /var/log/openerp/openerp-server.log

You may see there, further clues as to what occurred.

Update This ...

 tail -fn 50 /var/log/openerp/openerp-server.log

... will show more lines.

But you certainly have a permissions problem:

OSError: [Errno 13] Permission non accordée: '/tmp/oe-sessions-openerp/tmpNUQsbf.__wz_sess'

Please try :

 sudo ls -l /tmp/oe-sessions-openerp/

In my case I see many lines like this :

 -rw-r--r-- 1 openerp openerp 211 May  5 22:28 werkzeug_ffae16202d6af971f83831481c7bf60ae9165a0b.sess

Also :

 sudo ls -l /tmp/

gives me :

 drwx------  2 openerp openerp 147456 May  6 12:20 oe-sessions-openerp

Hope that helps.

Avatar
Discard
Author

I just did what you said Martin and I put the answer as an update!

Please see my update.

Best Answer

You have a permission problem, the user you are using to install openerp does not have the write permissions on the /tmp directory. Try doing

sudo dpkg -i <name of="" the="" .deb="" file="">

Avatar
Discard