Jump to content
  • 0

-bash: ./athena-start: /bin/sh^M:


Liliadent

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  02/07/17
  • Last Seen:  

Hi Guys,

I'm having trouble installing/running rathena, I don't know what to do anymore I've been figuring how to run it on vps in digitalocean.

First i have trouble compiling the server and now this.

qq.png.acd76e190aaf76a02d0ff7f816e51011.png

 

Hope I got someone to answer. Thanks in advance.

 

Link to comment
Share on other sites

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

i sense this is resource issue, you using 1gb ram?
and what is the version of rathena you using?

pretty sure this issue will be solved if you upgrade it to one gb ram

 

and also check ram when stopped while loading npc's scripts at some point

Edited by Cyro
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  399
  • Reputation:   69
  • Joined:  12/26/15
  • Last Seen:  

10 minutes ago, Liliadent said:

Hi Guys,

I'm having trouble installing/running rathena, I don't know what to do anymore I've been figuring how to run it on vps in digitalocean.

First i have trouble compiling the server and now this.

qq.png.acd76e190aaf76a02d0ff7f816e51011.png

 

Hope I got someone to answer. Thanks in advance.

 

try to clone latest rathena repo? coz i see it stated there nothing to be done.

go back to home / user directory & execute this command

git clone https://github.com/rathena/rathena.git ~/rAthena

Noted: do not run emulator on root user..

  • Upvote 2
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  02/07/17
  • Last Seen:  

^ Thanks man I managed to run it, Now another problem appears. This is actually the one i'm having trouble of. BTW. I read that "do not run emulator on root user.", but I can't compile on a created user. It gives -bash: ./configure: permission denied everytime i ./configure.

rr.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

execute chmod a+x configure to allow permission.

for -bash: ./athena-start: /bin/sh^M: bad interpreter: No such file or directory
convert the athena-start first using dos2unix. type dos2unix athena-start

Edited by Technoken
  • Upvote 3
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  399
  • Reputation:   69
  • Joined:  12/26/15
  • Last Seen:  

21 minutes ago, Technoken said:

for -bash: ./athena-start: /bin/sh^M: bad interpreter: No such file or directory
convert the athena-start first using dos2unix. type dos2unix athena-start

well.. i think i get this.. the trunk folder was transfer from windows OS.. so by dos2unix, it will convert it to be read in linux..

Edited by hazimjauhari90
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  02/07/17
  • Last Seen:  

24 minutes ago, Technoken said:

execute chmod a+x configure to allow permission.

for -bash: ./athena-start: /bin/sh^M: bad interpreter: No such file or directory
convert the athena-start first using dos2unix. type dos2unix athena-start

I already tried those, ww.png.8a9890c00d07f63b0387d5fa58ba86ca.png  

 

Does it have something to do with the map-server disconnecting?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

Try to change permission via root user.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  399
  • Reputation:   69
  • Joined:  12/26/15
  • Last Seen:  

well.. i'm host running rathena on digital ocean too... but never had come with this configure permission issue.. even no need to set the permission.. anyway i'm running on ubuntu... but, i don't this causing the issue..

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

Did the compilation run smoothly? try to recompile it again and see if the compilation ends until vending.c. execute ./configure && make clean && make server

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  02/07/17
  • Last Seen:  

9 minutes ago, Technoken said:

Did the compilation run smoothly? try to recompile it again and see if the compilation ends until vending.c. execute ./configure && make clean && make server

wqqq.png.ac66fc1fa2a494cf2d9e371c57a8a2a4.png

Yeah, I think it compiled perfectly.

 

20 minutes ago, hazimjauhari90 said:

well.. i'm host running rathena on digital ocean too... but never had come with this configure permission issue.. even no need to set the permission.. anyway i'm running on ubuntu... but, i don't this causing the issue..

I actually rebuild 7x with centos and tried ubuntu and debian once ... I kinda having the same problem when it comes to compile I might try it again if the problem persists ..

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  399
  • Reputation:   69
  • Joined:  12/26/15
  • Last Seen:  

2 minutes ago, Liliadent said:

wqqq.png.ac66fc1fa2a494cf2d9e371c57a8a2a4.png

Yeah, I think it compiled perfectly.

 

I actually rebuild 7x with centos and tried ubuntu and debian once ... I kinda having the same problem when it comes to compile I might try it again if the problem persists ..

What ubuntu version u r using previously which having configure issue anyway?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

The only problem you got now is being disconnected after running the map-server and it's now showing any errors?

I once encountered this kind of error because of an item shop. I forgot to add the requirement and it causing the disconnection of map-server just like crashing it without showing any map error. Try to review some of custom shops.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  02/07/17
  • Last Seen:  

