Jump to content
  • 0

cant lunch rathena on linux centos


Kido

Question


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

Hello, i was trying fo lunch my rathena server and did what i have to do, compiled and etc, but when i try to put it online, i get this problems

 

First i have this directories

sdri.jpg

 

but then, when i ./athena-start start

i get this

 

7z6c.jpg

 

(white = path)

 

here is my athena-start script

#!/bin/sh

#source var/function
. ./function.sh
inst_launch_workaround

PATH=./:$PATH
print_start() {
  #    more << EOF
  echo "Athena Starting..."
  echo "            (c) 2013 rAthena Project"
  echo ""
  echo ""
  echo "checking..."
  #EOF
}

get_status(){
   PIDFILE=.$1.pid
   if [ -e ${PIDFILE} ]; then
    ISRUN=$(ps ax | grep $(cat ${PIDFILE}) | grep $1)
    PSRUN=$(echo "$ISRUN" | awk '{ print substr( $0, 0, 7) }')
   fi
   return $PSRUN
}

#cheking if already started, launch and mark in log
start_serv(){ 
  LOGFILE="log/$1.log"
  get_status $1
  echo "My logfile=${LOGFILE}"
  if [ -z ${PSRUN} ]; then
    exec ./$1&
    echo $! > .$1.pid
    echo "Server '$1' started at `date +"%m-%d-%H:%M-%S"`"
    echo "Server '$1' started at `date +"%m-%d-%H:%M-%S"`" >> ${LOGFILE}
  else
    echo "Can't start '$1', cause is already running p${PSRUN}"
    echo "Can't start '$1', cause is already running p${PSRUN}" >> ${LOGFILE}
  fi
}

#experimental
watch_serv(){
  LOGFILE=./log/$1.log
  ulimit -Sc unlimited

  while true; do
   get_status $1
   if [ -z ${PSRUN} ]; then
     $count=$count+1
     echo "server '$1' is down" >> ${LOGFILE}
     echo "restarting server at time at `date +"%m-%d-%H:%M-%S"`">> ${LOGFILE}
     exec ./$1&
     echo $! > .$1.pid   
     if [ $3 ] && [ $3 -lt $count ]; then break; fi
   else sleep $2    
   fi
  done
}

restart(){
  $0 stop
  for i in ${L_SRV} ${C_SRV} ${M_SRV}
    do
    while true; do
	get_status ${i}
	if [ ${PSRUN} ]; then echo "'${i}' is still running p${PSRUN} waiting end"; sleep 2;
        else break; fi
    done
  done
  $0 start
}

case $1 in
    'start')
        print_start
        check_files
	echo "Check complete."
	echo "Looks good, a nice Athena!"
	for i in ${L_SRV} ${C_SRV} ${M_SRV}
	    do
		start_serv $i
	    done
        echo "Now Started Athena."
;;
    'watch')
	for i in ${L_SRV} ${C_SRV} ${M_SRV}
	    do		
		watch_serv $i 10 3
	    done
 	echo "Now watching Athena."
;;	
    'stop')
	for i in ${L_SRV} ${C_SRV} ${M_SRV}
	    do
		PIDFILE=.${i}.pid
		if [ -e .{PIDFILE} ]; then
		    kill $(cat ${PIDFILE})
		    rm ${PIDFILE}
		fi
	    done
;;
    'restart')
         restart
;;
    'status')
	for i in ${L_SRV} ${C_SRV} ${M_SRV}
	do
		get_status ${i}
		if [ ${PSRUN} ]; then echo "'${i}' is running p${PSRUN}"; else echo "'${i}' seem down"; fi
	done
;;	
    *)
        echo "Usage: athena-start { start | stop | restart | status | watch }"
        read -p "Enter a valid option: " readEnterKey
		$0 $readEnterKey
;;
esac


i hope im giving enought information

 

the files are in the correct directory, i have checked it twice and they are in the correct path

 

