Custom field not showing for Contacts in suitecrm 8.6.2

I’ve installed SuiteCRM 8.6.2 on Linux and added few custom fields to the Contacts module through Studio. I then updated the Layouts (Edit, Details, and Create) to include these fields and clicked 'Save and Deploy '. I then wen to Repair and ran the Repair buttons.
Problem : The fields are not showing in any Layout.
I’ve cleared the cache and tried various solutions from the community, but nothing has worked.
Please help.

Hi, welcome to the Community! :tada:

I would try looking at the logs at the time of the “save and deploy”, and at the time of the “quick repair and rebuild”. This way you can check if these operations ran into some problem.

Is this a new installation? The most common problems are ownership/permission problems with files in Linux.

You can set these permissions from the root folder of your suitecrm:

find . -type d -not -perm 2755 -exec chmod 2755 {} \;
find . -type f -not -perm 0644 -exec chmod 0644 {} \;
find . ! -user www-data -exec chown www-data:www-data {} \;
chmod +x bin/console

You need to replace www-data with your user & owner.

You can check config.php file under public/legacy/

 'default_permissions' => 
  array (
    'dir_mode' => '1533',
    'file_mode' => '436',
    'user' => 'www-data',
    'group' => 'www-data',
  ),