Greetings ...

First cron, after install and basic setup of ERP site, seems to hang if you run cron. Also had a odd problem, where I can add items, but can not just click on their description to view. I get an

Fatal error: Maximum execution time of 240 seconds exceeded in /var/drupal/drupal-erp.leet/includes/database.mysqli.inc on line 115

But after a few hours or so, the cron and item access works fine. Think this might be a MySQL indexing issue or something, but would rather get an expert opinion.

Thanks
Mailed
LeeT

CommentFileSizeAuthor
#7 erp-nohang.patch2.14 KBleenx
#6 faulty.diff2.07 KBleenx
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

leenx’s picture

Just a little more info ...

http://erp.leenx.tld/node/10

Reports: Fatal error: Maximum execution time of 120 seconds exceeded in /var/drupal/drupal-erp.leet/includes/database.mysql-common.inc on line 41

But, http://erp.leenx.tld/node/10/edit

Showes the item fine. Had a similar problem a few days ago, showing somebody the joys of DrupalERP. Had to show them the add edit to the URL and it works, but today, it's working fine.

Thanks
Mailed
LeeT

singularo’s picture

Status: Active » Postponed (maintainer needs more info)

HMmm. can really tell why without some insight into what was in the log files. I suspect its just a first search index update sort of issue.

leenx’s picture

Greetings ...

Thanks for the quick reply. Which logs is best to look at? A little extra info, I have created another item, and it works fine, but the first (LABOUR), I am still getting time outs.

Is there a quick and easy way to rebuild the indexs or something like that? I tried the cron again this morning, and that too is giving timeouts. Doing to do a backup and restore and see if that works.

Thanks
Mailed
LeeT

leenx’s picture

Just another note, did a backup and restore, using the Drupal Backup & Migrate module, and it did not solve the problem. I then check all other basic nodes, like Store/Supplier/Customer and then all seemed fine. So I deleted node 10, which is first Item, LABOUR. Recreated it and was able to run cron without a problem.

This same problem could be the reason why I can't hostin Aegir. We need to look at why the first Item, is causing a funny. Will look though the profile and see if I can see anything, but I'm still very new to this.

leenx’s picture

ok, so today I spent alot of time, trying to figure out what was causing this problem. It seem, it has to be a problem with version projects[erp] = 1.1, which has the problem and version projects[erp] = 1.1-beta7, which seems to work. Or I mean, not hang on the Labour item or cron. Hoping I can figure out what is the problem and post a patch or something.

leenx’s picture

Status: Postponed (maintainer needs more info) » Active
FileSize
2.07 KB

Using erp 1.1, I think I found the code that causes the cron and Labour to hang. I don't yet know enough to be able to fix the code, so I have just made a diff that removes the code and functionality.

Will work on the code at a later stage, but have a few other things that I wish to fix and/or improve with ERP.

leenx’s picture

Component: User interface » Code
Status: Active » Needs review
FileSize
2.14 KB

Done some more tests, thinking that maybe I had broken something else, but, it seems not.

I have updated the patch, hoping it will be accepted into the current code base, at which point, I believe that this case can be closed.

singularo’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)