Server Deployment on Linux
matte
✭
in Photon Bolt
Hello,
I was trying to run a simple Bolt server on a linux machine, but I coudn't make it work, clients coudn't connect to it. The server doesn't crash or anything, and I don't know where the problem could be.
I compiled it as Linux x86_64 headless.
This is what the server does at the start up:
Any help is appreciated, thanks!
matte
I was trying to run a simple Bolt server on a linux machine, but I coudn't make it work, clients coudn't connect to it. The server doesn't crash or anything, and I don't know where the problem could be.
I compiled it as Linux x86_64 headless.
This is what the server does at the start up:
void Awake()
{
serverPort = BoltRuntimeSettings.instance.debugStartPort;
}
void OnGUI()
{
/* ... */
BoltLauncher.StartServer(new UdpEndPoint(UdpIPv4Address.Any, (ushort)serverPort));
BoltNetwork.LoadScene("Level1");
/* ... */
}
Any help is appreciated, thanks!
matte
0
Answers
-
First, I would make sure the dedicated server works on windows first, before trying linux, assuming that is your dev environment simply because it is easier and you can test locally. Second, I would log the crap out of everything when you first setup your dedicated server and check the logs of the deployment for exceptions after you run it (along with your logs) to make sure it is doing what you expect it to be doing.0
-
Yes, I tried it on Windows first, and it worked flawlessly. This is the log from the server at the start up:
Mono path[0] = '/ServerBolt/lin_server_headless/lin_server_headless_Data/Managed'
Mono path[1] = '/ServerBolt/lin_server_headless/lin_server_headless_Data/Mono'
Mono config path = '/ServerBolt/lin_server_headless/lin_server_headless_Data/Mono/etc'
Forcing GfxDevice: 4
NullGfxDevice: Version: NULL 1.0 [1.0]
Renderer: Null Device
Vendor: Unity Technologies
NullGfxDevice: Version: NULL 1.0 [1.0]
Renderer: Null Device
Vendor: Unity Technologies
Total system RAM: 1024 MiB
Initialize engine version: 5.0.1f1 (5a2e8fe35a68)
AudioManager: Using Unknown: NoSound Driver
Begin MonoManager ReloadAssembly
Platform assembly: /ServerBolt/lin_server_headless/lin_server_headless_Data/Managed/UnityEngine.dll (this message is harmless)
Loading /ServerBolt/lin_server_headless/lin_server_headless_Data/Managed/UnityEngine.dll into Unity Child Domain
Platform assembly: /ServerBolt/lin_server_headless/lin_server_headless_Data/Managed/Assembly-CSharp.dll (this message is harmless)
Loading /ServerBolt/lin_server_headless/lin_server_headless_Data/Managed/Assembly-CSharp.dll into Unity Child Domain
Platform assembly: /ServerBolt/lin_server_headless/lin_server_headless_Data/Managed/UnityEngine.UI.dll (this message is harmless)
Loading /ServerBolt/lin_server_headless/lin_server_headless_Data/Managed/UnityEngine.UI.dll into Unity Child Domain
Platform assembly: /ServerBolt/lin_server_headless/lin_server_headless_Data/Managed/bolt.dll (this message is harmless)
Loading /ServerBolt/lin_server_headless/lin_server_headless_Data/Managed/bolt.dll into Unity Child Domain
Platform assembly: /ServerBolt/lin_server_headless/lin_server_headless_Data/Managed/bolt.user.dll (this message is harmless)
Loading /ServerBolt/lin_server_headless/lin_server_headless_Data/Managed/bolt.user.dll into Unity Child Domain
Platform assembly: /ServerBolt/lin_server_headless/lin_server_headless_Data/Managed/udpkit.common.dll (this message is harmless)
Loading /ServerBolt/lin_server_headless/lin_server_headless_Data/Managed/udpkit.common.dll into Unity Child Domain
Platform assembly: /ServerBolt/lin_server_headless/lin_server_headless_Data/Managed/udpkit.dll (this message is harmless)
Loading /ServerBolt/lin_server_headless/lin_server_headless_Data/Managed/udpkit.dll into Unity Child Domain
Platform assembly: /ServerBolt/lin_server_headless/lin_server_headless_Data/Managed/udpkit_wp8.dll (this message is harmless)
Loading /ServerBolt/lin_server_headless/lin_server_headless_Data/Managed/udpkit_wp8.dll into Unity Child Domain
- Completed reload, in 0.073 seconds
Platform assembly: /ServerBolt/lin_server_headless/lin_server_headless_Data/Managed/System.dll (this message is harmless)
Platform assembly: /ServerBolt/lin_server_headless/lin_server_headless_Data/Managed/System.Core.dll (this message is harmless)
Setting up 1 worker threads for Enlighten.
Thread -> id: 7f556bfff700 -> priority: 1
I don't really know what it's supposed to look like on linux, however I don't see anything strange with this log. Moreover, there are not exception while it runs or I try to connect a client...0