We find out it was a problem with the config.
We needed to keep define('AUTOMATIC_UPDATER_DISABLED', true);
and we commented define( 'DISALLOW_FILE_MODS', true );
.But DISALLOW_FILE_MODS need to be set as false, not just commented otherwise default value is true i guess.