strigidaemon doesn't start when "Nepomuk Semantic Desktop" is enabled in KDE4.1Beta1

Bug #237336 reported by Thomas Schlesinger
84
This bug affects 17 people
Affects Status Importance Assigned to Milestone
strigi (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Jaunty by Luke Plant

Bug Description

Binary package hint: strigi-daemon

When the option "Nepomuk Semantic Desktop" is enabled in the Nepomuk system setting of KDE4.1Beta1, strigidaemon doesn't start. Instead, it gives the error message "Unknown backend type: sopranobackend". I'm using the latest packages, I use the deb-source "deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main" im my /etc/apt/sources.list

I suppose, strigidaemon does only search for plugins in /usr/lib/strigi/ , but strigiindex_sopranobackend.so is located at /usr/lib/kde4/lib/strigi/.

I've tried to link the sopranobackend to the right location with
ln -s /usr/lib/kde4/lib/strigi/strigiindex_sopranobackend.so /usr/lib/strigi/strigiindex_sopranobackend.so

When I now start the strigidaemon, it doesn't complain about the unknown backend, instead I get now endless messages like that:

(Soprano::IndexManager) creating IndexReader
IndexReader::IndexReader in thread QThread(0x80d4750)
IndexReader::fieldNames in thread QThread(0x80d4750)
IndexReader::countDocuments in thread QThread(0x80d4750)
IndexReader::countWords in thread QThread(0x80d4750)
IndexReader::indexSize in thread QThread(0x80d4750)
IndexReader::countDocuments in thread QThread(0x80d4750)
IndexReader::countWords in thread QThread(0x80d4750)
IndexReader::indexSize in thread QThread(0x80d4750)
IndexReader::countDocuments in thread QThread(0x80d4750)
IndexReader::countWords in thread QThread(0x80d4750)
[...]

May be here are two problems occuring at the same time:
1. strigiindex_sopranobackend.so isn't located in the right directory
2. the packaged version of strigiindex_sopranobackend.so doesn't match with the packaged version of strigi-daemon.

Revision history for this message
Thomas Kluyver (takluyver) wrote :

Does the PPA archive include a more up-to-date version of Strigi, or some parts of Strigi?

Revision history for this message
Luis Silva (lacsilva) wrote :

I can confirm this bug with PPA packages.

Revision history for this message
Luis Silva (lacsilva) wrote :

The following works for me:

1) Create the above link:
ln -s /usr/lib/kde4/lib/strigi/strigiindex_sopranobackend.so /usr/lib/strigi/strigiindex_sopranobackend.so
2) kill all nepomuk and strigi processes:
pgrep nepomuk|xargs kill -9
pgrep strigi|xargs kill -9
3) remove the ~/.strigi folder
4) restart nepomukserver

Revision history for this message
Thomas Schlesinger (schlesix) wrote :

It doesn't help here, I get the same results as written above.

Revision history for this message
Thomas Schlesinger (schlesix) wrote :

I've encountered another problem:

If I delete ~/.strigi and start the daemon, strigi indexes and I can query it by strigiclient or strigicmd. When I then enable strigi desktop search in the KDE4-Settings, the strigidaemon crashes.

Revision history for this message
Yannig (yannig-perre) wrote :

