Perhaps you've set a really really difficult standard for "success".
"Success" does not always mean "perfection". 你 didn't give any details, so nobody can really help too much, but just keep that in mind. True success is putting all 你 have toward a specific goal. 你 don't always have to "accomplish" this goal to be successful.
Also, "luck" is a figment of your imagination. There is no such thing as good 或者 bad luck. It is a matter of probability. If your accomplishments are based on circumstances beyond your control, there is no reason whatsoever to place any blame on yourself. If it is within your control, just try harder 下一个 time. There's no point in holding a grudge against yourself. There's definitely no point in blaming luck.