plugin-GoogleAnalyticsImporter icon indicating copy to clipboard operation
plugin-GoogleAnalyticsImporter copied to clipboard

If shell_exec()/exec() is not available allow using API methods to manage archives

Open diosmosis opened this issue 4 years ago • 3 comments

On some systems it's not possible to use shell_exec()/exec() to start the import. We can provide an alternative by providing a way to initialize imports via API methods.

This would require:

  • an API method to import entities
  • an API method to start an import for a day and when finished invoke the next day if the daily API request limit hasn't been reached
    • we only do one day at a time to avoid any server side request timeouts
  • if a setting is set or we can't run shell_exec/exec, use the API method in Tasks.php & Importer.php

diosmosis avatar Nov 12 '19 02:11 diosmosis

This issue has been mentioned on Matomo forums. There might be relevant details there:

https://forum.matomo.org/t/google-analytics-importer-disabled-for-security-reasons/45675/2

I'd like to vote this up. Not just for security reasons but also for avoiding the use of nohup so it doesn't potentially consume all server resources and crash.

herbdool avatar Feb 15 '23 16:02 herbdool

@herbdool Added for prioritisation and our product team will have a look on this one

AltamashShaikh avatar Feb 16 '23 02:02 AltamashShaikh