36 minutes ago, hazimjauhari90 said:

What ubuntu version u r using previously which having configure issue anyway?

it was the ubuntu 17.04 x64, i think i have the same problem with ./configure also giving me permission denied.

 

29 minutes ago, Technoken said:

The only problem you got now is being disconnected after running the map-server and it's now showing any errors?

I once encountered this kind of error because of an item shop. I forgot to add the requirement and it causing the disconnection of map-server just like crashing it without showing any map error. Try to review some of custom shops.

Hmm. What do you mean about custom shops? You mean npcs? I notice when I first ./athena-start start the console stops at some point.. like in "Loading NPC file: ??", I have to reboot it to see the rest.

But I don't have custom npc's. So I doubt that was the case.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  399
  • Reputation:   69
  • Joined:  12/26/15
  • Last Seen:  

16 minutes ago, Liliadent said:

it was the ubuntu 17.04 x64, i think i have the same problem with ./configure also giving me permission denied.

 

Hmm. What do you mean about custom shops? You mean npcs? I notice when I first ./athena-start start the console stops at some point.. like in "Loading NPC file: ??", I have to reboot it to see the rest.

But I don't have custom npc's. So I doubt that was the case.

Try ubuntu 14.04.5

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

I'm running my server Centos 7 and didn't encounter such issue. Might be because of some configuration. Are you using the latest git hash from rathena github?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  02/07/17
  • Last Seen:  

5 hours ago, hazimjauhari90 said:

Try ubuntu 14.04.5

Tried man, I used setup guide from vulcan i got stuck at adding mysql files.

4 hours ago, Technoken said:

I'm running my server Centos 7 and didn't encounter such issue. Might be because of some configuration. Are you using the latest git hash from rathena github?

I rebooted again, installation process went fine. Didn't got a ./configure error or ./athena-start problem. Uses the latest git but I think the problem i'm having. But I can't tell for sure.

 

shit.png.2d8506ea18d99bdfb02994150413f889.png

as you can see the loads stop at [Status]: Done loading '0' entries for '0' NPC Markets from 'market' table.

I can't tell if my map server is disconnecting or I'm having a packetserver error which I doubt.

BTW. I'm not using root anymore Yay.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

Did you compile your mmo.h packet ver to 2015-09-16?

Does your char and login server communicates with map server? Try to execute login, char, and map server on a different terminal and see if it gives any error or warnings. I'm also having a hunch that it might be because of firewall not allowing the servers to communicate.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  02/07/17
  • Last Seen:  

24 minutes ago, Technoken said:

Did you compile your mmo.h packet ver to 2015-09-16?

Does your char and login server communicates with map server? Try to execute login, char, and map server on a different terminal and see if it gives any error or warnings. I'm also having a hunch that it might be because of firewall not allowing the servers to communicate.

Yea, I did recompile  to #define PACKETVER 20150916. I think char connects to the login server. I jsut don't know if mapserver is disconnecting again. How to execute them individually ?  ... I thought of that too that it has something to do with firewall or ports.

 

24 minutes ago, Cyro said:

i sense this is resource issue, you using 1gb ram?
and what is the version of rathena you using?

pretty sure this issue will be solved if you upgrade it to one gb ram

 

and also check ram when stopped while loading npc's scripts at some point

really? I was actually using 512ram i thought it was enough.. i'm not even using VNC.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

Try was @Cyro says it might actually because of ram.

instead of ./athena-start start, execute this commands on different terminals.

./map-server
./char-server
./login-server

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

Mind showing us ram usage? 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  02/07/17
  • Last Seen:  

2 minutes ago, Technoken said:

Try was @Cyro says it might actually because of ram.

instead of ./athena-start start, execute this commands on different terminals.


./map-server
./char-server
./login-server

 

Yea, it was a map server... i needed to upgrade to 1gb ram?

qqw.png

 

how to check ram?

Edited by Liliadent
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  02/07/17
  • Last Seen:  

5 minutes ago, Cyro said:

Mind showing us ram usage? 

OMG. I think I need more ram?

fuck.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

@Liliadent Looks like you actually need to upgrade your ram.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  399
  • Reputation:   69
  • Joined:  12/26/15
  • Last Seen:  

 

30 minutes ago, Liliadent said:

OMG. I think I need more ram?

fuck.png

Well.. rathena on idle state already consume 420 MB if i'm not mistaken.. u should upgrade to 1GB ram instead

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  02/07/17
  • Last Seen:  

Yeah it works now man. Thanks a lot. After 2 days of struggle it was ram all along :lol:

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...