GBase 8a通过命令行客户端gccli连接报错ERROR 2002 (HY000): Can’t connect to local GBase server through socket ‘/tmp/gcluster_5258.sock’ (2)

gccli 连接集群报错

本文介绍通过GBase 8a数据库集群命令行客户端gccli连接数据库时,报错RROR 2002 (HY000): Can’t connect to local GBase server through socket ‘/tmp/gcluster_5258.sock’ (2)的原因,一般都是数据库服务没有启动。

报错样例

[gbase@localhost ~]$ gccli testdb
ERROR 2002 (HY000): Can't connect to local GBase server through socket '/tmp/gcluster_5258.sock' (2)

原因

数据库服务没有启动。这种不输入IP,直接连接的方法,是使用本地socket的。

[root@localhost ~]# gcadmin
[gcadmin] Could not initialize CRM instance error: [6]->[GC_AIS_ERR_TRY_AGAIN]
[root@localhost ~]# service gcware start
Starting GCWARE (gcwexec):                                 [  OK  ]
Starting GBASED    :                                       [  OK  ]
Starting GCSYNC :                                          [  OK  ]
Starting GCLUSTERD :                                       [  OK  ]
Starting GCRECOVER :                                       [  OK  ]
gcStarting GCMonit success!
[root@localhost ~]# su - gbase
Last login: Sat Sep  5 02:05:24 CST 2020 on pts/1
[gbase@localhost ~]$ gccli testdb

GBase client 8.6.2.43-R23.119607. Copyright (c) 2004-2020, GBase.  All Rights Reserved.

通过strace跟踪gccli连接

在最后报错位置,也是找不到socket的原因

