[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Running the server
. . -> [Subject]  No ./startup directory? (nohup error)

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

No ./startup directory? (nohup error)

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Pages: 1  2  3 4  

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Reply #30 on Fri 12 Oct 2007 08:25 PM (UTC)  quote  ]
Message
Then it's not running. Check the logs to see why it isn't starting.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Reply #31 on Fri 12 Oct 2007 11:31 PM (UTC)  quote  ]
Message
Try starting it "manually" - you may have bad or missing area files. eg.


cd ../area
../src/smaug

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Tseris   (98 posts)  [Biography] bio
Date Reply #32 on Sat 13 Oct 2007 12:08 AM (UTC)  quote  ]
Message
Okay I think you may be on to something because I went in and tried to start it again, and immediately checked the logs that started coming through, and all it is is a series of logs saying:

../src/smaug: Command not found.
[Go to top] top

Posted by Tseris   (98 posts)  [Biography] bio
Date Reply #33 on Sat 13 Oct 2007 12:15 AM (UTC)  quote  ]
Message
Not sure how to start it manually though
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Reply #34 on Sat 13 Oct 2007 12:23 AM (UTC)  quote  ]
Message
Did you compile the source first? You should have a file called 'smaug' in your src directory.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Tseris   (98 posts)  [Biography] bio
Date Reply #35 on Sat 13 Oct 2007 12:36 AM (UTC)  quote  ]
Message
That would be a negative, not seeing the file.
[Go to top] top

Posted by Tseris   (98 posts)  [Biography] bio
Date Reply #36 on Sat 13 Oct 2007 12:38 AM (UTC)  quote  ]
Message
...and suddenly feeling like everyone reading this just made the "God what an idiot" face...
[Go to top] top

Posted by Tseris   (98 posts)  [Biography] bio
Date Reply #37 on Sat 13 Oct 2007 12:42 AM (UTC)  quote  ]
Message
Latest attempt:

zach@Animus:~/Desktop/smaugfuss/src$ make
make -s smaug
Compiling o/comm.o....
In file included from comm.c:30:
mccp.h:18:18: error: zlib.h: No such file or directory
mccp.h:33: error: ISO C++ forbids declaration of ‘z_stream’ with no type
mccp.h:33: error: expected ‘;’ before ‘*’ token
comm.c: In function ‘bool write_to_descriptor(DESCRIPTOR_DATA*, char*, int)’:
comm.c:1639: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1641: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1642: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1644: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1646: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1647: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1649: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1651: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1651: error: ‘Z_SYNC_FLUSH’ was not declared in this scope
comm.c:1651: error: ‘deflate’ was not declared in this scope
comm.c:1653: error: ‘Z_OK’ was not declared in this scope
comm.c:1657: error: ‘struct mccp_data’ has no member named ‘out_compress’
comm.c:1695: error: ‘struct mccp_data’ has no member named ‘out_compress’
make[1]: *** [o/comm.o] Error 1
make: *** [all] Error 2
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Reply #38 on Sat 13 Oct 2007 01:45 AM (UTC)  quote  ]
Message
You don't have the zlib package, you need that.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Reply #39 on Sat 13 Oct 2007 06:50 AM (UTC)  quote  ]
Message
Open a terminal, and type:

sudo apt-get install zlib1g-dev

you'll have to enter your password.

After that, you'll have the zlib development libraries and should be able to compile your source code.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Tseris   (98 posts)  [Biography] bio
Date Reply #40 on Sat 13 Oct 2007 08:12 AM (UTC)  quote  ]
Message
Yes. Yes. Yes. Yes. Yes. Thank you guys so much. That was exactly it. Installed, compiled, started up, and running. Bang!
[Go to top] top

Posted by Gogoicarus   Japan  (15 posts)  [Biography] bio
Date Reply #41 on Wed 16 Sep 2009 01:49 PM (UTC)  quote  ]

Amended on Wed 16 Sep 2009 02:20 PM (UTC) by Gogoicarus

Message
Sorry to revive a dead topic, but I'm lost and have a similar problem.

When I try to run startup, with or without nohup, I'm told the directory doesn't exist.

sabrous@ps14248:~/src$ ./startup
: No such file or directory.

Just like everyone else here... Despite the fact that I do have tcsh installed on the server, it didn't help at all. Here's the first lines of the startup...

#! /bin/tcsh

# Set the port number.
set port = 4000
if ( "$1" != "" ) set port="$1"

Nothing out of the ordinary, no? Well, in an effort to stem the frustration that's plagueing us, someone coded a new startup file using bash. here's the first lines of that...

#!/bin/sh

####################################################
# Smaug startup script in bash #
# Written by Khtall for Sabrous #
# Functions the same as the normal startup script, #
# but it's written in bash, not csh. #
####################################################

#Name of the shutdown logfile
shutdown='shutdown.txt'

only when i try to run THAT, i get...

sabrous@ps14248:~/src$ ./sabstartup
-bash: ./sabstartup: /bin/sh^M: bad interpreter: No such file or directory
sabrous@ps14248:~/src$

what the hell. i've chmoded everything, and the server is adamant that it's 100% not their fault. but i can't think what on earth else it could be. the file works fine when tested on the offline version of the MUD. just not on the freakin server! HELP!


here's the ls -l of both files, in case it helps at all...

sabrous@ps14248:~/src$ ls -l startup
-rwxr--r-- 1 sabrous pg501817 1036 Sep 15 16:14 startup

sabrous@ps14248:~/src$ ls -l sabstartup
-rwxr-xr-x 1 sabrous pg501817 2308 Sep 16 05:50 sabstartup


after having checked out this post:
http://www.gammon.com.au/forum/?id=2322

i wonder if maybe the files are in DOS format? I did download them to a windows machine from the old server, and did edit them on my windows machine before re-uploading to the new server.

i tried to do a quick fix in vi in case this was the problem , but after inputting :1,$s/^M//g the pattern was not found. So, I'm guessing conversion ISN'T my problem.

so frustrated right now.

Star wars 'is a good movie.'
[Go to top] top

Posted by Gogoicarus   Japan  (15 posts)  [Biography] bio
Date Reply #42 on Wed 16 Sep 2009 02:17 PM (UTC)  quote  ]
Message
just to be 100% clear, I CAN run the MUD by going into the area directory and running smaug. she starts right up, in that case.

It just seems an extremely unreliable and ghetto way of running a MUD...I'd like my freakin' startup script!

Star wars 'is a good movie.'
[Go to top] top

Posted by Gogoicarus   Japan  (15 posts)  [Biography] bio
Date Reply #43 on Wed 16 Sep 2009 02:30 PM (UTC)  quote  ]

Amended on Wed 16 Sep 2009 02:39 PM (UTC) by Gogoicarus

Message
getting wild ideas in any attempt to progress at all.

sabrous@ps14248:~/src$ dos2unix sabstartup
sabrous@ps14248:~/src$ ./sabstartup
/proc/net/tcp: Permission denied

that's a NEW error. did my chmods reset?

sabrous@ps14248:~/src$ ls -l sabstartup
-rwxr-xr-x 1 sabrous pg501817 2229 Sep 16 07:28 sabstartup

looks the same as before...let's just set them to be sure?

sabrous@ps14248:~/src$ chmod u+x sabstartup
sabrous@ps14248:~/src$ ./sabstartup
/proc/net/tcp: Permission denied

okay so ...having read around this is maybe because i'm not in my root directory? WHATEVER YOU SAY, SERVER.


sabrous@ps14248:~$ ./src/sabstartup
./src/sabstartup: line 24: cd: ../area: No such file or directory
./src/sabstartup: line 48: ../log/1000.log: No such file or directory
./src/sabstartup: line 49: ../area/boot.txt: No such file or directory
/proc/net/tcp: Permission denied

now you really got me. the area folder DOES exist, there's no boot.txt in the area folder or 1000.log in the logs folder, but should that really matter? not to mention, permission still denied?

what is going ON?


Star wars 'is a good movie.'
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Reply #44 on Wed 16 Sep 2009 02:52 PM (UTC)  quote  ]
Message
Why is it trying to access /proc/net/tcp? What is your startup script doing?

By the way,
#! /bin/tcsh 

note the extra space in between the ! and the / -- that should not be there.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


13,841 views.

This is page 3, subject is 4 pages long:  [Previous page]  1  2  3 4  [Next page]

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]