Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playbook build fails when deploying Matomo #1810

Open
mjordan opened this issue Apr 29, 2021 · 4 comments
Open

Playbook build fails when deploying Matomo #1810

mjordan opened this issue Apr 29, 2021 · 4 comments
Assignees
Labels
Subject: Ansible Playbook Related to the maintenance and upkeep associated with an Ansible Playbook for Islandora. Always also Subject:Deployment related to deployment of Islandora. Usually accompanied by the deployment flavour (Ansible/docker)

Comments

@mjordan
Copy link
Contributor

mjordan commented Apr 29, 2021

Building a Playbook has failed three times in a row for me, here:

ASK [Islandora-Devops.matomo : Expand Matomo.] ********************************
Wednesday 28 April 2021  12:51:47 -0700 (0:02:53.939)       0:32:22.014 *******
fatal: [default]: FAILED! => {"changed": false, "msg": "Failed to find handler for \"/var/www/html/piwik.zip\". Make sure the required command to extract the file is installed. Command \"/usr/bin/unzip\" could not handle archive. Command \"/usr/bin/tar\" could not handle archive."}

Both unzip and tar are available on the VM and execute normally.

I manually downloaded the zip file in question, https://builds.piwik.org/piwik-3.6.0.zip, and it unzips fine on the VM. The md5 of the file fetched by Ansible is 7334d8b1ec7ea74c07e1a9b9b73fd285, whereas the md5 of the manually (and sucessfully unzippable) file is 53c0580a185d8fe770590d6d0c909a78, so it would appear that the one downloaded within Ansible for deployment is corrupted. Size of good one is 19418053 bytes, size of bad one is 18421889, so maybe it's download is being intereupted?

I'll also point out that the latest version of Matomo is 4.2.1, so I'm wondering if we should upgrade to that version in the Ansible role.

Can someone try to build a fresh playbook to see if you can replicate what I'm describing?

@mjordan
Copy link
Contributor Author

mjordan commented May 5, 2021

Build is now succeeding (not sure why) but now when I visit http://localhost:8000/matomo/ I am getting the following error:

image

@seth-shaw-unlv I think you've been building VMs for testing some PRs. What do you see when you visit http://localhost:8000/matomo/?

@seth-shaw-unlv
Copy link
Contributor

The one I built 2 weeks ago is showing the same error. I was curious so I also spun up my performance testing image I built back in January and it shows the same error. I have an even older image I built back in mid-June which works fine... so the error crept in sometime between last June and January.

@mjordan
Copy link
Contributor Author

mjordan commented May 5, 2021

OK, thanks, that's helpful, it's not just me. I resolved that error by deleting the matomo db and manually reinstalling. But I don't know what caused the initial error.

We probably should ship with Matomo is 4.2.1. I'll bring it up at today's tech call.

@mjordan
Copy link
Contributor Author

mjordan commented May 5, 2021

2021-05-05 Tech Call consensus: update Matomo role to use 4.2.1 and see if that resolves the issue.

@kstapelfeldt kstapelfeldt added Subject:Deployment related to deployment of Islandora. Usually accompanied by the deployment flavour (Ansible/docker) Subject: Ansible Playbook Related to the maintenance and upkeep associated with an Ansible Playbook for Islandora. Always also and removed Ansible labels Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Subject: Ansible Playbook Related to the maintenance and upkeep associated with an Ansible Playbook for Islandora. Always also Subject:Deployment related to deployment of Islandora. Usually accompanied by the deployment flavour (Ansible/docker)
Projects
Development

No branches or pull requests

3 participants