Well, I do believe life can get lonely, as you stated.
I mean, you do have a job, and if you go to the gym, it's probably to stay healthy? Fit? Somewhere around those lines?
Friends and friendships/relationships are kinda just gonna come and go, and I guess if you do want to have good friends, you do have to constantly keep in touch with each other or make the "relationship" between you work, in some way, and if whatever I say seems stupid in some way... I'll edit after I get some sleep lol.
And sure your life could probably see some positive alternatives, and other stuff, but I mean, don't be so hard on yourself, and It seems, everyone here tries to help each other, either by genuily caring, or making it into a clown fiesta, which I mean, it can help in some way? LOL