Synaptic rebuilds search index very often and inefficient

Bug #1685376 reported by Norbert on 2017-04-21
132
This bug affects 28 people
Affects Status Importance Assigned to Milestone
apt-xapian-index (Ubuntu)
Undecided
Unassigned
synaptic (Ubuntu)
Undecided
Unassigned

Bug Description

Steps to reproduce:
1. Launch Synaptic.
2. Click Reload.
3. Close Synaptic.
4. After some time open Synaptic again (without 'apt-get update', 'aptitude update').
5. Get 'Rebuilding search index' message with background process /usr/sbin/update-apt-xapian-index and high CPU load and high temperature as the result.

Expected results:
Synaptic runs update-apt-xapian-index only when it's really needed.

Actual results:
Synaptic rebuilds search index very often and inefficient.

Note:
see https://ubuntuforums.org/showthread.php?t=2277471 as proof-link.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: synaptic 0.83
ProcVersionSignature: Ubuntu 4.4.0-72.93-generic 4.4.49
Uname: Linux 4.4.0-72-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
CurrentDesktop: Unity
Date: Sat Apr 22 00:48:46 2017
InstallationDate: Installed on 2014-02-07 (1169 days ago)
InstallationMedia: Ubuntu 12.04.4 LTS "Precise Pangolin" - Release amd64 (20140204)
SourcePackage: synaptic
UpgradeStatus: Upgraded to xenial on 2017-04-15 (5 days ago)

Norbert (nrbrtx) wrote :
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in synaptic (Ubuntu):
status: New → Confirmed
dino99 (9d9) on 2017-04-22
tags: added: zesty
Norbert (nrbrtx) wrote :

I suspect that "apt-daily-upgrade.service" and "apt-daily.service" (both call /usr/lib/apt/apt.systemd.daily) cause Synaptic to rebuild apt-xapian-index. I disabled them with
sudo systemctl disable apt-daily.timer
sudo systemctl disable apt-daily-upgrade.timer

I'm not on production server, so I think I can do so. Do not repeat this if unsure.

Norbert (nrbrtx) wrote :

I'm using SSD. May my mount options cause problems?
I have "errors=remount-ro,discard,noatime,nodiratime" for rootfs("/").

Norbert (nrbrtx) wrote :

May bug 1612948 be related to this issue?

Khurshid Alam (khurshid-alam) wrote :

I don't think stopping systemd timers helped at all. But did installing python2 version from debian strech help?

Norbert (nrbrtx) wrote :

What is interesting - during reinstallation of apt-xapian-index 0.47 from xenial here is interesting message:
"The index /var/lib/apt-xapian-index/index is not CJK-compatible, rebuilding it"

I installed version 0.49 from Debian Stretch. It does not report any specific messages:
$ sudo dpkg -i apt-xapian-index_0.49_all.deb
Selecting previously unselected package apt-xapian-index.
(Reading database ... 662973 files and directories currently installed.)
Preparing to unpack apt-xapian-index_0.49_all.deb ...
Unpacking apt-xapian-index (0.49) ...
Setting up apt-xapian-index (0.49) ...
apt-xapian-index: Building new index in background... # <- it is expected
Processing triggers for man-db (2.7.5-1) ...

I'll test it and report back. I installed `muon` for comparison with Synaptic.

Doug McMahon (mc3man) wrote :

apt-xapian-index isn't default installed anymore, why do you have it?

Norbert (nrbrtx) wrote :

Ubuntu 17.10 is affected too. Synaptic rebuilds its index very often.

tags: added: artful
dino99 (9d9) wrote :

@mc3man

apt-xapian-index is required to get the "Quick Filter" working, which is a great feature.

Well the quick search never worked great, xapian was dropped from Ubuntu
image some time back & synaptic itself is currently ill maintained. So
likely nothing will happen to change this.

On Sep 29, 2017 10:11 AM, "dino99" <email address hidden> wrote:

> @mc3man
>
> apt-xapian-index is required to get the "Quick Filter" working, which is
> a great feature.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1685376
>
> Title:
> Synaptic rebuilds search index very often and inefficient
>
> Status in synaptic package in Ubuntu:
> Confirmed
>
> Bug description:
> Steps to reproduce:
> 1. Launch Synaptic.
> 2. Click Reload.
> 3. Close Synaptic.
> 4. After some time open Synaptic again (without 'apt-get update',
> 'aptitude update').
> 5. Get 'Rebuilding search index' message with background process
> /usr/sbin/update-apt-xapian-index and high CPU load and high temperature
> as the result.
>
> Expected results:
> Synaptic runs update-apt-xapian-index only when it's really needed.
>
> Actual results:
> Synaptic rebuilds search index very often and inefficient.
>
> Note:
> see https://ubuntuforums.org/showthread.php?t=2277471 as proof-link.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 16.04
> Package: synaptic 0.83
> ProcVersionSignature: Ubuntu 4.4.0-72.93-generic 4.4.49
> Uname: Linux 4.4.0-72-generic x86_64
> ApportVersion: 2.20.1-0ubuntu2.5
> Architecture: amd64
> CurrentDesktop: Unity
> Date: Sat Apr 22 00:48:46 2017
> InstallationDate: Installed on 2014-02-07 (1169 days ago)
> InstallationMedia: Ubuntu 12.04.4 LTS "Precise Pangolin" - Release amd64
> (20140204)
> SourcePackage: synaptic
> UpgradeStatus: Upgraded to xenial on 2017-04-15 (5 days ago)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/synaptic/+bug/
> 1685376/+subscriptions
>

Norbert (nrbrtx) wrote :

Bug exists in Ubuntu 17.10 final.

Norbert (nrbrtx) wrote :

Just made clean installation of 16.04 LTS. Bug exists.

dino99 (9d9) wrote :

Have the feeling that apt-xapian-index is the package to blame (instead of synaptic itself)

tags: added: bionic
dino99 (9d9) wrote :
tags: added: upgrade-software-version
Norbert (nrbrtx) wrote :

It seems that bug 1612948 about axi-cache is related to this bug report. Please take care to it.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apt-xapian-index (Ubuntu):
status: New → Confirmed
Bib (bybeu) wrote :

What a pity. apt-xapian-index worked perfectly well in Trusty. It brought a very fast/easy way to dig dependencies, locked packages.

And now in 16.04 and 17.10 it is slow.

dino99 (9d9) on 2018-02-19
tags: removed: zesty
Norbert (nrbrtx) wrote :

18.04 LTS with all updates, bug exists.

dino99 (9d9) wrote :

Got the indexing (xapi-cache) working better lp:#1760608

Karim Rekik (wkrekik) wrote :

There is an old work-around that still works (at least for me) : adding noautogroup after quiet splash in /etc/default/grub (GRUB_CMDLINE_LINUX_DEFAULT line).
Xubuntu 18.04 64 bits

no longer affects: muon (Ubuntu)
Norbert (nrbrtx) on 2019-02-17
tags: added: cosmic disco
removed: artful
tags: removed: upgrade-software-version
Norbert (nrbrtx) on 2019-04-21
tags: added: eoan
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers