As mentioned in Discord, my best suggestions are:
- Wipe the Linux server clean.
- See about using a different service provider.
- Also, does the bot run properly from your own PC?
These errors appear to be related to the configuration of the OS and we cannot provide support at the OS level. It seems that there have been issues with the configuration of Java (not PhantomBot), permissions and now a broken pipe could indicate a network or process level issue within your OS. PhantomBot uses the library routines provided by Java and we cannot dig into that code to troubleshoot. A developer has taken your bot code, minus the botlogin.txt, and been able to execute PhantomBot without issue which does also seem to point to an OS level issue.
As a side note, a broken pipe in Java indicates:
It is caused by something causing the connection to close. (It is not your application that closed the connection: that would have resulted in a different exception.) It is not possible to recover the connection. You need to open a new one.
So, something on your server/providers network is probably closing the connection, like it says, it isn’t the application that closed it.