Failure is one of the best ways to learn, especially if you learn how to fix the failures.
One day, you'll find people that you like to work with and want to see you develop your potential. It can take a while, but is very rewarding when you finally find that. Your grocery job wasn't giving you that, so it wasn't the right place for you. Sometimes a kick in the pants can be a kick in the right direction.