``www-data`` or ``apache`` user and an existing ``.asok`` is
preventing the script from starting the daemon.
+The radosgw init script (/etc/init.d/radosgw) also has a verbose argument that
+can provide some insight as to what could be the issue:
+
+ /etc/init.d/radosgw start -v
+
+or
+
+ /etc/init.d radosgw start --verbose
HTTP Request Errors
===================
fi
}
+VERBOSE=0
+for opt in $*; do
+ if [ "$opt" = "-v" ] || [ "$opt" = "--verbose" ]; then
+ VERBOSE=1
+ fi
+done
+
# prefix for radosgw instances in ceph.conf
PREFIX='client.radosgw.'
RADOSGW=`which radosgw`
if [ ! -x "$RADOSGW" ]; then
+ [ $VERBOSE -eq 1 ] && echo "$RADOSGW could not start, it is not executable."
exit 1
fi
# mapped to this host?
host=`ceph-conf -n $name host`
- if [ "$host" != `hostname -s` ]; then
+ hostname=`hostname -s`
+ if [ "$host" != "$hostname" ]; then
+ [ $VERBOSE -eq 1 ] && echo "hostname $hostname could not be found in ceph.conf:[$name], not starting."
continue
fi
daemon_is_running $RADOSGW
;;
*)
- echo "Usage: $0 start|stop|restart|force-reload|reload|status" >&2
+ echo "Usage: $0 {start|stop|restart|force-reload|reload|status} [-v|--verbose]" >&2
exit 3
;;
esac
fi
}
+VERBOSE=0
+for opt in $*; do
+ if [ "$opt" = "-v" ] || [ "$opt" = "--verbose" ]; then
+ VERBOSE=1
+ fi
+done
+
# prefix for radosgw instances in ceph.conf
PREFIX='client.radosgw.'
RADOSGW=`which radosgw`
if [ ! -x "$RADOSGW" ]; then
+ [ $VERBOSE -eq 1 ] && echo "$RADOSGW could not start, it is not executable."
exit 1
fi
# mapped to this host?
host=`ceph-conf -n $name host`
- if [ "$host" != `hostname -s` ]; then
+ hostname=`hostname -s`
+ if [ "$host" != "$hostname" ]; then
+ [ $VERBOSE -eq 1 ] && echo "hostname $hostname could not be found in ceph.conf:[$name], not starting."
continue
fi
daemon_is_running $RADOSGW
;;
*)
- echo "Usage: $0 start|stop|restart|force-reload|reload|status" >&2
+ echo "Usage: $0 {start|stop|restart|force-reload|reload|status} [-v|--verbose]" >&2
exit 3
;;
esac