-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: U #26
Comments
The CS2 server isn’t fully downloading from SteamCMD. I’m pretty sure that error How big is the HDD and how much free space do you have? You want to have at least a 60Gb free space before installing. |
Oh! It was written 40GB, so I gave it 42GB. Let me try with a bigger disk, then. Brb. |
Ok. I managed to install it and access it through the game client, but RCON is not working. If I RCON from the local network i get: "Unable to connect to the remote server" Is there any port that I should open? ufw status
Also, I saw that some options are not passing through. Max players should have been 32, and it's 64 in reality. Adding the log here: |
Thanks for picking up the 40GB, it was left over from the old CS:GO instructions. I have updated it. Thanks for picking up the maxplayers issue, I have fixed that. Rcon currently doesn't work when you are connected to the server. You did try use a third party program which should work, I just tested it on my server and it works with a third party program. The only ports you need to forward are 27015 TCP, 27015 UDP, 27020 UDP which you have, so I'm not sure what the issue is, are you sure the IP is correct? You can use !rcon in chat if you set yourself up as an admin. |
So if you open up CS2 and don't connect to any servers, open console and enter:
This doesn't work? If so, it's definately an issue on the machine it's running on. What's the output of this command |
Console:
Your command:
adding the "quit" log just in case that helps:
|
Wait you are setting this up as an online server right (not LAN)? If you are using it as an online server you need to connect to it from it's public IP, not the lan IP. In the |
If connecting via the public IP doesn't work, is this running on bare metal or in a vm/container/docker? |
Hi again! The message in the console is:
*No port is written there It's inside a Ubuntu 22.04 VM. I can access the server with local or remote IP from game client and able P.S.: The 64-player thing is still happening. |
Did you download the latest install script? |
64 players is definitely fixed, you must be using an old install script. In your log you posted me you had the port Post me your whole server console from the point you run the install.sh script. |
I'll try to sneak and reboot my VM, download the new script, paste the env variables again and start the server. If not, I'll try to do it at night. Would that be ok? |
First time I executed the command:
Had to press Enter to advance. Here the rest of the console log. 12 player OK :) No results, either by local or public ip (ip changed, just in case it doesn't match with that you saw before) The server runs correctly both locally and with remote ip or domain: |
Can you do something for me:
Now your CS2 is a standard CS2 installation, not modded. Create a file
Run it:
If your RCON still doesn't work (which I'm assuming it won't) it is out of the support of this mod. It is an issue you have with your own setup either network or your VM. |
Hi! I did your tests, and unfortunately, RCON is not working. But I found a solution :) There is another project similar to yours that is working, both with public IP and local IP. Maybe you could check it out: https://github.com/Soren90/cs2-docker Same config, same OS (Ubuntu 22.04), one project in one port, one in another, ports open with ufw and router: I wanted to try yours since the mods and custom modes look sick. I don't need Web UI for RCON either, but it looks like I can't make it work, and it's just a simple script. Adding the run.sh log just in case: But GOOD NEWS! I added this code to the launch options, and RCON is working now, so you might have an issue around there. I saw that Soren90's project has the +ip command added to his launch options.
Adding that to the install.sh, I can use RCON with my local IP and remote IP. I hope this helps! |
Finally we have tracked down the problem. I have updated the Please download the latest
Note: the repo you linked uses Let me know if this works for you. So with the IP set as your local IP can you still connect when you aren't on the same network? |
Hi! Yup, now, with a fresh install, RCON works both from local and public IP (also hostname). I detected another issue but it's unrelated to RCON, should I open a new thread for that, or do you want me to keep it here? |
That’s good to hear. Just post it here |
Ok! It is regarding custom_files.
No matter what I try, those files are not passing through? I was checking the install.sh code trying to understand how this operation works and:
From my little bash understanding: we download files from git, then we delete the current content from the custom_files folders, and then copy the contents to their respective folders. After that, we merge the custom files folder to the game server folders. Are we not deleting the modified files BEFORE they are even transferred to their folders? Also, there is some mixed information about admins in the README.md, I think some old info is still there, and the folder routes are not super clear (I would add the /home/steam/cs2/ to all, so it's easier to copy paste and understand the folder structures) |
Yep you are right, can you please download the new |
Also RE: the old admin information that has been removed, thanks RE: folder routes not being clear, I always reference to your root install location because I support Windows and Linux I can't hardcode paths. If you are on linux always prepend I've added a note to try make this clearer https://github.com/kus/cs2-modded-server#custom-files |
Perfect! All of what I was testing is working now. I will keep testing, but now it seems solid! Just a simple question to end this topic: If I want to have the same hostname for all game modes, should I edit every game mode cfg or what would be the best way to do it so I don't need to edit files every now and then? custom_all.cfg can be used like that? |
If you want one hostname that doesn't change you are correct, the easiest way is adding the file
If you want to change the hostname for each mode you can use mine as an example. |
Thank you. For me, this is done. I will tinker next week and let you know! P.S.: Is there any way to contact you? I saw your Twitter DMs are closed and no email around :( I want to learn more about creating .sh files. I am trying to make the service accessible for free (usually behind a big paywall) so people can self-host their own solution. My goal is to create a script similar to yours so people can install it with little knowledge. |
Thanks let me know if you see any more things that need to be tweaked. I’ve only personally played on a few game modes with friends so there are some that are not real world tested. You can message me on Discord, username: kus |
@kus, I can't find you, I tried to add you as a friend, but it says you cannot accept requests :( Mine is: escaparrac |
Server is up to date
I've followed the instructions
Game Server Login Token
Operating System
Linux Ubuntu 22.04
Which mod are you playing
No mod
Are you trying to host online or on LAN?
Online off a machine on my local network
Metamod:Source Version
none
Metamod:Source Plugins loaded
none
CounterStrikeSharp Version
none
CounterStrikeSharp Plugins loaded
none
What is the bug
on clean ubuntu install server won't start and several errors can be seen in the shell.
Game console output
No response
Server log output
Steps to reproduce
The text was updated successfully, but these errors were encountered: