EsgynDB Troubleshooting-*** ERROR[8837] Internal error occurred.

本文描述了在使用trafci或JDBC连接数据库时遇到的卡顿及错误现象,通过排查发现与LDAP连接存在问题,进一步检查发现slapd服务受限于maxopenfiles,最终确定为LDAP用户达到最大文件描述符限制。

现象

trafci或JDBC连接数据库突然出现卡顿的现象,卡顿之后报错*** ERROR[8837] Internal error occurred.,

[trafodion@uatzf04 scripts]$ trafci

Welcome to QianBase Command Interface 
Copyright (c) 2015-2019 Esgyn Corporation

Host Name/IP Address: uatzf01:23400,uatzf02:23400,uatzf03:23400
User Name: trafodion

*** ERROR[8837] Internal error occurred. User: TRAFODION  [2019-07-29 16:31:35]

分析

*** ERROR[8837] Internal error occurred.判断可能是数据库与LDAP连接出现了问题,使用ldapcheck --username=trafodion检查是否成功,发现同样出现卡顿的现象。因此判断就是与LDAP连接出现了问题。

[trafodion@uatzf04 scripts]$ ldapcheck --username=trafodion
Lookup request: externalName trafodion, configName 'not available' (configNumber -2), result 2 (Unexpected error returned from LDAP)

检查slapd服务状态,

