Solved security/sssd: fails to Register (13.1-RELEASE)

Hi all

The security/sssd fails at package registration.

This issue happened after upgrade FreeBSD from 13 to 13.1.

Please help how to fix this. Indeed, very urgent. No one can login now.

Many thanks in advance.

Details are below.

Best regards
Sagara

Code:
# uname -a
FreeBSD pcsg3 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC amd64
Code:
cd /usr/ports/security/sssd
make install clean

====> Compressing man pages (compress-man)
===> Staging rc.d startup script(s)
===>  Installing for sssd-1.16.5_6
===>  Checking if sssd is already installed
===>   Registering installation for sssd-1.16.5_6
pkg-static: pkg_checksum_hash_sha256_file(read failed): Is a directory
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/security/sssd
*** Error code 1

Shows pkg-plist issues too:
Code:
make stage check-plist
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: %%PYTHON_SITELIBDIR%%/SSSDConfig-1.16.5-py%%PYTHON_VER%%.egg-info
===> Error: Plist issues found.
*** Error code 1

Stop.
make: stopped in /usr/ports/security/sssd

The Missing directory is available:
Code:
ls -l work-default/stage/usr/local/lib/python3.9/site-packages/SSSDConfig-1.16.5-py3.9.egg-info/

I'm using python3.9:
Code:
# portmaster -l | grep python
===>>> python39-3.9.13
 
Thank you SirDice for the prompt reply.

I thought that too, since no info, I thought sssd not available:
Code:
# pkg info sssd
pkg: No package(s) matching sssd
But pkg install sssd shows serious downgrades!
Code:
Installed packages to be REMOVED:
    ceph14: 14.2.22_5
    py39-...
    ruby: 3.0.4_2,1
    ruby30-gems: 3.3.17
    rubygem-asciidoctor: 2.0.17

New packages to be INSTALLED:
    python38: 3.8.13
    sssd: 1.16.5_5

Installed packages to be DOWNGRADED:
    libffi: 3.4.2 -> 3.3_1
    python39: 3.9.13 -> 3.9.12
I prefer to give it try to fix the issue facing sssd. Downgrading is scary!

Do you any idea what's the issue?

Can I edit Makefile or pkg-plist?

Regards
Sagara
 
I thought that too, since no info, I thought sssd not available:
# pkg info sssd
pkg: No package(s) matching sssd
Yes, you uninstalled it. pkg-info(8) shows information about your installed packages.

But pkg install sssd shows serious downgrades!
The default Python version is 3.9 on the latest and the quarterly package repository. So I'm not sure what's going on here. What does pkg -vv show?
 
This server was upgraded yesterday from FreeBSD 13 to 13.1 and rebuild all ports using "portmaster -afd".
Code:
# pkg -vv
Version                 : 1.18.3
PKG_DBDIR = "/var/db/pkg";
PKG_CACHEDIR = "/var/cache/pkg";
PORTSDIR = "/usr/ports";
INDEXDIR = "";
INDEXFILE = "INDEX-13";
HANDLE_RC_SCRIPTS = false;
DEFAULT_ALWAYS_YES = false;
ASSUME_ALWAYS_YES = false;
REPOS_DIR [
    "/etc/pkg/",
    "/usr/local/etc/pkg/repos/",
]
PLIST_KEYWORDS_DIR = "";
SYSLOG = true;
ABI = "FreeBSD:13:amd64";
ALTABI = "freebsd:13:x86:64";
DEVELOPER_MODE = false;
VULNXML_SITE = "[URL]http://vuxml.freebsd.org/freebsd/vuln.xml.xz[/URL]";
FETCH_RETRY = 3;
PKG_PLUGINS_DIR = "/usr/local/lib/pkg/";
PKG_ENABLE_PLUGINS = true;
PLUGINS [
]
DEBUG_SCRIPTS = false;
PLUGINS_CONF_DIR = "/usr/local/etc/pkg/";
PERMISSIVE = false;
REPO_AUTOUPDATE = true;
NAMESERVER = "";
HTTP_USER_AGENT = "pkg/1.18.3";
EVENT_PIPE = "";
FETCH_TIMEOUT = 30;
UNSET_TIMESTAMP = false;
SSH_RESTRICT_DIR = "";
PKG_ENV {
}
PKG_SSH_ARGS = "";
DEBUG_LEVEL = 0;
ALIAS {
    all-depends = "query %dn-%dv";
    annotations = "info -A";
    build-depends = "info -qd";
    cinfo = "info -Cx";
    comment = "query -i \"%c\"";
    csearch = "search -Cx";
    desc = "query -i \"%e\"";
    download = "fetch";
    iinfo = "info -ix";
    isearch = "search -ix";
    prime-list = "query -e '%a = 0' '%n'";
    prime-origins = "query -e '%a = 0' '%o'";
    leaf = "query -e '%#r == 0' '%n-%v'";
    list = "info -ql";
    noauto = "query -e '%a == 0' '%n-%v'";
    options = "query -i \"%n - %Ok: %Ov\"";
    origin = "info -qo";
    orphans = "version -vRl?";
    provided-depends = "info -qb";
    rall-depends = "rquery %dn-%dv";
    raw = "info -R";
    rcomment = "rquery -i \"%c\"";
    rdesc = "rquery -i \"%e\"";
    required-depends = "info -qr";
    roptions = "rquery -i \"%n - %Ok: %Ov\"";
    shared-depends = "info -qB";
    show = "info -f -k";
    size = "info -sq";
    unmaintained = "query -e '%m = \"[email]ports@FreeBSD.org[/email]\"' '%o (%w)'";
    runmaintained = "rquery -e '%m = \"[email]ports@FreeBSD.org[/email]\"' '%o (%w)'";
}
CUDF_SOLVER = "";
SAT_SOLVER = "";
RUN_SCRIPTS = true;
CASE_SENSITIVE_MATCH = false;
LOCK_WAIT = 1;
LOCK_RETRIES = 5;
SQLITE_PROFILE = false;
WORKERS_COUNT = 0;
READ_LOCK = false;
IP_VERSION = 0;
AUTOMERGE = true;
VERSION_SOURCE = "";
CONSERVATIVE_UPGRADE = true;
PKG_CREATE_VERBOSE = false;
AUTOCLEAN = false;
DOT_FILE = "";
REPOSITORIES {
}
VALID_URL_SCHEME [
    "pkg+http",
    "pkg+https",
    "https",
    "http",
    "file",
    "ssh",
    "tcp",
]
ALLOW_BASE_SHLIBS = false;
WARN_SIZE_LIMIT = 1048576;
METALOG = "";
OSVERSION = 1301000;
IGNORE_OSVERSION = false;
BACKUP_LIBRARIES = false;
BACKUP_LIBRARY_PATH = "/usr/local/lib/compat/pkg";
PKG_TRIGGERS_DIR = "/usr/local/share/pkg/triggers";
PKG_TRIGGERS_ENABLE = true;
AUDIT_IGNORE_GLOB [
]
AUDIT_IGNORE_REGEX [
    "NULL",
]
COMPRESSION_LEVEL = -1;
ARCHIVE_SYMLINK = false;
REPO_ACCEPT_LEGACY_PKG = false;
FILES_IGNORE_GLOB [
    "NULL",
]
FILES_IGNORE_REGEX [
    "NULL",
]


