Error for setup crontab automatically archive the reports

Hi

I am trying to setup a crontab to automatically archive the reports using the steps here:
https://matomo.org/docs/setup-auto-archiving/

but I am getting an error:
[InvalidArgumentException] The directory […] is not writable

Any ideas what I can do to fix this?

Thank you!