Server Maintaining Cache?

Asked by mm alam

Hi,

Whenever I make a change in a module, the corresponding changes are not reflected in the modules, some times.

For verification, I removed the the corresponding python and its compiled version "pyc" as well from the folder, but when i restart the server, the server runs smoothly, without the needed python file.

I have located, and the python files are only present in my desired location.

So what is the reason that server is reading these incomplete objects and giving full results.

Whether the server is maintaining a cache?

If yes, how to make that cache invalid so that changes are visible.

By the way, this behaviour is not constant, and on some VM's, i have seen this method working, especially, if the source code of OpenERP is loaded via Eclipse.

Regards,

Question information

Language:
English Edit question
Status:
Solved
For:
OpenERP Edit question
Assignee:
No assignee Edit question
Solved by:
mm alam
Solved:
Last query:
Last reply:
Revision history for this message
mm alam (masoom-alam) said :
#1

Just wanted to mention that I removed all the Reports Folder from a module, but still it is generating the modules perfectly.

Also, when the server starts, it is giving the following messages:

[2010-06-07 09:04:48,165] INFO:init:module account_reports_india: loading objects
[2010-06-07 09:04:48,166] INFO:init:module account_reports_india: registering ob

Thus, module is loaded successfully, from where? It is not clear.

Revision history for this message
mm alam (masoom-alam) said :
#2

strange, i removed "account" module and server got in to a loop giving the following error:

[2010-06-07 09:11:10,700] ERROR:init:[01]:
[2010-06-07 09:11:10,702] ERROR:init:[02]: Environment Information :
[2010-06-07 09:11:10,702] ERROR:init:[03]: System : Linux-2.6.31-21-generic-i686-with-Ubuntu-9.10-karmic
[2010-06-07 09:11:10,703] ERROR:init:[04]: OS Name : posix
[2010-06-07 09:11:10,703] ERROR:init:[05]: Distributor ID: Ubuntu
[2010-06-07 09:11:10,703] ERROR:init:[06]: Description: Ubuntu 9.10
[2010-06-07 09:11:10,704] ERROR:init:[07]: Release: 9.10
[2010-06-07 09:11:10,705] ERROR:init:[08]: Codename: karmic
[2010-06-07 09:11:10,705] ERROR:init:[09]: Operating System Release : 2.6.31-21-generic
[2010-06-07 09:11:10,705] ERROR:init:[10]: Operating System Version : #59-Ubuntu SMP Wed Mar 24 07:28:56 UTC 2010
[2010-06-07 09:11:10,706] ERROR:init:[11]: Operating System Architecture : 32bit
[2010-06-07 09:11:10,706] ERROR:init:[12]: Operating System Locale : en_US.UTF8
[2010-06-07 09:11:10,707] ERROR:init:[13]: Python Version : 2.6.4
[2010-06-07 09:11:10,707] ERROR:init:[14]: OpenERP-Server Version : 5.0.9
[2010-06-07 09:11:10,707] ERROR:init:[15]: Last revision No. & ID :
[2010-06-07 09:11:10,708] ERROR:init:[16]: module account_regularization: Unmet dependencies: account
bzr: ERROR: Not a branch: "/home/alam/Desktop/Data/server/bin/".

However, when i removed the account_reports_india module, nothing happened, any thing that I am doing wrong....?

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#3

Hello MM Alam ,

You can not delete the module in the created database because in database the module entry is done, You can only uninstall those module which you do not needed.
If you delete any module from 'addons' then you need to drop the old database and create a new database again.

Hope this will help you.

Thanks.

Revision history for this message
mm alam (masoom-alam) said :
#4

Sorry, just wanted to mention that actually there was another zip file lying in the folder, for the same module, that i was trying some update.

The problem was, that the server was picking from the zip file and not from the original folder.

As I removed the zip file, every thing is perfectly reflecting at the server command prompt.

Thanks for prompt response.