Repositories:
  FreeBSD: { 
    url             : "pkg+[URL]http://pkg.FreeBSD.org/FreeBSD:13:amd64/quarterly[/URL]",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
 
Can you do pkg update -f, then try pkg install sssd again.

If I try to install the package on a test machine it does not want to install Python 3.8:
Code:
root@fbsd-test:~ # pkg install sssd
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 32 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        c-ares: 1.18.1 [FreeBSD]
        cmocka: 1.1.5 [FreeBSD]
        cyrus-sasl: 2.1.28 [FreeBSD]
        dbus: 1.14.0,1 [FreeBSD]
        ding-libs: 0.6.1 [FreeBSD]
        krb5: 1.20 [FreeBSD]
        ldb21: 2.1.5_1 [FreeBSD]
        libICE: 1.0.10,1 [FreeBSD]
        libSM: 1.2.3,1 [FreeBSD]
        libX11: 1.7.2,1 [FreeBSD]
        libXau: 1.0.9 [FreeBSD]
        libXdmcp: 1.1.3 [FreeBSD]
        libedit: 3.1.20210910,1 [FreeBSD]
        libffi: 3.4.2 [FreeBSD]
        libinotify: 20211018 [FreeBSD]
        libpthread-stubs: 0.4 [FreeBSD]
        libxcb: 1.15 [FreeBSD]
        lmdb: 0.9.29_1,1 [FreeBSD]
        mpdecimal: 2.5.1 [FreeBSD]
        nspr: 4.34 [FreeBSD]
        nss: 3.80 [FreeBSD]
        openldap24-client: 2.4.59_4 [FreeBSD]
        pcre: 8.45_1 [FreeBSD]
        popt: 1.18_1 [FreeBSD]
        python39: 3.9.13 [FreeBSD]
        readline: 8.1.2 [FreeBSD]
        sqlite3: 3.38.5,1 [FreeBSD]
        sssd: 1.16.5_6 [FreeBSD]
        talloc: 2.3.1 [FreeBSD]
        tdb: 1.4.3,1 [FreeBSD]
        tevent: 0.10.2_1 [FreeBSD]
        xorgproto: 2022.1 [FreeBSD]

Number of packages to be installed: 32

The process will require 187 MiB more space.
11 MiB to be downloaded.

Proceed with this action? [y/N]:

Oh, wait. Mine is set to latest. If I use quarterly is does revert to Python 3.8. That's odd.

Anyway, as you've been installing from ports, it's best to switch to the latest package repository anyway.

So, create a /usr/local/etc/pkg/repos/FreeBSD.conf:
Code:
FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest"
}

Then pkg install sssd should include Python 3.9 instead of 3.8.
 
If I use quarterly is does revert to Python 3.8. That's odd.
To answer this, the default has been changed in Q3 which I checked. But Q3 has just been branched off (4 days ago) and is building as we speak. It just hasn't landed yet in the actual repository, that repository still has Q2 (with Python set to 3.8).
 
Yep, it worked. The "id sagara" works now :)
Code:
pkg install sssd
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    sssd: 1.16.5_6

Number of packages to be installed: 1

The process will require 6 MiB more space.
2 MiB to be downloaded.

Proceed with this action? [y/N]:
Thank you very much SirDice.

Best regards
Sagara
 
You may want to consider using packages for everything else too, if you don't change any options or set any different defaults there's really no need to build from ports. It will make updating/upgrading a lot easier and quicker ( pkg upgrade).
 
Back
Top