If you want to find a file and use the locate command you may get the error

Locate error: database too small

This likely means the database is 0 bytes because locate hasn't been run yet. You can run it manually, but it should be run as user nobody. To do this, run

$ su -m nobody /usr/libexec/locate.updatedb