Trouble running server

Content and general development discussion, including quest scripts and server code. TMW Classic is a project comprising the Legacy tmwAthena server & the designated improved engine server based on evolHercules.


Forum rules

This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.

Its current use is for the continued development of the server and game it has always served: TMW Classic.

Post Reply
toplomj3r
Newly Registered User
Posts: 12
Joined: 17 Dec 2014, 01:32

Trouble running server

Post by toplomj3r »

Hi guys,

I've been handed ManaWorld server to install db,some custom scripts and few other things so I stopped manaworld .
After I finished with my stuff I tried to run ./run-all script to start server again and I got an error .
I havent modified any of server config files or deleted anything.

Code: Select all

 % ./run-all
./run-all: line 6: tmwa-login: command not found
./run-all: line 7: tmwa-char: command not found
./run-all: line 8: tmwa-map: command not found
this is how run-all script looks like

Code: Select all

 % cat ./run-all
#!/bin/bash
SELF=$(realpath $(which "$0"))
cd "$(dirname "$SELF")"

trap 'kill %1 %2 %3' SIGHUP SIGINT SIGQUIT SIGABRT SIGTERM
( cd login && tmwa-login ) &
( cd world && tmwa-char ) &
( cd world/map && tmwa-map ) &

wait

I haven't installed server by myself so I don't really know what was done properly and what was not been done but the thing is I need to make it running.

I really don't know what could I do to make that happen so if anyone knows what could I do to fix this problem (or at least where to start)
I would be very gratefull to share it with me.

:(
User avatar
wushin
TMW Adviser
TMW Adviser
Posts: 1759
Joined: 18 Dec 2012, 05:56
Location: RiverBest, Brew City, Merica
Contact:

Re: Trouble running server

Post by wushin »

If the person that installed it did it correctly it should be in their ~/bin/ local only to that user.

i.e. /home/user/bin/tmwa-login

which needs to be added to your path if you are a different user on the server.
The secret to getting all the important stuff done is doing nothing.
User avatar
gumi
TMW Adviser
TMW Adviser
Posts: 797
Joined: 19 May 2014, 18:18

Re: Trouble running server

Post by gumi »

make sure to add --user when you do ./configure and do not do make or make install with sudo
toplomj3r
Newly Registered User
Posts: 12
Joined: 17 Dec 2014, 01:32

Re: Trouble running server

Post by toplomj3r »

Yeah, I've found it (tmwa-login).

It's under root/bin/.
And when I try to run it it says:

Code: Select all

Unable to open file: conf/tmwa-login.conf
***WARNING: 'To GM become' password is void (gm_pass).
            We highly recommend that you set one password.
LAN test of LAN IP of the char-server: LAN test (result): LAN source.
read_gm_account: GM accounts file [save/gm_account.txt] not found.
                 Actually, there is no GM accounts on the server.
mmo_auth_init: Accounts file [save/account.txt] not found.
The login-server is ready (Server is listening on the port 6900).

Fatal error during startup; exiting
I don't have permission to enter root directory so it's kinda black box to me but I've found gm file(gm_account.txt) in another location which is not under root directory so I'm guessing they are not linked properly.

God knows what was done here.

:?
toplomj3r
Newly Registered User
Posts: 12
Joined: 17 Dec 2014, 01:32

Re: Trouble running server

Post by toplomj3r »

meko wrote:make sure to add --user when you do ./configure and do not do make or make install with sudo
That was done already.The server was up and running, so I guess that part was done and working but something is wrong.

I'm not in position to run fresh installation so I'm just gonna try to make this thing work somehow.
User avatar
gumi
TMW Adviser
TMW Adviser
Posts: 797
Joined: 19 May 2014, 18:18

Re: Trouble running server

Post by gumi »

toplomj3r wrote:
meko wrote:make sure to add --user when you do ./configure and do not do make or make install with sudo
That was done already.The server was up and running, so I guess that part was done and working but something is wrong.

I'm not in position to run fresh installation so I'm just gonna try to make this thing work somehow.
no, this obviously wasn't done if it was installed under root
toplomj3r
Newly Registered User
Posts: 12
Joined: 17 Dec 2014, 01:32

Re: Trouble running server

Post by toplomj3r »

meko wrote: no, this obviously wasn't done if it was installed under root
Ok, then I will report that so it colud be fixed.

Tnx for your help.
Post Reply