The terminal user must have writing access for ./var/cache. If this fails, the BazingaJsTranslationBundle throws a 404 error.
Source: Github issues.
To solve this, you would need to execute the following command:
chown -R www-data:www-data var/cache