Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject:
PostPosted: Sat Mar 31, 2012 8:26 am 
Offline
Junior Member

Joined: Mon Mar 26, 2012 5:50 am
Posts: 22
I'm having Lish trouble :(

It logs me into Lish and then it's sitting at:

Code:
[linode185164@fremont182 lish] Linode Shell (lish) Console starting...
[linode185164@fremont182 lish]
<some menu command text>
Ubuntu 11.10 sadhana hvc0

sadhana login:


How can I abort login? I can't seem to esc out of this so I'm unable to type the log view command.

Thanks for the continued help!


Top
   
 Post subject:
PostPosted: Sat Mar 31, 2012 8:27 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Press ctrl+a then d, it's a screen session that will bring you to the lish prompt

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sat Mar 31, 2012 8:41 am 
Offline
Junior Member

Joined: Mon Mar 26, 2012 5:50 am
Posts: 22
Okay, I didn't understand the screen session comments applied to what I was doing, thanks that helped.

And running log view yields:

Code:
Showing last 100 lines from current boot
-----------------------------------------
SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled
SGI XFS Quota Management subsystem
GFS2 installed
msgmni has been set to 989
NET: Registered protocol family 38
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Event-channel device installed.
brd: module loaded
loop: module loaded
nbd: registered device at major 43
drbd: initialized. Version: 8.3.11 (api:88/proto:86-96)
drbd: built-in
drbd: registered as block device major 147
drbd: minor_table @ 0xdef806c0
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
PPTP driver version 0.8.5
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256) (6 bit encapsulation enabled).
CSLIP: code copyright 1989 Regents of the University of California.
SLIP linefill/keepalive option.
Initialising Xen virtual ethernet driver.
blkfront: xvda: barrier: enabled
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
i8042: No controller found
mousedev: PS/2 mouse device common for all mice
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
md: multipath personality registered for level -4
device-mapper: ioctl: 4.20.0-ioctl (2011-02-02) initialised: dm-devel@redhat.com
padlock_aes: VIA PadLock not detected.
padlock_sha: VIA PadLock Hash Engine not detected.
GACT probability NOT on
u32 classifier
    Performance counters on
    Actions configured
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (8192 buckets, 65536 max)
ctnetlink v0.93: registering with nfnetlink.
xt_time: kernel timezone is -0000
ip_set: protocol 6
IPv4 over IPv4 tunneling driver
GRE over IPv4 demultiplexor driver
GRE over IPv4 tunneling driver
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 10
ip6_tables: (C) 2000-2006 Netfilter Core Team
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
Bridge firewalling registered
Ebtables v2.0 registered
802.1Q VLAN Support v1.8
sctp: Hash tables configured (established 16384 bind 16384)
Registering the dns_resolver key type
Using IPI No-Shortcut mode
registered taskstats version 1
 xvda: unknown partition table
blkfront: xvdb: barrier: enabled
 xvdb: unknown partition table
Setting capacity to 524288
xvdb: detected capacity change from 0 to 268435456
XENBUS: Device with no driver: device/console/0
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
EXT3-fs: barriers not enabled
kjournald starting.  Commit interval 5 seconds
EXT3-fs (xvda): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) readonly on device 202:0.
devtmpfs: mounted
Freeing unused kernel memory: 388k freed
Write protecting the kernel text: 5984k
Write protecting the kernel read-only data: 1432k
NX-protecting the kernel data: 3232k
FATAL: Module nf_conntrack_ftp not found.
FATAL: Module nf_nat_ftp not found.
FATAL: Module nf_conntrack_netbios_ns not found.
fsck from util-linux 2.19.1
/dev/xvda: clean, 29850/573856 files, 209900/2560000 blocks
spawn-fcgi: child spawned successfully: PID: 2143
 * Starting NTP server ntpd                                              [ OK ]

Ubuntu 11.10 sadhana hvc0

sadhana login:
[linode185164@fremont182 lish]#


No nginx mentioned...


Top
   
 Post subject:
PostPosted: Sat Mar 31, 2012 8:48 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Yep looks like some how you managed to break the init scripts on installation, try running
Code:
update-rc.d -f nginx remove; update-rc.d nginx defaults
then reboot.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sat Mar 31, 2012 8:54 am 
Offline
Junior Member

Joined: Mon Mar 26, 2012 5:50 am
Posts: 22
Before I posted my original post, I looked at that and ran that exact command.

