I don't expect that I can fix your problem, but I would suggest that you are not the first person to find themselves in such a position. We have all come across inexplicable errors at some time or another. I recently discovered that an app I had written some ten years ago was not working properly. That case involved downloaded data using a private library, and when I had updated my library a couple of years ago I had forgotten to adapt this old app to the changes. The app still appeared to work, but was using the wrong data.
But to be more constructive, have you tried any diagnostic tests at all? For instance, do you know whether the upload service fails to start the upload, or maybe the upload is started but fails to complete, or does the service itself fail to start? Or perhaps the upload runs but it is the data that is at fault, as it was in my case.