Background Image

FORUM


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

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. ***

 

  • ?
    큐브리드_김주현 2023.03.14 10:16
    큐브리드를 이용해주셔서 감사합니다

    Program 'tranlist' (pid ****) connected to database server 'test' on the host 'localhost' (port ****) --> localhost서버에서 ''test'라는 DB의 정보를 가져오지 못해 발생하는 에러 입니다.
    localhost서버가 window계열이라면 cmd를 통해, linux계열이라면 ssh를 통해 서 $> cubrid service status 또는 cubrid server status로 'test'가 동작중인지 확인해보세요

    -v 옵션을 붙여서 verbose 내용을 참조하여 에러를 해결해보시기 바랍니다. 감사합니다.
  • ?
    11시38분 2023.03.14 11:12
    동일한 접속 정보로 gettransactioninfo task를 제외한 다른 task들은 잘 동작하는데, 저 gettransactioninfo 에서만 에러가 발생합니다.
  • ?
    kisoo 2023.03.14 12:00 Files첨부 (1)

    메시지는 오류가 아니고 NOTIFICATION 입니다. tranlist가 실행되면 한줄이 log되지요.
    정상으로 실행된듯 합니다.
    참고로 제가 테스트용으로 사용하는 shell script를 첨부하니 참조하세요.
    참고로 tranlist.sh의 line# 19에 cm의 admin password를 1111에서 현재 설정하신 passwd로
    변경하고
    $ sh tranlist.sh localhost admin
    형태로 실행하시면 됩니다.

  • ?
    11시38분 2023.03.14 16:09
    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를 failuer로 반환해줍니다. 큐브리드 매니저에서만 발생하는 에러로 보입니다. 큐브리드 버전은 10.1.4.7800 입니다.

List of Articles
번호 제목 글쓴이 날짜 조회 수
공지 SQLGate for CUBRID 영구 무료 라이선스 제공 file admin 2020.04.09 4255
» /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' 4 jmkim 2023.03.13 187
3815 macOS CUBRID 다운로드 질문 1 bk9395 2023.03.13 179
3814 CUBRID 11.2 & CUBRID Aadmin 11.1 오류 문의 2 file 붉은구름 2023.03.08 133
3813 도커에서 설치시 접속 문의드립니다. 1 핫산 2023.03.07 360
3812 특수문자 포함 LIKE검색 1 SEO 2023.03.06 143
3811 cubrid admin 질문 드립니다. 3 file 초코초코초 2023.03.06 115
3810 plugin방식 호출 1 file 네오랜덤 2023.03.04 126
3809 서브쿼리시 질문드립니다. 2 dev123123 2023.02.28 146
3808 Cubrid DB 의 sqoop 사용시 옵션 문의 1 망고라떼 2023.02.28 93
3807 큐브리드 통계정보 관련 문의드립니다. 1 초코초코초 2023.02.26 110
3806 cubrid 매니저 패스워드 공용으로 사용하는건가요?? 2 학아 2023.02.24 166
3805 list 합수의 결과를 varchar 컬럼에 insert 시 오류 문의 1 file 플레이어블 2023.02.24 120
3804 LOG 설정 관련 질문입니다. 1 jemin 2023.02.23 84
3803 큐브리드 unload 문의드립니다. 5 초코초코초 2023.02.22 204
3802 Mac OS 에서 Cubrid Manager 실행이 안됩니다. 1 file 엘L 2023.02.20 272
3801 쿼리 플랜 cardinality, cost 이상 1 parknnna 2023.02.16 180
3800 조건절 in 에 들어가는 순서대로 뽑고 싶습니다. 1 구르마도리 2023.02.15 88
3799 Cubrid 11.2 접속 문제. 1 엘L 2023.02.15 130
3798 cubrid 매니저 백업 자동화 추가 비활성 1 제리리 2023.02.15 120
3797 Mac OS 큐브리드 매니저 설치 문제 6 file DJ 2023.02.13 280
Board Pagination Prev 1 ... 4 5 6 7 8 9 10 11 12 13 ... 199 Next
/ 199

Contact Cubrid

대표전화 070-4077-2110 / 기술문의 070-4077-2113 / 영업문의 070-4077-2112 / Email. contact_at_cubrid.com
Contact Sales