Move to different www-dir but cron does not realize

Hi,
(running latest Nextcloud on Debian12)

I migrated some months ago from Owncloud to Nextcloud.
I added a DNS entry for “nextcloud.my.domain” and configured config.php accordingly:

  'trusted_domains' => 
  array (
    0 => 'nextcloud.my.domain',
    1 => 'owncloud',
    2 => 'www.my.domain',
    3 => 'owncloud.my.domain'',
    4 => 'nextcloud'
  ),
  'overwrite.cli.url' => 'https://nextcloud.my.domain',

Worked pretty fine, my users did not even notice any change when using the Owncloud Desktop Client.

Now I wanted to reflect this change in my local directory structure and renamend the local directory on my server from owncloud to nextcloud so it is now /srv/nextcloud.my.domain.
I configured Apache, .htacces files and configs accordingly. Still works absolutely fine. But since then I am facing issues with my Nextcloud cron job. I am getting Emails to www-data:

From: root@my.domain (Cron Daemon)
To: www-data@my.domain
Subject: Cron <www-data@mail> /usr/bin/php -f /srv/owncloud.my.domain/cron.php
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/var/www>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=www-data>
Message-Id: <20231121084502.07FE2E0443@mail.my.domain>
Date: Tue, 21 Nov 2023 09:45:02 +0100 (CET)

Could not open input file: /srv/owncloud.my.domain/cron.php

So the cron job still uses the previous name. Anyone having a clue where I can change this?

Thanks

/KNEBB

In the crontab of the user www-data:

crontab -u www-data -e
2 Likes

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.