gsod0511

openmrs-SDK distribution server with docker mysql57

Sep 30th, 2020
543
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.61 KB | None | 0 0
  1. Inspiron-5537:~$ sudo docker run --name openmrs-mysql57 -p 3306:3306 -e MYSQL_ROOT_PASSWORD=openmrs -d mysql:5.7
  2. Unable to find image 'mysql:5.7' locally
  3. 5.7: Pulling from library/mysql
  4. d121f8d1c412: Pull complete
  5. f3cebc0b4691: Pull complete
  6. 1862755a0b37: Pull complete
  7. 489b44f3dbb4: Pull complete
  8. 690874f836db: Pull complete
  9. baa8be383ffb: Pull complete
  10. 55356608b4ac: Pull complete
  11. 277d8f888368: Pull complete
  12. 21f2da6feb67: Pull complete
  13. 2c98f818bcb9: Pull complete
  14. 031b0a770162: Pull complete
  15. Digest: sha256:14fd47ec8724954b63d1a236d2299b8da25c9bbb8eacc739bb88038d82da4919
  16. Status: Downloaded newer image for mysql:5.7
  17. b556d8f81cf45db5b15a0fbabd77380d7dfc9429b950250df6b3890bb3dc8cd9
  18. peihong@peihong-Inspiron-5537:~$ sudo docker ps
  19. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  20. b556d8f81cf4 mysql:5.7 "docker-entrypoint.s…" 14 seconds ago Up 8 seconds 0.0.0.0:3306->3306/tcp, 33060/tcp openmrs-mysql57
  21. ng@peihong-Inspiron-5537:~$ mvn openmrs-sdk:setup
  22. [INFO] Scanning for projects...
  23. [INFO]
  24. [INFO] ------------------< org.apache.maven:standalone-pom >-------------------
  25. [INFO] Building Maven Stub Project (No POM) 1
  26. [INFO] --------------------------------[ pom ]---------------------------------
  27. [INFO]
  28. [INFO] --- openmrs-sdk-maven-plugin:3.13.6:setup (default-cli) @ standalone-pom ---
  29.  
  30. Setting up a new server...
  31.  
  32. Specify server id (-DserverId) (default: 'server'): newserver
  33.  
  34. You can setup the following servers:
  35. 1) Distribution
  36. 2) Platform
  37.  
  38. Which one do you choose? [1/2]: 1
  39.  
  40. You can deploy the following versions of distribution:
  41. 1) Reference Application 2.11.0-SNAPSHOT
  42. 2) Reference Application 2.10.0
  43. 3) Reference Application 2.9.0
  44. 4) Reference Application 2.8.1
  45. 5) Reference Application 2.7.0
  46. 6) Other...
  47.  
  48. Which one do you choose? [1/2/3/4/5/6]: 2
  49. [INFO] Configured Artifact: org.openmrs.distro:referenceapplication-package:2.10.0:jar
  50. [INFO] Copying referenceapplication-package-2.10.0.jar to /home/peihong/openmrs/newserver/openmrs-distro.jar
  51. [INFO] Configured Artifact: org.openmrs.web:openmrs-webapp:2.3.0:war
  52. [INFO] Copying openmrs-webapp-2.3.0.war to /home/peihong/openmrs/newserver/openmrs-2.3.0.war
  53. [INFO] Configured Artifact: org.openmrs.module:addresshierarchy-omod:2.11.0:jar
  54. [INFO] Configured Artifact: org.openmrs.module:legacyui-omod:1.6.0:jar
  55. [INFO] Configured Artifact: org.openmrs.module:metadatadeploy-omod:1.11.0:jar
  56. [INFO] Configured Artifact: org.openmrs.module:reportingrest-omod:1.11.0:jar
  57. [INFO] Configured Artifact: org.openmrs.module:owa-omod:1.10.0:jar
  58. [INFO] Configured Artifact: org.openmrs.module:serialization.xstream-omod:0.2.14:omod
  59. [INFO] Configured Artifact: org.openmrs.module:registrationapp-omod:1.16.0:jar
  60. [INFO] Configured Artifact: org.openmrs:event-omod:2.7.0:jar
  61. [INFO] Configured Artifact: org.openmrs.module:uilibrary-omod:2.0.6:jar
  62. [INFO] Configured Artifact: org.openmrs.module:htmlwidgets-omod:1.10.0:jar
  63. [INFO] Configured Artifact: org.openmrs.module:dataexchange-omod:1.3.4:jar
  64. [INFO] Configured Artifact: org.openmrs.module:appui-omod:1.12.0:jar
  65. [INFO] Configured Artifact: org.openmrs.module:allergyui-omod:1.8.2:jar
  66. [INFO] Configured Artifact: org.openmrs.module:providermanagement-omod:2.10.0:jar
  67. [INFO] Configured Artifact: org.openmrs.module:appointmentschedulingui-omod:1.9.0:jar
  68. [INFO] Configured Artifact: org.openmrs.module:attachments-omod:2.2.0:jar
  69. [INFO] Configured Artifact: org.openmrs.module:formentryapp-omod:1.4.2:jar
  70. [INFO] Configured Artifact: org.openmrs.module:idgen-omod:4.5.0:jar
  71. [INFO] Configured Artifact: org.openmrs.module:metadatamapping-omod:1.3.4:jar
  72. [INFO] Configured Artifact: org.openmrs.module:fhir-omod:1.20.0:jar
  73. [INFO] Configured Artifact: org.openmrs.module:htmlformentryui-omod:1.10.0:jar
  74. [INFO] Configured Artifact: org.openmrs.module:referencedemodata-omod:1.4.5:jar
  75. [INFO] Configured Artifact: org.openmrs.module:emrapi-omod:1.28.0:jar
  76. [INFO] Configured Artifact: org.openmrs.module:referenceapplication-omod:2.10.0:jar
  77. [INFO] Configured Artifact: org.openmrs.module:htmlformentry-omod:3.10.0:jar
  78. [INFO] Configured Artifact: org.openmrs.module:appframework-omod:2.14.0:jar
  79. [INFO] Configured Artifact: org.openmrs.module:referencemetadata-omod:2.10.2:jar
  80. [INFO] Configured Artifact: org.openmrs.module:reportingui-omod:1.6.0:jar
  81. [INFO] Configured Artifact: org.openmrs.module:coreapps-omod:1.28.0:jar
  82. [INFO] Configured Artifact: org.openmrs.module:reportingcompatibility-omod:2.0.6:jar
  83. [INFO] Configured Artifact: org.openmrs.module:reporting-omod:1.20.0:jar
  84. [INFO] Configured Artifact: org.openmrs.module:adminui-omod:1.3.0:jar
  85. [INFO] Configured Artifact: org.openmrs.module:registrationcore-omod:1.9.0:jar
  86. [INFO] Configured Artifact: org.openmrs.module:appointmentscheduling-omod:1.12.0:jar
  87. [INFO] Configured Artifact: org.openmrs.module:calculation-omod:1.2:jar
  88. [INFO] Configured Artifact: org.openmrs.module:webservices.rest-omod:2.28.0:jar
  89. [INFO] Configured Artifact: org.openmrs.module:atlas-omod:2.2:omod
  90. [INFO] Configured Artifact: org.openmrs.module:uicommons-omod:2.12.0:jar
  91. [INFO] Configured Artifact: org.openmrs.module:uiframework-omod:3.17.0:jar
  92. [INFO] Configured Artifact: org.openmrs.module:metadatasharing-omod:1.6.0:jar
  93. [INFO] Copying addresshierarchy-omod-2.11.0.jar to /home/peihong/openmrs/newserver/modules/addresshierarchy-2.11.0.omod
  94. [INFO] Copying legacyui-omod-1.6.0.jar to /home/peihong/openmrs/newserver/modules/legacyui-1.6.0.omod
  95. [INFO] Copying metadatadeploy-omod-1.11.0.jar to /home/peihong/openmrs/newserver/modules/metadatadeploy-1.11.0.omod
  96. [INFO] Copying reportingrest-omod-1.11.0.jar to /home/peihong/openmrs/newserver/modules/reportingrest-1.11.0.omod
  97. [INFO] Copying owa-omod-1.10.0.jar to /home/peihong/openmrs/newserver/modules/owa-1.10.0.omod
  98. [INFO] Copying serialization.xstream-omod-0.2.14.omod to /home/peihong/openmrs/newserver/modules/serialization.xstream-0.2.14.omod
  99. [INFO] Copying registrationapp-omod-1.16.0.jar to /home/peihong/openmrs/newserver/modules/registrationapp-1.16.0.omod
  100. [INFO] Copying event-omod-2.7.0.jar to /home/peihong/openmrs/newserver/modules/event-2.7.0.omod
  101. [INFO] Copying uilibrary-omod-2.0.6.jar to /home/peihong/openmrs/newserver/modules/uilibrary-2.0.6.omod
  102. [INFO] Copying htmlwidgets-omod-1.10.0.jar to /home/peihong/openmrs/newserver/modules/htmlwidgets-1.10.0.omod
  103. [INFO] Copying dataexchange-omod-1.3.4.jar to /home/peihong/openmrs/newserver/modules/dataexchange-1.3.4.omod
  104. [INFO] Copying appui-omod-1.12.0.jar to /home/peihong/openmrs/newserver/modules/appui-1.12.0.omod
  105. [INFO] Copying allergyui-omod-1.8.2.jar to /home/peihong/openmrs/newserver/modules/allergyui-1.8.2.omod
  106. [INFO] Copying providermanagement-omod-2.10.0.jar to /home/peihong/openmrs/newserver/modules/providermanagement-2.10.0.omod
  107. [INFO] Copying appointmentschedulingui-omod-1.9.0.jar to /home/peihong/openmrs/newserver/modules/appointmentschedulingui-1.9.0.omod
  108. [INFO] Copying attachments-omod-2.2.0.jar to /home/peihong/openmrs/newserver/modules/attachments-2.2.0.omod
  109. [INFO] Copying formentryapp-omod-1.4.2.jar to /home/peihong/openmrs/newserver/modules/formentryapp-1.4.2.omod
  110. [INFO] Copying idgen-omod-4.5.0.jar to /home/peihong/openmrs/newserver/modules/idgen-4.5.0.omod
  111. [INFO] Copying metadatamapping-omod-1.3.4.jar to /home/peihong/openmrs/newserver/modules/metadatamapping-1.3.4.omod
  112. [INFO] Copying fhir-omod-1.20.0.jar to /home/peihong/openmrs/newserver/modules/fhir-1.20.0.omod
  113. [INFO] Copying htmlformentryui-omod-1.10.0.jar to /home/peihong/openmrs/newserver/modules/htmlformentryui-1.10.0.omod
  114. [INFO] Copying referencedemodata-omod-1.4.5.jar to /home/peihong/openmrs/newserver/modules/referencedemodata-1.4.5.omod
  115. [INFO] Copying emrapi-omod-1.28.0.jar to /home/peihong/openmrs/newserver/modules/emrapi-1.28.0.omod
  116. [INFO] Copying referenceapplication-omod-2.10.0.jar to /home/peihong/openmrs/newserver/modules/referenceapplication-2.10.0.omod
  117. [INFO] Copying htmlformentry-omod-3.10.0.jar to /home/peihong/openmrs/newserver/modules/htmlformentry-3.10.0.omod
  118. [INFO] Copying appframework-omod-2.14.0.jar to /home/peihong/openmrs/newserver/modules/appframework-2.14.0.omod
  119. [INFO] Copying referencemetadata-omod-2.10.2.jar to /home/peihong/openmrs/newserver/modules/referencemetadata-2.10.2.omod
  120. [INFO] Copying reportingui-omod-1.6.0.jar to /home/peihong/openmrs/newserver/modules/reportingui-1.6.0.omod
  121. [INFO] Copying coreapps-omod-1.28.0.jar to /home/peihong/openmrs/newserver/modules/coreapps-1.28.0.omod
  122. [INFO] Copying reportingcompatibility-omod-2.0.6.jar to /home/peihong/openmrs/newserver/modules/reportingcompatibility-2.0.6.omod
  123. [INFO] Copying reporting-omod-1.20.0.jar to /home/peihong/openmrs/newserver/modules/reporting-1.20.0.omod
  124. [INFO] Copying adminui-omod-1.3.0.jar to /home/peihong/openmrs/newserver/modules/adminui-1.3.0.omod
  125. [INFO] Copying registrationcore-omod-1.9.0.jar to /home/peihong/openmrs/newserver/modules/registrationcore-1.9.0.omod
  126. [INFO] Copying appointmentscheduling-omod-1.12.0.jar to /home/peihong/openmrs/newserver/modules/appointmentscheduling-1.12.0.omod
  127. [INFO] Copying calculation-omod-1.2.jar to /home/peihong/openmrs/newserver/modules/calculation-1.2.omod
  128. [INFO] Copying webservices.rest-omod-2.28.0.jar to /home/peihong/openmrs/newserver/modules/webservices.rest-2.28.0.omod
  129. [INFO] Copying atlas-omod-2.2.omod to /home/peihong/openmrs/newserver/modules/atlas-2.2.omod
  130. [INFO] Copying uicommons-omod-2.12.0.jar to /home/peihong/openmrs/newserver/modules/uicommons-2.12.0.omod
  131. [INFO] Copying uiframework-omod-3.17.0.jar to /home/peihong/openmrs/newserver/modules/uiframework-3.17.0.omod
  132. [INFO] Copying metadatasharing-omod-1.6.0.jar to /home/peihong/openmrs/newserver/modules/metadatasharing-1.6.0.omod
  133.  
  134. Downloading OWAs...
  135.  
  136. [INFO] Downloading https://dl.bintray.com/openmrs/owa/SystemAdministration-1.2.zip
  137.  
  138. What port would you like your server to use? (default: '8080'):
  139.  
  140. If you want to enable remote debugging by default when running the server,
  141. specify the port number here (e.g. 1044). Leave blank to disable debugging.
  142. (Do not do this on a production server) (default: 'no debugging'): 1044
  143.  
  144. Which database would you like to use?:
  145. 1) MySQL 5.6 (requires pre-installed MySQL 5.6)
  146. 2) MySQL 5.6 in SDK docker container (requires pre-installed Docker)
  147. 3) Existing docker container (requires pre-installed Docker)
  148.  
  149. Which one do you choose? [1/2/3]: 3
  150.  
  151. Please specify your container id/name/label (you can get it using command `docker ps -a`): openmrs-mysql57
  152.  
  153. Please specify DB username: root
  154.  
  155. Please specify DB password: openmrs
  156.  
  157. Please specify database uri (-DdbUri) (default: 'jdbc:mysql://localhost:3308/newserver'): jdbc:mysql://localhost:3306/newserver
  158.  
  159. Starting 'openmrs-mysql57' DB docker container...
  160. [INFO] I/O exception (org.newsclub.net.unix.AFUNIXSocketException) caught when processing request to {}->unix://localhost:80: Permission denied
  161. [INFO] Retrying request to {}->unix://localhost:80
  162. [INFO] I/O exception (org.newsclub.net.unix.AFUNIXSocketException) caught when processing request to {}->unix://localhost:80: Permission denied
  163. [INFO] Retrying request to {}->unix://localhost:80
  164. [INFO] I/O exception (org.newsclub.net.unix.AFUNIXSocketException) caught when processing request to {}->unix://localhost:80: Permission denied
  165. [INFO] Retrying request to {}->unix://localhost:80
  166. [INFO] ------------------------------------------------------------------------
  167. [INFO] BUILD FAILURE
  168. [INFO] ------------------------------------------------------------------------
  169. [INFO] Total time: 01:29 min
  170. [INFO] Finished at: 2020-09-30T23:04:06-04:00
  171. [INFO] ------------------------------------------------------------------------
  172. [ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:3.13.6:setup (default-cli) on project standalone-pom: Failed to setup server: Unable to execute mojo: Execution null of goal org.openmrs.maven.plugins:openmrs-sdk-docker-maven-plugin:3.13.6:run-db failed:
  173. [ERROR]
  174. [ERROR]
  175. [ERROR] Could not connect to Docker at unix:///var/run/docker.sock.
  176. [ERROR]
  177. [ERROR] If the Docker host URL is not correct, please reset it by running setup with the -DdockerHost parameter
  178. [ERROR] or set it manually by adding -DdockerHost="tcp://correct/url": org.newsclub.net.unix.AFUNIXSocketException: Permission denied (socket: /run/docker.sock)
  179. [ERROR] -> [Help 1]
  180. [ERROR]
  181. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  182. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  183. [ERROR]
  184. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  185. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  186.  
Add Comment
Please, Sign In to add comment