I have installed Magento 2.2.6 in Google cloud VM. It is a fresh install and when I try to save a simple product, I get the following error:
"Unable to save Stock Item"
My exception log shows the following error:
/var/www/html/app/code/Magento/CatalogInventory/Model/Stock/StockItemRepository.php:183,
I'm stuck in this error and not sure about the solution: I to tried decompile, upgrade, cache clean, cache flush, static deploymenI'mbut I'm unable to solve this issue.
I applied chmod 777 to the /var/www/html/app/cod
e folder but unable to rectify the error.