[root@uatzf01 ~]# service slapd status
Redirecting to /bin/systemctl status slapd.service
● slapd.service - OpenLDAP Server Daemon
   Loaded: loaded (/usr/lib/systemd/system/slapd.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2019-07-24 09:17:12 CST; 5 days ago
     Docs: man:slapd
           man:slapd-config
           man:slapd-hdb
           man:slapd-mdb
           file:///usr/share/doc/openldap-servers/guide.html
 Main PID: 42947 (slapd)
   CGroup: /system.slice/slapd.service
           └─42947 /usr/sbin/slapd -u ldap -h ldapi:/// ldap:///

Jul 29 16:16:37 uatzf01.esgyn.cn slapd[42947]: warning: cannot open /etc/hosts.allow: Too many open files
Jul 29 16:16:37 uatzf01.esgyn.cn slapd[42947]: warning: cannot open /etc/hosts.deny: Too many open files
Jul 29 16:16:37 uatzf01.esgyn.cn slapd[42947]: fd=1023 DENIED from unknown (172.31.234.13)
Jul 29 16:16:41 uatzf01.esgyn.cn slapd[42947]: warning: cannot open /etc/hosts.allow: Too many open files
Jul 29 16:16:41 uatzf01.esgyn.cn slapd[42947]: warning: cannot open /etc/hosts.deny: Too many open files
Jul 29 16:16:41 uatzf01.esgyn.cn slapd[42947]: fd=1023 DENIED from unknown (172.31.234.12)
Jul 29 16:16:42 uatzf01.esgyn.cn slapd[42947]: warning: cannot open /etc/hosts.allow: Too many open files
Jul 29 16:16:42 uatzf01.esgyn.cn slapd[42947]: daemon: accept(8) failed errno=24 (Too many open files)
Jul 29 16:16:42 uatzf01.esgyn.cn slapd[42947]: warning: cannot open /etc/hosts.deny: Too many open files
Jul 29 16:16:42 uatzf01.esgyn.cn slapd[42947]: fd=1023 DENIED from unknown (172.31.234.11)

我们可以看到“Too many open files”之类的错误,说明ldap用户的max open file已经达到上限。

解决

解决方案如博客Linux OpenLAP 修改max open files

[root@wangxing konga]# ./start.sh No DB Adapter defined. Using localDB... (node:32948) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use `node --trace-warnings ...` to show where the warning was created) error: ** Grunt :: An error occurred. ** error: ------------------------------------------------------------------------ Loading "Gruntfile.js" tasks...ERROR >> Error: Attempted to `require('/usr/soft/konga/tasks/config/sass.js')`, but an error occurred: >> -- >> Error: Cannot find module 'node-sass' >> Require stack: >> - /usr/soft/konga/tasks/config/sass.js >> - /usr/soft/konga/node_modules/include-all/lib/help-include-all-sync.js >> - /usr/soft/konga/node_modules/include-all/lib/help-build-dictionary.js >> - /usr/soft/konga/node_modules/include-all/index.js >> - /usr/soft/konga/Gruntfile.js >> - /usr/soft/konga/node_modules/grunt/lib/grunt/task.js >> - /usr/soft/konga/node_modules/grunt/lib/grunt.js >> - /usr/soft/konga/node_modules/sails/node_modules/grunt-cli/bin/grunt >> - /usr/soft/konga/node_modules/sails/lib/hooks/grunt/grunt-wrapper.js >> at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15) >> at Function.Module._load (node:internal/modules/cjs/loader:873:27) >> at Module.require (node:internal/modules/cjs/loader:1100:19) >> at require (node:internal/modules/cjs/helpers:119:18) >> at Object.<anonymous> (/usr/soft/konga/tasks/config/sass.js:1:14) >> at Module._compile (node:internal/modules/cjs/loader:1198:14) >> at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10) >> at Module.load (/usr/soft/konga/node_modules/grunt/node_modules/coffeescript/lib/coffee-script/register.js:45:36) >> at Function.Module._load (node:internal/modules/cjs/loader:911:12) >> at Module.require (node:internal/modules/cjs/loader:1100:19) >> at require (node:internal/modules/cjs/helpers:119:18) >> at /usr/soft/konga/node_modules/include-all/lib/help-include-all-sync.js:293:33 >> at Array.forEach (<anonymous>:null:null) >> at _recursivelyIncludeAll (/usr/soft/konga/node_modules/include-all/lib/help-include-all-sync.js:178:11) >> at includeAll (/usr/soft/konga/node_modules/include-all/lib/help-include-all-sync.js:317:5) >> at includeAllSync (/usr/soft/konga/node_modules/include-all/index.js:27:10) >> at loadTasks (/usr/soft/konga/Gruntfile.js:46:12) >> at Object.module.exports (/usr/soft/konga/Gruntfile.js:68:28) >> at loadTask (/usr/soft/konga/node_modules/grunt/lib/grunt/task.js:315:10) >> at Task.task.init (/usr/soft/konga/node_modules/grunt/lib/grunt/task.js:434:5) >> at Object.grunt.tasks (/usr/soft/konga/node_modules/grunt/lib/grunt.js:111:8) >> at Object.module.exports [as cli] (/usr/soft/konga/node_modules/grunt/lib/grunt/cli.js:27:9) >> at Object.<anonymous> (/usr/soft/konga/node_modules/sails/node_modules/grunt-cli/bin/grunt:44:20) >> at Module._compile (node:internal/modules/cjs/loader:1198:14) >> at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10) >> at Module.load (node:internal/modules/cjs/loader:1076:32) >> at Function.Module._load (node:internal/modules/cjs/loader:911:12) >> at Module.require (node:internal/modules/cjs/loader:1100:19) >> at require (node:internal/modules/cjs/helpers:119:18) >> at Object.<anonymous> (/usr/soft/konga/node_modules/sails/lib/hooks/grunt/grunt-wrapper.js:10:1) >> at Module._compile (node:internal/modules/cjs/loader:1198:14) >> at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10) >> at Module.load (node:internal/modules/cjs/loader:1076:32) >> at Function.Module._load (node:internal/modules/cjs/loader:911:12) >> at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) >> at node:internal/main/run_main_module:22:47 >> >> -- Warning: Task "default" not found. Aborted due to warnings. ------------------------------------------------------------------------ error: Looks like a Grunt error occurred-- error: Please fix it, then **restart Sails** to continue running tasks (e.g. watching for changes in assets) error: Or if you're stuck, check out the troubleshooting tips below. error: Troubleshooting tips: error: error: *-> Are "grunt" and related grunt task modules installed locally? Run `npm install` if you're not sure. error: error: *-> You might have a malformed LESS, SASS, CoffeeScript file, etc. error: error: *-> Or maybe you don't have permissions to access the `.tmp` directory? error: e.g., `/usr/soft/konga/.tmp` ? error: error: If you think this might be the case, try running: error: sudo chown -R YOUR_COMPUTER_USER_NAME /usr/soft/konga/.tmp debug: Hook:api_health_checks:process() called debug: Hook:health_checks:process() called debug: Hook:start-scheduled-snapshots:process() called debug: Hook:upstream_health_checks:process() called debug: Hook:user_events_hook:process() called debug: Seeding User... debug: User seed planted debug: Seeding Kongnode... debug: Kongnode seed planted debug: Emailtransport seeds updated debug: ------------------------------------------------------- debug: :: Thu Oct 30 2025 17:43:39 GMT+0800 (中国标准时间) debug: Environment : development debug: Host : 0.0.0.0 debug: Port : 1337 debug: -------------------------------------------------------
最新发布
10-31
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

数据源的港湾

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值