Closed ghost closed 6 years ago
i vagrant up again,the logs seems different
TASK [zanini.sonar : Configure SonarQube JDBC settings for MySQL.] ***** skipping: [sonar] => (item={u'regexp': u'^sonar.jdbc.username', u'line': u'sonar.jdbc.username=sonar'}) skipping: [sonar] => (item={u'regexp': u'^sonar.jdbc.password', u'line': u'sonar.jdbc.password=sonar'}) skipping: [sonar] => (item={u'regexp': u'^sonar.jdbc.url', u'line': u'sonar.jdbc.url=jdbc:mysql://localhost:5432/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance'}) skipping: [sonar] => (item={u'regexp': u'^sonar.web.context', u'line': u'sonar.web.context='})
TASK [zanini.sonar : Create a database for Sonar.] ***** An exception occurred during task execution. To see the full traceback, use -vvv. The error was: HINT: Use the same encoding as in the template database, or use template0 as template. fatal: [sonar]: FAILED! => {"changed": false, "msg": "Database query failed: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)\nHINT: Use the same encoding as in the template database, or use template0 as template.\n"}
RUNNING HANDLER [geerlingguy.postgresql : restart postgresql] ** to retry, use: --limit @/home/yhq/github/vagrant-alm/ansible/alm.retry
PLAY RECAP ***** sonar : ok=36 changed=14 unreachable=0 failed=1
i re vagrant up the third times ,it successfully
TASK [geerlingguy.jenkins : Install Jenkins plugins using password.] *** changed: [jenkins] => (item=sonar) changed: [jenkins] => (item=nexus-artifact-uploader) changed: [jenkins] => (item=ansible) failed: [jenkins] (item=workflow-aggregator) => {"changed": false, "details": "Connection failure: timed out", "item": "workflow-aggregator", "msg": "Cannot install plugin."} changed: [jenkins] => (item=slack) changed: [jenkins] => (item=slack-uploader) changed: [jenkins] => (item=git) changed: [jenkins] => (item=github) changed: [jenkins] => (item=credentials-binding) changed: [jenkins] => (item=pipeline-utility-steps) changed: [jenkins] => (item=disk-usage) changed: [jenkins] => (item=ws-cleanup) to retry, use: --limit @/home/yhq/github/vagrant-alm/ansible/alm.retry
PLAY RECAP ***** jenkins : ok=35 changed=16 unreachable=0 failed=1