I put all permissions on all folders:
chmod 777 /var/www/html/src/addons
chmod 777 /var/www/html/js
chmod 777 /var/www/html/styles
chmod 777 /var/www/html/src/XF/Repository/AddOn.php
Manually covers and they are all allowed. But I keep getting that message.