Skip to content
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

Fatal error: the configuration file/config/config.ini.php could not be read. #355

Open
inetactief opened this issue Jun 23, 2023 · 2 comments

Comments

@inetactief
Copy link

inetactief commented Jun 23, 2023

Hello,

I use the command on Debian 10 running icecast2:

python3 /download/matomo-log-analytics-4.x-dev/import_logs.py --show-progress --url=https://stats.domein.nu --idsite=4 --recorders=8 --enable-http-errors --log-format-name=icecast2 --strip-query-string /var/log/icecast/accessi_ssl.log

But i get
Fatal error: the configuration file/config/config.ini.php could not be read. Please check permission. This file must be readable by the user running this script to get the authentication token

Can not find config.ini.php and try to install php7.4 but i can not fix the error.

Best regards,
Michel

@inetactief
Copy link
Author

Found the solution, the Matoma is extern and need to add the API

--token-auth=xxxxxxx

@inetactief
Copy link
Author

Import works but i like to use a cronjob for icecast so it go automatic to send data from Icecast to Matomo.
So Icecast have a option for log rotation example:
10000
1
It only creates a file dump when the file size is reached. Does anyone have a solution for this. Would be nice if the have time date dump?
The best thing is that it is also quite real-time stats, update every 5 minutes? But now i must wait for 750 seconden to import.
But no duplicate records when you do the same file again in 30 minutes :-)

When I set the file size of the log to 500kb and I try to update/import it every hour, I have a chance of missing data. If a log rotation is executed at xx:55. Then I only read in the last 5 minutes.

Does anyone have a solution for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant