Google.dat analytics file missing, returning to noauth_local_webserver

I have an AWS EC2 machine that runs Google Analytics nightly scripts to load into a database. He worked for several months before this weekend. I have not made any changes to the code.

These are two errors that appear in my logs:

/venv/lib/python3.5/site-packages/oauth2client/_helpers.py:256: UserWarning: cannot access analytics.dat: there is no such file or directory warnings.warn (_MISSING_FILE_MESSAGE.format (file name))

Failed to start the local web server listening on any port 8080 or port 8090. Check the firewall settings and locally running programs that can block or use these ports.

Returning to --noauth_local_webserver and continuing authorization.

It looks like the analytics.dat file is missing, but I checked and the file is in the same folder as the script that calls the GA API. I looked for a watch trying to figure it out, but there are very few resources for the above errors for GA.

Does anyone know what could be here? Any troubleshooting ideas?

+4
source share
1 answer

I'm not sure why this is happening, but I have a list of steps that can help you.

  • check if this problem is caused by the version of the Google Analytics API, google usually depreciates previous versions of its API.
  • , cron EC2, , , .dat. 3. , .dat.

API .dat. , .

0

Source: https://habr.com/ru/post/1676394/


All Articles