Tmp directory permissions after restore of nextcloudpi

Simply open your config.php file, locate the path of your tmp rename it. My issue was that my hard drive actual link is not /media/USBDrive but /media/alphanumericstuff , so I changed that to the secondo one. You can check it by showing the directories in /media