Nc-Datadir fails but shows false success notice

I’m on nextcloudpi 15.0.4, and when I try to use nc-datadir to move my data to a USB drive it shows a success in the menu but doesn’t actually move anything, with the data still stored on my SD card. I’m including the output which appears to be correct, but as stated doesn’t actually change anything on the USB drive.

[ nc-datadir ] (Tue Dec 27 06:49:01 GMT 2022)
Maintenance mode enabled
moving data directory from /media/myCloudDrive/ncdata/data to /media/USBdrive/ncdata…
Nextcloud is in maintenance mode, hence the database isn’t accessible.
Cannot perform any command except ā€˜maintenance:mode --off’

System config value logfile set to string /media/USBdrive/ncdata/data/nextcloud.log
Nextcloud is in maintenance mode, hence the database isn’t accessible.
Cannot perform any command except ā€˜maintenance:mode --off’

System config value tempdirectory set to string /media/USBdrive/ncdata/data/tmp
Maintenance mode disabled
The NC data directory has been moved successfully.

In spite of this, even after moving the directory, afterwords this still shows on the dashboard:

‣ You should use nc-datadir to move your files to your plugged in USB drive

Is your drive mounted correctly?
If you add a file (with another computer) to your HDD can you see it in your raspberry?

Hi, that’s really strange behavior :thinking:.
Can you perform the following command and retry?

sudo bash -c 'systemctl stop php8.1-fpm && source  /usr/local/etc/library.sh && clear_opcache && systemctl start php8.1-fpm'

Unfortunately, I tried but I’m still getting the same issue.

I think so, but I’m admittedly not great at navigating the terminal. It shows up when I enter ā€˜mount’, at least.

Update: changing the SD card I was putting the image on seems to have corrected the problem, the most recent attempt succeeded. So It could have been a hardware problem on my end.