Tl;dr: moved countries for my first full time job in hope of a better paycheck and interesting software dev work. Work is nearly nonexistent (read: every day is 1.5h work and 6.5h just sitting there), and mostly pure routine, but have to do certain hours per month. Get paid a ton in terms of home country but in here it isn't really a lot. Forced to go to work in a suit and not allowed to do own stuff at work including music while working. Doubting whether it's a good idea to return back for a lesser pay but lesser expenses and more comfortable work and life balance. If so, how to do it in a way that would keep a return path just in case.
end of tl;dr, warning, long rant ahead
This might be a long one but I'm totally lost at what should I do in the situation.
Roughly 7 months ago I moved to Japan for a software development position at a not really big company. They were and are still very helpful with the relocation and all things related including paperwork, handling monthly bills and so on.
It is worth pointing out that this is my first "proper" full-time job with going to an office and all the usual things. Previously I'd work remote most of the time, and the expenses of living in Russia allowed me to sometimes rest for a month or two after finishing a project.
However, it was then that it turned out I will not be working at that actual company - instead, the employees are being "re-sold" to other companies. The contract with the partner company (the one I actually have to go work at) involves a minimum of 150 hours per month of which I was not informed during the interview.
The final interview involved the management of the office I will be working at. I pulled off a presentation showing my previous personal and work projects, everyone was sounding amused ("ooh, he understands assembly!") and even applauded at the end of it. During the self-introduction meeting with the management the team leader introduced me by the words of "genius programmer" which made me feel really out of place.
When actual work started, not counting the fact I had to just sit through 2 days at work while waiting for my PC to arrive, there was pretty much silence. I didn't get tasks assigned and just sat at the desk, went to meetings, just to hit the hour limit. Luckily, soon enough there were tasks coming in and it wasn't too bad. We had code reviews and proper version control and while the code base wasn't perfect, it was bearable enough for the most part, even fun at times when it wasn't about overtime meetings. Pretty much neither me nor my management were getting any complaint about my work. Until one time, when the head of company asked my direct manager about "why does he never overtime?", which they told me not to really care about though.
Overall it wasn't maybe the best work ever, but it was good enough. The documentation was mostly handed off to other people on the team, probably because the team lead understood that I code better than write, and that it was standard practice at my previous positions. I would just leave comments in the code and explain anything if asked to.
But then I was moved to a different project by the management of the company (not the direct employer) due to internal management reasons.
Now, the different project is also at a different office. The previous one was located within an even bigger company by contract, while this one is on the premises of the company renting me from my employer.
At first, I had to sit through 2 days doing nothing yet again. First day my PC didn't come in yet. Second day, it arrived, but nobody knew the password. Contrary to a relatively fresh Optiplex at the previous location, at here it's an old laptop which struggles with Excel and a 10 year old Macbook which struggles a bit less, but still takes 7 minutes to build a project in IntelliJ.
When I went ahead to set up my environment, I was stopped by my new team lead, because apparently there is a white-list of allowed software. So doing my own side things during periods of complete silence is now fully out of question. Also I'm not allowed to bring my own mouse (due to hand health problems) and keyboard.
After that, it all really started building up. The desk being so small I need to bend down to even type, the chair not really giving any support to my back, the usual office equipment problems.
One of the episodes that really set it off for me was when I had a task to reconstruct the build environment for a project. The team lead, trying to be helpful, called the previous person in charge for the project but stated they will come about 1.5h after the workday ends. Well, I don't overtime usually, so I stayed until they come, and all they did was "uhhhh well I had this error but I don't remember how I fixed it" and then do various small talk with employees still in office while I fought the build scripts. Needless to say I left work at about 9PM with no result, came in next morning and in 10 minutes it was all fixed and working properly (someone changed a library name but left the old one in the error message -- just to show a glimpse of how horrendous the code base is).
The code is just a spaghetti mess with tests being a list of things to manually check with the debugger or cURL written in Excel. Throughout the last month I've probably spent more time "programming" in Word and Excel than actual IDEs.
In that background I've started to actually miss my previous positions. Yes, my paycheck was smaller, but so were the expenses. Plus I could use my headphones while working, work from home if I wanted to, or come at 12PM and leave at 11PM if I felt like so, as long as the work is done right. I could get some time for my own projects and research without sacrificing sleep or vice versa.
Not like the tiny room I was put into (14 sq.m. including bathroom, I was presented with other variants before moving, but all my choices were dismissed as "too old", "too expensive" or "poorly located") allows for much personal projects and research anyway.
My direct employer is desperately trying to keep me at the position -- or at least trying to make it look so -- trying to raise my pay and saying they're searching for more interesting work. But with all the above and combined with the stress of being far from friends and family, up to the point it's taking a toll on my health, both mental and physical, I'm totally not sure if I should even try to force myself into staying here anymore.
What would be the best idea to do in the case? Try negotiating with the employer for something? Flee back home ASAP and cut my losses? If so, probably doing it in a way which will leave a return path of some sort just in case?
I'm totally lost at what to do so I'd like to hear your opinions on what could probably the best thing to do. While typing that out I've been declining more and more to leaving, but assuming that the problem is in me and not in the work, maybe due to the fact of it being my first full-time, I would like to find the most professional way of escaping the situation I half-deliberately buried myself into.