Did you check the mark and home switches under the playfield? I had similar issues with my left cannon and the tab on the home switch was cracked so it did not register every time.
Would be odd for both sides to have a broken switch, but maybe a bad wire since they share a column in the switch matrix.
Good luck.