Advertisement
Guest User

Untitled

a guest
Oct 16th, 2016
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.87 KB | None | 0 0
  1. task path: /opt/bahmni-installer/bahmni-playbooks/roles/implementation-config/tasks/implementation-config.yml:70
  2. fatal: [localhost]: FAILED! => {"changed": true, "failed": true, "rc": 255, "stderr": "+ . /etc/bahmni-installer/bahmni-emr-installer.conf\n++ IMPLEMENTATION_NAME=bd-uhc\n++ OPENMRS_DB_USERNAME=openmrs-user\n++ OPENMRS_DB_PASSWORD=password\n++ OPENMRS_DB_SERVER=localhost\n++ MYSQL_ROOT_USER=root\n++ MYSQL_ROOT_PASSWORD=password\n+ CHANGE_LOG_TABLE='-Dliquibase.databaseChangeLogTableName=liquibasechangelog -Dliquibase.databaseChangeLogLockTableName=liquibasechangeloglock -DschemaName=openmrs'\n+ LIQUIBASE_JAR=/opt/openmrs/openmrs/WEB-INF/lib/liquibase-core-2.0.5.jar\n+ DRIVER=com.mysql.jdbc.Driver\n++ ls /opt/openmrs/openmrs/WEB-INF/lib/mysql-connector-java-5.1.28.jar\n+ CLASSPATH=/opt/openmrs/openmrs/WEB-INF/lib/mysql-connector-java-5.1.28.jar\n+ CHANGE_LOG_FILE=liquibase.xml\n+ '[' -f /var/www/bahmni_config/openmrs/migrations/liquibase.xml ']'\n+ cd /var/www/bahmni_config/openmrs/migrations\n+ java -Dliquibase.databaseChangeLogTableName=liquibasechangelog -Dliquibase.databaseChangeLogLockTableName=liquibasechangeloglock -DschemaName=openmrs -jar /opt/openmrs/openmrs/WEB-INF/lib/liquibase-core-2.0.5.jar --driver=com.mysql.jdbc.Driver --classpath=/opt/openmrs/openmrs/WEB-INF/lib/mysql-connector-java-5.1.28.jar --changeLogFile=liquibase.xml --url=jdbc:mysql://localhost:3306/openmrs --username=openmrs-user --password=password update\nINFO 10/16/16 9:48 PM:liquibase: Successfully acquired change log lock\nINFO 10/16/16 9:48 PM:liquibase: Reading from `liquibasechangelog`\nINFO 10/16/16 9:49 PM:liquibase: Reading from `liquibasechangelog`\nSEVERE 10/16/16 9:49 PM:liquibase: Change Set openmrs-roles-and-privileges-liquibase.xml::BAHMNI-IMPL-OMRS-ROLES-PVG-004::tw failed. Error: Error executing SQL insert into role_privilege (role, privilege) values ('Doctor', 'View Encounter Roles'): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`role_privilege`, CONSTRAINT `privilege_definitions` FOREIGN KEY (`privilege`) REFERENCES `privilege` (`privilege`))\nliquibase.exception.DatabaseException: Error executing SQL insert into role_privilege (role, privilege) values ('Doctor', 'View Encounter Roles'): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`role_privilege`, CONSTRAINT `privilege_definitions` FOREIGN KEY (`privilege`) REFERENCES `privilege` (`privilege`))\n\tat liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:62)\n\tat liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:104)\n\tat liquibase.database.AbstractDatabase.execute(AbstractDatabase.java:1091)\n\tat liquibase.database.AbstractDatabase.executeStatements(AbstractDatabase.java:1075)\n\tat liquibase.changelog.ChangeSet.execute(ChangeSet.java:317)\n\tat liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:27)\n\tat liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58)\n\tat liquibase.Liquibase.update(Liquibase.java:114)\n\tat liquibase.integration.commandline.Main.doMigration(Main.java:825)\n\tat liquibase.integration.commandline.Main.main(Main.java:134)\nCaused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`role_privilege`, CONSTRAINT `privilege_definitions` FOREIGN KEY (`privilege`) REFERENCES `privilege` (`privilege`))\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)\n\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\n\tat java.lang.reflect.Constructor.newInstance(Constructor.java:526)\n\tat com.mysql.jdbc.Util.handleNewInstance(Util.java:411)\n\tat com.mysql.jdbc.Util.getInstance(Util.java:386)\n\tat com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1041)\n\tat com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)\n\tat com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)\n\tat com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)\n\tat com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)\n\tat com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2819)\n\tat com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2768)\n\tat com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:949)\n\tat com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:795)\n\tat liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInStatement(JdbcExecutor.java:92)\n\tat liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)\n\t... 9 more\nINFO 10/16/16 9:49 PM:liquibase: Successfully released change log lock\nLiquibase Update Failed: Error executing SQL insert into role_privilege (role, privilege) values ('Doctor', 'View Encounter Roles'): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`role_privilege`, CONSTRAINT `privilege_definitions` FOREIGN KEY (`privilege`) REFERENCES `privilege` (`privilege`))\nSEVERE 10/16/16 9:49 PM:liquibase: Error executing SQL insert into role_privilege (role, privilege) values ('Doctor', 'View Encounter Roles'): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`role_privilege`, CONSTRAINT `privilege_definitions` FOREIGN KEY (`privilege`) REFERENCES `privilege` (`privilege`))\nliquibase.exception.MigrationFailedException: Migration failed for change set openmrs-roles-and-privileges-liquibase.xml::BAHMNI-IMPL-OMRS-ROLES-PVG-004::tw:\n Reason: liquibase.exception.DatabaseException: Error executing SQL insert into role_privilege (role, privilege) values ('Doctor', 'View Encounter Roles'): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`role_privilege`, CONSTRAINT `privilege_definitions` FOREIGN KEY (`privilege`) REFERENCES `privilege` (`privilege`)):\n Caused By: Error executing SQL insert into role_privilege (role, privilege) values ('Doctor', 'View Encounter Roles'): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`role_privilege`, CONSTRAINT `privilege_definitions` FOREIGN KEY (`privilege`) REFERENCES `privilege` (`privilege`)):\n Caused By: Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`role_privilege`, CONSTRAINT `privilege_definitions` FOREIGN KEY (`privilege`) REFERENCES `privilege` (`privilege`))\n\tat liquibase.changelog.ChangeSet.execute(ChangeSet.java:347)\n\tat liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:27)\n\tat liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58)\n\tat liquibase.Liquibase.update(Liquibase.java:114)\n\tat liquibase.integration.commandline.Main.doMigration(Main.java:825)\n\tat liquibase.integration.commandline.Main.main(Main.java:134)\nCaused by: liquibase.exception.DatabaseException: Error executing SQL insert into role_privilege (role, privilege) values ('Doctor', 'View Encounter Roles'): Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`role_privilege`, CONSTRAINT `privilege_definitions` FOREIGN KEY (`privilege`) REFERENCES `privilege` (`privilege`))\n\tat liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:62)\n\tat liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:104)\n\tat liquibase.database.AbstractDatabase.execute(AbstractDatabase.java:1091)\n\tat liquibase.database.AbstractDatabase.executeStatements(AbstractDatabase.java:1075)\n\tat liquibase.changelog.ChangeSet.execute(ChangeSet.java:317)\n\t... 5 more\nCaused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`openmrs`.`role_privilege`, CONSTRAINT `privilege_definitions` FOREIGN KEY (`privilege`) REFERENCES `privilege` (`privilege`))\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)\n\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\n\tat java.lang.reflect.Constructor.newInstance(Constructor.java:526)\n\tat com.mysql.jdbc.Util.handleNewInstance(Util.java:411)\n\tat com.mysql.jdbc.Util.getInstance(Util.java:386)\n\tat com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1041)\n\tat com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)\n\tat com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)\n\tat com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)\n\tat com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)\n\tat com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2819)\n\tat com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2768)\n\tat com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:949)\n\tat com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:795)\n\tat liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback.doInStatement(JdbcExecutor.java:92)\n\tat liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)\n\t... 9 more\n\n\nFor more information, use the --logLevel flag)\n", "stdout": "", "stdout_lines": []}
  3.  
  4. NO MORE HOSTS LEFT *************************************************************
  5. [WARNING]: Could not create retry file 'all.retry'. [Errno 2] No such file or directory: ''
  6.  
  7.  
  8. PLAY RECAP *********************************************************************
  9. localhost : ok=153 changed=62 unreachable=0 failed=1
  10.  
  11. Traceback (most recent call last):
  12. File "/usr/bin/bahmni", line 9, in <module>
  13. load_entry_point('bahmni==0.1', 'console_scripts', 'bahmni')()
  14. File "/usr/lib/python2.6/site-packages/click-6.6-py2.6.egg/click/core.py", line 716, in __call__
  15. return self.main(*args, **kwargs)
  16. File "/usr/lib/python2.6/site-packages/click-6.6-py2.6.egg/click/core.py", line 696, in main
  17. rv = self.invoke(ctx)
  18. File "/usr/lib/python2.6/site-packages/click-6.6-py2.6.egg/click/core.py", line 1060, in invoke
  19. return _process_result(sub_ctx.command.invoke(sub_ctx))
  20. File "/usr/lib/python2.6/site-packages/click-6.6-py2.6.egg/click/core.py", line 889, in invoke
  21. return ctx.invoke(self.callback, **ctx.params)
  22. File "/usr/lib/python2.6/site-packages/click-6.6-py2.6.egg/click/core.py", line 534, in invoke
  23. return callback(*args, **kwargs)
  24. File "/usr/lib/python2.6/site-packages/click-6.6-py2.6.egg/click/decorators.py", line 17, in new_func
  25. return f(get_current_context(), *args, **kwargs)
  26. File "/usr/lib/python2.6/site-packages/bahmni-0.1-py2.6.egg/bahmni.py", line 50, in install
  27. return subprocess.check_call(command, shell=True)
  28. File "/usr/lib64/python2.6/subprocess.py", line 505, in check_call
  29. raise CalledProcessError(retcode, cmd)
  30. subprocess.CalledProcessError: Command 'ansible-playbook -i /etc/bahmni-installer/local all.yml -vv --extra-vars '@/etc/bahmni-installer/rpm_versions.yml' --extra-vars '@/etc/bahmni-installer/setup.yml'' returned non-zero exit status 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement