Trouble Shooting

This is a collection of quick fixes to help you trouble shoot common issues in your development environment.

No Space Left on Device

Sometimes yarn cache runs wild and pollutes the disc space in your VM. It might also be the case that due to a high error rate the logs run full. To clean that up, use the following two commands inside of your VM:

$ rm -r ~/.cache/yarn/ -f
$ rm /var/log/frontastic/*.log /var/log/frontastic/*/*.log -f

Symfony Does Not Pick Up My Changes

In some cases, Symfony does not pick up changes (e.g. when you created a new bundle). Firstly, clear your Symfony cache the standard way:

$ bin/console cache:clear

If that does not yield the desired change, you can try force deleting the cache on disk:

$ rm -r /var/cache/frontastic/<project>/dev/*

Here <project> is the directory name of the project you are working with.

If the mood takes you, you can also clear all caches with a single command at once:

$ rm -r /var/cache/frontastic/*/*/*

Please note that if you delete some of the directories on the way of this path, you might run into trouble that these directories are missing afterwards. ant prepare will fix this for you.

High Load when Provisioning under Windows

While provisioning, yarn will install node packages and its dependencies. Node packages consist of many small files. Every file has to be inspected by Windows Defender for malware and indexed by the Windows Search Index. This puts a high load on the system and is not useful for node packages.

You can exclude the project directory from Windows Defender and Windows Search Index to get better performance.

Mac Troubleshooting

Broken Virtualbox 6.0.8 Installer

Problem: With previous installs on the system, the 6.0.8 Installer frequently crashes (It'll be fixed in 6.0.10).

Solution: 1) Uninstall Virtualbox and Supportfiles. You can use the uninstaller script that comes with the 6.0.8 dmg or the one provided by Homebrew. Beware: in the prompt you need to write "Yes" and not "yes" or just "y" for this to work. 2) Disable the Mac Gatekeeper

$ sudo spctl --master-disable

3) Open the Security & Privacy System Preferences (if the program was open already, hold Option and Right-Click the System Preferences in your Dock and Force Quit it and then open it again) and select "Allow apps downloaded from: Anywhere" (and click "Allow" in case the prompt pops up). 4) Install VirtualBox as usual either via the dmg or brew cask install virtualbox