thanks for trying but I am on ubuntu 9.10 logged in as root, i can right click and change privaledges of folder and all subfolders and files.
but still permission denied.
Printable View
ok im gonna ask this once more. i run ubuntu 9.10
I downloaded these server files...
so now I have beasties 136 folder inside it are some more folders ... pwserver, etc, lib, root, usr.
where do i put these files?
do I cd / and them to it? <--- this means my filesystem included among the folders in filesystem are folders that already are named usr,lib,root,etc.
do i add them to this filesystem and merge the folders with the exiting ones risking over writing a file.
or do I make a folder and run it from anywhere?
thanks for an answer.
The files inside the folders /etc, /usr/ /lib /root go in those directories on your computer. The /pwserver folder goes in root I believe.
As for overwriting existing files. I dont know. I know that when I was setting up romulans server I overwrote the files but that was because I dont use linux as a main OS so I didnt care.
Im guessing you are not logged in as root.
Also remember to change permissions.
I acidentally logged in as hrace instead of root and I got errors like files not found and permission denied.
Logging on as root fixed this.
Edit: Try these pages to log in as root. I dont use linux so havent tried them.
https://help.ubuntu.com/community/RootSudo
http://www.sizlopedia.com/2008/04/16...-as-root-user/
i know how to log in as root silly :-)
i used command sudo mv PWServer /root ,-- this moved the server files to /root
then i used
sudo rsync -a etc/ /etc/ <--- this copied the contents of etc and moved themn to my filesystem etc overwriting anything it needed to.
did the same for lib,and usr also added start.sh ,start_full.sh , stop.sh to /root.
but when i start start.sh from root ie.
root@server~# ./start.sh
the first thing it shows is
Iweb Starting
./start.sh 11 startup.sh no file or directoy or something similar.
so i stop the process , then I go to
/usr/local/jakarta-tomcat-5.5.9/bin
i try to run startup.sh <--- this supposedly starts iweb
but it returns this
bash: ./startup.sh: /bin/sh^M: bad interpreter: No such file or directory
so anyone got a fix for this?
---------- Post added at 02:31 AM ---------- Previous post was at 12:46 AM ----------
so i used fromdos to try and solve the ./startup.sh bad interpreter error
now i got this error
exec: 49 ./catalina.sh not found
---------- Post added at 03:39 AM ---------- Previous post was at 02:31 AM ----------
well im so close i can taste it now.
iweb is up and working , thanks to my own ingeniuty and perseerverance.
but currently I am stuck on unique named here.
STARTING UNIQUENAMED
info : TcpManager OnAddSession
info : program started with 8 threads.
info : logclient: OnAddSession
info : logclienttcp: OnAddSession
Exception in thread "main" java.lang.NoClassDefFoundError: com/goldhuman/IO/Protocol/Manager
Caused by: java.lang.ClassNotFoundException: com.goldhuman.IO.Protocol.Manager
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: authd. Program will exit.
someone care to help with this while I search uniquenamed to find out what the problem is :-)
it is set to start with jdk1.6.0_12
this is what came with the files.
that makes me curious now if that maybe the problem.
edit yeah, the jre is located inside the jdk1.6.0_12 folder
dont know if that makes any difference, I changed the name to jre1.6.0_12 but that made no difference, as uniquenamed no longer gives the error but auth does.
ok ill add this fix for this for anyone searching who might find it handy, in the authd file
if you notice all the PWServer/bla/bla directories , need to make them all /root/PWServer/bla/bla
done done then on to next error.
currently connection to GameDB failed.
having this error, seems alot of people have had it, but haven't found the solution yet.
err : gdelivery:: connect GameDB failed
this one is authd.conf
this one is from gdeliverydCode:[GAuthServer]
type = tcp
port = 29200
address = 192.168.**.**
so_sndbuf = 131072
so_rcvbuf = 131072
ibuffermax = 819200
obuffermax = 819200
tcp_nodelay = 1
listen_backlog = 10
mtrace = /tmp/mtrace.authd
isec = 2
iseckey = baxiykbpn3fxLqpsdpiodI4iazqjdl
osec = 2
oseckey = baxixD0awqydOtrxjxr8uhzaslmnqh
shared_key = baxiIvunkjfjlj0Ckgxzzdfpess5vw
[ThreadPool]
config = (1,1)(2,10)(3,1)
max_queuesize = 1048576
Code:[LogclientClient]
type = udp
port = 11100
Address = 192.168.**.**
so_sndbuf = 16384
so_rcvbuf = 16384
ibuffermax = 16384
obuffermax = 1048576
accumulate = 1048576
[LogclientTcpClient]
type = tcp
port = 11101
address = 192.168.**.**
so_sndbuf = 16384
so_rcvbuf = 16384
ibuffermax = 16384
obuffermax = 1048576
accumulate = 1048576
[Intervals]
;set accounting interval,unit is second
account_interval = 600
;set delrole interval,unit is second
delrole_interval = 60
;set check forbidlogin user's map interval,unit is second
checkforbidlogin_interval = 60
[GDeliveryServer]
zoneid=1
aid=1
freeaid=1
zondname = zone1
max_player_num = 6000
type = tcp
port = 29100
address = 0.0.0.0
so_sndbuf = 65536
so_rcvbuf = 65536
ibuffermax = 1048576
obuffermax = 1048576
tcp_nodelay = 0
listen_backlog = 10
accumulate = 1048576
mtrace = /tmp/m_trace.link
table_name = filters
name_charset = UTF8
table_charset = UTF8
battlefield=0
sellpoint=0
freecreatime=0
[GAuthClient]
type = tcp
port = 29200
address = 192.168.**.**
so_sndbuf = 65536
so_rcvbuf = 65536
ibuffermax = 1048576
obuffermax = 131072
;so_broadcast = 1
tcp_nodelay = 0
accumulate = 131072
isec = 2
iseckey = baxixD0awqydOtrxjxr8uhzaslmnqh
osec = 2
oseckey = baxiykbpn3fxLqpsdpiodI4iazqjdl
shared_key = baxiIvunkjfjlj0Ckgxzzdfpess5vw
[GProviderServer]
id = 0
type = tcp
port = 29300
address = 0.0.0.0
so_sndbuf = 65536
so_rcvbuf = 65536
ibuffermax = 1048576
obuffermax = 1048576
;so_broadcast = 1
tcp_nodelay = 0
accumulate = 268435456
[UniqueNameClient]
type = tcp
port = 29401
address = 192.168.**.**
so_sndbuf = 65536
so_rcvbuf = 65536
ibuffermax = 1048576
obuffermax = 1048576
;so_broadcast = 1
tcp_nodelay = 0
accumulate = 268435456
isec = 2
iseckey = baxiyEwt4fuqrysyoylfy7Fxbmhobo
osec = 2
oseckey = baxitf91jvrQarnjwbyvlcdxqdvuqp
[GameDBClient]
type = tcp
port = 29400
address = 192.168.**.**
so_sndbuf = 65536
so_rcvbuf = 65536
ibuffermax = 1048576
obuffermax = 1048576
;so_broadcast = 1
tcp_nodelay = 0
accumulate = 268435456
[GAntiCheatClient]
type = tcp
port = 29702
address = 192.168.**.**
so_sndbuf = 65536
so_rcvbuf = 65536
ibuffermax = 1638400
obuffermax = 1638400
;so_broadcast = 1
tcp_nodelay = 0
accumulate = 268435456
[GFactionClient]
type = tcp
port = 29500
address = 192.168.**.**
so_sndbuf = 65536
so_rcvbuf = 65536
ibuffermax = 1638400
obuffermax = 1638400
;so_broadcast = 1
tcp_nodelay = 0
accumulate = 268435456
[ThreadPool]
threads = (1,3)(****1)(****1)(0,1)
max_queuesize = 1048576
prior_strict = 1
this on is from gamesys.conf from gamedb folderCode:GameDBServer]
zoneid=1
aid=1
type = tcp
port = 29400
address = 192.168.**.**
so_sndbuf = 16384
so_rcvbuf = 16384
ibuffermax = 1048576
obuffermax = 1048576
tcp_nodelay = 0
listen_backlog = 10
accumulate = 16777216
[LogclientClient]
type = udp
port = 11100
address = 192.168.**.**
so_sndbuf = 16384
so_rcvbuf = 16384
ibuffermax = 16384
obuffermax = 1048576
accumulate = 1048576
[LogclientTcpClient]
type = tcp
port = 11101
address = 192.168.**.**
so_sndbuf = 16384
so_rcvbuf = 16384
ibuffermax = 16384
obuffermax = 1048576
accumulate = 1048576
[storage]
homedir = /dbf/dbhome
datadir = dbdata
logdir = dblogs
backupdir = /dbf/backup
cachesize = 16777216
errpfx = Storage
checkpoint_interval = 60
backup_lockfile = /tmp/.lockgamedbd
quit_lockfile = /tmp/.quitgamedbd
compress = 1
[storagewdb]
homedir = /dbf/dbhomewdb
datadir = dbdata
logdir = dblogs
backupdir = /dbf/backup
checkpoint_interval = 60
times_incbackup = 1
tables = auction,city,equipment,friends,messages,status,user,clsconfig,factioninfo,inventory,rolename,storehouse,userfaction,base,config,factionname,mailbox,sellpoint,task,translog,waitdel,gtask,order,shoplog
cache_high_default = 8000
cache_low_default = 7500
base_cache_high = 50000
base_cache_low = 45000
status_cache_high = 50000
status_cache_low = 45000
equipment_cache_high= 50000
equipment_cache_low = 45000
inventory_cache_high= 50000
inventory_cache_low = 45000
backup_lockfile = /tmp/.lockgamedbd
quit_lockfile = /tmp/.quitgamedbd
[gamedbd]
noimportclsconfig = 0
[ThreadPool]
threads = (0,1)(1,15)(****1)(****1)
max_queuesize = 1048576
prior_strict = 1
#½Ç«λÖÓÓϷ·þÎÆ¶Ô¦¹Øµ
[GameServerRegion]
#ID = Region[left,right,top,bottom]
IDs = 1
1 = -100000,100000,100000,-100000
[Role]
delete_timeout = 604800
;delete_timeout = 60
someone see anything wrong with this setup? or why it wouldn't connect maybe?
yes i subsituted **.** in as to not show my lan ip. so no thats not the problem :-)
must a client be connected to this server for gamedb to connect?
anyone at all I not bias you see anything wrong with this files or as to why i would get the above error?
Can somone pls help me with this error :))
only error i get is thisQuote:
on my client i get (failed in game server to obtain player's character)
Quote:
TRACE : gdelivery::matrixpasswd query, user=hades
GQueryPasswd:account is hades , login ip is 33597632
Sending query to acquire password
Prepare procedure call:{call acquireuserpasswd(?,?,?)}
Received acquired password
Returning acquired password
Prepare procedure call:{call deleteTimeoutForbid(?)}
Prepare procedure call:{call recordonline(?,?,?,?,?)}
gauthd: 25 Apr 2010 00:28:58,571 INFO GAuthServer:? - UserLogin:userid=***sid=23,aid=1,zoneid=1,remaintime=0,free_time_left=0,free_time_end=0,func=0,funcparm=0,creatime=1272115524,adduppoint=0,soldpoint=0
TRACE : gdelivery::userlogin.received.userid=***proxy_sid=18,localsid=23,retcode=0,blIsGM=0,func=0,funcparam=0,free_left=0,remain_time=0,creatime=1272115524
TRACE : gdelivery:Userlogin:PostProcess: SendOnlineAnnounce userid=***localsid=23
TRACE : GetUser, userid=32.
TRACE : StockExchange::OnLogin, userid=***cash=0,money=0,orders=0,cash_pwd=0
TRACE : GetRoleInfo, roleid=32.
TRACE : GetRoleInfo, roleid=33.
TRACE : GetRoleInfo, roleid=34.
TRACE : gdelivery::receive playerlogin from link,roleid=34,linkid=1,localsid=23
TRACE : gdeliveryserver::statusannounce,online=1,fakemax=6000,load=0,attr=268435456
TRACE : checkpoint begin.
TRACE : checkpoint end.
TRACE : gdeliveryserver::statusannounce,online=1,fakemax=6000,load=0,attr=268435456
TRACE : gdelivery::statusannounce: user disconnected,gs=-1,uid=***sid=18,manager=0x82ea6c0
TRACE : gdelivery:: statusannounce: user 32 offline, onlineuser count is 1
Prepare procedure call:{call recordoffline(?,?,?,?,?)}
I can't figure out how to get this working, all the setting should be correct, and yet it dosn't work.(for me)
My internal ip address is 192.168.0.50, and by defualt the server is configed with that ip address.Code:random@ubuntu:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:0c:f1:d2:c3:74
inet addr:192.168.0.50 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20c:f1ff:fed2:c374/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:498757 errors:0 dropped:0 overruns:0 frame:0
TX packets:321837 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:525819973 (525.8 MB) TX bytes:33231641 (33.2 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:5094220 errors:0 dropped:0 overruns:0 frame:0
TX packets:5094220 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:341923090 (341.9 MB) TX bytes:341923090 (341.9 MB)
All the files are in place, lammpp is working. i have a dbo database set up.
i added:
to my /root/.profile.Code:export USERNAME BASH_ENV PATH
export CLASSPATH=.:/usr/java/jdk1.5.0_05/lib/dt.jar:/usr/java/jdk1.5.0_05/lib/tools.jar:/usr/java/jdk1.5.0_05/lib/mysql-connector-java-3.0.16-ga-bin.jar:/usr/java/msSQLjdbc/lib/msbase.jar:/usr/java/msSQLjdbc/lib/mssqlserver.jar:/usr/java/msSQLjdbc/lib/msutil.jar
export PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME=/usr/java/jdk1.5.0_05
export CATALINA_HOME=/usr/local/jakarta-tomcat-5.5.9/bin
and i get this when i start up:
after a bit it starts spaming this as its starting everything else and dosn't even stopCode:./start.sh
=== XAMPP ===
XAMPP: XAMPP-Apache is already running.
Apache Started === DONE ==
XAMPP: XAMPP-MySQL is already running.
MySQL Started === DONE ==
=== Jakarta Tomcat ===
exec: 42: ./catalina.sh: not found
Iweb Started === DONE ==
=== LOGSERVICE ===
info : program started with 6 threads.
info : OnAddSession
=== DONE! ===
=== UNIQUENAMED ===
info : program started with 8 threads.
info : logclient: OnAddSession
info : logclienttcp: OnAddSession
info : OnAddSession
=== DONE! ===
=== AUTH ===
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at com.goldhuman.IO.PassiveIO.Open(Unknown Source)
at com.goldhuman.IO.Protocol.Protocol.Server(Unknown Source)
at authd.main(Unknown Source)
authd:: add PollIO task.
=== DONE! ===
i do get:Code:TRACE : gdelivery::connect gfactionserver successfully.
TRACE : gdelivery::gfactionclient: disconnect from server. reconnecting...
TRACE : gdelivery::connect gfactionserver successfully.
TRACE : gdelivery::gfactionclient: disconnect from server. reconnecting...
TRACE : gdelivery::connect gfactionserver successfully.
TRACE : gdelivery::gfactionclient: disconnect from server. reconnecting...
TRACE : gdelivery::connect gfactionserver successfully.
TRACE : gdelivery::gfactionclient: disconnect from server. reconnecting...
but http://192.168.0.50/register/status.php outputs offline. any ideas?Code:===============================================================
= ALL INSTANCES LOADED =
= SERVERS ARE UP AND RUNNING! =
===============================================================
When i try to connect to the server via 192.168.0.50:29000 with the PWHGN client it says it's up, but says under maintenance.Code:Linux ubuntu 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 05:23:09 UTC 2010 i686 GNU/Linux
the java bind address is in use is because you didnt kill java when you shutdown the server
try typing this in the terminal
pkill -9 java
you can add that to the begining of your start.sh file to kill java before it has a chance to bind again.
as for the webpages I am not sure my iweb was working but now i cant get jakarta to work :-(.
catalina not found is mostlikely due to it being written in dos. youre using ubuntu install tofrodos its a program that converts from dos to unix.
you can find it through synaptic package manager .
you can also add it to g edit. after it is installed.
in gedit go to edit, preferences, plugins
check external plugins then click configure.
in the new window look for the new button to create a new plugin.
name it fromdos and hit enter
then in the big window type in fromdos
in the input tab choose current document.
in the poutput tab choose replace current document.
then save and close
now you can access it in the tool menu of gedit
tools-external plugins -fromdos
open catalina.sh in gedit and then use fromdos on it, you may also have to do the same with setclasspath.sh, and im suprised you didnt have to do with with every text file in this package because i did :-)
Thanks, i'll test that jave thingy, for the file changing, i did it a little different, loaded all the .sh in vim then ":set ff=unix" save and close.