Jay, sorry to weigh in so late on this, I was away from my computer for several days. I have a few comments.
1. You are NOT a failure. You are still maintaining a loss! Plus, like Marie, admitting you have a problem is the first step to recovery. Perhaps by coming clean about this, you have set yourself on the right path.
2. Like Megan said, I would really strongly recommend getting a complete physical and a thyroid test. Sure, maybe you have just gained because you were eating too much. But why not check out the possibility that it may not be your fault? I especially recommend this because you said in your original post that you weren't really eating over 2000 cals, and your rate of gain seemed excessively high compared to your calorie intake. Gaining without eating a lot may be a sign of hypothyroidism, especially if you have any other symptoms that may be related (exhaustion, depression, aches & pains, dry skin, brittle hair, low libido -- thyroids cause all sorts of problems).
3.

I think sometimes that you and I have a lot in common. I'm remembering particularly the thread about lifestyle-based maintenance. We have to live a lifestyle that we are capable of maintaining. For me, that means that I do a lot of things that most losers/maintainers don't do. I eat white rice. I eat white pasta. I eat a LOT of them. I even eat white bread relatively frequently. I have a splurge meal every single week, sometimes two. My dietary breakdown is 60-70% carbs, 15-20% protein, and 10-15% fat, which is significantly different from a lot of folks around here. Unless I happen to be gaining and need to lose, I don't count my calories. Over and over I see people's posts of sticking strictly to a plan, day in, day out, low carbs, only whole grains, lots of lean protein, snack on string cheese and yogurt, don't eat white pasta, etc. etc. For many people, that is what works. It doesn't work for me. When you say you manage to stick to a plan for a couple weeks, then fall off track, I wonder if that plan is really the right plan for you. IMO, the "right" plan is the one that you can stick to. Just because maybe you haven't found that plan yet doesn't mean it isn't out there!
Anyway, I don't know if that helped at all. I, for one, do not consider you a failure.