-
Notifications
You must be signed in to change notification settings - Fork 14
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
Importer failing - claiming site does not exist #453
Comments
@edoswald How are you trying to import the data? are you trying to pass --idsite=4 in the command ? |
@AltamashShaikh Via the web interface. |
@edoswald That's strange!, do you have idSite:4 created and do you have access to console of your Matomo instance ? |
@AltamashShaikh I don't see an instance_id, and yes, it's a self hosted install. The site ids seem to match with the ones created by the import. |
@edoswald What version of Matomo and the plugin do you have installed? PHP version? Do you see a row in your |
@snake14 sorry this should have all been in the report, my bad. Sites exist (see phpmyadmin screenshot) From System Summary Matomo version: 4.15.1 |
Thank you @edoswald. It's really odd that the site gets created, but it fails to look it up during the import process. I'm guessing that you're running the latest version of the GA Importer plugin (4.6.11)? |
@snake14 yessir.. weird thing is i was able to import without a problem on my last server, this one fails every time. |
@edoswald What if you log out of Matomo and log back in? As far as I can tell, the only reason that it would fail to load the site is if it doesn't exist or if there's a permission issue. |
@edoswald
If yes, can you run this command from |
@snake14 would an ls -l command from a certain directory in the install help? Here is everything from the option_value field {"status":"started","idSite":4,"ga":{"import_type":"GA4","property":"properties/373493187","account":"accounts/266715688","view":""},"last_date_imported":null,"main_import_progress":null,"import_start_time":1694563083,"import_end_time":null,"last_job_start_time":1694563083,"last_day_archived":null,"import_range_start":"","import_range_end":"2023-09-11","extra_custom_dimensions":[],"days_finished_since_rate_limit":0,"reimport_ranges":[],"isGA4":true,"is_verbose_logging_enabled":true} Server data
|
@edoswald Does running below command creates a new site and works as expected ?
|
@edoswald looks like its the issue with your cli Closing the issue for now, feel free to open a issue if you face any other issues |
@AltamashShaikh real quick, what modules should i ensure are activated? |
Hi @edoswald. The System Check gives a pretty good list of modules to check. When you're in the Matomo app, go to the gear icon (Administration) > Diagnostic > System Check: |
The only thing I am seeing that is an issue is this?
…On Thu, Sep 14, 2023 at 4:52 PM Jacob R ***@***.***> wrote:
Hi @edoswald <https://github.com/edoswald>. The System Check gives a
pretty good list of modules to check. When you're in the Matomo app, go to
the gear icon (Administration) > Diagnostic > System Check:
[image: image]
<https://user-images.githubusercontent.com/11394099/268107314-19c3107c-a9e4-4c0a-8e41-7ecff3974cef.png>
—
Reply to this email directly, view it on GitHub
<#453 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4QGUNSB4D7QEGSIE7KP3BTX2NU7XANCNFSM6AAAAAA4VSOGMQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
@edoswald We didn't get you on your last response |
Sorry, did by email. Anyway, reinstalled everything from scratch. Appears to be some issue with the Plesk one-click, at least on a Vultr server. Installed Plesk using their web install interface on a LAMP one-click, and the only issue i had after some additional fixes which were obvious from system check is the LOCAL DATA INFILE (although the other is working, so i will leave it for now as I am only seeing a max of maybe 25k a month across all the sites tracked). Just putting this in here in case it happens to somebody else who may have been trying to install Matomo on a Plesk one-click. |
Reopening as this issue still exists and is still happening. Some information below. The command This fatal error happened on 5.0.0-rc9
|
@tsteur I tried locally and seems to working for me, can you share more details on this to reproduce the same error |
@AltamashShaikh I don't have more information than this. I can reproduce this locally with a siteId that does not exist.
|
@tsteur Do you mean you deleted a site which had a GA import running and started getting above error post deletion ? |
Yes, or a site that never existed maybe (unsure what happened there) |
@tsteur We are deleting the import by registering to SitesManager.deleteSite.end event, may be some edge case where this event is not being fired ? |
Possible 👍 |
I cannot get the importer working, looking at logs this is what I keep getting for every site I try to import (same error, different site number)
ERROR [2023-09-12 23:58:03] 86422 Uncaught exception: /var/www/vhosts/missioncontrol.ozmediaservices.com/httpdocs/matomo/plugins/GoogleAnalyticsImporter/Commands/ImportGA4Reports.php(331): Site ID 4 does not exist. [Query: , CLI mode: 1]
[Exception]
Site ID 4 does not exist.
Exception trace:
() at /var/www/vhosts/missioncontrol.ozmediaservices.com/httpdocs/matomo/plugins/GoogleAnalyticsImporter/Commands/ImportGA4Reports.php:331
Piwik\Plugins\GoogleAnalyticsImporter\Commands\ImportGA4Reports->getIdSite() at /var/www/vhosts/missioncontrol.ozmediaservices.com/httpdocs/matomo/plugins/GoogleAnalyticsImporter/Commands/ImportGA4Reports.php:81
Piwik\Plugins\GoogleAnalyticsImporter\Commands\ImportGA4Reports->executeImpl() at /var/www/vhosts/missioncontrol.ozmediaservices.com/httpdocs/matomo/plugins/GoogleAnalyticsImporter/Commands/ImportGA4Reports.php:57
Piwik\Plugins\GoogleAnalyticsImporter\Commands\ImportGA4Reports->execute() at /var/www/vhosts/missioncontrol.ozmediaservices.com/httpdocs/matomo/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
Symfony\Component\Console\Command\Command->run() at /var/www/vhosts/missioncontrol.ozmediaservices.com/httpdocs/matomo/vendor/symfony/console/Symfony/Component/Console/Application.php:874
Symfony\Component\Console\Application->doRunCommand() at /var/www/vhosts/missioncontrol.ozmediaservices.com/httpdocs/matomo/vendor/symfony/console/Symfony/Component/Console/Application.php:195
Symfony\Component\Console\Application->doRun() at /var/www/vhosts/missioncontrol.ozmediaservices.com/httpdocs/matomo/core/Console.php:108
Piwik\Console->originDoRun() at n/a:n/a
call_user_func() at /var/www/vhosts/missioncontrol.ozmediaservices.com/httpdocs/matomo/core/Console.php:147
Piwik\Console->Piwik{closure}() at /var/www/vhosts/missioncontrol.ozmediaservices.com/httpdocs/matomo/core/Access.php:670
Piwik\Access::doAsSuperUser() at /var/www/vhosts/missioncontrol.ozmediaservices.com/httpdocs/matomo/core/Console.php:148
Piwik\Console->doRunImpl() at /var/www/vhosts/missioncontrol.ozmediaservices.com/httpdocs/matomo/core/Console.php:87
Piwik\Console->doRun() at /var/www/vhosts/missioncontrol.ozmediaservices.com/httpdocs/matomo/vendor/symfony/console/Symfony/Component/Console/Application.php:126
Symfony\Component\Console\Application->run() at /var/www/vhosts/missioncontrol.ozmediaservices.com/httpdocs/matomo/console:32
googleanalyticsimporter:import-ga4-reports [--property="..."] [--dates="..."] [--idsite="..."] [--cvar-count="..."] [--skip-archiving] [--mobile-app] [--timezone="..."] [--extra-custom-dimension="..."]
The text was updated successfully, but these errors were encountered: