Guest User

Untitled

a guest
Mar 1st, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.33 KB | None | 0 0
  1. ubuntu@ip-172-31-0-23:~$ cat dump.sql | dokku --trace mysql:import main
  2. + export DOKKU_DISTRO
  3. ++ . /etc/os-release
  4. ++ echo ubuntu
  5. + DOKKU_DISTRO=ubuntu
  6. + export DOKKU_IMAGE=gliderlabs/herokuish
  7. + DOKKU_IMAGE=gliderlabs/herokuish
  8. + export DOKKU_LIB_ROOT=/var/lib/dokku
  9. + DOKKU_LIB_ROOT=/var/lib/dokku
  10. + export PLUGIN_PATH=/var/lib/dokku/plugins
  11. + PLUGIN_PATH=/var/lib/dokku/plugins
  12. + export PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
  13. + PLUGIN_AVAILABLE_PATH=/var/lib/dokku/plugins/available
  14. + export PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
  15. + PLUGIN_ENABLED_PATH=/var/lib/dokku/plugins/enabled
  16. + export PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
  17. + PLUGIN_CORE_PATH=/var/lib/dokku/core-plugins
  18. + export PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
  19. + PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available
  20. + export PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
  21. + PLUGIN_CORE_ENABLED_PATH=/var/lib/dokku/core-plugins/enabled
  22. + export DOKKU_API_VERSION=1
  23. + DOKKU_API_VERSION=1
  24. + export DOKKU_NOT_IMPLEMENTED_EXIT=10
  25. + DOKKU_NOT_IMPLEMENTED_EXIT=10
  26. + export DOKKU_VALID_EXIT=0
  27. + DOKKU_VALID_EXIT=0
  28. + export DOKKU_LOGS_DIR=/var/log/dokku
  29. + DOKKU_LOGS_DIR=/var/log/dokku
  30. + export DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
  31. + DOKKU_EVENTS_LOGFILE=/var/log/dokku/events.log
  32. + export DOKKU_CONTAINER_LABEL=dokku
  33. + DOKKU_CONTAINER_LABEL=dokku
  34. + export DOKKU_GLOBAL_RUN_ARGS=--label=dokku
  35. + DOKKU_GLOBAL_RUN_ARGS=--label=dokku
  36. + source /var/lib/dokku/core-plugins/available/common/functions
  37. ++ set -eo pipefail
  38. ++ [[ -n 1 ]]
  39. ++ set -x
  40. + parse_args mysql:import main
  41. + declare 'desc=top-level cli arg parser'
  42. + local next_index=1
  43. + local skip=false
  44. + args=("$@")
  45. + local args
  46. + for arg in '"$@"'
  47. + [[ false == \t\r\u\e ]]
  48. + case "$arg" in
  49. + next_index=2
  50. + for arg in '"$@"'
  51. + [[ false == \t\r\u\e ]]
  52. + case "$arg" in
  53. + next_index=3
  54. + return 0
  55. + args=("$@")
  56. + skip_arg=false
  57. + [[ mysql:import =~ ^--.* ]]
  58. + has_tty
  59. + declare 'desc=return 0 if we have a tty'
  60. ++ /usr/bin/tty
  61. ++ true
  62. + [[ not a tty == \n\o\t\ \a\ \t\t\y ]]
  63. + return 1
  64. + DOKKU_QUIET_OUTPUT=1
  65. ++ id -un
  66. + [[ dokku != \d\o\k\k\u ]]
  67. + [[ mysql:import =~ ^plugin:.* ]]
  68. + [[ mysql:import == \s\s\h\-\k\e\y\s\:\a\d\d ]]
  69. + [[ -n '' ]]
  70. + dokku_auth mysql:import main
  71. + declare 'desc=calls user-auth plugin trigger'
  72. + export SSH_USER=ubuntu
  73. + SSH_USER=ubuntu
  74. + export SSH_NAME=default
  75. + SSH_NAME=default
  76. + plugn trigger user-auth ubuntu default mysql:import main
  77. + source /var/lib/dokku/core-plugins/available/common/functions
  78. ++ set -eo pipefail
  79. ++ [[ -n 1 ]]
  80. ++ set -x
  81. + [[ ! -n '' ]]
  82. + source /var/lib/dokku/core-plugins/available/common/functions
  83. ++ set -eo pipefail
  84. ++ [[ -n 1 ]]
  85. ++ set -x
  86. + [[ mysql:import =~ (ssh-keys:add|ssh-keys:remove) ]]
  87. + return 0
  88. + case "$1" in
  89. + execute_dokku_cmd mysql:import main
  90. + declare 'desc=executes dokku sub-commands'
  91. + local PLUGIN_NAME=mysql:import
  92. + local PLUGIN_CMD=mysql:import
  93. + local implemented=0
  94. + local script
  95. + argv=("$@")
  96. + local argv
  97. + case "$PLUGIN_NAME" in
  98. ++ readlink -f /var/lib/dokku/plugins/enabled/mysql
  99. + [[ /var/lib/dokku/plugins/available/mysql == *core-plugins* ]]
  100. + [[ -x /var/lib/dokku/plugins/enabled/mysql:import/subcommands/default ]]
  101. + [[ -x /var/lib/dokku/plugins/enabled/mysql:import/subcommands/mysql:import ]]
  102. + [[ -x /var/lib/dokku/plugins/enabled/mysql/subcommands/import ]]
  103. + [[ -n import ]]
  104. + /var/lib/dokku/plugins/enabled/mysql/subcommands/import mysql:import main
  105. + source /var/lib/dokku/plugins/enabled/common/functions
  106. ++ set -eo pipefail
  107. ++ [[ -n 1 ]]
  108. ++ set -x
  109. ++++ dirname /var/lib/dokku/plugins/enabled/mysql/subcommands/import
  110. +++ cd /var/lib/dokku/plugins/enabled/mysql/subcommands
  111. +++ pwd
  112. ++ dirname /var/lib/dokku/plugins/enabled/mysql/subcommands
  113. + source /var/lib/dokku/plugins/enabled/mysql/functions
  114. ++++ dirname /var/lib/dokku/plugins/enabled/mysql/functions
  115. +++ cd /var/lib/dokku/plugins/enabled/mysql
  116. +++ pwd
  117. ++ source /var/lib/dokku/plugins/enabled/mysql/config
  118. +++ export MYSQL_IMAGE=mysql
  119. +++ MYSQL_IMAGE=mysql
  120. +++ export MYSQL_IMAGE_VERSION=5.7.12
  121. +++ MYSQL_IMAGE_VERSION=5.7.12
  122. +++ export MYSQL_ROOT=/var/lib/dokku/services/mysql
  123. +++ MYSQL_ROOT=/var/lib/dokku/services/mysql
  124. +++ export PLUGIN_COMMAND_PREFIX=mysql
  125. +++ PLUGIN_COMMAND_PREFIX=mysql
  126. +++ export PLUGIN_CONFIG_ROOT=/var/lib/dokku/config/mysql
  127. +++ PLUGIN_CONFIG_ROOT=/var/lib/dokku/config/mysql
  128. +++ export PLUGIN_DATA_ROOT=/var/lib/dokku/services/mysql
  129. +++ PLUGIN_DATA_ROOT=/var/lib/dokku/services/mysql
  130. +++ PLUGIN_DATASTORE_PORTS=(3306)
  131. +++ export PLUGIN_DATASTORE_PORTS
  132. +++ export PLUGIN_DATASTORE_WAIT_PORT=3306
  133. +++ PLUGIN_DATASTORE_WAIT_PORT=3306
  134. +++ export PLUGIN_DEFAULT_ALIAS=DATABASE
  135. +++ PLUGIN_DEFAULT_ALIAS=DATABASE
  136. +++ export PLUGIN_ALT_ALIAS=DOKKU_MYSQL
  137. +++ PLUGIN_ALT_ALIAS=DOKKU_MYSQL
  138. +++ export PLUGIN_IMAGE=mysql
  139. +++ PLUGIN_IMAGE=mysql
  140. +++ export PLUGIN_IMAGE_VERSION=5.7.12
  141. +++ PLUGIN_IMAGE_VERSION=5.7.12
  142. +++ export PLUGIN_SCHEME=mysql
  143. +++ PLUGIN_SCHEME=mysql
  144. +++ export PLUGIN_SERVICE=MySQL
  145. +++ PLUGIN_SERVICE=MySQL
  146. +++ export PLUGIN_VARIABLE=MYSQL
  147. +++ PLUGIN_VARIABLE=MYSQL
  148. +++ export PLUGIN_BASE_PATH=/var/lib/dokku/plugins
  149. +++ PLUGIN_BASE_PATH=/var/lib/dokku/plugins
  150. +++ [[ -n 1 ]]
  151. +++ export PLUGIN_BASE_PATH=/var/lib/dokku/plugins/enabled
  152. +++ PLUGIN_BASE_PATH=/var/lib/dokku/plugins/enabled
  153. +++ [[ -d /var/lib/dokku/services/mysql/* ]]
  154. ++ set -eo pipefail
  155. ++ [[ -n 1 ]]
  156. ++ set -x
  157. ++++ dirname /var/lib/dokku/plugins/enabled/mysql/functions
  158. +++ cd /var/lib/dokku/plugins/enabled/mysql
  159. +++ pwd
  160. ++ source /var/lib/dokku/plugins/enabled/mysql/common-functions
  161. +++ set -eo pipefail
  162. +++ [[ -n 1 ]]
  163. +++ set -x
  164. +++ source /var/lib/dokku/plugins/available/config/functions
  165. ++++ set -eo pipefail
  166. ++++ [[ -n 1 ]]
  167. ++++ set -x
  168. ++++ source /var/lib/dokku/core-plugins/available/common/functions
  169. +++++ set -eo pipefail
  170. +++++ [[ -n 1 ]]
  171. +++++ set -x
  172. ++ source /var/lib/dokku/plugins/enabled/common/functions
  173. +++ set -eo pipefail
  174. +++ [[ -n 1 ]]
  175. +++ set -x
  176. ++ source /var/lib/dokku/plugins/available/config/functions
  177. +++ set -eo pipefail
  178. +++ [[ -n 1 ]]
  179. +++ set -x
  180. +++ source /var/lib/dokku/core-plugins/available/common/functions
  181. ++++ set -eo pipefail
  182. ++++ [[ -n 1 ]]
  183. ++++ set -x
  184. ++ [[ -f /var/lib/dokku/plugins/available/docker-options/functions ]]
  185. ++ source /var/lib/dokku/plugins/available/docker-options/functions
  186. +++ set -eo pipefail
  187. +++ [[ -n 1 ]]
  188. +++ set -x
  189. +++ source /var/lib/dokku/core-plugins/available/common/functions
  190. ++++ set -eo pipefail
  191. ++++ [[ -n 1 ]]
  192. ++++ set -x
  193. +++ AVAILABLE_PHASES=(build deploy run)
  194. + service-import-cmd mysql:import main
  195. + declare 'desc=import a dump into the MySQL service database'
  196. + argv=("$@")
  197. + local cmd=mysql:import argv
  198. + [[ mysql:import == \m\y\s\q\l\:\i\m\p\o\r\t ]]
  199. + shift 1
  200. + declare SERVICE=main
  201. + [[ -z main ]]
  202. + verify_service_name main
  203. + declare 'desc=Verifies that a service exists'
  204. + declare SERVICE=main
  205. + [[ ! -n main ]]
  206. + [[ ! -d /var/lib/dokku/services/mysql/main ]]
  207. + return 0
  208. + service_import main
  209. + local SERVICE=main
  210. + SERVICE_ROOT=/var/lib/dokku/services/mysql/main
  211. ++ get_service_name main
  212. ++ declare 'desc=Retrieves a docker service label'
  213. ++ declare SERVICE=main
  214. ++ echo dokku.mysql.main
  215. + SERVICE_NAME=dokku.mysql.main
  216. ++ cat /var/lib/dokku/services/mysql/main/ROOTPASSWORD
  217. + ROOTPASSWORD=0bd2c564c636b4a0
  218. + [[ -t 0 ]]
  219. + docker exec -i dokku.mysql.main mysql --user=mysql --password=0bd2c564c636b4a0 main
  220. ERROR 1045 (28000): Access denied for user 'mysql'@'localhost' (using password: YES)
  221. read unix @->/var/run/docker.sock: read: connection reset by peer
Add Comment
Please, Sign In to add comment