I finally was able to solve the problem. I kept trying older versions of Firefox and eventually 58.0.2 worked. I can't seem to find a list of compatible versions with geckodriver on their github page.