Database Error Please Configure Xapian
searches trough redmine attachments. I've developed it on Redmine 1.0.0. I don't know how to extend redmine search to include my code so I've extended my plugin to include redmine search too.I used xapian search engine to search and omega to index files. To use xapian, you have to install libxapian-ruby1.8 and xapian-omega packages (on ubuntu). To index some files with omega you may have to install some other packages like xpdf, antiword, ... From Omega documentation: PDF (.pdf) if pdftotext is available (comes with xpdf) PostScript (.ps, .eps, .ai) if ps2pdf (from ghostscript) and pdftotext (comes with xpdf) are available OpenOffice/StarOffice documents (.sxc, .stc, .sxd, .std, .sxi, .sti, .sxm, .sxw, .sxg, .stw) if unzip is available OpenDocument format documents (.odt, .ods, .odp, .odg, .odc, .odf, .odb, .odi, .odm, .ott, .ots, .otp, .otg, .otc, .otf, .oti, .oth) if unzip is available MS Word documents (.doc, .dot) if antiword is available MS Excel documents (.xls, .xlb, .xlt) if xls2csv is available (comes with catdoc) MS Powerpoint documents (.ppt, .pps) if catppt is available (comes with catdoc) MS Office 2007 documents (.docx, .dotx, .xlsx, .xlst, .pptx, .potx, .ppsx) if unzip is available Wordperfect documents (.wpd) if wpd2text is available (comes with libwpd) MS Works documents (.wps, .wpt) if wps2text is available (comes with libwps) AbiWord documents (.abw) Compressed AbiWord documents (.zabw) if gzip is available Rich Text Format documents (.rtf) if unrtf is available Perl POD documentation (.pl, .pm, .pod) if pod2text is available TeX DVI files (.dvi) if catdvi is available DjVu files (.djv, .djvu) if djvutxt is available XPS files (.xps) if unzip is available Before use the plugin you have to index redmine files: omindex -s english --db /var/www/xapian-index/ /var/www/redmine/files/ You can launch this command from crontab one or two times a day. After indexing you have to set index db path on plugin settings (/var/www/xapian-index/). It takes documents permissions to allow searches to users.It is my first plugin so code improvements are welcome. I hope it will be usefull for someone. redmine_xapian.tar.gz - Xapian search plugin (7.64 KB) extended-search.PNG - Extended search (8.3 KB) Replies (16) RE: Xapian search plugin - Added by Eric Davis about 6 years ago Xabier Elkano wrote: I don't know how to extend redmine search to include my code so I've extended my plugin to include redmine search too. Look at vendor/plugins/acts_as_searchable/ Eric Davis RE: Xapian search plugin - Added by Xabier Elkano about 6 years ago New release, fully integrated with r
crashes with std:length error during update Reported by: Gingy Owned by: richard Priority: normal Milestone: Component: Other Version: 1.0.7 Severity: normal Keywords: Cc: lveres@… Blocked By: Blocking: Operating System: Linux Description Sometimes our update/rebuild process crashes with the following error: terminate called after throwing an instance of 'std::length_error' what(): basic_string::assign www-daily/300_xapian_rebuild_produto: line 10: 28611 Aborted /usr/bin/xapian-compact $default_path/produto-$$-$database_identifier $default_path/produto_compact-$$-$database_identifier This happens only on 1 of our 5 servers, however all servers does the same update/rebuild process with the same content at the same time. This server has 32bit architecture, while the http://www.redmine.org/boards/3/topics/17306 others has 64bit. Oldest first Newest first Threaded Comments only Change History (10) comment:1 follow-ups: ↓ 2 ↓ 3 Changed 8 years ago by richard Please could you let us know which release of Xapian you are using. The error is from xapian-compact: are you running it on a single or multiple databases? Which options to xapian-compact are you using? https://trac.xapian.org/ticket/345 Is this reliably repeatable? ie, do you have a test database which, when you run xapian-compact on it, always fails with this error. Is there any other output to xapian compact? comment:2 in reply to: ↑ 1 Changed 8 years ago by Gingy Replying to richard: Please could you let us know which release of Xapian you are using. 1.0.7 The error is from xapian-compact: are you running it on a single or multiple databases? We are building four different flint databases from one oracle database (on all servers). Which options to xapian-compact are you using? Building four different flint databases from one oracle database (on all servers). Is this reliably repeatable? ie, do you have a test database which, when you run xapian-compact on it, always fails with this error. unfortunately I'm unsure about this one. This happened for the third time today, and till this time the problem solved itself within a short time (don't know, why). Is there any other output to xapian compact? I'm afraid, I don't clearly
Ultra Fast, Classical UI, Cloud suitable, Operating System Brought to you by: q4osteam Summary Files Reviews Support https://sourceforge.net/p/q4os/discussion/Support1/thread/5cec8bf7/ Git ▾ q4os-i18n q4os-base apt-updater Bugreport Forums Create Topic http://askubuntu.com/questions/305617/ubuntu-software-center-crashes-due-to-error-in-its-python-code Stats Graph Forums 1. Q4OS Support 171 2. Feature requests 34 4. Developers forum 4 3. General discussion 45 Help Formatting Help apt-xapian-index error Forum: 1. Q4OS Support Creator: Anonymous Created: 2015-06-23 Updated: 2015-06-23 Labels: Anonymous - 2015-06-23 On database error Q4OS 1.2.5, I installed xfce and synaptic. In synaptic, I want to install apt-xapian-index, but I get the following errors. What can I do to get xapian installed and working? Thanks for your help. E: apt-xapian-index: subprocess installed post-installation script returned error exit status 127 Details: (synaptic:8408): GLib-CRITICAL **: g_child_watch_add_full: database error please assertion 'pid > 0' failed Selecting previously unselected package apt-xapian-index. (Reading database ... 86975 files and directories currently installed.) Preparing to unpack .../apt-xapian-index_0.47_all.deb ... Unpacking apt-xapian-index (0.47) ... Processing triggers for man-db (2.7.0.2-5) ... Setting up apt-xapian-index (0.47) ... apt-xapian-index: Building new index in background... /var/lib/dpkg/info/apt-xapian-index.postinst: 43: /var/lib/dpkg/info/apt-xapian-index.postinst: update-python-modules: not found dpkg: error processing package apt-xapian-index (--configure): subprocess installed post-installation script returned error exit status 127 Errors were encountered while processing: apt-xapian-index E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up apt-xapian-index (0.47) ... apt-xapian-index: Building new index in background... /var/lib/dpkg/info/apt-xapian-index.postinst: 43: /var/lib/dpkg/info/apt-xapian-index.postinst: update-python-modules: not found dpkg: error processing package apt-xapian-index (--configure): subprocess installed post-installation script returned error exit status 127 Errors were encountered while processing: apt-xapian-index If you would like to refer to this comment somewhere else in this project, copy and paste the following link: Anonymo
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Ubuntu Software Center crashes due to error in its Python code up vote 5 down vote favorite 3 I searched for that, but did not find any reference to it on this site. If you know some, please refer me to it - the issues I have seen have different symptoms. So, to the point... I had Ubuntu 12.04 LTS for a long time, switched to Ubuntu Gnome Shell etc. Recently I wanted to move to Ubuntu 13.04 and found an issue that seemingly occurred previously, but at seemingly random rate. Now I cannot start Ubuntu Software Center at all. When I run the console I see: $ software-center (process:22270): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. Traceback (most recent call last): File "/usr/bin/software-center", line 36, in