Solr reindex fails

54 views
Skip to first unread message

Xiao Zhao

unread,
Mar 15, 2013, 12:13:36 PM3/15/13
to bib...@googlegroups.com
Hello

I just imported the database of a BibApp instance into another.

Just tried reindexing; it ran for a while, then fails with

rake aborted!
500 "Illegal_character_CTRLCHAR_code_2__at_rowcol_unknownsource_884128__comctcwstxexcWstxUnexpectedCharException_Illegal_character_CTRLCHAR_code_2 ...

The target BibApp instance is pretty old, I guess it needs some files.

Maybe some bad characters exists in the db? I can't locate them.

Thanks for the help.

Xiao

Jason Stirnaman

unread,
Mar 15, 2013, 12:21:51 PM3/15/13
to bib...@googlegroups.com
Xiao,
Were both databases configured as UTF8? It sounds like an encoding error.

Jason


Xiao

--
You received this message because you are subscribed to the Google Groups "bibapp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bibapp+un...@googlegroups.com.
To post to this group, send email to bib...@googlegroups.com.
Visit this group at http://groups.google.com/group/bibapp?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Xiao Zhao

unread,
Mar 15, 2013, 12:52:36 PM3/15/13
to bib...@googlegroups.com
I've looked at both through mysql workbench; it shows both have latin-1 default collation.
I changed the target one to utf-8 collation, but it didn't work. I guess the source needs to change too, but I hesitate to do it.
Any other suggestions? Thanks Jason.

Jason Stirnaman

unread,
Mar 15, 2013, 1:27:49 PM3/15/13
to bib...@googlegroups.com
I'm not positive this will solve it, but you can try making a UTF8 copy of your database: http://docs.moodle.org/23/en/Converting_your_MySQL_database_to_UTF8#Converting_a_database_containing_tables

Xiao Zhao

unread,
Mar 18, 2013, 12:01:49 PM3/18/13
to bib...@googlegroups.com
Thanks for the tips; now it says "Connection reset by peer" for some reason. This too, comes after a while.

Jason Stirnaman

unread,
Mar 18, 2013, 12:15:12 PM3/18/13
to bib...@googlegroups.com
Xiao,
That sounds like a Solr connection problem. Is Solr actually running at the address and port that you expect?

Jason

Xiao Zhao

unread,
Mar 19, 2013, 4:19:48 PM3/19/13
to bib...@googlegroups.com
Hi Jason

I've ran it again; and solr did index some works/people, but it failed with "connection reset by peer".
Really not sure why; it was complaining with the illegal char error before, and suddenly switched to connection error.
But, I still take solr over sphinx; had more pain dealing with the latter.

Xiao

Xiao Zhao

unread,
Mar 21, 2013, 10:40:59 AM3/21/13
to bib...@googlegroups.com
Ah it looks Okay now. Thanks for the help.

I've added a new work_subclass model, and now solr complains 

The single-table inheritance mechanism failed to locate the subclass: 'Image3D'

How to fix this?

Xiao Zhao

unread,
Mar 25, 2013, 11:23:58 AM3/25/13
to bib...@googlegroups.com
Looks like that's okay now. Thanks for all the help.
Reply all
Reply to author
Forward
0 new messages