NS8-Matomo Module

Dear All, I am, happy to Announce the Initial Vrrsion of Matomo being available. as an ns8 module.

To install, simply use

add-module ghcr.io/compgeniuses/matomo:latest 1

To update, simply use

api-cli run update-module --data '{"module_url":"ghcr.io/compgeniuses/matomo:latest","instances":["matomo1"],"force":true}'

then Login to the Web Dashboard and module settings, then add your hostname.

the module should be configured and running

Visit the hostname to finish on the configuration

The database configurations should be pre-filled Automaticall,

All you have to do is click next.

Deine your super user credentials

Define Website URL settings

you should have your new matomo dashboard ready for use

kindly test and share any challenges you ight encounter

5 Likes

Hello @danb35 since seen you’re testing installing matomo on NS8 here: Install wordpress to NS8 - #23 by danb35

Would you kindly be open to help in testing the matomo module?

@oneitonitram , well that worked very well. It installed flawlessly. I need to add methods to a new website later, but for now, the install and config worked like a charm!

Cheers!

1 Like

Thank you @LayLow for testing, could you kindly help test backup and restore.
Clone and restore.?

I just installed it on my server, but I can’t find where to go to configure it. It doesn’t appear in software center → installed, and I don’t see it elsewhere in the cluster-admin pages. What am I missing?

All softwares not installed from the software center are available on the top right app menu

image

4 Likes

Sure enough–I hadn’t realized that. Much easier way to get to them than I’d been using.

1 Like

FYI:

It seems that the ‘force https’. settings keeps defaulting back to ‘Off’. Despite setting it several time (and save) it keeps coming back as ‘Off’

HTH

1 Like

Works!

ps: I used WPCode ( https://wpcode.com/ ) to embed the Java script ino the Wordpress site. (No commercial intent)

Yep, same here. It seems to do it, but the toggle keeps turning off.

will look into it…

Hi @LayLow

I assume that is why, when I tried to reach Rouncubemail and WebTop, TOR was complaining about the site not having security https.

I never checked back that NS8 parameter.

Michel-André

FYI: I logged in into Matomo and was attended to a new version. Just updated Matomo with the on-line, in-place update. Success!

HTH

1 Like

YAp, the inplace upgrade works well. will update the image to the latest 5.0.3

FYI: It seems the Matomo logo is missing in Software Center?

Matomo logo is very much in order from my end.

Could this be as a result of performing an in-place upgrade outside the scope of the main App install from either the software centre, or updating from CLI terminal using api-cli run update-module --data '{ parameters?

Do you have the Genforge repo enabled on your system?

[Genforge Repo](https://forge.genius.ke/ns8/updates/)

Yes I do. I have the logo missing on 2 different systems.

I performed the upgrade from within Motamo, so no NS8 involved.

could that be a reason for missing logo?

What about on the APP context menu on the left top

could you update with the version from the software center?

I am not sure, for I did it yesterday I believe and once I logged in I was presented the upgrade option which I chose. Meanwhile things (repo’s and tests) have changed

1 Like

With v1.0.3, logo is there but can be blocked by ad-blockers (maybe because the name is associated to analytics?). At least blocked by ublock Origin (not your fault):
image
image

A bit small. Logo image could be cropped getting rid of blank space.
image

On the app dashboard it is showed ok (disregarding small size), as it doesn’t come from an external source.

As already reported, HTTPS redirection not working.

Some errors/warnings from the log (some of them could be nothing):

2024-03-21T00:09:30+01:00 [1:matomo1:agent@matomo1] _acontrol_task request attempt failed (WS reached EOF while waiting for module/traefik1/task/b19742c5-264f-47ed-8320-4f8719f090f5). Retrying...
2024-03-21T00:09:34+01:00 [1:matomo1:conmon] conmon c181647e50482a896e87 <nwarn>: Failed to open cgroups file: /sys/fs/cgroup/user.slice/user-1006.slice/user@1006.service/user.slice/user-libpod_pod_b0f6ef70999e3c01a3784105333fcb1dc4eba2f4e52fa85b924cb55b5a8440e0.slice/libpod-c181647e50482a896e876dc2b2b465fd76bd28122710fef946e3d1e4a229b0d0.scope/container/memory.events
2024-03-21T00:09:35+01:00 [1:matomo1:agent@matomo1] agent.ldapproxy: domain ns8.test should not be used by matomo1. Invoke agent.bind_user_domains(["ns8.test"]) to fix this warning.
2024-03-21T00:26:44+01:00 [1:matomo1:matomo1] curl: (7) Failed to connect to 127.0.0.1 port 80 after 0 ms: Couldn't connect to server
2024-03-21T00:26:47+01:00 [1:matomo1:matomo-app] 127.0.0.1 - - [20/Mar/2024:23:26:47 +0000] "GET /matomo HTTP/1.1" 404 432 "-" "curl/7.88.1"
2024-03-21T00:26:47+01:00 [1:matomo1:matomo1] <title>404 Not Found</title>
2024-03-21T00:26:47+01:00 [1:matomo1:matomo1] <p>The requested URL was not found on this server.</p>
2024-03-21T00:26:47+01:00 [1:matomo1:matomo1] 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
2024-03-21T00:26:47+01:00 [1:matomo1:matomo1] </head><body>
2024-03-21T00:26:47+01:00 [1:matomo1:matomo1] <html><head>
2024-03-21T00:26:47+01:00 [1:matomo1:matomo1] <hr>
2024-03-21T00:26:47+01:00 [1:matomo1:matomo1] <address>Apache/2.4.57 (Debian) Server at 127.0.0.1 Port 80</address>
2024-03-21T00:26:47+01:00 [1:matomo1:matomo1] </body></html>
2024-03-21T00:26:47+01:00 [1:matomo1:matomo1] <h1>Not Found</h1>
2024-03-21T00:26:47+01:00 [1:matomo1:matomo1] 
100   271  100   271    0     0   194k      0 --:--:-- --:--:-- --:--:--  264k
2024-03-21T00:26:48+01:00 [1:matomo1:systemd] Started Podman  matomo-app.service.