Can't create or write into the data directory - new install

I am trying to install Nextcloud to a directory on a mounted drive at /media/mickey/drive2/nextcloud/data. Using the GUI or command line install, I keep getting the error message “Can’t create or write into the data directory.” I have read a number of posts here on the forum but solutions noted have not worked.

Permissions on my directories are as follows:

mickey@dbserver:/media/mickey/drive2$ ls -l
total 20
drwx------ 2 root root 16384 Aug 23 11:33 lost+found
drwxr-xr-x 3 www-data www-data 4096 Aug 23 14:45 nextcloud

mickey@dbserver:/var/www$ ls -l
total 12
drwxr-xr-x 2 root root 4096 Aug 19 13:19 html
drwxr-x— 5 www-data www-data 4096 Aug 19 17:46 mbdlocal
drwxr-xr-x 14 www-data www-data 4096 Aug 23 12:11 nextcloud

The mount command indicates:
/dev/sdb1 on /media/mickey/drive2 type ext4 (rw,nosuid,nodev,relatime,uhelper=udisks2)

During a previous install, since removed, I was able to install using /var/www/nextcloud/data. When I checked the permissions, they were the same. I do need to have the data on this larger mounted drive but am not certain what to check next.

Any assistance would be appreciated.

Nextcloud version (eg, 18.0.2): 19.0.1
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.41
PHP version (eg, 7.1): 7.4.3

so its an old thread but i hasd the same issue so i want to share one possible misstake and a fix.

I umounted the external drive using umount /dev,/sdd3 then remounted with mount.

Then i got anorher error with database so i had to review the sql entrys.