I have installed a Terraria server on my Raspberry Pi (Version B Revision 2) yesterday. I followed this tutorial on Reddit.
I used the latest version of Raspbian provided by NOOBS:
- I just installed mono-complete instead of just the runtime
- I also skipped the PPA part cause mine was working fine without it
- And instead of using TDSM (which is outdated, for Terraria 1.1) I used TShock (for Terraria 1.2)
- I copied a pre-created Large World to my Pi via SSH, the world was about 50MB
- I ran the server with screen and then "mono TerrariaServer.exe"
And I left it on for about longer than 12 hours (not really precise I know). I was the whole day gone, didn't SSH into it and nobody logged in on the server (I was just testing for crashes, nothing much).
So I came home and SSH'ed on my Pi. I could log in, and then the problems came. I couldn't execute any command not screen to reopen my session and couldn't even reboot or shutdown it without using the unclean way.
I got this when typing a command:
bash: fork: cannot allocate memory
How can I prevent this to happen? Or do anyone of you know solutions or alternatives?