Advertisement
Guest User

Untitled

a guest
May 8th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.90 KB | None | 0 0
  1. ++ source /opt/partition/partitionPV.sh
  2. +++ source /opt/eap/bin/launch/launch-common.sh
  3. +++ source /opt/eap/bin/launch/logging.sh
  4. +++++ type -t log_warning
  5. ++++ '[' -z function ']'
  6. +++ '[' xtrue = xtrue ']'
  7. +++ DEBUG_QUERY_API_PARAM='-l debug'
  8. +++ IS_SPLIT_DATA_DEFINED=false
  9. +++ '[' '' = TRUE ']'
  10. +++ IS_TX_SQL_BACKEND=false
  11. +++ '[' -n testtx-postgresql=TESTTX ']'
  12. +++ IS_TX_SQL_BACKEND=true
  13. +++ '[' x = xtrue ']'
  14. +++ false
  15. +++ '[' x = xtrue ']'
  16. +++ [[ '' =~ ^[0-9]+$ ]]
  17. +++ TX_JDBC_RECOVERY_CONNECTION_RETRY=3
  18. ++ DATA_DIR=/opt/eap/standalone/data
  19. ++ startApplicationServer /opt/eap/standalone/data 30
  20. ++ local podsDir=/opt/eap/standalone/data
  21. ++ init_pod_name
  22. ++ '[' -n '' ']'
  23. ++ '[' -n '' ']'
  24. ++ '[' -z '' ']'
  25. ++ POD_NAME=
  26. ++ '[' -z '' ']'
  27. ++ POD_NAME=18c2f173bc07
  28. ++ '[' -z 18c2f173bc07 ']'
  29. ++ local applicationPodDir=/opt/eap/standalone/data/18c2f173bc07
  30. ++ '[' xfalse '!=' xtrue ']'
  31. ++ true
  32. ++ initJdbcRecoveryMarkerProperties
  33. ++ tx_backend=testtx-postgresql=TESTTX
  34. ++ service_name=testtx-postgresql
  35. ++ service=TESTTX-POSTGRESQL
  36. ++ service=TESTTX_POSTGRESQL
  37. ++ db=POSTGRESQL
  38. ++ prefix=TESTTX
  39. +++ find_env TESTTX_POSTGRESQL_SERVICE_HOST
  40. +++ var=mylocaltxhost
  41. +++ echo mylocaltxhost
  42. ++ JDBC_RECOVERY_DB_HOST=mylocaltxhost
  43. +++ find_env TESTTX_POSTGRESQL_SERVICE_PORT
  44. +++ var=1999
  45. +++ echo 1999
  46. ++ JDBC_RECOVERY_DB_PORT=1999
  47. +++ find_env TESTTX_DATABASE
  48. +++ var=
  49. +++ echo ''
  50. ++ JDBC_RECOVERY_DATABASE=
  51. +++ find_env TESTTX_USERNAME
  52. +++ var=txuser
  53. +++ echo txuser
  54. ++ JDBC_RECOVERY_USER=txuser
  55. +++ find_env TESTTX_PASSWORD
  56. +++ var=txpwd
  57. +++ echo txpwd
  58. ++ JDBC_RECOVERY_PASSWORD=txpwd
  59. +++ cat /var/run/secrets/kubernetes.io/serviceaccount/namespace
  60. cat: /var/run/secrets/kubernetes.io/serviceaccount/namespace: No such file or directory
  61. ++ JDBC_RECOVERY_NAMESPACE=
  62. ++ JDBC_INFO=mylocaltxhost:1999/
  63. ++ local jdbcTableSuffix=
  64. ++ '[' x '!=' x ']'
  65. ++ JDBC_RECOVERY_TABLE=recmark
  66. ++ JDBC_PODNAME_REGISTRY_TABLE=recpodreg
  67. ++ case "$db" in
  68. ++ JDBC_RECOVERY_DB_TYPE=postgresql
  69. +++ dirname /opt/partition/partitionPV.sh
  70. ++ LOGGING_PROPERTIES=-Djava.util.logging.config.file=/opt/partition/logging.properties
  71. ++ '[' xtrue = xtrue ']'
  72. ++ LOGGING_PROPERTIES=
  73. ++ local add_modules=
  74. ++ '[' 1.8.0 = 11.0 ']'
  75. ++ local 'jdbcCommand=java -jar /opt/eap/jboss-modules.jar -mp /opt/eap/modules/ io.narayana.openshift-recovery -y postgresql -o mylocaltxhost -p 1999 -d -u txuser -s txpwd'
  76. ++ JDBC_COMMAND_RECOVERY_MARKER='java -jar /opt/eap/jboss-modules.jar -mp /opt/eap/modules/ io.narayana.openshift-recovery -y postgresql -o mylocaltxhost -p 1999 -d -u txuser -s txpwd -t recmark -c'
  77. ++ JDBC_COMMAND_PODNAME_REGISTRY='java -jar /opt/eap/jboss-modules.jar -mp /opt/eap/modules/ io.narayana.openshift-recovery -y postgresql -o mylocaltxhost -p 1999 -d -u txuser -s txpwd -t recpodreg -c'
  78. +++ date
  79. ++ log_info '[Wed May 8 16:55:20 UTC 2019] Using database transaction recovery marker to be saved at mylocaltxhost:1999/'
  80. ++ local 'message=[Wed May 8 16:55:20 UTC 2019] Using database transaction recovery marker to be saved at mylocaltxhost:1999/'
  81. ++ echo -e 'INFO [Wed May 8 16:55:20 UTC 2019] Using database transaction recovery marker to be saved at mylocaltxhost:1999/'
  82. INFO [Wed May 8 16:55:20 UTC 2019] Using database transaction recovery marker to be saved at mylocaltxhost:1999/
  83. ++ local loopCount=0
  84. ++ createRecoveryDatabaseSchema
  85. ++ java -jar /opt/eap/jboss-modules.jar -mp /opt/eap/modules/ io.narayana.openshift-recovery -y postgresql -o mylocaltxhost -p 1999 -d -u txuser -s txpwd -t recmark -c create
  86. Unknown argument 'txuser'
  87. txn-recovery-marker-jdbc: creating and storing transaction recovery markers in database. Available command line arguments are:
  88. -y/--type_db : Database type the script will be working with
  89. -i/--hibernate_dialect : Hibernate dialect to be used
  90. -j/--jdbc_driver_class : Fully classified JDBC Driver class
  91. -l/--url : JDBC url which has precedence over configured host/port/database information
  92. -o/--host : Hostname where the database runs
  93. -p/--port : Port where the database runs
  94. -d/--database : Database name to connect to at the host and port
  95. -u/--user : Username at the database to connect to
  96. -s/--password : Password for the username at the database to connect to
  97. -t/--table_name : Table name to be working with
  98. -c/--command : Command to run in database available options are to create db schema to insert a record to delete the record and list recovery pod names
  99. -a/--application_pod_name : Application pod name which will be either inserted/deleted onto database or by which query will be filtered
  100. -r/--recovery_pod_name : Recovery pod name which will be either inserted/deleted onto database or by which query will be filtered
  101. -f/--format : Output format
  102. -v/--verbose : Enable verbose logging
  103. -h/--help : Printing this help
  104. ++ '[' 1 -ne 0 ']'
  105. ++ return 1
  106. ++ '[' 0 -ge 3 ']'
  107. +++ date
  108. ++ log_error '[Wed May 8 16:55:20 UTC 2019] Cannot create schema of database transaction recovery records. Will be retrying.'
  109. ++ local 'message=[Wed May 8 16:55:20 UTC 2019] Cannot create schema of database transaction recovery records. Will be retrying.'
  110. ++ echo -e '\033[0;31mERROR [Wed May 8 16:55:20 UTC 2019] Cannot create schema of database transaction recovery records. Will be retrying.\033[0m'
  111. ERROR [Wed May 8 16:55:20 UTC 2019] Cannot create schema of database transaction recovery records. Will be retrying.
  112. ++ log_error 'mylocaltxhost:1999/ is probably not available.'
  113. ++ local 'message=mylocaltxhost:1999/ is probably not available.'
  114. ++ echo -e '\033[0;31mERROR mylocaltxhost:1999/ is probably not available.\033[0m'
  115. ERROR mylocaltxhost:1999/ is probably not available.
  116. ++ loopCount=1
  117. ++ createRecoveryDatabaseSchema
  118. ++ java -jar /opt/eap/jboss-modules.jar -mp /opt/eap/modules/ io.narayana.openshift-recovery -y postgresql -o mylocaltxhost -p 1999 -d -u txuser -s txpwd -t recmark -c create
  119. Unknown argument 'txuser'
  120. txn-recovery-marker-jdbc: creating and storing transaction recovery markers in database. Available command line arguments are:
  121. -y/--type_db : Database type the script will be working with
  122. -i/--hibernate_dialect : Hibernate dialect to be used
  123. -j/--jdbc_driver_class : Fully classified JDBC Driver class
  124. -l/--url : JDBC url which has precedence over configured host/port/database information
  125. -o/--host : Hostname where the database runs
  126. -p/--port : Port where the database runs
  127. -d/--database : Database name to connect to at the host and port
  128. -u/--user : Username at the database to connect to
  129. -s/--password : Password for the username at the database to connect to
  130. -t/--table_name : Table name to be working with
  131. -c/--command : Command to run in database available options are to create db schema to insert a record to delete the record and list recovery pod names
  132. -a/--application_pod_name : Application pod name which will be either inserted/deleted onto database or by which query will be filtered
  133. -r/--recovery_pod_name : Recovery pod name which will be either inserted/deleted onto database or by which query will be filtered
  134. -f/--format : Output format
  135. -v/--verbose : Enable verbose logging
  136. -h/--help : Printing this help
  137. ++ '[' 1 -ne 0 ']'
  138. ++ return 1
  139. ++ '[' 1 -ge 3 ']'
  140. +++ date
  141. ++ log_error '[Wed May 8 16:55:20 UTC 2019] Cannot create schema of database transaction recovery records. Will be retrying.'
  142. ++ local 'message=[Wed May 8 16:55:20 UTC 2019] Cannot create schema of database transaction recovery records. Will be retrying.'
  143. ++ echo -e '\033[0;31mERROR [Wed May 8 16:55:20 UTC 2019] Cannot create schema of database transaction recovery records. Will be retrying.\033[0m'
  144. ERROR [Wed May 8 16:55:20 UTC 2019] Cannot create schema of database transaction recovery records. Will be retrying.
  145. ++ log_error 'mylocaltxhost:1999/ is probably not available.'
  146. ++ local 'message=mylocaltxhost:1999/ is probably not available.'
  147. ++ echo -e '\033[0;31mERROR mylocaltxhost:1999/ is probably not available.\033[0m'
  148. ERROR mylocaltxhost:1999/ is probably not available.
  149. ++ loopCount=2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement