script or css file failed to load when using assetic

This problem happens when apache or nginx lacks the write permission to dump files to the web directory.