step 1
sudo systemctl restart elasticsearch
php bin/magento indexer:reindex
php bin/magento cache:flush
step 2
check the product page
if error use the this command line
rm -rf var/cache/* generated/code/* var/page_cache/* var/view_preprocessed/*
chown -R www-data generated/ var/ pub/
chmod -R 775 generated/ var/