Exception thrown while moving datadir

I got this exception while moving the data directory. At the end it says “succeeded,” so I’m not sure how serious this is.

I investigated my new datadir, and I see that it is now populated with the files I’d expect, namely ./data/.ocdata and ./data/ncp/

Procedure
0. Install nextcloud pi on USB 3.0 SSD

  1. In the wizard, add a USB drive for the datadirectory
  2. Later, ssh in, mkdir /media/wb-2tb/3ncdata (wb-2tb is the label, and the directory already exists due to automount).
  3. `chown -R www-data:www-data /media/wb-2tb/3ncdata
  4. Enable maintenance mode via the WebUI (This took a few tries, it asked me to reload the page).
  5. Use nc-datadir to move the data dir to /media/wb-2tb/3ncdata
/ncdata/data/tmp is not present or writable

[ nc-datadir ] (Tue May 14 03:06:09 UTC 2024)
Maintenance mode already enabled
moving data directory from /media/USBdrive/ncdata/data to /media/wb-2tb/3ncdata…
{“reqId”:“1OR6VAHCL0ZNJ8XslWW2”,“level”:2,“time”:“2024-05-14T03:06:13+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“no app in context”,“method”:“”,“url”:“–”,“message”:“Temporary directory /media/USBdrive/ncdata/data/tmp is not present or writable”,“userAgent”:“–”,“version”:“28.0.5.1”,“data”:}
Nextcloud is in maintenance mode, no apps are loaded.
Commands provided by apps are unavailable.
Your data directory is invalid.
Ensure there is a file called “.ocdata” in the root of the data directory.

Cannot create “data” directory.
This can usually be fixed by giving the web server write access to the root directory. See Introduction — Nextcloud latest Administration Manual latest documentation

An unhandled exception has been thrown:
Exception: Environment not properly prepared. in /var/www/nextcloud/lib/private/Console/Application.php:167
Stack trace:
#0 /var/www/nextcloud/console.php(99): OC\Console\Application->loadCommands()
#1 /var/www/nextcloud/occ(11): require_once(‘…’)
#2 {main}
Nextcloud is in maintenance mode, no apps are loaded.
Commands provided by apps are unavailable.
System config value logfile set to string /media/wb-2tb/3ncdata/data/nextcloud.log
Nextcloud is in maintenance mode, no apps are loaded.
Commands provided by apps are unavailable.
System config value tempdirectory set to string /media/wb-2tb/3ncdata/data/tmp
Installing template ‘php/opcache.ini.sh’…
Maintenance mode already enabled
Installing template ‘ncp-metrics.cfg.sh’…
The NC data directory has been moved successfully.