cubrid manager 에러??

by 11시38분 posted Mar 20, 2023


* 질문 등록 시 다음의 내용을 꼭 기입하여 주세요.

OS
Window7 32bit, Linux 64bit 등
CUBRID Ver.
[cubrid_rel] 수행 결과
CUBRID TOOL Ver.
[도움말]-[버전정보] 확인
응용 환경(API)
java, php, odbc 등 입력


* CUBRID 응용 오류, SQL 오류 또는 SQL 튜닝 관련된 문의는 반드시 다음의 내용을 추가해 주세요. 비밀글이나 비밀 댓글도 가능합니다.
* 저희가 상황을 이해하고, 재현이 가능해야 알 수 있는 문제들이 많습니다. 가능한 정보/정황들을 부탁합니다.

 

에러 내용 및 재현 방법 재현 가능한 Source와 SQL
관련 테이블(인덱스, 키정보 포함) 정보 CUBRID 홈 디렉토리 아래 log 디렉토리 압축


-------------- 아래에 질문 사항을 기입해 주세요. ------------------------------------------------------------------------

 

 

안녕하세요.

 

curl -k -X POST "https://localhost:8001/cm_api" -H "Accept: Text/plain;charset=utf-8" -d "{\"task\":\"gettransactioninfo\", \"dbname\":\"test\", \"dbuser\":\"dba\", \"dbpasswd\":\"dbapassword\", \"token\":\"cms_token\"}"
 

위의 명령어 실행 시 다음과 같은 에러가 발생합니다. 해결방법좀 알려주시면 감사하겠습니다.

 

Time: 03/13/23 15:20:05.027 - NOTIFICATION *** file /home/jenkins/workspace/cubrid_release_10.1/src/transaction/boot_cl.c, line 1138  CODE = -971 Tran = -1, EID = 1Program 'tranlist' (pid ****) connected to database server 'test' on the host 'localhost' (port ****).*** The previous error message is the last one. ***

 

 

 

cubrid tranlist 명령어를 실행했을 때에는

[cubrid@localhost whatap]$ cubrid tranlist test

Time: 03/13/23 16:27:22.700 - NOTIFICATION *** file /home/jenkins/workspace/cubrid_release_10.1/src/transaction/boot_cl.c, line 1138 CODE = -971 Tran = -1, EID = 1

Program 'tranlist' (pid 15928) connected to database server 'test' on the host 'localhost' (port 1523).

*** The previous error message is the last one. ***

Enter DBA password:

Time: 03/13/23 16:27:36.228 - NOTIFICATION *** file /home/jenkins/workspace/cubrid_release_10.1/src/transaction/boot_cl.c, line 1138 CODE = -971 Tran = -1, EID = 2

Program 'tranlist' (pid 15928) connected to database server 'test_db' on the host 'localhost' (port 1523).

*** The previous error message is the last one. ***

Tran index User name Host name Process id Program name Query time Tran time Wait for lock holder SQL_ID SQL Text

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

1(ACTIVE) DBA localhost.localdomain 13136 broker1_cub_cas_1 0.00 0.00 -1 *** empty ***

위와 같이 결과가 정상적으로 나오는데,

curl -k -X POST "https://localhost:8001/cm_api" -H "Accept: Text/plain;charset=utf-8" -d "{\"task\":\"gettransactioninfo\", \"dbname\":\"test\", \"dbuser\":\"dba\", \"dbpasswd\":\"dbapassword\", \"token\":\"cms_token\"}"

로 확인 시

{

"__EXEC_TIME" : "15 ms",

"note" : "Time: 03/13/23 16:09:25.706 - NOTIFICATION *** file /home/jenkins/workspace/cubrid_release_10.1/src/transaction/boot_cl.c, line 1138 CODE = -971 Tran = -1, EID = 1Program 'tranlist' (pid 13540) connected to database server 'test_db' on the host 'localhost' (port 1523).*** The previous error message is the last one. ***",

"status" : "failure",

"task" : "gettransactioninfo"

}

이렇게 status를 failure로 반환해줍니다. gettransactioninfo task를 제외한 다른 task들(login,statdump,getdbsize 등) 은 정상 동작됩니다. 큐브리드 버전은 10.1.4.7800 입니다.

 


Articles

3 4 5 6 7 8 9 10 11 12