While migrating a site we carry forward as much of the source site
configuration as possible. In the case of your original site, there
were the following lines present in the configuration file.
define(‘FS_METHOD’, ‘direct’)
define(‘FS_CHMOD_DIR’, 705)
define(‘FS_CHMOD_FILE’, 604)
These lines caused the file permissions of the system to become
incompatible with your new host. This led to the errors you saw. If
you can migrate the site again, we can assist you in removing these
lines.