LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-07-2011, 01:51 PM   #1
nikooo777
LQ Newbie
 
Registered: Apr 2010
Location: Switzerland
Distribution: Debian Squeeze
Posts: 15

Rep: Reputation: 0
Folder disappeared, any ideas?


Hello everyone,

i'd like to ask you a question because i really don't know what to do right now.

I run a gameserver on my box and since it was a bit outdated i decided to reinstall it from scratch in parallel so not to take down the server for too long (first world wide hence i need the maximum uptime).

tonight i was finally done after one month of work (because i don't have much time during freetime, this is nearly a 5 hours work) and i had this structure:

~/srcds_1/css (the outdated one)
~/gameserver/css (the updated one)

inside the css folder i have the scripts that stop and restart the server, hence my plan was:

stop the server, go back one folder, rename css into old_css, move the new css folder into the current folder, go inside it, restart the server.

unfortunately something went really wrong and the newest css folder simply disappeared whilst the old one is still there. i really don't know where i should look to find it so i'd really appreciate if somebody could help me.

i copied the whole output of the console so you may figure out what's wrong or how to find it if possible. (the error i think is that i typed "&" instead of "&&"

output:

Code:
server1@elite-hunterz:~/gameserver/css$ cd cstrike/
server1@elite-hunterz:~/gameserver/css/cstrike$ cd maps
server1@elite-hunterz:~/gameserver/css/cstrike/maps$ ls
cs_assault.bsp   cs_compound.txt  cs_italy.nav    cs_office.bsp  de_aztec.txt    de_chateau.nav  de_dust2.bsp    de_inferno.txt   de_piranesi.nav  de_prodigy.bsp  de_tides.txt  soundcache
cs_assault.nav   cs_havana.bsp    cs_italy.txt    cs_office.nav  de_cbble.bsp    de_chateau.txt  de_dust2.nav    de_nuke.bsp      de_piranesi.txt  de_prodigy.nav  de_train.bsp  test_hardware.bsp
cs_assault.txt   cs_havana.nav    cs_militia.bsp  cs_office.txt  de_cbble.nav    de_dust.bsp     de_dust2.txt    de_nuke.nav      de_port.bsp      de_prodigy.txt  de_train.nav  test_speakers.bsp
cs_compound.bsp  cs_havana.txt    cs_militia.nav  de_aztec.bsp   de_cbble.txt    de_dust.nav     de_inferno.bsp  de_nuke.txt      de_port.nav      de_tides.bsp    de_train.txt  zm_cbble_b3.bsp
cs_compound.nav  cs_italy.bsp     cs_militia.txt  de_aztec.nav   de_chateau.bsp  de_dust.txt     de_inferno.nav  de_piranesi.bsp  de_port.txt      de_tides.nav    graphs
server1@elite-hunterz:~/gameserver/css/cstrike/maps$ cp -R ~/srcds_1/css/cstrike/maps/* ./
server1@elite-hunterz:~/gameserver/css/cstrike/maps$ cd
server1@elite-hunterz:~$ cd srcds_1/css/
server1@elite-hunterz:~/srcds_1/css$ ./stop & cd .. & mv css old_css & mv ~/gameserver/css ./ & cd css & ./restart
[1] 23399
[2] 23400
[3] 23401
[4] 23402
[5] 23403
bash: cd: css: No such file or directory
There is a screen on:
There is a screen on:
        23646.css-server        (12/01/11 18:45:52)     (Detached)
1 Socket in /var/run/screen/S-server1.

        23646.css-server        (12/01/11 18:45:52)     (Detached)
1 Socket in /var/run/screen/S-server1.

./stop: line 4: kill: (23415) - No such process
./stop: line 4: kill: (23412) - No such process
./stop: line 4: kill: (23415) - No such process
No Sockets found in /var/run/screen/S-server1.

No Sockets found in /var/run/screen/S-server1.

Starting Cs:Source Server #1
[1]   Exit 1                  ./stop
[2]   Done                    cd ..
[3]   Done                    mv css old_css
[4]-  Done                    mv ~/gameserver/css ./
[5]+  Exit 1                  cd css
server1@elite-hunterz:~/srcds_1/css$ ls
InstallRecord.blob  bin  core  cstrike  hl2  libcurl.so.4  libcurl.so.4.2.0  old_css  restart  srcds_linux  srcds_run  start  steam_appid.txt  stop
server1@elite-hunterz:~/srcds_1/css$ ps x
  PID TTY      STAT   TIME COMMAND
22376 pts/5    S      0:00 su server1
22377 pts/5    S      0:00 bash
23421 ?        Ss     0:00 SCREEN -A -m -d -S css-server ./srcds_run -game cstrike +map zm_cbble_b3 -maxplayers 64 -ip 85.114.140.30 -port 27015 -pingboost 1
23422 pts/4    Ss+    0:00 /bin/sh ./srcds_run -game cstrike +map zm_cbble_b3 -maxplayers 64 -ip 85.114.140.30 -port 27015 -pingboost 1
23426 pts/4    Sl+    0:00 ./srcds_linux -game cstrike +map zm_cbble_b3 -maxplayers 64 -ip 85.114.140.30 -port 27015 -pingboost 1
23448 pts/5    R+     0:00 ps x
server1@elite-hunterz:~/srcds_1/css$ ls
InstallRecord.blob  bin  core  cstrike  hl2  libcurl.so.4  libcurl.so.4.2.0  old_css  restart  srcds_linux  srcds_run  start  steam_appid.txt  stop
server1@elite-hunterz:~/srcds_1/css$ cd ..
server1@elite-hunterz:~/srcds_1$ ./stop & cd .. & mv css old_css & mv ~/gameserver/css ./ & cd css & ./restart
server1@elite-hunterz:~/srcds_1$ cd ..
server1@elite-hunterz:~$ cd gameserver/css
bash: cd: gameserver/css: No such file or directory
server1@elite-hunterz:~$ cd gameserver/
server1@elite-hunterz:~/gameserver$ ls
InstallRecord.blob  hl2  hldsupdatetool.bin  manual_update  readme.txt  steam  test1.so  test2.so  test3.so
server1@elite-hunterz:~/gameserver$ cd
server1@elite-hunterz:~$ cd srcds_1/
server1@elite-hunterz:~/srcds_1$ ls
InstallRecord.blob  attachment.php  css  hl2  hldsupdatetool.bin  manual_update  readme.txt  steam  test1.so  test2.so  test3.so  update
server1@elite-hunterz:~/srcds_1$ ls
InstallRecord.blob  attachment.php  css  hl2  hldsupdatetool.bin  manual_update  readme.txt  steam  test1.so  test2.so  test3.so  update
server1@elite-hunterz:~/srcds_1$ ls -la
total 18948
drwxr-xr-x 4 server1 server1    4096 Nov 17 13:59 .
drwxr-xr-x 6 server1 server1    4096 Nov 11 17:24 ..
-rwxr-xr-x 1 server1 server1    1660 Nov 17 13:59 InstallRecord.blob
-rw-r--r-- 1 server1 server1 1423800 Apr 15  2011 attachment.php
drwxr-xr-x 6 server1 server1    4096 Dec  7 19:30 css
drwxr-xr-x 5 server1 server1    4096 Aug 18  2010 hl2
-rwxr-xr-x 1 server1 server1 3513408 Aug 18  2010 hldsupdatetool.bin
-rwxr-xr-x 1 server1 server1     134 Jul 13 18:57 manual_update
-rw-r--r-- 1 server1 server1    3413 Aug 18  2010 readme.txt
-rwxr-xr-x 1 server1 server1 5265976 Jul 11 23:54 steam
-r-xr-xr-x 1 server1 server1  358301 Jul 25  2008 test1.so
-r-xr-xr-x 1 server1 server1  453372 Jul 25  2008 test2.so
-r-xr-xr-x 1 server1 server1 8306090 Jul 25  2008 test3.so
-rwxr-xr-x 1 server1 server1     162 Jul 13 19:09 update
server1@elite-hunterz:~/srcds_1$ cd css
server1@elite-hunterz:~/srcds_1/css$ ls
InstallRecord.blob  bin  core  cstrike  hl2  libcurl.so.4  libcurl.so.4.2.0  old_css  restart  srcds_linux  srcds_run  start  steam_appid.txt  stop
server1@elite-hunterz:~/srcds_1/css$ ls -la
total 2300
drwxr-xr-x  6 server1 server1     4096 Dec  7 19:30 .
drwxr-xr-x  4 server1 server1     4096 Nov 17 13:59 ..
-rwxr-xr-x  1 server1 server1      186 Oct 14 00:23 InstallRecord.blob
drwxr-xr-x  2 server1 server1     4096 Nov  8 00:05 bin
-rw-------  1 server1 server1 33677312 Oct 14 00:23 core
drwxr-xr-x 19 server1 server1     4096 Nov  8 00:05 cstrike
drwxr-xr-x  4 server1 server1     4096 Oct 13 23:46 hl2
-rw-r--r--  1 server1 server1       17 Oct 13 23:46 libcurl.so.4
-rw-r--r--  1 server1 server1   300951 Oct 13 23:46 libcurl.so.4.2.0
drwxr-xr-x  5 server1 server1     4096 Oct 29 17:14 old_css
-rwxr-xr-x  1 server1 server1       25 Oct 14 00:08 restart
-rwxr-xr--  1 server1 server1     7004 Oct 13 23:46 srcds_linux
-rwxr-xr--  1 server1 server1    10712 Oct 13 23:46 srcds_run
-rwxr-xr-x  1 server1 server1      187 Oct 14 01:15 start
-rw-r--r--  1 server1 server1        5 Dec  7 19:31 steam_appid.txt
-rwxr-xr-x  1 server1 server1      114 Oct 14 00:08 stop
server1@elite-hunterz:~/srcds_1/css$ cd ..
server1@elite-hunterz:~/srcds_1$ ls
InstallRecord.blob  attachment.php  css  hl2  hldsupdatetool.bin  manual_update  readme.txt  steam  test1.so  test2.so  test3.so  update
server1@elite-hunterz:~/srcds_1$
i attached a picture with the structure of server1

E: since i really need this and i really don't want to spend another 5 hours building this, if you manage to help me out of this and you have paypal i'll donate 10 euros to you.
Attached Thumbnails
Click image for larger version

Name:	help.jpg
Views:	38
Size:	182.2 KB
ID:	8569  

Last edited by nikooo777; 12-07-2011 at 02:03 PM. Reason: added a little prize
 
Old 12-07-2011, 03:32 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Code:
./stop & cd .. & mv css old_css & mv ~/gameserver/css ./ & cd css & ./restart
Following that command, you moved up one directory structure; You will need cd into the directory that contains the new css directory.

And FYI, within linux, they are directories, not folders

PS - In your picture that you posted, I can see the css directory..... Can you?

Last edited by corp769; 12-07-2011 at 03:34 PM.
 
Old 12-07-2011, 03:38 PM   #3
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi nikooo777,

I think it there under ~srcds_1

Code:
server1@elite-hunterz:~/srcds_1$ ls

InstallRecord.blob  attachment.php  css  hl2  hldsupdatetool.bin  manual_update  readme.txt  steam  test1.so  test2.so  test3.so  update
Above is the last output that you have pasted and I can see css directory there. I hope you remember the size of the new css directory that you have created under ~/gameserver

Another way to find if css directory is anywhere else on the server then issue the following command:

Code:
find / -name css
 
Old 12-07-2011, 05:44 PM   #4
nikooo777
LQ Newbie
 
Registered: Apr 2010
Location: Switzerland
Distribution: Debian Squeeze
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by corp769 View Post
Code:
./stop & cd .. & mv css old_css & mv ~/gameserver/css ./ & cd css & ./restart
Following that command, you moved up one directory structure; You will need cd into the directory that contains the new css directory.

And FYI, within linux, they are directories, not folders

PS - In your picture that you posted, I can see the css directory..... Can you?
Hi, thanks for your answer, also yes sorry for this mistake i was in a hurry and didn't mind this detail, anyway i tripplechecked now and i found out that ~/srcds_1/css/old_css is the directory i am looking for, i have no idea how it aquired this name, i thought it was an old re-installation hence i didn't mind it that much.

the directory you saw on the picture was/is the old one that didn't move at all.

the last sentence is for T3RM1NVT0R too

thanks for replying though
 
Old 12-07-2011, 05:56 PM   #5
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Ahh ok. Well at least you got everything figured out!

Cheers,

Josh
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Evolution Disappeared. Ideas? GNewbie Ubuntu 14 04-20-2011 10:02 PM
Transferring photos from mobile to memory stick and whole folder disappeared! Jillybeans Linux - Newbie 19 12-30-2010 05:50 AM
Folder permissions issue...Ideas? cwwilson721 Slackware 4 11-19-2009 10:07 AM
Kmenu folder icons disappeared legalbeagle Linux - Desktop 0 02-11-2008 09:13 AM
folder ".tif .." disappeared ungua Linux - Newbie 6 05-21-2006 10:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration