LinuxGSM icon indicating copy to clipboard operation
LinuxGSM copied to clipboard

[CSGO] error after editing csgoserver

Open OverlOrDGT opened this issue 10 years ago • 15 comments

HI, In the begining all working fine, but when i change the setting(gamemode and type) on csgoserver file this error happens

[csgoserver@vps252012 ~]$ ./csgoserver force-update -bash: ./csgoserver: /bin/bash^M: bad interpreter: No such file or directory

can someone helpme pls?

OverlOrDGT avatar Feb 29 '16 13:02 OverlOrDGT

99% sure you messed up with the syntax.

Post your csgoserver script, make sure to hide sensitive information (steam account if any, API Key, and GSLT).

UltimateByte avatar Feb 29 '16 13:02 UltimateByte

csgoserver.txt

i change to txt, so i could be able to upload it @UltimateByte

OverlOrDGT avatar Feb 29 '16 13:02 OverlOrDGT

OK, your script seems good.

Is that a new install ? Why would you run force-update ? Are the normal update, and validate functions OK ? Start function ?

In other words, is the issue occurring only with force-update ?

UltimateByte avatar Feb 29 '16 14:02 UltimateByte

no command works, and all give the same error @UltimateByte

OverlOrDGT avatar Feb 29 '16 14:02 OverlOrDGT

What distro do you have ? Looks like an issue with your bash interpreter.

./csgoserver update-functions Try that.

UltimateByte avatar Feb 29 '16 14:02 UltimateByte

Also, did you install all the dependencies ?

UltimateByte avatar Feb 29 '16 14:02 UltimateByte

Still the same error, at first time all work fine, but when i change csgoserver settings start give me the same error when i try to start the server @UltimateByte

OverlOrDGT avatar Feb 29 '16 14:02 OverlOrDGT

tryed the same with rust server, at begin works, but when i change the rustserver file, stop works with the same error

OverlOrDGT avatar Feb 29 '16 14:02 OverlOrDGT

What about you answer my 2 questions ?

UltimateByte avatar Feb 29 '16 15:02 UltimateByte

yh i installed all

OverlOrDGT avatar Feb 29 '16 16:02 OverlOrDGT

If you got trouble counting 2 questions, it's gonna be a pain. So again, What distro do you have ? And i'll add one more : What is your VPS provider ? Are they customizing their distros ?

Lastly, can you output your logs in /home/your_user/log/script ?

UltimateByte avatar Feb 29 '16 17:02 UltimateByte

And one more question again : What are you editing your script with ?

UltimateByte avatar Feb 29 '16 17:02 UltimateByte

Looks like the file might be is using windows line endings rather than unix. I recommend deleting the file and re downloading. Your text editor is probably saving the file with windows line ending causing the issue. I recommend using vi, nano, notepadd++ or sublime text.

Just downloaded the text file and was using windows line endings...so yeah thats probably it,

dgibbs64 avatar Feb 29 '16 17:02 dgibbs64

Thx it worked!

OverlOrDGT avatar Feb 29 '16 17:02 OverlOrDGT

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jul 19 '18 14:07 lock[bot]