Hi!
We run OJS and OMP 3.3.0 alongside each other on the same machine. The usageStats for OJS work as intended, but OMP does not produce any data. We only have one press in OMP.
- In both the press (Administration > Hosted Presses > SettingsWizard > Plugins) and the general plugin interface the Usage Statistics shows that is missing the “Enabled” checkmark, but the checkbox is inactive and can not be toggled.
- In the database it looks like the plugin is actually enabled:
MariaDB [omp]> SELECT * FROM plugin_settings WHERE plugin_settings.plugin_name = 'usagestatsplugin';
+------------------+------------+-------------------------+-------------------------------------------------------------------------------------------------------------------+--------------+
| plugin_name | context_id | setting_name | setting_value | setting_type |
+------------------+------------+-------------------------+-------------------------------------------------------------------------------------------------------------------+--------------+
| usagestatsplugin | 0 | accessLogFileParseRegex | /^(?P<ip>\S+) \S+ \S+ \[(?P<date>.*?)\] "\S+ (?P<url>\S+).*?" (?P<returnCode>\S+) \S+ ".*?" "(?P<userAgent>.*?)"/ | string |
| usagestatsplugin | 0 | chartType | bar | string |
| usagestatsplugin | 0 | compressArchives | 0 | bool |
| usagestatsplugin | 0 | createLogFiles | 1 | bool |
| usagestatsplugin | 0 | dataPrivacyOption | 0 | bool |
| usagestatsplugin | 0 | datasetMaxCount | 4 | string |
| usagestatsplugin | 0 | enabled | 1 | bool |
| usagestatsplugin | 0 | optionalColumns | ["city","region"] | object |
| usagestatsplugin | 0 | saltFilepath | | string |
| usagestatsplugin | 1 | chartType | bar | string |
| usagestatsplugin | 1 | datasetMaxCount | 4 | string |
| usagestatsplugin | 1 | displayStatistics | 0 | bool |
+------------------+------------+-------------------------+-------------------------------------------------------------------------------------------------------------------+--------------+
12 rows in set (0.000 sec)
- The directory
$FILES/usageStats/usageEventLogs/
for OMP is empty. The equivalent directory for OJS always contains logs for today and yesterday. All directories are owned bywww-data
. - Both applications use the acron plugin.
- When I try to run the scheduled tasks by hand (like described here https://docs.pkp.sfu.ca/admin-guide/en/statistics#2-configure-a-server-side-cron-job). I get
Invalid address: (From): root@localhost
for OMP, OJS works fine.
Any ideas what the problem is or what I should check beyond the things above?