-
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
Impossible to relance import #274
Comments
Hi @pdechanoz . Thank you for taking the time to create an issue. Thank you for providing the log data. I'm still not quite sure which exact issue you are trying to address. Could you please provide a bit more context? @AltamashShaikh can you tell what's going wrong? |
@pdechanoz Can you run a new import and enable verbose logging ? |
I have relaunched with a new idiSite : logfile (gaimportlog.6..log total = 2914 lines ) line 2813 to end : WARNING [2022-09-19 04:18:12] 3740682 Encountered unknown browser: YaBrowser. A new mapping should be added. |
And now when i trie to relaunch with command line: php ./console googleanalyticsimporter:import-reports --idsite=6 |
The file log |
@pdechanoz Do you have a google workspace account, or you have set the OAuth bt creating an |
I haven't a google workspace account. I have created the APP with your tutorial. |
@pdechanoz Is it published and when did you create a APP more that 7 days ago ? |
This APP is not publish, and it's created 14 september |
@pdechanoz So for external non published APP the authorisation expires in 7 days and you need to reauthorise again after 7 days, to ease this pain we have updated the guide which helps in publishing the external apps and published external app do not require authentication every 7 days and from the log file we can say its a authentication problem or permission issue can you also check step 6 and 7 are completed as mention in the guide ? |
Just a thing : My APP is in production (not in test) but, not verification Validation status |
@pdechanoz And |
@pdechanoz Thanks for all the info..last thing can you reauthorise the APP and re run a import and check the log file ? |
It's done. No dates specified with --dates, importing data from when the GA site was created to today: 2014-02-05 |
In fact, when i relance a NEW import it's work a few minutes... But i can't relance an existant import |
@pdechanoz The log file still shows
|
The json file [GoogleAnalyticsImporter] : (v4.3.2) |
I have created a new APP on Google cloud, and started a new import, but i have always the same problem. |
@samjf do you possibly have any insights here? |
In resume :
I just want to be able to restart the current import |
import restarted automatically : INFO [2022-09-20 04:11:28] 689872 Total API requests: 3 |
the import is stopped again, without problem Oauth WARNING [2022-09-20 05:37:14] 723239 Encountered unknown browser: YaBrowser. A new mapping should be added. |
... but i can restart it |
2 days ago the import stop "Daily rate limit reached, try again tomorrow..." It's normal. But since 2 days i have always this message. The import don't relaunch The log : Archive.zip What can I do ? |
This message is expected over a 24 hour period until the next day. Since it is being resumed almost each hour according to the logs, then you are getting a lot of daily limit reached messages. It is clear if you run Potentially for the error |
I deleted the access in google.com/security, I re-authenticated myself, and I relaunched the application, but the problem is the same : INFO [2022-09-23 04:10:46] 3796436 Using existing custom variable slots. |
@pdechanoz - Refer this #243 to better understand why are you hitting the limits |
@pdechanoz I believe you have in fact reached your Google quota for the view potentially. Google has a project quota of Just realised your link explains this @AltamashShaikh 🤦 Haha |
Since I started the import on Sept 20, it goes until June 14 and restarts the import from the day before, and so on : INFO [2022-09-27 08:01:03] 3053363 Importing data for GA View 81857407 for date 2022-06-19... |
@pdechanoz Does applying fixes of this branch #281 fixes the issue? |
Excuse me, but what should I do to apply the patch? |
Hey @pdechanoz you have to update ‘ Commands/ImportReports.php’ the file with this file |
@pdechanoz if you are importing any GA4 property please update this Commands/ImportGA4Reports.php file with |
it works, but it jumped on 2022/06/13 INFO [2022-09-28 07:54:11] 4083348 Importing data for GA View 81857407 for date 2022-06-16... |
This issue has been mentioned on Matomo forums. There might be relevant details there: https://forum.matomo.org/t/google-analytics-import-process-gets-killed-after-1-day/47546/5 |
Impossible to relance import : (Entry #0) is finished, moving on.
What can I do ?
Logfile :
Running archiving for newly imported data...
INFO [2022-09-17 00:06:18] 2051792 ---------------------------
INFO [2022-09-17 00:06:18] 2051792 INIT
INFO [2022-09-17 00:06:18] 2051792 Running Matomo 4.11.0 as Super User
INFO [2022-09-17 00:06:18] 2051792 ---------------------------
INFO [2022-09-17 00:06:18] 2051792 NOTES
INFO [2022-09-17 00:06:18] 2051792 - Async process archiving supported, using CliMulti.
INFO [2022-09-17 00:06:18] 2051792 - Reports for today will be processed at most every 900 seconds. You can change this value in Matomo UI > Settings > General Settings.
INFO [2022-09-17 00:06:18] 2051792 - Archiving was last executed without error 59s ago.
INFO [2022-09-17 00:06:18] 2051792 - Will process 1 websites (--force-idsites)
INFO [2022-09-17 00:06:18] 2051792 - Will process specified sites: 5
INFO [2022-09-17 00:06:18] 2051792 - Will only process the following periods: week, month, year (--force-periods)
INFO [2022-09-17 00:06:18] 2051792 ---------------------------
INFO [2022-09-17 00:06:18] 2051792 START
INFO [2022-09-17 00:06:18] 2051792 Starting Matomo reports archiving...
INFO [2022-09-17 00:06:18] 2051792 Start processing archives for site 5.
INFO [2022-09-17 00:06:18] 2051792 Will invalidate archived reports for today in site ID = 5's timezone (2022-09-17 00:00:00).
INFO [2022-09-17 00:06:18] 2051792 Will invalidate archived reports for yesterday in site ID = 5's timezone (2022-09-16 00:00:00).
INFO [2022-09-17 00:06:20] 2051792 Archived website id 5, period = week, date = 2022-09-12, segment = '', 72080 visits found. Time elapsed: 1.649s
INFO [2022-09-17 00:06:21] 2051792 Archived website id 5, period = month, date = 2022-09-01, segment = '', 201691 visits found. Time elapsed: 1.713s
INFO [2022-09-17 00:06:24] 2051792 Archived website id 5, period = year, date = 2022-01-01, segment = '', 1915445 visits found. Time elapsed: 2.568s
INFO [2022-09-17 00:06:24] 2051792 Finished archiving for site 5, 3 API requests, Time elapsed: 6.128s [1 / 1 done]
INFO [2022-09-17 00:06:24] 2051792 Done archiving!
INFO [2022-09-17 00:06:24] 2051792 ---------------------------
INFO [2022-09-17 00:06:24] 2051792 SUMMARY
INFO [2022-09-17 00:06:24] 2051792 Processed 3 archives.
INFO [2022-09-17 00:06:24] 2051792 Total API requests: 3
INFO [2022-09-17 00:06:24] 2051792 done: 3 req, 6131 ms, no error
INFO [2022-09-17 00:06:24] 2051792 Time elapsed: 6.131s
INFO [2022-09-17 00:06:24] 2051792 ---------------------------
INFO [2022-09-17 00:06:24] 2051792 SCHEDULED TASKS
INFO [2022-09-17 00:06:24] 2051792 Scheduled tasks are disabled with --disable-scheduled-tasks
Done in Time elapsed: 65.046s. [40 API requests made to GA]
Error: error or warning logs detected, exit 1
Resuming import into existing site 5.
INFO [2022-09-17 01:05:16] 2073216 Using existing custom variable slots.
Importing the following date ranges in order: 2021-06-01,2022-09-16
(Entry #0) is finished, moving on.
Done in Time elapsed: 0.527s. [0 API requests made to GA]
Resuming import into existing site 5.
INFO [2022-09-17 02:05:17] 2097175 Using existing custom variable slots.
Importing the following date ranges in order: 2021-06-01,2022-09-16
(Entry #0) is finished, moving on.
Done in Time elapsed: 0.495s. [0 API requests made to GA]
Resuming import into existing site 5.
The text was updated successfully, but these errors were encountered: