Attachment could not be found in the repository

I only get the message
“Attachment could not be found in the repository”
when the queue is processed by the cronjob. Manually is no problem and I can process the queue including attachment via the ‘Process’ button . The cronjob does work fine when there is no attachment attached.

To run the cronjob I use: */10 * * * * -pprocessqueue

The cronjob executes the following script:
/opt/plesk/php/8.2/bin/php /var/www/vhosts/vlc-auryn.co.uk/mailing.vlc-auryn.co.uk/admin/index.php -c /var/www/vhosts/vlc-auryn.co.uk/mailing.vlc-auryn.co.uk/config/config.php $*

Can anyone help me further?

OK, problem solved.
I defined the attachment folder in the config file.

But I’m sure I never did this in a previous installation and it worked there.