The directory public://xmlsitemap was not found or is not writable by the server
I found the file_public_path value from the /admin/config/media/file-system page. It was set to sites/default/files, relative to the installation path. 

I checked permissions and noticed some writting permissions were missing (the directory was already created). I sudo chmod a+w xmlsitemap/ and that solved the issue.