I think (not sure) the line of interest is this;
/steam.sh: line 49: ulimit: open files: cannot modify limit: Operation not
perm(mitted i guess)
A google search turns up with this;
Determine the Limit
Each user has a limit for the number of open files. This limit applies to each
process run by the user. For example say the limit is 1024 and the user has
three processes running, each process can open 1024 files for a total of 3072.
To determine the soft limit:
ulimit -Sn
1024
To determine the hard limit:
ulimit -Hn
2048
ulimit -n shows you the soft limit. The soft limit is the limit applied for
opening files. The hard limit is the limit you can increase the soft limit to.
Increase the Limit
To increase the limit to 1080 use the following command:
ulimit -Sn 1080
You can change the hard limit too, ulimit -Hn 2040. ulimit -n 2040 changes both
the soft and hard limits to the same value. Once you change the hard limit, you
cannot increase it above the value you just set without rebooting.
If you try to set the soft limit above the hard limit you get the following
message:
ulimit -Sn 3000
bash: ulimit: open files: cannot modify limit: Invalid argument
Note: Once you reboot the limit is reset.
You cannot determine the limit of the root user using ulimit. For example:
sudo ulimit -n
sudo: ulimit: command not found
To make the limits bigger and to make the change permanent, edit your
configuration file and reboot. On Ubuntu you edit the following file:
sudo nano /etc/security/limits.conf
Add lines like these:
steve soft nofile 4000
steve hard nofile 5000
You can use * in the limit.conf file instead of a user name to specify all
users, however this does not apply to the root!
soft nofile 20000
hard nofile 30000
The limit.conf file is applied during the boot process. If you start a process
during the boot process before the limits are applied, you will get the default
1024 value. You can record the starting limit in a file right before starting
your process, then check the value to make sure it’s the expected value.
ulimit -n >mylimit.txt
You cannot start a process late enough in the boot process! For example: “sudo
update-rc.d tomcat defaults 99 01″ is at the end and it is still too late.
The work around is to force the limit to be set before starting the process.
Put “ulimit -n 4000″ before starting your process, then the limit.conf file is
processed here.
Testing the Limit
I wrote a program called openmany that I use to test the open file limit. It
creates a bunch of files in a folder then opens them.
java -jar openmany
Usage: openmany [-c] number
c Continue to run holding on to the open files.
number The number of files to open.
java -jar openmany 100
Creating 100 files in folder openmany.
Opening the files.
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
To remove the directory of files created by the program:
rm -r openmany/
When setting the limit at 60,000, the system ran out of memory at about 30,000.
So the effective limit is dependent on the java memory size allocated to the
program.
Here is an example of trying to open more than the limit:
ulimit -n
1024
java -jar openmany.jar 1050
…
1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018
Exception in thread “main” java.io. FileNotFoundException: openmany/1019.txt
(Too many open files)
at java.io. FileInputStream.open (Native Method)
at java.io. FileInputStream.<init> (FileInputStream.java:106)
at java.io. FileReader.<init> (FileReader.java:55)
at openmany.Main.main (Main.java:49)
You can run the program as root and test its limits too:
sudo java -jar openmany.jar 1050
Set System Wide Limits
There is another file limit in the system, the total number of files that can
be opened by all processes.
To see the file max value:
sysctl -a | grep fs.file-max
fs.file-max = 170469
Since it is so big there is no reason to change it.
References
Documentation for lsof:
http://man-wiki.net / index.php / 8:lsof%23SYNOPSIS
Changing the limit:
http://stackoverflow.com / questions / 34588 / how-do-i- change-the-
number-of-open- files- limit- in-linux
http://www.cyberciti.biz / faq / linux-increase- the-maximum- number-of- open-
files/
Saint K.
________________________________________
From: [email protected]
[[email protected]] On Behalf Of JKavšek
[[email protected]]
Sent: 15 August 2012 18:47
To: [email protected]
Subject: Re: [Csgo_servers] CSGO weird install problem
Yeah... I tried it again with a brand new user.
Here is a log from the first login to the end. Go to
http://pastie.org/pastes/4494557/text?key=igsvjcsqto20eopnkgjfg or read below.
Thanks.
csgo@ubuntu:~$ mkdir ./server
csgo@ubuntu:~$ mkdir ./steamcmd
csgo@ubuntu:~$ cd steamcmd
csgo@ubuntu:~/steamcmd$ wget
http://blog.counter-strike.net/wp-content/uploads//
2012/04/steamcmd.tar.gz
--18:33:45--
http://blog.counter-strike.net/wp-content/uploads//2012/04/steamcm
d.tar.gz
=> `steamcmd.tar.gz'
Resolving blog.counter-strike.net... 63.228.223.107
Connecting to
blog.counter-strike.net<http://blog.counter-strike.net>|63.228.223.107|:80...
connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,715,622 (1.6M) [application/x-gzip]
100%[====================================>] 1,715,622 708.66K/s
18:33:48 (707.16 KB/s) - `steamcmd.tar.gz' saved [1715622/1715622]
csgo@ubuntu:~/steamcmd$ tar xvzf steamcmd.tar.gz
steam.sh
linux32/steamcmd
csgo@ubuntu:~/steamcmd$ STEAMEXE=steamcmd ./steam.sh
./steam.sh: line 49: ulimit: open files: cannot modify limit: Operation not
perm
itted
/home/csgo/steamcmd/linux32/steamcmd: /usr/lib/libstdc++.so.6: version
`GLIBCXX_
3.4.10' not found
(required by /home/csgo/steamcmd/linux32/steamcmd)
csgo@ubuntu:~/steamcmd$ export LD_LIBRARY_PATH=/home/csgo/steamcmd
csgo@ubuntu:~/steamcmd$ STEAMEXE=steamcmd ./steam.sh
./steam.sh: line 49: ulimit: open files: cannot modify limit: Operation not
perm
itted
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
[ 0%] Checking for available update...
[ 0%] Downloading update (0 of 10,116 KB)...
[ 0%] Downloading update (45 of 10,116 KB)...
[ 0%] Downloading update (579 of 10,116 KB)...
[ 5%] Downloading update (1,287 of 10,116 KB)...
[ 12%] Downloading update (2,254 of 10,116 KB)...
[ 22%] Downloading update (2,967 of 10,116 KB)...
[ 29%] Downloading update (3,618 of 10,116 KB)...
[ 35%] Downloading update (4,250 of 10,116 KB)...
[ 42%] Downloading update (4,693 of 10,116 KB)...
[ 46%] Downloading update (4,716 of 10,116 KB)...
[ 46%] Downloading update (4,810 of 10,116 KB)...
[ 47%] Downloading update (5,040 of 10,116 KB)...
[ 49%] Downloading update (5,373 of 10,116 KB)...
[ 53%] Downloading update (5,735 of 10,116 KB)...
[ 56%] Downloading update (6,180 of 10,116 KB)...
[ 61%] Downloading update (6,821 of 10,116 KB)...
[ 67%] Downloading update (7,419 of 10,116 KB)...
[ 73%] Downloading update (8,135 of 10,116 KB)...
[ 80%] Downloading update (8,768 of 10,116 KB)...
[ 86%] Downloading update (9,504 of 10,116 KB)...
[ 93%] Downloading update (10,116 of 10,116 KB)...
[100%] Download Complete.
[----] Applying update...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Cleaning up...
[----] Failed to remove temporary unzip folder, continuing anyway
[----] Update complete, launching...
Installing breakpad exception handler for appid(steam)/version(1334262703)
[ 0%] Checking for available updates...
[ 0%] Downloading update (0 of 10,384 KB)...
[ 0%] Downloading update (85 of 10,384 KB)...
[ 0%] Downloading update (586 of 10,384 KB)...
[ 5%] Downloading update (1,476 of 10,384 KB)...
[ 14%] Downloading update (2,532 of 10,384 KB)...
[ 24%] Downloading update (3,866 of 10,384 KB)...
[ 37%] Downloading update (4,461 of 10,384 KB)...
[ 42%] Downloading update (5,094 of 10,384 KB)...
[ 49%] Downloading update (5,746 of 10,384 KB)...
[ 55%] Downloading update (6,419 of 10,384 KB)...
[ 61%] Downloading update (7,119 of 10,384 KB)...
[ 68%] Downloading update (7,789 of 10,384 KB)...
[ 75%] Downloading update (8,397 of 10,384 KB)...
[ 80%] Downloading update (9,076 of 10,384 KB)...
[ 87%] Downloading update (9,746 of 10,384 KB)...
[ 93%] Downloading update (10,384 of 10,384 KB)...
[100%] Downloading update (10,384 of 10,384 KB)...
[100%] Download complete.
[----] Installing update...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching Steam...
Installing breakpad exception handler for appid(steam)/version(1343253434)
[ 0%] Checking for available updates...
[ 0%] Download complete.
[----] Verifying installation...
unlinked 0 orphaned pipes
terminate called after throwing an instance of
'common::CNamedArgsUndefinedNameE
xception'
what(): Tried to read undefined arg name: ActivityLogFile
Uploading dump (in-process) [proxy '']
/tmp/dumps/crash_20120815183829_1.dmp
success = no
error: Failed to open/read local data from file/application
./steam.sh: line 63: 6593 Aborted ${DEBUGGER}
"${STEAMROOT}"/${
PLATFORM}/${STEAMEXE} "$@"
csgo@ubuntu:~/steamcmd$
2012/8/15 Saint K. <[email protected]<mailto:[email protected]>>
Have you tried it as non-root user?
Saint K.
________________________________________
From:
[email protected]<mailto:[email protected]>
[[email protected]<mailto:[email protected]>]
On Behalf Of JKavšek [[email protected]<mailto:[email protected]>]
Sent: 15 August 2012 18:15
To:
[email protected]<mailto:[email protected]>
Subject: Re: [Csgo_servers] CSGO weird install problem
Hey, I am running a 32bit :/
root@ubuntu:~# uname -m
i686
Thanks for trying to help tho ;).
The error is really unbelievably rare with no solutions.
_______________________________________________
Csgo_servers mailing list
[email protected]<mailto:[email protected]>
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers
_______________________________________________
Csgo_servers mailing list
[email protected]
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers