Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cockpit plugin ooops (unexpected internal error) #4671

Closed
scylla999 opened this issue Mar 15, 2021 · 14 comments
Closed

Cockpit plugin ooops (unexpected internal error) #4671

scylla999 opened this issue Mar 15, 2021 · 14 comments
Labels
cockpit Cockpit UI Plugin
Milestone

Comments

@scylla999
Copy link

In the Cockpit 389-DS interface, I have a couple places that cause an 'unexpected internal error':

  • '389 Directory Server' -> 'Schema'
  • '389 Directory Server' -> 'Monitoring' -> 'Replication'

I have some imported schema files... Could that be the cause?

Here's what I have installed (Centos-Stream 8, kernel 4.18.0-277.el8.x86_64):

cockpit-389-ds-1.4.3.17-1.module_el8+10764+2b5f8656.noarch
389-ds-base-libs-1.4.3.17-1.module_el8+10764+2b5f8656.x86_64
389-ds-base-1.4.3.17-1.module_el8+10764+2b5f8656.x86_64
389-ds-base-legacy-tools-1.4.3.17-1.module_el8+10764+2b5f8656.x86_64

Thank You!

@scylla999 scylla999 added the needs triage The issue will be triaged during scrum label Mar 15, 2021
@mreynolds389
Copy link
Contributor

Thanks for reporting the issue. It's very possible it has been fixed in a newer version (as I can not reproduce this problem on the latest version). Could you please send us the console log of the error? Press F12 in the browser, and reproduce the crashes you are seeing - it should have logged an error or two related to this. This will help us confirm if it's already been fixed.

I'm not sure what the latest available version on CentOS is, but we might need to get some new builds fired off.

@scylla999
Copy link
Author

scylla999 commented Mar 15, 2021

Here's the console log for when I click on 'Schema':

CMD: loadSyntaxes: Get syntaxes for attributetypes ==> dsconf -j ldapi://%2fvar%2frun%2fslapd-ldap2.socket schema attributetypes get_syntaxes index.js:82:198095
CMD: loadSchemaData: Get schema objects in one batch ==> dsconf -j ldapi://%2fvar%2frun%2fslapd-ldap2.socket schema list index.js:82:198095
TypeError: n.x_origin[0] is undefined
https://�:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:82
default https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:10
default https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:10
value https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:23
value https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:23
Fi https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
ji https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
gs https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
cl https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
sl https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Zs https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Kr https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
unstable_runWithPriority https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:47
Vr https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Kr https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Wr https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Js https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
enqueueSetState https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
setState https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:31
value https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:82
value https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:82
N https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/base1/cockpit.js:1
N https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/base1/cockpit.js:1
A https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/base1/cockpit.js:1
index.js:39:82385
es https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
callback https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
po https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
os https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
fl https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
unstable_runWithPriority https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:47
Vr https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
pl https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Zs https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Kr https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
unstable_runWithPriority https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:47
Vr https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Kr https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Wr https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Js https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
enqueueSetState https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
setState https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:31
value https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:82
value https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:82
N https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/base1/cockpit.js:1
N https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/base1/cockpit.js:1
A https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/base1/cockpit.js:1
Uncaught TypeError: n.x_origin[0] is undefined
https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:82
default https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:10
default https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:10
value https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:23
value https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:23
Fi https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
ji https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
gs https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
cl https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
sl https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Zs https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Kr https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
unstable_runWithPriority https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:47
Vr https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Kr https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Wr https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Js https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
enqueueSetState https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
setState https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:31
value https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:82
value https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:82
N https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/base1/cockpit.js:1
N https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/base1/cockpit.js:1
A https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/base1/cockpit.js:1
index.js:82:1118285

And here's the console when I go into Monitoring->Replication:

CMD: loadMonitorReplication: Load replication agmts ==> dsconf -j ldapi://%2fvar%2frun%2fslapd-ldap2.socket replication status --suffix=dc=info,dc=polymtl,dc=ca index.js:82:198095
{
"desc": "expected string or bytes-like object"
}
cockpit.js:1:9088
TypeError: i is undefined
value https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:82
Fi https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
ji https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
gs https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
cl https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
sl https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Zs https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Kr https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
unstable_runWithPriority https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:47
Vr https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Kr https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Wr https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Js https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
enqueueSetState https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
setState https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:31
value https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:82
N https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/base1/cockpit.js:1
N https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/base1/cockpit.js:1
A https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/base1/cockpit.js:1
index.js:39:82385
Uncaught TypeError: i is undefined
value https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:82
Fi https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
ji https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
gs https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
cl https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
sl https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Zs https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Kr https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
unstable_runWithPriority https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:47
Vr https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Kr https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Wr https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
Js https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
enqueueSetState https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:39
setState https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:31
value https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/389-console/index.js:82
N https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/base1/cockpit.js:1
N https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/base1/cockpit.js:1
A https://foobar.org:9090/cockpit/$4ad36e857a11e8321ee1932e5dd305fd4be62b20da3c84a86d4b75dbc5fc481e/base1/cockpit.js:1
index.js:82:1076603

Thanks!

@mreynolds389
Copy link
Contributor

Well the schema issue I just recently fixed. The replication one is a bit different, but it still looks familiar.

Can you run:

dsconf -v -j ldapi://%2fvar%2frun%2fslapd-ldap2.socket replication status --suffix=dc=info,dc=polymtl,dc=ca

And provide the python exception stack?

Thanks!

@scylla999
Copy link
Author

DEBUG: The 389 Directory Server Configuration Tool
DEBUG: Inspired by works of: ITS, The University of Adelaide
DEBUG: dsrc path: /root/.dsrc
DEBUG: dsrc container path: /data/config/container.inf
DEBUG: dsrc instances: []
DEBUG: dsrc no such section: slapd-ldapi://%2fvar%2frun%2fslapd-ldap2.socket
DEBUG: Called with: Namespace(basedn=None, bind_dn=None, bind_passwd=None, binddn=None, bindpw=None, func=<function get_repl_status at 0x7f9ef335b488>, instance='ldapi://%2fvar%2frun%2fslapd-ldap2.socket', json=True, prompt=False, pwdfile=None, starttls=False, suffix='dc=info,dc=polymtl,dc=ca', verbose=True)
DEBUG: Instance details: {'uri': 'ldapi://%2fvar%2frun%2fslapd-ldap2.socket', 'basedn': None, 'binddn': None, 'bindpw': None, 'saslmech': None, 'tls_cacertdir': None, 'tls_cert': None, 'tls_key': None, 'tls_reqcert': None, 'starttls': False, 'prompt': False, 'pwdfile': None, 'args': {'ldapurl': 'ldapi://%2fvar%2frun%2fslapd-ldap2.socket', 'root-dn': None, 'ldapi_enabled': 'on', 'ldapi_socket': '2fvar%2frun%2fslapd-ldap2.socket', 'ldapi_autobind': 'on'}}
DEBUG: SER_SERVERID_PROP not provided, assuming non-local instance
DEBUG: Allocate <class 'lib389.DirSrv'> with ldapi://%2fvar%2frun%2fslapd-ldap2.socket
DEBUG: Allocate <class 'lib389.DirSrv'> with 2fvar%2frun%2fslapd-ldap2.socket
DEBUG: Allocate <class 'lib389.DirSrv'> with foobar.org:389
DEBUG: Allocate <class 'lib389.DirSrv'> with foobar.org:389
DEBUG: SER_SERVERID_PROP not provided, assuming non-local instance
DEBUG: Allocate <class 'lib389.DirSrv'> with ldapi://%2fvar%2frun%2fslapd-ldap2.socket
DEBUG: Allocate <class 'lib389.DirSrv'> with 2fvar%2frun%2fslapd-ldap2.socket
DEBUG: Allocate <class 'lib389.DirSrv'> with foobar.org:389
DEBUG: Allocate <class 'lib389.DirSrv'> with foobar.org:389
DEBUG: open(): Connecting to uri ldapi://%2fvar%2frun%2fslapd-ldap2.socket
DEBUG: Using dirsrv ca certificate /etc/dirsrv/slapd-{instance_name}
DEBUG: Using external ca certificate /etc/dirsrv/slapd-{instance_name}
DEBUG: Using external ca certificate /etc/dirsrv/slapd-{instance_name}
DEBUG: Using /etc/openldap/ldap.conf certificate policy
DEBUG: ldap.OPT_X_TLS_REQUIRE_CERT = 2
DEBUG: open(): Using root autobind ...
DEBUG: open(): bound as None
DEBUG: Retrieving entry with [('',)]
DEBUG: Retrieved entry [dn:
vendorVersion: 389-Directory/1.4.3.17 B2020.336.0933

]
DEBUG: _gen_selector filter = (&(&(objectclass=nsds5Replica))(|(nsDS5ReplicaRoot=dc=info,dc=polymtl,dc=ca)))
DEBUG: cn=replica,cn=dc\3Dinfo\2Cdc\3Dpolymtl\2Cdc\3Dca,cn=mapping tree,cn=config getVal('nsDS5ReplicaRoot')
DEBUG: list filter = (&(objectclass=nsds5replicationagreement))
DEBUG: cn=ldap1,cn=replica,cn=dc\3Dinfo\2Cdc\3Dpolymtl\2Cdc\3Dca,cn=mapping tree,cn=config get_all_attrs
DEBUG: cn=ldap1,cn=replica,cn=dc\3Dinfo\2Cdc\3Dpolymtl\2Cdc\3Dca,cn=mapping tree,cn=config getVal('nsDS5ReplicaRoot')
DEBUG: cn=ldap1,cn=replica,cn=dc\3Dinfo\2Cdc\3Dpolymtl\2Cdc\3Dca,cn=mapping tree,cn=config getVal('cn')
DEBUG: _gen_selector filter = (&(&(objectclass=nsds5Replica))(|(nsDS5ReplicaRoot=dc=info,dc=polymtl,dc=ca)))
DEBUG: cn=replica,cn=dc\3Dinfo\2Cdc\3Dpolymtl\2Cdc\3Dca,cn=mapping tree,cn=config getVal('nsDS5ReplicaRoot')
DEBUG: get_agmt_maxcsn - Failed to get agmt maxcsn from RUV
DEBUG: cn=ldap1,cn=replica,cn=dc\3Dinfo\2Cdc\3Dpolymtl\2Cdc\3Dca,cn=mapping tree,cn=config getVal('nsds5replicaLastUpdateStatusJSON')
DEBUG: cn=ldap1,cn=replica,cn=dc\3Dinfo\2Cdc\3Dpolymtl\2Cdc\3Dca,cn=mapping tree,cn=config getVal('nsds5replicaUpdateInProgress')
DEBUG: cn=ldap1,cn=replica,cn=dc\3Dinfo\2Cdc\3Dpolymtl\2Cdc\3Dca,cn=mapping tree,cn=config getVal('nsDS5ReplicaRoot')
DEBUG: cn=ldap1,cn=replica,cn=dc\3Dinfo\2Cdc\3Dpolymtl\2Cdc\3Dca,cn=mapping tree,cn=config getVal('cn')
DEBUG: _gen_selector filter = (&(&(objectclass=nsds5Replica))(|(nsDS5ReplicaRoot=dc=info,dc=polymtl,dc=ca)))
DEBUG: cn=replica,cn=dc\3Dinfo\2Cdc\3Dpolymtl\2Cdc\3Dca,cn=mapping tree,cn=config getVal('nsDS5ReplicaRoot')
DEBUG: get_agmt_maxcsn - Failed to get agmt maxcsn from RUV
DEBUG: cn=ldap1,cn=replica,cn=dc\3Dinfo\2Cdc\3Dpolymtl\2Cdc\3Dca,cn=mapping tree,cn=config getVal('nsDS5ReplicaHost')
DEBUG: cn=ldap1,cn=replica,cn=dc\3Dinfo\2Cdc\3Dpolymtl\2Cdc\3Dca,cn=mapping tree,cn=config getVal('nsDS5ReplicaPort')
DEBUG: cn=ldap1,cn=replica,cn=dc\3Dinfo\2Cdc\3Dpolymtl\2Cdc\3Dca,cn=mapping tree,cn=config getVal('nsDS5ReplicaRoot')
DEBUG: cn=ldap1,cn=replica,cn=dc\3Dinfo\2Cdc\3Dpolymtl\2Cdc\3Dca,cn=mapping tree,cn=config getVal('nsds5replicatransportinfo')
DEBUG: _gen_selector filter = (&(&(objectclass=nsds5Replica))(|(nsDS5ReplicaRoot=dc=info,dc=polymtl,dc=ca)))
DEBUG: cn=replica,cn=dc\3Dinfo\2Cdc\3Dpolymtl\2Cdc\3Dca,cn=mapping tree,cn=config getVal('nsDS5ReplicaRoot')
DEBUG: cn=replica,cn=dc\3Dinfo\2Cdc\3Dpolymtl\2Cdc\3Dca,cn=mapping tree,cn=config getVal('nsDS5ReplicaId')
DEBUG: Allocate <class 'lib389.DirSrv'> with None
DEBUG: Allocate <class 'lib389.DirSrv'> with otherfoobar.ca:389
DEBUG: Allocate <class 'lib389.DirSrv'> with otherfoobar.ca:389
DEBUG: open(): Connecting to uri ldap://otherfoobar.ca:389/
DEBUG: Using dirsrv ca certificate /etc/dirsrv/slapd-template
DEBUG: Using external ca certificate /etc/dirsrv/slapd-template
DEBUG: Using external ca certificate /etc/dirsrv/slapd-template
DEBUG: Using /etc/openldap/ldap.conf certificate policy
DEBUG: ldap.OPT_X_TLS_REQUIRE_CERT = 2
DEBUG: open(): bound as None
DEBUG: Retrieving entry with [('',)]
DEBUG: Retrieved entry [dn:
vendorVersion: 389-Directory/1.3.9.1 B2019.336.1744

]
DEBUG: expected string or bytes-like object
Traceback (most recent call last):
File "/usr/sbin/dsconf", line 134, in
result = args.func(inst, None, log, args)
File "/usr/lib/python3.6/site-packages/lib389/cli_conf/replication.py", line 296, in get_repl_status
status = replica.status(binddn=args.bind_dn, bindpw=args.bind_passwd)
File "/usr/lib/python3.6/site-packages/lib389/replica.py", line 1629, in status
raw_status = agmt.status(binddn=binddn, bindpw=bindpw, use_json=True, winsync=winsync)
File "/usr/lib/python3.6/site-packages/lib389/agreement.py", line 347, in status
lag_time = self.get_lag_time(suffix, agmt_name, binddn=binddn, bindpw=bindpw)
File "/usr/lib/python3.6/site-packages/lib389/agreement.py", line 294, in get_lag_time
match = Agreement.csnre.match(agmt_maxcsn)
TypeError: expected string or bytes-like object
{
"desc": "expected string or bytes-like object"
}

@mreynolds389
Copy link
Contributor

I think this was also fixed, but I need to look at it tomorrow. Thank you very much for being so helpful in providing this information! We'll get it all fixed up shortly and get new builds out...

@scylla999
Copy link
Author

scylla999 commented Mar 16, 2021 via email

@mreynolds389
Copy link
Contributor

Ok found the problem (it's new), and a fix to prevent the UI crash, etc, but I have some questions. Is this on a test system? Has replication actually been setup on this server? Basically you got into this situation because it is searching for the suffix RUV, and it's missing, or no updates have occurred on that replica (no maxcsn). Now there is nothing wrong with that, and the CLI should handle that better, but I just want to understand how we got into this situation.

If you check you access log from the time you reproduced the issue, what is the RESULT line in the access log for a search using this filter:

(&(nsuniqueid=ffffffff-ffffffff-ffffffff-ffffffff)(objectclass=nstombstone))

@scylla999
Copy link
Author

Here's such an entry in the access logs:

[15/Mar/2021:13:30:26.001498900 -0400] conn=169 op=4 SRCH base="dc=info,dc=polymtl,dc=ca" scope=2 filter="(&(nsUniqueId=ffffffff-ffffffff-ffffffff-ffffffff)(objectClass=nstombstone))" attrs="nsds50ruv"
[15/Mar/2021:13:30:26.001922997 -0400] conn=169 op=4 RESULT err=0 tag=101 nentries=1 wtime=0.000035907 optime=0.000426795 etime=0.000461195
[15/Mar/2021:13:30:26.012898500 -0400] conn=169 op=5 UNBIND
[15/Mar/2021:13:30:26.012914894 -0400] conn=169 op=5 fd=64 closed error - U1

I'm no longer seeing the error in the UI this morning in the 'Monitoring->Replication'.

To answer your question: I'm migrating my LDAP servers from CentOS 7 to CentOS 8. It is in production in a 4-way multimaster setup.

@mreynolds389
Copy link
Contributor

Would it be possible to get your custom schema files? I'd like to verify that your issue is actually fixed. What I'm really looking for is to see if the X-ORIGIN keyword is used in your custom schema files, and if so, how is it being used(what value, etc).

@scylla999
Copy link
Author

Sure thing, here you go:

Custom-schemas.zip

@mreynolds389 mreynolds389 added cockpit Cockpit UI Plugin and removed needs triage The issue will be triaged during scrum labels Mar 18, 2021
@mreynolds389 mreynolds389 added this to the 1.4.3 milestone Mar 18, 2021
@mreynolds389
Copy link
Contributor

Turns out both of these UI crashes were new bugs. Thanks @scylla999 for the schema files! I'll be filing a PR shortly...

mreynolds389 added a commit that referenced this issue Mar 18, 2021
Description:  if schema attributes were missing x-origin it would crash the browser,
              and in Monitor -> Replication, if the replication agreement is in an
              odd state, and the lag was not computable, it could also crash the UI.

Relates: #4671

Reviewed by: mreynolds (one line commit rule)
mreynolds389 added a commit that referenced this issue Mar 18, 2021
Description:  if schema attributes were missing x-origin it would crash the browser,
              and in Monitor -> Replication, if the replication agreement is in an
              odd state, and the lag was not computable, it could also crash the UI.

Relates: #4671

Reviewed by: mreynolds (one line commit rule)
mreynolds389 added a commit that referenced this issue Mar 18, 2021
Description:  if schema attributes were missing x-origin it would crash the browser,
              and in Monitor -> Replication, if the replication agreement is in an
              odd state, and the lag was not computable, it could also crash the UI.

Relates: #4671

Reviewed by: mreynolds (one line commit rule)
@mreynolds389
Copy link
Contributor

e249c0d..72726e4 master -> master
b190d1f..8d08168 389-ds-base-1.4.4 -> 389-ds-base-1.4.4
a412c94..d1ec1da 389-ds-base-1.4.3 -> 389-ds-base-1.4.3

I'll get new builds done soon, and eventually they should get picked up in CentOS.

@scylla999
Copy link
Author

scylla999 commented Mar 18, 2021 via email

@vashirov
Copy link
Member

I've created new builds, they will soon land in epel-testing. Please try them and let us know in case of any issues.
389-directory-server-stable-820210322075822.9edba152
389-directory-server-testing-820210322075841.9edba152
389-directory-server-next-820210322080211.9edba152
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cockpit Cockpit UI Plugin
Projects
None yet
Development

No branches or pull requests

3 participants