You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Run `make publish-dev` to build, tag, and push a container to Dev1 for testing,
20
20
21
21
Merge a PR to `main` to build, tag, and push the container to Stage-Workloads. After merging the PR to `main`, tag a release on the `main` branch to promote to production. GitHub Actions in this repo will take care of the build, tag, push to Stage and the copy from Stage to Production.
22
22
23
-
**Important Note**: There is no automation in GitHub to automatically deploy the new container after it is push to the ECR repository in AWS. At this time, the only method to deploy the updated container is to force a new deployment of the Matomo service via the AWS Console.
23
+
**Important Note**: There is no automation in GitHub to automatically deploy the new container after it is push to the ECR repository in AWS. At this time, the only method to deploy the updated container is to force a new deployment of the Matomo service via the AWS Console or the CLI.
24
24
25
25
## Implementation notes
26
26
@@ -39,7 +39,7 @@ The `config.ini.php` file contains some core Matomo configuration. There are a c
39
39
40
40
We use the [EnvironmentVariables](https://plugins.matomo.org/EnvironmentVariables) plugin that allows us to set configuration values for Matomo via environment variables via the [mitlib-tf-workloads-matomo](https://github.com/mitlibraries/mitlib-tf-workloads-matomo) infrastructure repo.
41
41
42
-
The current practice is to set the following core configuration information in `config.ini.php` via environment variables.
42
+
The current practice is to set the following core configuration information in `config.ini.php` via environment variables.
43
43
44
44
* Database connection information
45
45
* SSL/TLS configuration
@@ -75,7 +75,7 @@ Before promoting a new build to production, ensure that IPs are anonymized by vi
75
75
76
76
### Archiving reports
77
77
78
-
Matomo calls the process by which it compiles raw log data into human-readable report 'archiving'. By default, archiving occurs on demand, whenever a Matomo user attempts to view a report in the GUI. Following [Matomo's recommendation](https://matomo.org/docs/setup-auto-archiving/) to schedule this, the mitlib-tf-workloads-matomo infrastructure repository creates an EventBridge rule/schedule for running the reporting archiving hourly.
78
+
Matomo calls the process by which it compiles raw log data into human-readable report 'archiving'. By default, archiving occurs on demand, whenever a Matomo user attempts to view a report in the GUI. Following [Matomo's recommendation](https://matomo.org/docs/setup-auto-archiving/) to schedule this, the [mitlib-tf-workloads-matomo](https://github.com/MITLibraries/mitlib-tf-workloads-matomo) infrastructure repository creates an EventBridge rule/schedule for running the reporting archiving hourly (only daily in Dev1).
79
79
80
80
### Authentication
81
81
@@ -97,7 +97,7 @@ See the official [Recover from lost 2FA](https://matomo.org/faq/how-to/faq_27248
97
97
98
98
* Owner: See [CODEOWNERS](./.github/CODEOWNERS)
99
99
* Team: See [CODEOWNERS](./.github/CODEOWNERS)
100
-
* Last Maintenance: 2025-02
100
+
* Last Maintenance: 2025-05
101
101
* External Documentation:
102
102
*[MIT Libraries dev docs](https://mitlibraries.github.io/guides/misc/matomo.html) - includes information about setting up a website for tracking in Matomo.
103
103
*[Matomo help center](https://matomo.org/help/) - offical Matomo docs. Includes user guide, developer guide, FAQ, and community support forum.
Copy file name to clipboardExpand all lines: docs/HowTos/HOWTO-matomo-upgrade.md
+17-16Lines changed: 17 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,9 @@ The database engine is managed by [mitlib-tf-workloads-matomo](https://github.co
10
10
11
11
These instructions assume you are working in the **dev** environment. Change to the appropriate `<env>` tag if you are working in a different environment.
12
12
13
-
1. Ensure that a backup of the current `config/config.ini.php` exists in the EFS mount.
13
+
1. Ensure that an out-of-band backup of the current `config/config.ini.php` exists
14
14
* SSH (via AWSCLI + Session Manager) to the container(see the [Troubleshooting](./HOWTO-miscellaneous.md) section for the AWS CLI connection command).
15
-
* Run the **backup-data.sh** script `/usr/local/bin/backup-data.sh`
15
+
* Run `cp /var/www/html/config/* /mnt/efs/backup/config`
16
16
1. Make any necessary changes to the repo.
17
17
* For version upgrades, change line 1 in **Dockerfile** to the new version.
18
18
* Verify plugin versions for compatibility with new version of Matomo. See **Update Matomo Plugins** below for more details.
@@ -21,33 +21,34 @@ These instructions assume you are working in the **dev** environment. Change to
21
21
* Run `make publish-dev` to push the new container to ECR and tag it as 'latest'.
22
22
1. Deploy updated container for ECS service.
23
23
* Via the AWS Console:
24
-
* Go to ECS
25
-
* Click on **matomo-ecs-dev-cluster**
26
-
* Click on the checkbox in **Services** next to `matomo-ecs-dev-service`
27
-
* Click `Update`
28
-
* On the next page, expand **Deployment options** and choose `Force new deployment`
29
-
* Click `Update`
24
+
* Go to ECS
25
+
* Click on **matomo-ecs-dev-cluster**
26
+
* Click on the checkbox in **Services** next to `matomo-ecs-dev-service`
27
+
* Click `Update`
28
+
* On the next page, expand **Deployment options** and choose `Force new deployment`
*Either method takes a few minutes to complete the deployment. It's easiest to verify completion in the AWS Console. A green bar will appear at the top of the page stating `Service updated: matomo-ecs-dev-cluster:matomo-ecs-dev-service`
33
-
1. Verify via webUI that the Matomo installation is ready to be upgraded. Ask someone in DEP to assist with this step.
* Either method takes a few minutes to complete the deployment. It's easiest to verify completion in the AWS Console. A green bar will appear at the top of the page stating `Service updated: matomo-ecs-dev-cluster:matomo-ecs-dev-service`
33
+
1. Verify via webUI that the Matomo installation is ready to be upgraded.
34
+
* (Infra members should have the "superuser" checkbox checked for their Matomo UI login; if not, please verify with UXWS)
34
35
* This step is only necessary when a database update is required.
35
36
1. SSH (via AWSCLI + Session Manager) to the container and run the upgrade on the CLI (see the [Troubleshooting](./HOWTO-miscellaneous.md) section for the AWS CLI connection command).
36
37
* The database update command is `php /var/www/html/console core:update`.
37
38
* This step is only necessary when there is a required update to the table structure in Matomo listed in the release notes.
38
-
1. Copy the updated `config/config.ini.php` to the EFS mount.
39
-
* Run the **backup-data.sh** script as in step 1.
39
+
1. Compare the out-of-band `/mnt/efs/backup/config/config.ini/php` to the updated `config/config.ini.php` for changes.
40
40
1. Verify that there were no changes to the `config.ini.php` file that need to be captured back in this repo.
41
41
* See [compare-ini-files](./HOWTO-compare-ini-files.md)
42
-
1. Log back in to the webUI to verify that everything is working. Ask someone in DEP to assist with this step.
42
+
1. Log back in to the webUI to verify that everything is working.
43
+
* (Infra members should have the "superuser" checkbox checked for their Matomo UI login; if not, please verify with UXWS)
43
44
44
45
## Update Matomo Plugins
45
46
46
47
Often, an update to the version of Matomo will require an update to a plugin version. See below for an overview of the plugin update process.
47
48
48
-
1. Ensure that a backup of the current `config/config.ini.php` exists in the EFS mount.
49
+
1. Ensure that an out-of-band backup of the current `config/config.ini.php` exists
49
50
* SSH (via AWSCLI + Session Manager) to the container(see the [Troubleshooting](./HOWTO-miscellaneous.md) section for the AWS CLI connection command).
50
-
* Run the **backup-data.sh** script `/usr/local/bin/backup-data.sh`
51
+
* Run `cp /var/www/html/config/* /mnt/efs/backup/config`
51
52
1. Visit [Matomo plugins](https://plugins.matomo.org), select the correct version of Matomo, and then search for the plugins that are currently in use in our instance of Matomo.
52
53
* If there is a newer version, download it from the site, unzip it, and store the unzipped folder in the [files/](../../files/) directory, following the naming convention in place (e.g., `plugin-<plugin_name>-<version>`)
53
54
1. Update the [Dockerfile](../../Dockerfile) to reference the newer version of the plugin stored in the [files/](../../files/) directory.
0 commit comments