Closed (fixed)
Project:
Apache Solr Search
Version:
6.x-3.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Dec 2010 at 14:56 UTC
Updated:
5 Mar 2012 at 22:12 UTC
Jump to comment: Most recent file
Comments
Comment #1
VladGh commentedI forgot to mention that the above error appears when trying to access the configuration page (admin/config/search/apachesolr).
Comment #2
pwolanin commentedDid you previously install the module? If so, did you run update.php?
Comment #3
VladGh commentedThe install was a little messy because it didn't allow installing both the framework and search at once, but I uninstalled it and reinstalled it again, all steps with running update.php. I will try it again with a fresh install of drupal maybe it will work. I will come back with results...
Comment #4
VladGh commentedSteps:
Existing Drupal 7.0-rc1 site, with all non-core modules disabled and without a previous install of Apache Solr.
Install Apache Solr Framework
It remains checked, like it is installed.
Install Apache Solr search submodule -- OK, no errors
Comment #5
VladGh commentedThe same errors appear with complete fresh install of drupal 7.0-rc1 (standard and minimal profiles)
Comment #6
pwolanin commentedLet me try to reproduce this.
Comment #7
pwolanin commentedA fresh install on a clean Drupal 7 standard profile install is fine for me.
However, I see the real error that matters is:
Not sure why you are seeing this error but I am not. What SQL server or what version are you using?
Comment #8
VladGh commentedI have an Ubuntu 10.10 default install with mysql 5.1.49. But I think that the real problem is at the bottom of that error:
I have InnoDB disabled in my.cnf. I will try with it enabled to see what happens, and I will come back...
Comment #9
pwolanin commentedI am also using innodb - that's the default for Drupal 7, but with MySQL 5.0. However, I don't see any error on MySQL 5.1 either.
Comment #10
pwolanin commentedThe 1000 byte key length restriction is in MyISAM, NOT InnoDB. http://dev.mysql.com/doc/refman/5.1/en/myisam-storage-engine.html
Perhaps your server is missing the InnoDB engine? I can reproduce the error if I force the engine to MyISAM.
Still, we want this to work on MyISAM too.
Comment #11
VladGh commentedI went back and enabled InnoDB in my.cnf and I was able to install the framework and search without any errors. So it works only with innodb which is not quite fair because on small machines the first thing people do is to add skip-innodb to my.cnf.
Anyway it works until one point: when I try to add a new server or edit the existing one I get the follwing error:
The only way I could add my own server (custom port and path) was to edit the mysql table directly and it works. Maybe I should open another issue with this. It looks like a php 5.3... error
Comment #12
VladGh commentedThat would be great...
Comment #13
pwolanin commentedDiscussing with Crell, we don't really need this unique constraint anyhow.
Comment #14
pwolanin commentedmostly untested patch to fix up the schema and API funcs.
Comment #15
pwolanin commentedoops, missed a couple changes.
Comment #16
Crell commentedIf we're switching to just a machine name for servers (which is good), why not use the new machine_name form element type in D7 for consistency?
Comment #17
pwolanin commentedfixed a couple stale function calls.
@Crell- that form element was already being used - this patch shows it, since the exists function changes.
Comment #18
pwolanin commentedsome more admin fixes.
Comment #19
pwolanin commentedre-roll
Comment #20
pwolanin commentedimproved (?) update functions.
Comment #21
pwolanin commentedcommitted
Comment #23
chx commentedComment #24
chx commentedBetter idea (from feeds): just decrease the index size.
Comment #25
pwolanin commentedchx points out that {field_config_instance} has: entity_type | varchar(32)
Comment #26
pwolanin commentedHere's a more complete fix.
Comment #27
pwolanin commentedmore complete removal of t() calls
Comment #28
pwolanin commentedalso fix apachesolr_update_7012()
Comment #29
chx commentedGo 4 it.
Comment #30
pwolanin commentedcommitted to 7.x
Comment #31
gnucifer commentedI had this probem on the "apachesolr_index_bundles" in 6.x-3.x (using myISAM). Reducing the bundle key size to 32 solves this for me. Would be great if the appropriate patch could be backported and commited also to the 6.x-3.x-brach.
Or should I submit a new patch?
Comment #32
nick_vhCommited to 6.x-3.x
Comment #33
nick_vh