my players are waiting and i don't have much time, my laptop is about to turn off because it's battery life is about to die (it is already connected)

 

please help ! if this need more information i will show it!

 

sorry for my bad english

 

help ;-;

Edited by Kido
Link to comment
Share on other sites

17 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

login in your root

putty

 

cd trunk

chmod a+x configure && chmod a+x athena-start

./configure --enable-b4bit

make clean

make sql

 

try this one..

this also makes you recompile

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

after that i just ./athena-start start

right?

 

sorry, totally new/noob on this ):

Edited by Kido
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

yes.. but make it sure it finishes the recompilation

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

allright, i waited and then it just stoped so i guessed that it finished the recompilation

the problem presist, this is after your instructions

same ):

0k2miwW.png

 

)):

 

edit:

not sure if this has something to do with the whole thing, i just noticed after i tryed to repeat the steps you gave me, totally dunno what to do

rl8l.png

 

another edit, i just got this error too, just below the whole thing

l4GdNTq.png

Edited by Kido
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

umm.. sorry. idunno what to do now :P lets wait for the pros^^

 

we dont have the same athena-start

because im using r16797

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

aw allright, i think i will just wait, i hope someone can help me, i will shutdown my laptop and charge it enough for tomorrow, thank you so much

 

 

well, anyone have an idea? i'm just getting more confused every second )):

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

It's not b4bit, its 64bit. However, it is enabled by default, at least that's what I can see at the configure file.

#
# 64bit
#
# Check whether --enable-64bit was given.
if test "${enable_64bit+set}" = set; then :
  enableval=$enable_64bit;
		enable_64bit="$enableval"
		case $enableval in
			"no");;
			"yes");;
			*) as_fn_error $? "invalid argument --enable-64bit=$enableval... stopping" "$LINENO" 5;;
		esac
else
  enable_64bit="yes"
fi

 

Basically 2834 was right, you have to do the following steps:

 

  1. make sure your configure file is executable (chmod +x configure)
  2. write ./configure --enable-packetver=YYYYMMDD so if you use the 20120410 client, write ./configure --enable-packetver=20120410
  3. verify there was no error in that process (it will tell you if there was any error)
  4. write make
  5. wait for it to finish and verify there were no errors again
  6. try to run every server manually to see if they work with ./login-server_sql, hit Ctrl+c to kill the process if it worked, and repeat for char-server_sql and map-server_sql
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

im trying that, sorry if it takes me some time to answer, the thing just got stuck in 

make[1]: Leaving directory `/home/trunk/ea/ea/src/tool'
im totally pending to this post
 
 
edit: done
 
but i got an error
zrk7k7n.png
then the [Error] thing keeps flooding )):
Edited by Kido
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  244
  • Reputation:   17
  • Joined:  11/19/11
  • Last Seen:  

im trying that, sorry if it takes me some time to answer, the thing just got stuck in 

make[1]: Leaving directory `/home/trunk/ea/ea/src/tool'
im totally pending to this post
 
 
edit: done
 
but i got an error
zrk7k7n.png
then the [Error] thing keeps flooding )):

 

 

Check your conf/inter_athena.conf please use localhost ip, not your vps ip.

 

it should be 127.0.0.1

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

Changing the IP probably won't help with the error shown.

Make sure you have imported all *.sql files from sql-files in the main directory of rAthena.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

in inther_athena.cof i have 127.0.0.1

 

by the way, i did not know that i had import all of the sql files, a friends told me that i just have to import some but not all of them, allright now im importing all of them

 

sorry i fell asleep

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

are you using rathena or eathena ? 

download a clean folder please.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

whilte importing sql files i got this bunch of errors );

 

upgrade_svn15531_db.sql

[Err] 1091 - Can't DROP 'ExpPer'; check that column/key exists
[Err] -- `ExpPer` column removed from `mob_db` and `mob_db2` tables

