I?m trying to setup Spotlight with Tracker (2.3 from Ubuntu repo) backend in Ubuntu 20.04 and Samba 4.12.7. I?ve followed the wiki closely but every time I try to search I get this in the logs: [2020/10/02 10:43:42.078242, 0] ../../source3/rpc_server/mdssvc/mdssvc_tracker.c:403(mds_tracker_search_start) mds_tracker_search_start: no connection to Tracker [2020/10/02 10:43:42.079897, 0] ../../source3/rpc_server/mdssvc/mdssvc.c:935(slrpc_open_query) slrpc_open_query: backend search_start failed And also sometimes this: (process:80045): Tracker-WARNING **: 10:43:42.086: Falling back to bus backend, the direct backend failed to initialize: Could not find database file:'/root/.cache/tracker/meta.db?. I?ve tried running tracker services with systemd and also directly under the mdssvc user but smbd isn?t able to connect to Tracker. I must have a configuration error somewhere or the problem is with either Tracker or Samba. I also tried with Debian 10, Samba 4.11.13 and Tracker 2.1 and I get this when opening the share: [2020/10/02 16:15:27.269248, 1] ../../source3/rpc_server/mdssvc/mdssvc.c:739(tracker_con_cb) Could not connect to Tracker: Failed to load SPARQL backend: Cannot autolaunch D-Bus without X11 $DISPLAY So this points more to a DBus problem. I even tried to run Tracker under the root account but no change. The last time I tried Tracker backend was about two years ago and I got it working then, not sure what?s the problem this time. Any pointers? Thanks.
Hai, Selfcompiles samba? And which one did you use? https://wiki.samba.org/index.php/Spotlight_with_Elasticsearch_Backend Or https://wiki.samba.org/index.php/Spotlight_with_Gnome_Tracker_Backend I think you missed : https://wiki.samba.org/index.php/Spotlight_with_Gnome_Tracker_Backend#Create_a_user_under_which_Tracker_will_run Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Perttu Aaltonen via samba > Verzonden: vrijdag 2 oktober 2020 15:24 > Aan: samba at lists.samba.org > Onderwerp: [Samba] Spotlight configuration trouble > > I?m trying to setup Spotlight with Tracker (2.3 from Ubuntu > repo) backend in Ubuntu 20.04 and Samba 4.12.7. I?ve followed > the wiki closely but every time I try to search I get this in > the logs: > > [2020/10/02 10:43:42.078242, 0] > ../../source3/rpc_server/mdssvc/mdssvc_tracker.c:403(mds_track > er_search_start) > mds_tracker_search_start: no connection to Tracker > [2020/10/02 10:43:42.079897, 0] > ../../source3/rpc_server/mdssvc/mdssvc.c:935(slrpc_open_query) > slrpc_open_query: backend search_start failed > > And also sometimes this: > > (process:80045): Tracker-WARNING **: 10:43:42.086: Falling > back to bus backend, the direct backend failed to initialize: > Could not find database file:'/root/.cache/tracker/meta.db?. > > I?ve tried running tracker services with systemd and also > directly under the mdssvc user but smbd isn?t able to connect > to Tracker. I must have a configuration error somewhere or > the problem is with either Tracker or Samba. > > I also tried with Debian 10, Samba 4.11.13 and Tracker 2.1 > and I get this when opening the share: > > [2020/10/02 16:15:27.269248, 1] > ../../source3/rpc_server/mdssvc/mdssvc.c:739(tracker_con_cb) > Could not connect to Tracker: Failed to load SPARQL > backend: Cannot autolaunch D-Bus without X11 $DISPLAY > > So this points more to a DBus problem. I even tried to run > Tracker under the root account but no change. The last time I > tried Tracker backend was about two years ago and I got it > working then, not sure what?s the problem this time. > > Any pointers? > Thanks. > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >
Hi Louis, I used your excellent packages but also tried building from source. I?m trying to get Tracker working. Elasticsearch was simpler to get going but it doesn?t really suite the use case due to limitations in fscrawler. I actually created the mdssvc user but also tried directly under root once the dedicated user didn?t work. The problem might be somewhere in D-Bus configuration but I haven?t been able to find it yet. Cheers> On 2 Oct 2020, at 16.39, L.P.H. van Belle via samba <samba at lists.samba.org> wrote: > > Hai, > > Selfcompiles samba? > And which one did you use? > https://wiki.samba.org/index.php/Spotlight_with_Elasticsearch_Backend <https://wiki.samba.org/index.php/Spotlight_with_Elasticsearch_Backend> > Or > https://wiki.samba.org/index.php/Spotlight_with_Gnome_Tracker_Backend <https://wiki.samba.org/index.php/Spotlight_with_Gnome_Tracker_Backend> > > I think you missed : > https://wiki.samba.org/index.php/Spotlight_with_Gnome_Tracker_Backend#Create_a_user_under_which_Tracker_will_run <https://wiki.samba.org/index.php/Spotlight_with_Gnome_Tracker_Backend#Create_a_user_under_which_Tracker_will_run> > > Greetz, > > Louis
How could I investigate this further? If I monitor session and system dbus activity with dbus-monitor I can see activity if I do ?tracker search pdf? as the mdssvc user, but nothing if I search through Samba. I only get those two errors below. So seems like Samba dbus connection isn?t working. I?ve followed the wiki very closely so to me it looks like it?s missing a step or the latest versions have some issue. I tried raising the logging level, but it doesn?t really show anything more specific. Thanks> On 2 Oct 2020, at 16.24, Perttu Aaltonen via samba <samba at lists.samba.org> wrote: > > I?m trying to setup Spotlight with Tracker (2.3 from Ubuntu repo) backend in Ubuntu 20.04 and Samba 4.12.7. I?ve followed the wiki closely but every time I try to search I get this in the logs: > > [2020/10/02 10:43:42.078242, 0] ../../source3/rpc_server/mdssvc/mdssvc_tracker.c:403(mds_tracker_search_start) > mds_tracker_search_start: no connection to Tracker > [2020/10/02 10:43:42.079897, 0] ../../source3/rpc_server/mdssvc/mdssvc.c:935(slrpc_open_query) > slrpc_open_query: backend search_start failed > > And also sometimes this: > > (process:80045): Tracker-WARNING **: 10:43:42.086: Falling back to bus backend, the direct backend failed to initialize: Could not find database file:'/root/.cache/tracker/meta.db?. > > I?ve tried running tracker services with systemd and also directly under the mdssvc user but smbd isn?t able to connect to Tracker. I must have a configuration error somewhere or the problem is with either Tracker or Samba. > > I also tried with Debian 10, Samba 4.11.13 and Tracker 2.1 and I get this when opening the share: > > [2020/10/02 16:15:27.269248, 1] ../../source3/rpc_server/mdssvc/mdssvc.c:739(tracker_con_cb) > Could not connect to Tracker: Failed to load SPARQL backend: Cannot autolaunch D-Bus without X11 $DISPLAY > > So this points more to a DBus problem. I even tried to run Tracker under the root account but no change. The last time I tried Tracker backend was about two years ago and I got it working then, not sure what?s the problem this time. > > Any pointers? > Thanks. > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
Hi Ralph, any pointers how to debug this? Regards, Perttu> On 4 Nov 2020, at 15.56, Perttu Aaltonen <perttu.aaltonen at mac.com> wrote: > > How could I investigate this further? If I monitor session and system dbus activity with dbus-monitor I can see activity if I do ?tracker search pdf? as the mdssvc user, but nothing if I search through Samba. I only get those two errors below. So seems like Samba dbus connection isn?t working. I?ve followed the wiki very closely so to me it looks like it?s missing a step or the latest versions have some issue. I tried raising the logging level, but it doesn?t really show anything more specific. > > Thanks > > >> On 2 Oct 2020, at 16.24, Perttu Aaltonen via samba <samba at lists.samba.org> wrote: >> >> I?m trying to setup Spotlight with Tracker (2.3 from Ubuntu repo) backend in Ubuntu 20.04 and Samba 4.12.7. I?ve followed the wiki closely but every time I try to search I get this in the logs: >> >> [2020/10/02 10:43:42.078242, 0] ../../source3/rpc_server/mdssvc/mdssvc_tracker.c:403(mds_tracker_search_start) >> mds_tracker_search_start: no connection to Tracker >> [2020/10/02 10:43:42.079897, 0] ../../source3/rpc_server/mdssvc/mdssvc.c:935(slrpc_open_query) >> slrpc_open_query: backend search_start failed >> >> And also sometimes this: >> >> (process:80045): Tracker-WARNING **: 10:43:42.086: Falling back to bus backend, the direct backend failed to initialize: Could not find database file:'/root/.cache/tracker/meta.db?. >> >> I?ve tried running tracker services with systemd and also directly under the mdssvc user but smbd isn?t able to connect to Tracker. I must have a configuration error somewhere or the problem is with either Tracker or Samba. >> >> I also tried with Debian 10, Samba 4.11.13 and Tracker 2.1 and I get this when opening the share: >> >> [2020/10/02 16:15:27.269248, 1] ../../source3/rpc_server/mdssvc/mdssvc.c:739(tracker_con_cb) >> Could not connect to Tracker: Failed to load SPARQL backend: Cannot autolaunch D-Bus without X11 $DISPLAY >> >> So this points more to a DBus problem. I even tried to run Tracker under the root account but no change. The last time I tried Tracker backend was about two years ago and I got it working then, not sure what?s the problem this time. >> >> Any pointers? >> Thanks. >> >> >> -- >> To unsubscribe from this list go to the following URL and read the >> instructions: https://lists.samba.org/mailman/options/samba >