I did it again:
Code:
root@sadhana:/home# update-rc.d -f nginx remove; update-rc.d nginx defaults
 Removing any system startup links for /etc/init.d/nginx ...
   /etc/rc0.d/K20nginx
   /etc/rc1.d/K20nginx
   /etc/rc2.d/S20nginx
   /etc/rc3.d/S20nginx
   /etc/rc4.d/S20nginx
   /etc/rc5.d/S20nginx
   /etc/rc6.d/K20nginx
 Adding system startup for /etc/init.d/nginx ...
   /etc/rc0.d/K20nginx -> ../init.d/nginx
   /etc/rc1.d/K20nginx -> ../init.d/nginx
   /etc/rc6.d/K20nginx -> ../init.d/nginx
   /etc/rc2.d/S20nginx -> ../init.d/nginx
   /etc/rc3.d/S20nginx -> ../init.d/nginx
   /etc/rc4.d/S20nginx -> ../init.d/nginx
   /etc/rc5.d/S20nginx -> ../init.d/nginx
root@sadhana:/home#


And on reboot, nginx is still not running. The plot thickens :)

Very much appreciate you taking part of your weekend to help. Hopefully not detracting you too much from your dissertation!


Top
   
 Post subject:
PostPosted: Sat Mar 31, 2012 8:55 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Eh I should be doing it but I'm having a lazy weekend.

Does running /etc/init.d/nginx start manually start nginx?

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sat Mar 31, 2012 9:00 am 
Offline
Junior Member

Joined: Mon Mar 26, 2012 5:50 am
Posts: 22
Nope, /etc/init.d/nginx start doesn't work, but just nginx does.

Contents of /etc/init.d/nginx

Code:
#! /bin/sh

### BEGIN INIT INFO
# Provides:          nginx
# Required-Start:    $all
# Required-Stop:     $all
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: starts the nginx web server
# Description:       starts nginx using start-stop-daemon
### END INIT INFO

PATH=/opt/nginx/sbin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/opt/nginx/sbin/nginx
NAME=nginx
DESC=nginx

test -x $DAEMON || exit 0

# Include nginx defaults if available
if [ -f /etc/default/nginx ] ; then
        . /etc/default/nginx
fi

set -e

case "$1" in
  start)
        echo -n "Starting $DESC: "
        start-stop-daemon --start --quiet --pidfile /opt/nginx/logs/$NAME.pid \
                --exec $DAEMON -- $DAEMON_OPTS
        echo "$NAME."
        ;;
  stop)
        echo -n "Stopping $DESC: "
        start-stop-daemon --stop --quiet --pidfile /opt/nginx/logs/$NAME.pid \
                --exec $DAEMON
        echo "$NAME."
        ;;
  restart|force-reload)
        echo -n "Restarting $DESC: "
        start-stop-daemon --stop --quiet --pidfile \
                /opt/nginx/logs/$NAME.pid --exec $DAEMON
        sleep 1
        start-stop-daemon --start --quiet --pidfile \
                /opt/nginx/logs/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
        echo "$NAME."
        ;;
  reload)
         echo -n "Reloading $DESC configuration: "
          start-stop-daemon --stop --signal HUP --quiet --pidfile     /opt/nginx/logs/$NAME.pid \
              --exec $DAEMON
          echo "$NAME."
          ;;
      *)
            N=/etc/init.d/$NAME
            echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
            exit 1
            ;;
    esac

    exit 0


What's your dissertation on?


Top
   
 Post subject:
PostPosted: Sat Mar 31, 2012 9:06 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
It's on building asynchronous javascript applications, bit like how the new gmail and twitter interfaces work but on a smaller scale (I get to build browser based computer games for a dissertation :D )

Anyway you're init script is fubard, looks like you replaced it with the one you use for building from source, replace it with http://pastebin.linode.com/6486 which I copied from ubuntu 11.10's apt package

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sat Mar 31, 2012 9:14 am 
Offline
Junior Member

Joined: Mon Mar 26, 2012 5:50 am
Posts: 22
Success!

Well, obviously at some point I overwrote the script as you pointed out, must have been done when I was double-checking everything and noticed a difference and mistakenly overwrote it. Bah! Very sorry to have taken so much of your time for a user error :(

But if I can return the favor somehow let me know. I have been developing games professionally for more than 20 years so if I can be of service during your dissertation, let me know!

Cheers,
Brett


Top
   
 Post subject:
PostPosted: Sat Mar 31, 2012 9:17 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
No worries :) now I'll go and do something else useful *has pages and pages to read*

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sat Mar 31, 2012 9:19 am 
Offline
Junior Member

Joined: Mon Mar 26, 2012 5:50 am
Posts: 22
Good luck!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group