Pryaxis / TShock

☕️⚡️TShock provides Terraria servers with server-side characters, anti-cheat, and community management tools.
GNU General Public License v3.0
2.41k stars 377 forks source link

Mac OSX 10.10.3 Server Startup Issue. #898

Closed Mirageofmage closed 9 years ago

Mirageofmage commented 9 years ago

I recently updated to OS X 10.10.3, and when I go to start the terraria server, this pops up after initialization

TShock 4.2.10.0 (Please take our survey: http://bit.ly/ShockSurvey) now running. AutoSave Enabled Backups Disabled Welcome to TShock for Terraria. Initialization complete. Please take a short survey about TShock: http://bit.ly/ShockSurvey You can win free stickers if you take it. [Server API] Info Plugin TShock v4.2.10.0 (by The Nyx Team) initiated. [Server API] Error Server crashed due to an unhandled exception: System.Net.Sockets.SocketException: Too many open files at System.Net.Sockets.Socket..ctor (AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType) [0x00000] in :0 at System.Net.Sockets.TcpClient.Init (AddressFamily family) [0x00000] in :0 at System.Net.Sockets.TcpClient..ctor () [0x00000] in :0 at Terraria.ServerSock..ctor () [0x00000] in :0 at Terraria.Netplay.Init () [0x00000] in :0 at Terraria.Main.Initialize () [0x00000] in :0 at Terraria.Main.DedServ () [0x00000] in :0 at Terraria.ProgramServer.Main (System.String[] args) [0x00000] in :0

I'm running the server under mono

hakusaro commented 9 years ago

Prior to starting the server, run $ sudo launchctl limit maxfiles 1000000 1000000 to raise the OS file descriptor limit. You should be fine after that for that login session.

hakusaro commented 9 years ago

Also, for future reference, you should come into #support in Slack or post on the forums for issues like this; we prefer to keep Github issues relegated to bug reports only.