aptmirror task failing with InconsistentMirrorError on akonadi-backend-mysql
On debusine.freexian.com, we are hitting this error. BTW the error could be made more useful by indicating the name and/or ID of the debian:suite collection involved, and/or the associated work request.
InconsistentMirrorError akonadi-backend-mysql_1.13.0-2+deb8u2_all mismatch. Conflicting Packages entries:
InconsistentMirrorError
akonadi-backend-mysql_1.13.0-2+deb8u2_all mismatch. Conflicting Packages entries:
Package: akonadi-backend-mysql
Source: akonadi
Version: 1.13.0-2+deb8u2
Installed-Size: 20
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Architecture: all
Replaces: akonadi-server (<< 1.3.60~)
Depends: libqt4-sql-mysql, mysql-server-core-5.5 | mysql-server-core
Recommends: akonadi-server
Breaks: akonadi-server (<< 1.3.60~)
Size: 12972
SHA256: 6abf8bd1faa0e6cc47e18e81fb39212e1122c5eaba81dc6fbb21a3f32f7c29b2
SHA1: e716207e20235b3b04336c0797a38ed837bdd392
MD5sum: de669e4cc5d4820761deb616d8a3da7d
Description: MySQL storage backend for Akonadi
Akonadi is an extensible cross-desktop Personal Information Management (PIM)
storage service. It provides a common framework for applications to store and
access mail, calendars, addressbooks, and other PIM data.
.
This package installs everything what's needed for Akonadi to work with MySQL
as underlying data storage engine. By default, a local MySQL server instance
will be started for each user. Alternatively, connection to an external MySQL
database is supported as well.
Homepage: http://pim.kde.org/akonadi
Tag: role::metapackage, suite::kde, works-with::pim
Section: misc
Priority: extra
Filename: pool/main/a/akonadi/akonadi-backend-mysql_1.13.0-2+deb8u2_all.deb
Package: akonadi-backend-mysql
Source: akonadi
Version: 1.13.0-2+deb8u2
Installed-Size: 20
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Architecture: all
Replaces: akonadi-server (<< 1.3.60~)
Depends: libqt4-sql-mysql, mysql-server-core-5.5 | mysql-server-core
Breaks: akonadi-server (<< 1.3.60~)
Size: 12972
SHA256: 6abf8bd1faa0e6cc47e18e81fb39212e1122c5eaba81dc6fbb21a3f32f7c29b2
SHA1: e716207e20235b3b04336c0797a38ed837bdd392
MD5sum: de669e4cc5d4820761deb616d8a3da7d
Description: MySQL storage backend for Akonadi
Akonadi is an extensible cross-desktop Personal Information Management (PIM)
storage service. It provides a common framework for applications to store and
access mail, calendars, addressbooks, and other PIM data.
.
This package installs everything what's needed for Akonadi to work with MySQL
as underlying data storage engine. By default, a local MySQL server instance
will be started for each user. Alternatively, connection to an external MySQL
database is supported as well.
Homepage: http://pim.kde.org/akonadi
Recommends: akonadi-server
Section: misc
Priority: extra
Filename: pool/main/a/akonadi/akonadi-backend-mysql_1.13.0-2+deb8u2_all.deb
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/debusine/tasks/_task.py", line 511, in
execute_logging_exceptions
return self.execute()
^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/debusine/server/tasks/base.py", line 76, in execute
return super().execute()
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/debusine/tasks/_task.py", line 524, in execute
result = self._execute()
^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/debusine/server/tasks/aptmirror.py", line 518, in
_execute
self.update_binaries(temp_path, self.plan_binaries(temp_path))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/debusine/server/tasks/aptmirror.py", line 397, in
plan_binaries
raise InconsistentMirrorError(
^
I made the diff between the two package entries and I got this:
$ diff -u /tmp/1 /tmp/2
--- /tmp/1 2025-05-15 11:07:00.191631393 +0200
+++ /tmp/2 2025-05-15 11:07:16.575616427 +0200
@@ -6,7 +6,6 @@
Architecture: all
Replaces: akonadi-server (<< 1.3.60~)
Depends: libqt4-sql-mysql, mysql-server-core-5.5 | mysql-server-core
-Recommends: akonadi-server
Breaks: akonadi-server (<< 1.3.60~)
Size: 12972
SHA256: 6abf8bd1faa0e6cc47e18e81fb39212e1122c5eaba81dc6fbb21a3f32f7c29b2
@@ -22,7 +21,7 @@
will be started for each user. Alternatively, connection to an external MySQL
database is supported as well.
Homepage: http://pim.kde.org/akonadi
-Tag: role::metapackage, suite::kde, works-with::pim
+Recommends: akonadi-server
Section: misc
Priority: extra
Filename: pool/main/a/akonadi/akonadi-backend-mysql_1.13.0-2+deb8u2_all.deb
@helmutg Do you have any idea why the package entry could have changed in what's exported by reprepro?
What's currently in jessie's Packages file is the version 1 with "Tag" before "Section" and "Recommends" after "Depends". However in jessie-lts's Packages file we have version 2 without "Tag" and with "Recommends" before "Section". Not sure where this difference comes from in the first place...
Did we change the aptmirror configuration from jessie-lts to jessie or the opposite recently?
Should the aptmirror task fail in that situation or replace the entry with new metadata?