roflmuffin / CounterStrikeSharp

CounterStrikeSharp allows you to write server plugins in C# for Counter-Strike 2/Source2/CS2
https://docs.cssharp.dev
Other
778 stars 125 forks source link

Stuck on startup #443

Open echosssss opened 5 months ago

echosssss commented 5 months ago

Hello everyone, I wanted to open a CS2 server and develop plugins, for this reason, I decided to use CSS but I faced an error I couldn't understand.

I installed Metamod and CSS with Runtime according to your docs, and then CSS successfully started without any plugin but when I added HelloWorldPlugin to the plugins folder, I was stuck on startup :/ You can see below where I am stuck, I waited for hours and it was still the same

image

HelloWorldPlugin.cs

using CounterStrikeSharp.API.Core;

namespace HelloWorldPlugin;
public class HelloWorldPlugin : BasePlugin
{
    public override string ModuleName => "Hello World Plugin";

    public override string ModuleVersion => "0.0.1";

    public override void Load(bool hotReload)
    {
        Console.WriteLine("Hello World!");
    }
}

image

My File Tree on The Server

image

My Server

Ubuntu 22.04.4 on Oracle Cloud Ampere VM.Standard.A1.Flex

image

start.sh

/home/ubuntu/Steam/steamapps/common/cs2/game/bin/linuxsteamrt64/cs2 -dedicated -secure -usercon -maxplayers 10 -port 31313 +hostname "Game Server" +game_alias competitive +map de_inferno +sv_setsteamaccount token +exec steamapps/common/cs2/game/csgo/cfg/server.cfg

I don't know what I did wrong and what I missed, thanks for your help ❤️

roflmuffin commented 5 months ago

There doesn't appear to be any CS# related errors in the log you posted. Does the server load successfully without the HelloWorldPlugin copied over?

echosssss commented 5 months ago

Yes, it passes where I am stuck without any plugin and successfully starts the server:

image

And I can see it with meta list command:

image

Other than this, I tried two different retake plugins written for CS# before opening this issue. The result is the same, I am stuck after "Admin command overrides file not found. Skipping admin command overrides load." log. Therefore I thought it might be about CS#. I faced issues like this because of mostly ARM arch but in this situation, there may be many reasons because I don't take any errors.

Thanks for your help.

elgato69 commented 4 months ago

This is related to #180 where running CSS under any sort of emulation layer on AArch64 hosts results in this hanging behavior.

From my observations the following causes the issue

Doing any of these causes a server hang leading to the watchdog stopping the server

I have further tested under the following environments

My system is also Ubuntu 22.04 on Oracle Ampere A1. sys

It is a very frustrating issue since the server works perfectly fine under the emulation layer with only Metamod, and while CSS loads and appears in the output of meta list trying to interact with it in any way just hard crashes. I have been testing with every new CSS version and FEX update with no joy so far. I would really like to see this issue fixed as it has been an ongoing problem stopping me from hosting my CS2 server.