ALTER TABLE `mob_db` DROP COLUMN `ExpPer`;
[Msg] Finished - Unsuccessfully
--------------------------------------------------

upgrade_svn15572.sql

[Err] 1054 - Unknown column 'level' in 'login'
[Err] -- Rename `level` column to `group_id` in `login` table

ALTER TABLE `login` CHANGE COLUMN `level` `group_id` TINYINT(3) NOT NULL DEFAULT '0';
[Msg] Finished - Unsuccessfully
--------------------------------------------------

upgrade_svn17014.sql

[Err] 1054 - Unknown column 'str' in 'elemental'
[Err] ALTER TABLE `elemental` CHANGE COLUMN `str` `atk1` MEDIUMINT(6) UNSIGNED NOT NULL DEFAULT 0,
 CHANGE COLUMN `agi` `atk2` MEDIUMINT(6) UNSIGNED NOT NULL DEFAULT 0,
 CHANGE COLUMN `vit` `matk` MEDIUMINT(6) UNSIGNED NOT NULL DEFAULT 0,
 CHANGE COLUMN `int` `aspd` SMALLINT(4) UNSIGNED NOT NULL DEFAULT 0,
 CHANGE COLUMN `dex` `def` SMALLINT(4) UNSIGNED NOT NULL DEFAULT 0,
 CHANGE COLUMN `luk` `mdef` SMALLINT(4) UNSIGNED NOT NULL DEFAULT 0,
 CHANGE COLUMN `life_time` `flee` SMALLINT(4) UNSIGNED NOT NULL DEFAULT 0,
 ADD COLUMN `hit` SMALLINT(4) UNSIGNED NOT NULL DEFAULT 0 AFTER `flee`,
 ADD COLUMN `life_time` INT(11) NOT NULL DEFAULT 0 AFTER `hit`;
[Msg] Finished - Unsuccessfully
--------------------------------------------------

upgrade_svn17176.sql

[Err] 1060 - Duplicate column name 'character_slots'
[Err] ALTER TABLE `login` ADD `character_slots` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0';
[Msg] Finished - Unsuccessfully
--------------------------------------------------

upgrade_svn17183.sql

[Err] 1060 - Duplicate column name 'pincode'
[Err] ALTER TABLE `login` ADD COLUMN `pincode` varchar(4) NOT NULL DEFAULT '';
[Msg] Finished - Unsuccessfully
--------------------------------------------------

the other .sql worked fine (:

 

edit to answer 

mrlongshen

 

rAthena, before i uploaded it to my winscp, i tested it on my laptop end everything seemed to work fine ):

Edited by Kido
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hi Kido,

 

If you are starting up a new Athena emulator, you should not import the upgrade_svnXXXXXX.sql files.

 

As for your current issue, please run 'login-server_sql' alone; it's experiencing an error causing your char server to be unable to connect to X.X.X.X:6900. To start the login server by itself, just use the following commands...

cd /location/to/login-server_sql/folder
./login-server_sql
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

sry for late anser i fella asleep again

 

i did that and this happends then

vP1oqIE.png

 

theres another problem too! ): i cant run athena-start. i have to pen 3 putty in order to keep the thing alive

and i cant use "exit" because nothing happends, so if i close the window, the server will just logoff )):

 

edit:

whenever i try to use a command nothing happens ):

4JZvTTU.png

Edited by Kido
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hi Kido,

 

There doesn't seem to be any problems with your login-server_sql. You can keep the processes running by using 'screen'.

screen ./login-server_sql

 

Or you could maintain a nohup.out log and run 3 servers at once with this command;

nohup ./login-server_sql& nohup ./map-server_sql& nohup ./char-server_sql
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

allright thank you so much, thanks to everyone, the thing just was solved for this guy

http://rathena.org/board/topic/86446-putty-problem-and-athena-start/#entry217797

 

just doing this

 

./configure && make clean && make sql.

thanks again to everyone!

 

2834 was the closes to the solution!

Edited by Kido
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...