gsod0511

openmrs-SDK ref server with docker mysql57

Sep 30th, 2020
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 12.94 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. p@p-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. p@p-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''8080'): 8080
  33.  
  34. If you want to enable remote debugging by default when running the server,
  35. specify the port number here (e.g. 1044). Leave blank to disable debugging.
  36. (Do not do this on a production server) (default: 'no debugging'): 1044
  37.  
  38. Which database would you like to use?:
  39. 1) MySQL 5.6 (requires pre-installed MySQL 5.6)
  40. 2) MySQL 5.6 in SDK docker container (requires pre-installed Docker)
  41. 3) Existing docker container (requires pre-installed Docker)
  42.  
  43. Which one do you choose? [1/2/3]: 3
  44.  
  45. Please specify your container id/name/label (you can get it using command `docker ps -a`): openmrs-mysql57
  46.  
  47. Please specify DB username: root
  48.  
  49. Please specify DB password: openmrs
  50.  
  51. Please specify database uri (-DdbUri) (default: 'jdbc:mysql://localhost:3308/openmrs-newserver'): jdbc:mysl://localhost:3306/openmrs-newserver
  52.  
  53. Starting 'openmrs-mysql57' DB docker container...
  54. [INFO] I/O exception (org.newsclub.net.unix.AFUNIXSocketException) caught when processing request to {}->unix://localhost:80: Permission denied
  55. [INFO] Retrying request to {}->unix://localhost:80
  56. [INFO] I/O exception (org.newsclub.net.unix.AFUNIXSocketException) caught when processing request to {}->unix://localhost:80: Permission denied
  57. [INFO] Retrying request to {}->unix://localhost:80
  58. [INFO] I/O exception (org.newsclub.net.unix.AFUNIXSocketException) caught when processing request to {}->unix://localhost:80: Permission denied
  59. [INFO] Retrying request to {}->unix://localhost:80
  60. [INFO] ------------------------------------------------------------------------
  61. [INFO] BUILD FAILURE
  62. [INFO] ------------------------------------------------------------------------
  63. [INFO] Total time:  02:20 min
  64. [INFO] Finished at: 2020-09-30T22:00:16-04:00
  65. [INFO] ------------------------------------------------------------------------
  66. [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:
  67. [ERROR]
  68. [ERROR]
  69. [ERROR] Could not connect to Docker at unix:///var/run/docker.sock.
  70. [ERROR]
  71. [ERROR]  If the Docker host URL is not correct, please reset it by running setup with the -DdockerHost parameter
  72. [ERROR]  or set it manually by adding -DdockerHost="tcp://correct/url": org.newsclub.net.unix.AFUNIXSocketException: Permission denied (socket: /run/docker.sock)
  73. [ERROR] -> [Help 1]
  74. [ERROR]
  75. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  76. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  77. [ERROR]
  78. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  79. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  80.  
Add Comment
Please, Sign In to add comment