Cannot create or write into data directory (NFS mounted)

I ran into this https://stackoverflow.com/questions/50707811/php-is-writable-false-for-nfs-folder-although-files-can-be-written that discusses a PHP 7.x bug for wrapper is_writable() returning a false on NFS filesystems.

The solution was to just comment out is_writable() routines in lib/legacy/OC_Util.php and lib/Console/Application.php routines. Also would need to include lib/private/Setup.php. The bug on is_writable must still be prevalent in PHP 8.2. Also saw this as well: Write errors for nfs mount

The NC version installed must be the latest – version 27. Setup doesn’t reveal which version is installed.