
Logs :
Magento\Framework\Exception\FileSystemException: The path ".:///var/www/gibertjoseph/var/www/gibertjoseph/" is not writable in /var/www/gibertjoseph/vendor/magento/framework/Filesystem/Directory/Write.php:54
Stack trace:
The error message says very clear that your directory is not writable.
Make sure your server folders belongs to your user and it has privileges to write in the folder.
This is not a Magento 2 issue but your local machine issue.
Please close this issue and find on google how to fix that. Thanks.
The main magento folder has not to be writeable for the execution user.
It is not a good practice, and also your wizard setup does not ask for it.
A good solution could be to write the file in pub/media, and to add a rewrite rule in your htaccess file.
It's a bit funny and unexpected that robots.txt is now editable from configuration page yet underneath it is still stored on disk in the project root folder. I also wonder, what would happen if you attempt to have different contents inside the robots.txt for different StoreViews? (see store switcher on the screenshot above)
@zkliouel Unfortunately, I could not reproduce the issue on fresh install Magento 2.1.7 via composer as you described it. Please can you recheck your problem on the latest version of Magento 2?
According to contributor guide, tickets without response for two weeks should be closed.
If this issue still reproducible please feel free to create the new one: format new issue according to the Issue reporting guidelines: with steps to reproduce, actual result and expected result and specify Magento version.
Maybe you are doing something wrong in writing custom instructions. You can check this guide that can help you to understand in a more better way: Configure Magento 2 Robots.txt
Hope it will help you and also others.
Most helpful comment
The main magento folder has not to be writeable for the execution user.
It is not a good practice, and also your wizard setup does not ask for it.
A good solution could be to write the file in pub/media, and to add a rewrite rule in your htaccess file.