'failed to obtain WP configuration' Error

When I click the Wordpress ‘App’ in a site my Nexus dashboard, I get this error:

failed to obtain WP configuration for `/var/www/html’: runuser: user admin@[redacted].com does not exist

Here are some helpful considerations when filing a bug:

  • What version of apnscp are you running?
    revision: 1dccf0a9b052866b5cf09bb2ff5a715ce32f2db3
    timestamp: 1748375535
    ver_maj: 3
    ver_min: 2
    ver_patch: 47
    ver_pre: 2-g1dccf0a9b
    dirty: false
    debug: false

  • Which version of RHEL or CentOS are you using?
    AlmaLinux release 8.10 (Cerulean Leopard)

  • Can you reproduce this bug reliably? Provide steps. If not, provide steps to the best of your recollection.
    Yes, across many sites. Login to site, click the app, Error. Nothing on the App page loads correctly.

What’s listed in /etc/pam.d/runuser for the server root?

[root@cpanel ~]# cat /etc/pam.d/runuser
#%PAM-1.0
auth sufficient pam_rootok.so
session required pam_apnscpvwh.so canonical jail
session optional pam_keyinit.so revoke
session required pam_limits.so
session required pam_unix.so
session optional pam_cgroup.so
[root@cpanel ~]#

That looks fine. Run upcp again for an updated migration that applies changes to /etc/nsswitch.conf.

[root@cpanel ~]# upcp
Compiled services and packages files removed!
Nothing to migrate.
Nothing to migrate.

And cpcmd misc:cp-version is still reporting 1dccf0?

What does this report:

cd /usr/local/apnscp
git describe
git branch

FWIW -
[root@cpanel ~]# cpcmd scope:get cp.update-policy
edge-major
[root@cpanel ~]#

[root@cpanel ~]# upcp
Compiled services and packages files removed!
Nothing to migrate.
Nothing to migrate.
[root@cpanel ~]# cpcmd scope:get cp.update-policy
edge-major
[root@cpanel ~]# cpcmd misc:cp-version
revision: 1dccf0a9b052866b5cf09bb2ff5a715ce32f2db3
timestamp: 1748375535
ver_maj: 3
ver_min: 2
ver_patch: 47
ver_pre: 2-g1dccf0a9b
dirty: false
debug: false

[root@cpanel ~]# cd /usr/local/apnscp
[root@cpanel apnscp]# git describe
v3.2.47-2-g1dccf0a9b
[root@cpanel apnscp]# git branch

  • master
    [root@cpanel apnscp]#

That’s the issue. upcp should put you on at least 7f83b579, which runs upcp -sb system/nss to update nsswitch.conf.

Provide or PM me the results of:

/bin/bash -x /usr/local/apnscp/build/upcp.sh

Last 20 50 or so lines.

From the logfile:

test -f /usr/local/apnscp/storage/.edge.lock
++ cat /usr/local/apnscp/storage/.edge.lock
met_version 17d0d8708
local WHENCE=17d0d8708

.edge.lock should contain the last known tag, not a commit.

rm -f /usr/local/apnscp/storage/.edge.lock
upcp

Good to go now? If so, how old is this install? .edge.lock should always contain full versions (e.g. v3.2.47). That contains a commit, so the update check sits in purgatory until it can be coerced along…

Its “working” now… doing some migrations.

Install is maybe about 6-8 months old. I haven’t messed with it much at all but this just stopped working in the last couple of days.

How old is my version?

PLAY RECAP *********************************************************************
localhost : ok=92 changed=3 unreachable=0 failed=0 skipped=31 rescued=0 ignored=0

Migrated: 2025_05_28_205237_nss-pam-update
[root@cpanel ~]# upcp
Compiled services and packages files removed!
Nothing to migrate.
Nothing to migrate.
[root@cpanel ~]#

Logged out of the cpanel and back in and same error:

image

Is this happening for all users? What does getent passwd myadmin@DOMAIN report? Does this problem exist for other accounts or just this?

For that domain, what’s the result of:

ls -la /lib64/security/pam_apnscpvwh.so /home/virtual/DOMAIN/lib64/security/pam_apnscpvwh.so

All users, all sites with WordPress (thats all I have)

no response to that command (with the proper domain), and the same with other users in other sites.

[root@cpanel ~]# ls -la /lib64/security/pam_apnscpvwh.so /home/virtual/DOMAIN/lib64/security/pam_apnscpvwh.so
-rwxr-xr-x 2 root root 18232 May 24 22:48 /home/virtual/DOMAIN/lib64/security/pam_apnscpvwh.so
-rwxr-xr-x 2 root root 18232 May 24 22:48 /lib64/security/pam_apnscpvwh.so

apnscpvwh wasn’t added back to /etc/nsswitch.conf.

This will fix it for you.

Worked. TY! Did I do something wrong?