[gbase@localhost ~]$ strace gccli testdb
execve("/opt/gcluster/server/bin/gccli", ["gccli", "testdb"], [/* 30 vars */]) = 0
brk(0)                                  = 0x19d6000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5b04854000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/home/gbase/autobuild_862/build_temp/opt/gcluster/lib/gbase/tls/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/gbase/autobuild_862/build_temp/opt/gcluster/lib/gbase/tls/x86_64", 0x7ffd4b9b0010) = -1 ENOENT (No such file or directory)
open("/home/gbase/autobuild_862/build_temp/opt/gcluster/lib/gbase/tls/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/gbase/autobuild_862/build_temp/opt/gcluster/lib/gbase/tls", 0x7ffd4b9b0010) = -1 ENOENT (No such file or directory)
open("/home/gbase/autobuild_862/build_temp/opt/gcluster/lib/gbase/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/gbase/autobuild_862/build_temp/opt/gcluster/lib/gbase/x86_64", 0x7ffd4b9b0010) = -1 ENOENT (No such file or directory)
open("/home/gbase/autobuild_862/build_temp/opt/gcluster/lib/gbase/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/gbase/autobuild_862/build_temp/opt/gcluster/lib/gbase", 0x7ffd4b9b0010) = -1 ENOENT (No such file or directory)
open("tls/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/tls/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib64/tls/x86_64", 0x7ffd4b9b0010) = -1 ENOENT (No such file or directory)
open("/lib64/tls/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib64/tls", {st_mode=S_IFDIR|0555, st_size=6, ...}) = 0
open("/lib64/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib64/x86_64", 0x7ffd4b9b0010)   = -1 ENOENT (No such file or directory)
open("/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240l\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=143944, ...}) = 0
mmap(NULL, 2208864, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5b0441a000
mprotect(0x7f5b04431000, 2093056, PROT_NONE) = 0
mmap(0x7f5b04630000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7f5b04630000
mmap(0x7f5b04632000, 13408, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5b04632000
close(3)                                = 0
open("tls/x86_64/libgclusterclient_r.so.16", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libgclusterclient_r.so.16", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libgclusterclient_r.so.16", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libgclusterclient_r.so.16", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/tls/libgclusterclient_r.so.16", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/libgclusterclient_r.so.16", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/opt/gcluster/server/lib/gbase/tls/x86_64/libgclusterclient_r.so.16", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/opt/gcluster/server/lib/gbase/tls/x86_64", 0x7ffd4b9affe0) = -1 ENOENT (No such file or directory)
open("/opt/gcluster/server/lib/gbase/tls/libgclusterclient_r.so.16", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/opt/gcluster/server/lib/gbase/tls", 0x7ffd4b9affe0) = -1 ENOENT (No such file or directory)
open("/opt/gcluster/server/lib/gbase/x86_64/libgclusterclient_r.so.16", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/opt/gcluster/server/lib/gbase/x86_64", 0x7ffd4b9affe0) = -1 ENOENT (No such file or directory)
open("/opt/gcluster/server/lib/gbase/libgclusterclient_r.so.16", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\302\4\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0750, st_size=4359392, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5b04853000
mmap(NULL, 6476176, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5b03dec000
mprotect(0x7f5b04198000, 2093056, PROT_NONE) = 0
mmap(0x7f5b04397000, 512000, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3ab000) = 0x7f5b04397000
mmap(0x7f5b04414000, 20880, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5b04414000
close(3)                                = 0
open("tls/x86_64/libnsl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libnsl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libnsl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libnsl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/tls/libnsl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/libnsl.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240@\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=113584, ...}) = 0
mmap(NULL, 2198200, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5b03bd3000
mprotect(0x7f5b03be9000, 2093056, PROT_NONE) = 0
mmap(0x7f5b03de8000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7f5b03de8000
mmap(0x7f5b03dea000, 6840, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5b03dea000
close(3)                                = 0
open("tls/x86_64/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("librt.so.1", O_RDONLY|O_CLOEXEC)  = -1 ENOENT (No such file or directory)
open("/lib64/tls/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\"\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=44440, ...}) = 0
mmap(NULL, 2128952, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5b039cb000
mprotect(0x7f5b039d2000, 2093056, PROT_NONE) = 0
mmap(0x7f5b03bd1000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f5b03bd1000
close(3)                                = 0
open("tls/x86_64/libresolv.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libresolv.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libresolv.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libresolv.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/tls/libresolv.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3209\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=111080, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5b04852000
mmap(NULL, 2202264, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5b037b1000
mprotect(0x7f5b037c7000, 2097152, PROT_NONE) = 0
mmap(0x7f5b039c7000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7f5b039c7000
mmap(0x7f5b039c9000, 6808, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5b039c9000
close(3)                                = 0
open("tls/x86_64/libcrypt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libcrypt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libcrypt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libcrypt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/tls/libcrypt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/libcrypt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\16\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=41080, ...}) = 0
mmap(NULL, 2318912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5b0357a000
mprotect(0x7f5b03582000, 2093056, PROT_NONE) = 0
mmap(0x7f5b03781000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7f5b03781000
mmap(0x7f5b03783000, 184896, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5b03783000
close(3)                                = 0
open("tls/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libdl.so.2", O_RDONLY|O_CLOEXEC)  = -1 ENOENT (No such file or directory)
open("/lib64/tls/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\16\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=19776, ...}) = 0
mmap(NULL, 2109744, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5b03376000
mprotect(0x7f5b03378000, 2097152, PROT_NONE) = 0
mmap(0x7f5b03578000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f5b03578000
close(3)                                = 0
open("tls/x86_64/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libstdc++.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/tls/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\265\5\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=995840, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5b04851000
mmap(NULL, 3175456, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5b0306e000
mprotect(0x7f5b03157000, 2097152, PROT_NONE) = 0
mmap(0x7f5b03357000, 40960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe9000) = 0x7f5b03357000
mmap(0x7f5b03361000, 82976, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5b03361000
close(3)                                = 0
open("tls/x86_64/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libm.so.6", O_RDONLY|O_CLOEXEC)   = -1 ENOENT (No such file or directory)
open("/lib64/tls/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`T\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1141920, ...}) = 0
mmap(NULL, 3150152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5b02d6c000
mprotect(0x7f5b02e6c000, 2097152, PROT_NONE) = 0
mmap(0x7f5b0306c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x100000) = 0x7f5b0306c000
close(3)                                = 0
open("tls/x86_64/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/tls/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360*\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=88720, ...}) = 0
mmap(NULL, 2184192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5b02b56000
mprotect(0x7f5b02b6b000, 2093056, PROT_NONE) = 0
mmap(0x7f5b02d6a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x7f5b02d6a000
close(3)                                = 0
open("tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libc.so.6", O_RDONLY|O_CLOEXEC)   = -1 ENOENT (No such file or directory)
open("/lib64/tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\34\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2118128, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5b04850000
mmap(NULL, 3932672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5b02795000
mprotect(0x7f5b0294b000, 2097152, PROT_NONE) = 0
mmap(0x7f5b02b4b000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b6000) = 0x7f5b02b4b000
mmap(0x7f5b02b51000, 16896, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5b02b51000
close(3)                                = 0
open("tls/x86_64/libfreebl3.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libfreebl3.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libfreebl3.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libfreebl3.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/tls/libfreebl3.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/libfreebl3.so", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\v\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=11384, ...}) = 0
mmap(NULL, 2105536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5b02592000
mprotect(0x7f5b02594000, 2093056, PROT_NONE) = 0
mmap(0x7f5b02793000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7f5b02793000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5b0484f000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5b0484e000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5b0484c000
arch_prctl(ARCH_SET_FS, 0x7f5b0484c740) = 0
mprotect(0x7f5b02b4b000, 16384, PROT_READ) = 0
mprotect(0x7f5b03578000, 4096, PROT_READ) = 0
mprotect(0x7f5b02793000, 4096, PROT_READ) = 0
mprotect(0x7f5b02d6a000, 4096, PROT_READ) = 0
mprotect(0x7f5b0306c000, 4096, PROT_READ) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5b0484b000
mprotect(0x7f5b03357000, 32768, PROT_READ) = 0
mprotect(0x7f5b03781000, 4096, PROT_READ) = 0
mprotect(0x7f5b039c7000, 4096, PROT_READ) = 0
mprotect(0x7f5b04630000, 4096, PROT_READ) = 0
mprotect(0x7f5b03bd1000, 4096, PROT_READ) = 0
mprotect(0x7f5b03de8000, 4096, PROT_READ) = 0
mprotect(0x7f5b04397000, 126976, PROT_READ) = 0
mprotect(0x6a5000, 4096, PROT_READ)     = 0
mprotect(0x7f5b04855000, 4096, PROT_READ) = 0
set_tid_address(0x7f5b0484ca10)         = 21375
set_robust_list(0x7f5b0484ca20, 24)     = 0
rt_sigaction(SIGRTMIN, {0x7f5b04420780, [], SA_RESTORER|SA_SIGINFO, 0x7f5b04429370}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x7f5b04420810, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7f5b04429370}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
brk(0)                                  = 0x19d6000
brk(0x19f7000)                          = 0x19f7000
brk(0)                                  = 0x19f7000
ioctl(0, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
dup(1)                                  = 3
close(3)                                = 0
stat("/opt/gcluster/config/gbase_8a_gcluster.cnf", {st_mode=S_IFREG|0640, st_size=2994, ...}) = 0
open("/opt/gcluster/config/gbase_8a_gcluster.cnf", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0640, st_size=2994, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5b0484a000
read(3, "[client]\nport=5258\nsocket=/tmp/g"..., 4096) = 2994
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f5b0484a000, 4096)            = 0
stat("/home/gbase/autobuild_862/build_temp/opt/gcluster/share/gbase/charsets/Index.xml", 0x7ffd4b9aff60) = -1 ENOENT (No such file or directory)
socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
open("/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1728, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5b0484a000
read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1728
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f5b0484a000, 4096)            = 0
open("tls/x86_64/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libnss_files.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/tls/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320!\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=62184, ...}) = 0
mmap(NULL, 2173048, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5b0237f000
mprotect(0x7f5b0238b000, 2093056, PROT_NONE) = 0
mmap(0x7f5b0258a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb000) = 0x7f5b0258a000
mmap(0x7f5b0258c000, 22648, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5b0258c000
close(3)                                = 0
mprotect(0x7f5b0258a000, 4096, PROT_READ) = 0
open("/etc/services", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=670293, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5b0484a000
read(3, "# /etc/services:\n# $Id: services"..., 4096) = 4096
read(3, " 74/udp                         "..., 4096) = 4096
read(3, "     # Quick Mail Transfer Proto"..., 4096) = 4096
read(3, "    636/udp                     "..., 4096) = 4096
read(3, "          # Microsoft-SQL-Monito"..., 4096) = 4096
read(3, "                       # discp s"..., 4096) = 4096
read(3, "l Signal Alternate\n\nbprd        "..., 4096) = 4096
read(3, "         3690/udp               "..., 4096) = 4096
read(3, "          # Message Processing M"..., 4096) = 4096
read(3, "o-Point Trans Net\nacr-nema      "..., 4096) = 4096
read(3, "              # SGMP\nsgmp       "..., 4096) = 4096
read(3, "                # Directory Loca"..., 4096) = 4096
read(3, "ervice      267/udp             "..., 4096) = 4096
read(3, "    bh611\nbh611           354/ud"..., 4096) = 4096
read(3, "              # EMBL Nucleic Dat"..., 4096) = 4096
read(3, "    430/tcp                 # UT"..., 4096) = 4096
read(3, "login\nljk-login       472/udp   "..., 4096) = 4096
read(3, "#\nulp             522/tcp       "..., 4096) = 4096
read(3, "574/tcp                 # FTP So"..., 4096) = 4096
read(3, "uration Manager\nsco-sysmgr      "..., 4096) = 4096
read(3, " #       AODV\naodv            65"..., 4096) = 4096
read(3, "  692/tcp                 # Hype"..., 4096) = 4096
read(3, "   762/tcp                 #\nquo"..., 4096) = 4096
read(3, " 913/tcp                 # APEX "..., 4096) = 4096
read(3, "  1044/tcp                # Dev "..., 4096) = 4096
read(3, "    1079/tcp                # AS"..., 4096) = 4096
read(3, "             # ARDUS Transfer\nar"..., 4096) = 4096
read(3, "q-repl      1148/udp            "..., 4096) = 4096
read(3, "   # 3Com Net Management\naccelen"..., 4096) = 4096
read(3, "onDCE Gateway\naeroflight-ads  12"..., 4096) = 4096
read(3, "che-query\nde-server       1256/t"..., 4096) = 4096
read(3, "    # PKT-KRB-IPSec\ncmmdriver   "..., 4096) = 4096
read(3, "icy  1333/udp                # P"..., 4096) = 4096
read(3, "      1368/udp                # "..., 4096) = 4096
read(3, "blet   1400/tcp                #"..., 4096) = 4096
read(3, "               # Blueberry Softw"..., 4096) = 4096
read(3, "es           1465/tcp           "..., 4096) = 4096
read(3, "1504/udp                # EVB So"..., 4096) = 4096
read(3, "ridgen-elmd    1542/udp         "..., 4096) = 4096
read(3, "-lm      1578/udp               "..., 4096) = 4096
read(3, "              # NetBill Authoriz"..., 4096) = 4096
read(3, "\nstargatealerts  1654/udp       "..., 4096) = 4096
read(3, "# empire-empuma\nempire-empuma   "..., 4096) = 4096
read(3, "      # SIMS - SIIPAT Protocol f"..., 4096) = 4096
read(3, "       # EssWeb Gateway\nkmscontr"..., 4096) = 4096
read(3, "            # MMPFT\nharp        "..., 4096) = 4096
read(3, "  # VIDS-AVTP\nvids-avtp       18"..., 4096) = 4096
read(3, "ify Web Adapter Service\nunify-ad"..., 4096) = 4096
read(3, "     # XIIP\ndiscovery-port  1925"..., 4096) = 4096
read(3, "            # SIMP Channel\nsimp-"..., 4096) = 4096
read(3, "     1994/udp                # c"..., 4096) = 4096
read(3, "           2040/tcp             "..., 4096) = 4096
read(3, "tsrmagt         2077/udp        "..., 4096) = 4096
read(3, "     2116/udp                # C"..., 4096) = 4096
read(3, "-User Plane (3GPP)\ngtp-user     "..., 4096) = 4096
read(3, "VD User\nnvd             2184/udp"..., 4096) = 4096
read(3, "       2220/tcp                #"..., 4096) = 4096
read(3, "       # DTV Channel Request\ndtv"..., 4096) = 4096
read(3, " # NETML\nnetml           2288/ud"..., 4096) = 4096
read(3, "      # ofsd\n3d-nfsd         232"..., 4096) = 4096
read(3, "p                # NexstorIndLtd"..., 4096) = 4096
read(3, "2406/tcp                # JediSe"..., 4096) = 4096
read(3, "pppsvr\nratl            2449/tcp "..., 4096) = 4096
read(3, "dp                # Oracle TTC S"..., 4096) = 4096
read(3, "       2522/udp                #"..., 4096) = 4096
read(3, "p                # labrat\nlabrat"..., 4096) = 4096
read(3, "nt 2598/tcp                # Cit"..., 4096) = 4096
read(3, "-samp        2643/tcp           "..., 4096) = 4096
read(3, "2680/udp                # pxc-sa"..., 4096) = 4096
read(3, "ange\nscan-change     2719/udp   "..., 4096) = 4096
read(3, "status   2758/udp               "..., 4096) = 4096
read(3, "eStats\nac-tech         2796/tcp "..., 4096) = 4096
read(3, "/udp                # EVTP\nevtp-"..., 4096) = 4096
read(3, "port Protocol\nsps-tunnel      28"..., 4096) = 4096
read(3, "Lobby\ngamelobby       2914/udp  "..., 4096) = 4096
read(3, "tcp                # MPFWSAS\nmpf"..., 4096) = 4096
read(3, "V Intelligent Agent Communicatio"..., 4096) = 4096
read(3, "otes\nnds_sso         3024/tcp  n"..., 4096) = 4096
read(3, "cacn-ip-tcp    3062/tcp         "..., 4096) = 4096
read(3, "         # Universal Message Man"..., 4096) = 4096
read(3, "cp             3134/udp         "..., 4096) = 4096
read(3, "erver\nserverview-as   3169/tcp  "..., 4096) = 4096
read(3, "tra\nnetwatcher-mon  3203/tcp    "..., 4096) = 4096
read(3, "ort\nmdap-port       3235/udp    "..., 4096) = 4096
read(3, "p                # Microsoft Glo"..., 4096) = 4096
read(3, "3309/tcp                # TNS AD"..., 4096) = 4096
read(3, "viatv       3350/tcp            "..., 4096) = 4096
read(3, " Tapestry Client to Server\nd2k-t"..., 4096) = 4096
read(3, "     # GCSP user port\ngcsp      "..., 4096) = 4096
read(3, "DM ADM Notify\nedm-adm-notify  34"..., 4096) = 4096
read(3, "ether232port  3497/udp          "..., 4096) = 4096
read(3, "Joltid\nraven-rmp       3532/tcp "..., 4096) = 4096
read(3, "68/tcp                # EMIT sec"..., 4096) = 4096
read(3, "i     3601/udp                # "..., 4096) = 4096
read(3, "stributed Objects\nsdo           "..., 4096) = 4096
read(3, "ell Remote Management\ndell-rm-po"..., 4096) = 4096
read(3, "server-5   3705/tcp             "..., 4096) = 4096
read(3, "\nlaunchbird-lm   3739/tcp       "..., 4096) = 4096
read(3, "es     3773/udp                #"..., 4096) = 4096
read(3, "   # SpuGNA Communication Port\ns"..., 4096) = 4096
read(3, "         # Scito Object Server\na"..., 4096) = 4096
read(3, "dp                # Avocent DS A"..., 4096) = 4096
read(3, " Update (MUPDATE) protocol\nmupda"..., 4096) = 4096
read(3, "t po\naamp            3939/tcp   "..., 4096) = 4096
read(3, "       # LANrev Agent\nlanrevagen"..., 4096) = 4096
read(3, "             # pxc-roid\npxc-roid"..., 4096) = 4096
read(3, "yo-main         4040/tcp        "..., 4096) = 4096
read(3, "lly Incremental Backup\naibkup   "..., 4096) = 4096
read(3, "cel           4108/udp          "..., 4096) = 4096
read(3, "s   # Cedros Fraud Detection Sys"..., 4096) = 4096
read(3, "rvices\nsm-disc         4174/udp "..., 4096) = 4096
read(3, " Protocol\ntrim-event      4322/t"..., 4096) = 4096
read(3, "disc        4371/udp            "..., 4096) = 4096
read(3, "           # L-ACOUSTICS managem"..., 4096) = 4096
read(3, "  # MIH Services\nieee-mih       "..., 4096) = 4096
read(3, "ice\nmmaeds          4668/udp    "..., 4096) = 4096
read(3, "ux          4728/tcp            "..., 4096) = 4096
read(3, "         # OPC UA TCP Protocol\nq"..., 4096) = 4096
read(3, "             # Equitrac Office\ne"..., 4096) = 4096
read(3, "onpsocket       5014/udp        "..., 4096) = 4096
read(3, " # STANAG-5066-SUBNET-INTF\nauthe"..., 4096) = 4096
read(3, "# MyCTS server port\nrmonitor_sec"..., 4096) = 4096
read(3, "t           5234/tcp            "..., 4096) = 4096
read(3, "     # opalis-rbt-ipc\nopalis-rbt"..., 4096) = 4096
read(3, " # Salient User Manager\nsalient-"..., 4096) = 4096
read(3, "ker   5465/tcp                # "..., 4096) = 4096
read(3, "     # A3-SDUNode\na4-sdunode    "..., 4096) = 4096
read(3, "video\nprosharedata    5715/tcp  "..., 4096) = 4096
read(3, "\nnetagent        5771/tcp       "..., 4096) = 4096
read(3, "tcp                # WBEM Export"..., 4096) = 4096
read(3, "uch    6117/tcp                #"..., 4096) = 4096
read(3, "er Interface\ngrid            626"..., 4096) = 4096
read(3, "# Business Objects Enterprise in"..., 4096) = 4096
read(3, "td    # BoKS Clntd\nbadm_priv    "..., 4096) = 4096
read(3, "   # Allied Electronics NeXGen\nn"..., 4096) = 4096
read(3, "b Console Admin\nsmc-http        "..., 4096) = 4096
read(3, " Serve Admin\nctdp            702"..., 4096) = 4096
read(3, " UPP Gateway\ndisplay         723"..., 4096) = 4096
read(3, "cp                # OpenView DM "..., 4096) = 4096
read(3, "penXDAS Wire Protocol\nhawk      "..., 4096) = 4096
read(3, "97/tcp                # Propel C"..., 4096) = 4096
read(3, "            # Intuit Entitlement"..., 4096) = 4096
read(3, "          # Check Point Clusteri"..., 4096) = 4096
read(3, " 8300/tcp                # Trans"..., 4096) = 4096
read(3, "-tunnel      8567/udp           "..., 4096) = 4096
read(3, "  # Desktop Data TCP 4: FARM pro"..., 4096) = 4096
read(3, "/udp                # IBM AURORA"..., 4096) = 4096
read(3, "re\nwap-vcal-s      9207/udp     "..., 4096) = 4096
read(3, "\nmphlpdmc        9344/tcp       "..., 4096) = 4096
read(3, "ervice\ncondor          9618/udp "..., 4096) = 4096
read(3, "  # HaloteC Instrument Network\na"..., 4096) = 4096
read(3, "ssaging\nnetiq-endpoint  10113/tc"..., 4096) = 4096
read(3, "p        11110/tcp              "..., 4096) = 4096
read(3, "mserver1   12005/tcp            "..., 4096) = 4096
read(3, "             # Blackmagic Design"..., 4096) = 4096
read(3, "ate Notification\npduncs         "..., 4096) = 4096
read(3, "    # OPSEC CVP\nopsec-ufp       "..., 4096) = 4096
read(3, "Interdevice Interaction discover"..., 4096) = 4096
read(3, "dard\ncaldsoft-backup 22537/tcp  "..., 4096) = 4096
read(3, "trix StorageLink Gateway\nassoc-d"..., 4096) = 4096
read(3, "m      28200/tcp               #"..., 4096) = 4096
read(3, "          # FileNET BPM IOR\nfile"..., 4096) = 4096
read(3, "rt\nsafetynetp      40000/tcp    "..., 4096) = 4096
read(3, "   45678/tcp               # EBA"..., 4096) = 2645
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7f5b0484a000, 4096)            = 0
open("tls/x86_64/libnss_sss.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libnss_sss.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libnss_sss.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libnss_sss.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/tls/libnss_sss.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/lib64/libnss_sss.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\30\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=37352, ...}) = 0
mmap(NULL, 2131056, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5b02176000
mprotect(0x7f5b0217e000, 2093056, PROT_NONE) = 0
mmap(0x7f5b0237d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7f5b0237d000
close(3)                                = 0
mprotect(0x7f5b0237d000, 4096, PROT_READ) = 0
futex(0x7f5b0237e268, FUTEX_WAKE_PRIVATE, 2147483647) = 0
fstat(-1, 0x7ffd4b9b0210)               = -1 EBADF (Bad file descriptor)
socket(PF_LOCAL, SOCK_STREAM, 0)        = 3
fcntl(3, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
fcntl(3, F_GETFD)                       = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
connect(3, {sa_family=AF_LOCAL, sun_path="/var/lib/sss/pipes/nss"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
rt_sigaction(SIGPIPE, {SIG_IGN, [PIPE], SA_RESTORER|SA_RESTART, 0x7f5b027ca250}, {SIG_DFL, [], 0}, 8) = 0
socket(PF_LOCAL, SOCK_STREAM, 0)        = 3
fcntl(3, F_SETFL, O_RDONLY)             = 0
fcntl(3, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(3, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
connect(3, {sa_family=AF_LOCAL, sun_path="/tmp/gcluster_5258.sock"}, 110) = -1 ENOENT (No such file or directory)
fcntl(3, F_SETFL, O_RDWR)               = 0
shutdown(3, SHUT_RDWR)                  = 0
close(3)                                = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5b0484a000
write(2, "ERROR 2002 (HY000): ", 20ERROR 2002 (HY000): )    = 20
write(2, "Can't connect to local GBase ser"..., 80Can't connect to local GBase server through socket '/tmp/gcluster_5258.sock' (2)) = 80
write(2, "\n", 1
)                       = 1
write(1, "\7", 1)                       = 1
exit_group(1)                           = ?
+++ exited with 1 +++
[gbase@localhost ~]$

其它故障,请参考

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注