Croned import-log.py and core:archive interfering with each other?

before the update to 5.1.2 and before implementing the cron for core:archiving the import-log.py script worked for the inital import of logs

now for the first day it should run by cron I get an Internal Server Error 500 - permission denied after to mayn login atempts

in my apache-error log I find lots of these:

[Fri Sep 27 07:30:01.552284 2024] [authz_core:error] [pid 1240091:tid 1240321] [client ip] AH01630: client denied by server configuration: /path/htdocs-ssl/config/config.ini.php
[Fri Sep 27 07:30:01.601949 2024] [core:crit] [pid 1240091:tid 1240325] (13)Permission denied: [client ip] AH00529: /path/htdocs-ssl/tmp/cache/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that ‘example.com/htdocs-ssl/tmp/cache/’ is executable
[Fri Sep 27 07:30:01.652355 2024] [authz_core:error] [pid 1240091:tid 1240320] [client ip] AH01630: client denied by server configuration: /path/htdocs-ssl/tmp/

I can‘t get my head around what to do:

main matomo is running in a different user then the import-log.py script, because the logs are in a different namespace
so the import-log.py has to act as external and I don‘t get what permission to set, if any

Thank you for pointing in the right direction before hand.