I was able to start the nepomuk daemon but the nepomuk process is taking a 100% of one of my CPU to index my home which does not contains a huge quantity of file.
A quick look in kde bug tracker show that the backend is not the good one (http://bugs.kde.org/show_bug.cgi?id=161380) : we use redland instead of sesame2 (sopranocmd --help does not contain sesame2). So maybe we miss some compilation options here.

Revision history for this message
socceroos (skduff) wrote :

I can confirm that what Yannig has said is correct. It seems that the Ubuntu packages for strigi have not been compiled with 'sesame2' support. This is a far quicker indexer for KDE4 than 'redland'.

Changed in strigi:
status: New → Confirmed
Revision history for this message
Simone Tolotti (simontol) wrote :

Running strigidaemon from command line it uses clucene backend ( look ~/.strigi/daemon.conf ).
When called by nepomuk it tries to use sopranobackend and crashes.

Revision history for this message
Andreas Zitzelsberger (az82) wrote :

I can confirm this bug for the 4.1 release PPA.

Revision history for this message
Yannig (yannig-perre) wrote :

The last update of strigi is correcting the problem but you need to delete ~/.strigi. If you don't do this, you will receive this message :
yannig@yannig-desktop:/usr/lib/kde4/lib$ strigidaemon
WARNING: field 'http://strigi.sf.net/ontologies/0.9#debugParseError' is not defined in any rdfs ontology database.
Unknown backend type: sopranobackend

yannig@yannig-desktop:/usr/lib/kde4/lib$ rm /home/yannig/.strigi/ -rf
yannig@yannig-desktop:/usr/lib/kde4/lib$ strigidaemon
DaemonConfigurator: created default config for indexed dirs
WARNING: field 'http://strigi.sf.net/ontologies/0.9#debugParseError' is not defined in any rdfs ontology database.
stop
DBusHandler::stop
stop
DBusHandler::stop
stopping

Then the index start and I get a fully fonctionnal index of my documents (see screenshot).

Revision history for this message
sputnik (sputnik) wrote :

I can confirm the original bug reported by Thomas.

The way Luis Silva describes doesn't work for me.

Revision history for this message
Thomas Schlesinger (schlesix) wrote :

Yes, setting the links as described in my initial posting works here now, too. I've installed KDE4 on FreeBSD the last days and found out, that the problem exists there, too and I was able to solve it on the same way, so it may be an upstream problem. Anyway, it seems, that there will be another solution soon: http://www.kdedevelopers.org/node/3573 .

Revision history for this message
Harald Sitter (apachelogger) wrote :

Not going to be fixed for hardy because:
a) Strigi-daemon is not installed by default
b) Nepomuk doesn't use it by default
c) there is no reasonable GUI
d) the one that is existing is not very usable and off by default

Maintaining a solution would be too much work considering these facts. It works properly in Intrepid/8.10.

Changed in strigi:
status: Confirmed → Won't Fix
Revision history for this message
Luke Plant (spookylukey) wrote :

With KDE 4.2 packages (deb http://ppa.launchpad.net/kubuntu-experimental/ubuntu intrepid main), using intrepid, this still does not work for me.

After killing all nepomuk processes and removing ~/.strigi, then restarting nepomukserver, I get this message on the systemsettings configuration page, under 'Enable Strigi Desktop File Indexer'

Failed to contact Strigi Indexer (No such method 'currentFolder' in interface 'org.kde..nepomuk.Strigi' at object path '/nepomukstrigiservice' (signature ''))

Revision history for this message
Luke Plant (spookylukey) wrote :

I'm still getting this basic problem with Jaunty. The error message has changed now - instead it flashes up this:

Failed to contact Strigi indexer (Could not get owner of name 'org.kde.nepomuk.services.nepomukstrigiservice': no such name)

...before returning to "Strigi service not running"

I do have soprano-backend-sesame installed.

In my ~/.xsession-errors I've found:

[/usr/bin/nepomukservicestub] nepomukstrigiservice(6705) Nepomuk::StrigiService::StrigiService: Will not start when using redland Soprano backend due to horrible performance.

And in/home/luke/.kde/share/config/nepomukserverrc I found this line:

Used Soprano Backend=redland

However, I never put that there, I don't know why it's there, and the GUI should sort this out. If I manually change it or remove it, then restart nepomukserver in a terminal, the output includes this:

(Soprano::PluginManager) loaded plugin from "/usr/lib/soprano/libsoprano_redlandbackend.so"
(Soprano::PluginManager) found no soprano plugin at "/usr/lib/soprano/libsoprano_sesame2backend.so"
(Soprano::PluginManager) found no soprano plugin at "/usr/lib/soprano/libsoprano_sesame2backend.so"

However, that file does exist:

$ ls -1 /usr/lib/soprano/
libsoprano_nquadparser.so
libsoprano_nquadserializer.so
libsoprano_raptorparser.so
libsoprano_raptorserializer.so
libsoprano_redlandbackend.so
libsoprano_sesame2backend.so

Also, after restarting, nepomukserverrc has "Used Soprano Backend=redland" again.

I re-opened the bug since the reason for the WONTFIX was that it was fixed in Intrepid (though it never was for me, and is still present in Jaunty).

Revision history for this message
Leon Maurer (leon-n-maurer) wrote :

I've got the same error message in Jaunty when I try to start Strigi. I also have the problem with Nepomuk interminably maxing out one CPU core. This is a real shame -- I remember using strigi back before KDE4 and it was nice. It's been no dice ever since.

Revision history for this message
nulll (nu111) wrote :

Same bug in Kubuntu 64bit 9.04
first I had this problem
https://bugs.launchpad.net/ubuntu/+source/soprano-backend-sesame/+bug/334186
that is a missing symlink from
libjvm.so
to
/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server/libjvm.so

i solved the bug strigi is always inactive
in addiction to all the reports sended here i must say that in dmesg there are these lines

[ 184.199693] nepomukservices[3292]: segfault at 48 ip 00007f0d7938bcfe sp 00007fff8198ebf0 error 4 in libQtCore.so.4.5.0[7f0d79322000+240000]
[ 895.034598] nepomukservices[3738]: segfault at 48 ip 00007f9b51320cfe sp 00007fff59922c80 error 4 in libQtCore.so.4.5.0[7f9b512b7000+240000]

Revision history for this message
Luke Plant (spookylukey) wrote :

Thanks, that fixed it for me, though I had to use:

sudo ln -s /usr/lib/jvm/java-6-sun/jre/lib/i386/server/libjvm.so /usr/lib/libjvm.so

The proper method of creating these symlinks needs to be sorted out, I imagine - it seems to depend on what java packages you have installed.

I'm changing the status to 'New', because the reason for WONTFIX was not correct - the bug is still definitely present in Jaunty.

Changed in strigi (Ubuntu):
status: Won't Fix → New
Revision history for this message
bJXjLjEHIaWT0tFd (bjxjljehiawt0tfd-deactivatedaccount) wrote :

Luke,

the problem you are referring to has a dedicated bug report: https://bugs.launchpad.net/ubuntu/+source/soprano-backend-sesame/+bug/334186.

nulll,
could you please confirm that the segfaults still occur? I saw them on my system as well but they disappeared once I had symlinked libjvm.so.

Revision history for this message
nulll (nu111) wrote :

@Niels Ganser
now if i
dmesg | grep nepomukservices
is empty

so maybe that was linked with the libjvm.so problem
but strigi is always inactive, if i try to turn it on i get the error
"Could not get owner of name 'org.kde.nepomuk.services.nepomukstrigiservice': no such name"

Revision history for this message
bJXjLjEHIaWT0tFd (bjxjljehiawt0tfd-deactivatedaccount) wrote :

nulll,

presumably you have the same problam as other's reporting the same error: namely nepomuk falsely tries to use the redland storage backend instead of sesame. Could you please attach your ~/.xsession-errors, if present?

I am stabbing in the dark a little here but try the following to make strigi work for you:
sudo aptitude reinstall soprano-backend-sesame && sudo dpkg-reconfigure soprano-backend-sesame

If this does not help, please also paste the output of
cat .kde/share/config/nepomukserverrc

Thank you!

Revision history for this message
nulll (nu111) wrote :

hi Niels,
after this
sudo aptitude reinstall soprano-backend-sesame && sudo dpkg-reconfigure soprano-backend-sesame
the problem is still there

in attached you can see my .xsession-errors
and here's my .kde/share/config/nepomukserverrc

[Basic Settings]
Configured repositories=main
Start Nepomuk=true

[Service-nepomukmigration1]
autostart=false

[Service-nepomukstrigiservice]
autostart=true

[main Settings]
Storage Dir[$e]=$HOME/.kde/share/apps/nepomuk/repository/main/
Used Soprano Backend=sesame2
rebuilt index for type indexing=true

Revision history for this message
nulll (nu111) wrote :

A lot of time (months!) are passed but the problem is still there... why?

Revision history for this message
nulll (nu111) wrote :

Hi Niels, as you asked me again in attached you have my last xsession-errors

and again this is the
.kde/share/config/nepomukserverrc

[Basic Settings]
Configured repositories=main
Start Nepomuk=true

[Service-nepomukmigration1]
autostart=false

[Service-nepomukstrigiservice]
autostart=true

[main Settings]
Storage Dir[$e]=$HOME/.kde/share/apps/nepomuk/repository/main/
Used Soprano Backend=sesame2
rebuilt index for type indexing=true

and I reconfirm that after doing
sudo aptitude reinstall soprano-backend-sesame && sudo dpkg-reconfigure soprano-backend-sesame
the problem is still there

Revision history for this message
humufr (humufr-deactivatedaccount) wrote :
Revision history for this message
nulll (nu111) wrote :

thanks so much humufr!
yes the instructions in the link solved the problem

Revision history for this message
humufr (humufr-deactivatedaccount) wrote :

This bug should be closed since the new backend is virtuoso.

Changed in strigi (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.