Since upgrade from beta13 to beta15 (Drupal7 module) I periodically get 2 Messages from
Apache Solr (with each cron job)
1st is a Warning:
Cron läuft mit apachesolr_nodeapi_mass_update() für die Beitrags-IDs 480,442,481
2nd is an Error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'nid' in 'where clause'
I cleared Cache from the Site an the Views Cache. I copied the new files from apachesolr module folder to the solr Server config. (schema.xml, stopwords.txt, etc.)
The IDs 480, 481, 442 are published Content.
Can anybody help me with these informations?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1405040-1.patch | 2.47 KB | nick_vh |
Comments
Comment #1
nick_vhDoes this help? I assume you are using another database type?
Comment #2
nick_vhComment #3
chrisssi commentedHi Nick_vh
thank you for this patch. I've patched the apachesolr.index.inc and after that I cleared again all Caches.
Then I added a node type = article. After that I still saw Remaining 0 Elements under Apache Solr Search Configuration and in the log file was an entry
Cron runs with apachesolr_nodeapi_mass_update() for ....IDs 495
where ID 495 = ID of this last added article.
But only the warning resists - no Errors (like above).
After another Cron the Indexed Items were counted +1 so the new Index Entree has been added to the Index. (fine!)
:-)
So the patch is working. But I'm not sure what I can do about the still existing Warning from Apache Solr.
Can it be ignored or is there anything a noob like me can do?
Comment #4
nick_vhI can't seem to reproduce the notice so I'd love some more information. Can you tell me what database type you are working on and possibly can you give me the english version of those warnings?
Comment #5
chrisssi commentedThe Database for the Drupal CMS is
MySQL - MyISAM (v 5.1.58)
on ubuntu Server 11.10
+ PHP (v 5.3.6-13ubuntu3.3)
The Java Server for Apache Solr is a
Tomcat 7.0.23 with Solr 3.5.0
on another ubuntu Server 11.10.
The Message is:
Type: Apache Solr
User: Anonymous (not verified)
Location: http://www.mysite.com/cron.php?cron_key={cron_key}
Message: On cron running apachesolr_nodeapi_mass_update() on nids {IDs_of_all_added_items_since_last_cronjob}
Severity: Warning
Hope these Infos help a bit. Allthough the Warning appears, the IDs of the mentioned Items disappear after the cronjob. So only the IDs of newly added Items where included in following Warning after next cron.
Before using your patch the List of IDs of the Non-indexed Items mentioned in the Apache Solr Warning accumulated because of the SQL Error.
Sorry I can't better describe it....
Btw when deleting an Item is working properly i think.
After deleting a node I see the Number of Pending Deletions directly under the Settings of Apache Solr.
Comment #6
nick_vhAh, I see now. This is actually perfectly ok behavior. Nothing to worry about.
You can safely ignore it!
Comment #7
chrisssi commentedThanks for your help!
A last question - Is it possible to make the Counter for Pending Updates / Remaining (when new nodes are posted) again working?
But it's a "nice-to-have" so if not it's not a Doomsday !
:-)
Comment #8
nick_vhThis counter should work? I suggest you open a new issue and you clearly write down what you do (and which modules) so the counter stopped working
Comment #9
nick_vhComment #10
nick_vhComment #11
nick_vhCommitted for 7.x-1.x
Comment #12
nick_vhDoes not affect 6.x-3.x
Comment #13.0
(not verified) commentedperiodic = cron jobs running