Skip to content

Instantly share code, notes, and snippets.

@mjgiarlo
Created November 9, 2010 01:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjgiarlo/668575 to your computer and use it in GitHub Desktop.
Save mjgiarlo/668575 to your computer and use it in GitHub Desktop.
Looks like start_all has a bug?
# Start up the router, perl, and c services
$ osrf_ctl.sh -a start_router -l
$ osrf_ctl.sh -a start_perl -l
$ osrf_ctl.sh -a start_c -l
# Start all python services via start_all (produces an error)
$ opensrf.py -d -p /opensrf/var/run -f /opensrf/etc/opensrf_core.xml -a start_all -l
* starting all services for localhost
* starting psu.stewardship.versioning
* starting psu.stewardship.fixity
* starting psu.stewardship.identity
* starting psu.stewardship.storage
Error in sys.exitfunc:
# Only two python services were started though all four pidfiles were written.
$ sudo ejabberdctl connected_users
opensrf@private.localhost/opensrf.persist_drone_at_localhost_21554
opensrf@private.localhost/opensrf.persist_drone_at_localhost_21555
opensrf@private.localhost/opensrf.persist_drone_at_localhost_21556
opensrf@private.localhost/opensrf.persist_drone_at_localhost_21557
opensrf@private.localhost/opensrf.persist_drone_at_localhost_21558
opensrf@private.localhost/opensrf.persist_listener_at_localhost_21553
opensrf@private.localhost/opensrf.settings_drone_at_localhost_21545
opensrf@private.localhost/opensrf.settings_drone_at_localhost_21546
opensrf@private.localhost/opensrf.settings_drone_at_localhost_21547
opensrf@private.localhost/opensrf.settings_drone_at_localhost_21548
opensrf@private.localhost/opensrf.settings_drone_at_localhost_21549
opensrf@private.localhost/opensrf.settings_listener_at_localhost_21544
opensrf@private.localhost/psu.stewardship.fixity_drone_cardinal:21601_mainthread
opensrf@private.localhost/psu.stewardship.fixity_drone_cardinal:21602_mainthread
opensrf@private.localhost/psu.stewardship.fixity_drone_cardinal:21607_mainthread
opensrf@private.localhost/psu.stewardship.fixity_drone_cardinal:21608_mainthread
opensrf@private.localhost/psu.stewardship.fixity_drone_cardinal:21609_mainthread
opensrf@private.localhost/psu.stewardship.fixity_listener_cardinal:21597_mainthread
opensrf@private.localhost/psu.stewardship.identity_drone_cardinal:21600_mainthread
opensrf@private.localhost/psu.stewardship.identity_drone_cardinal:21603_mainthread
opensrf@private.localhost/psu.stewardship.identity_drone_cardinal:21604_mainthread
opensrf@private.localhost/psu.stewardship.identity_drone_cardinal:21605_mainthread
opensrf@private.localhost/psu.stewardship.identity_drone_cardinal:21606_mainthread
opensrf@private.localhost/psu.stewardship.identity_listener_cardinal:21598_mainthread
router@private.localhost/opensrf.persist
router@private.localhost/opensrf.settings
router@private.localhost/psu.stewardship.fixity
router@private.localhost/psu.stewardship.identity
router@private.localhost/router
router@public.localhost/psu.stewardship.fixity
router@public.localhost/psu.stewardship.identity
router@public.localhost/router
# Stop all python services
$ opensrf.py -d -p /opensrf/var/run -f /opensrf/etc/opensrf_core.xml -a stop_all -l
# Start all python services via start
$ opensrf.py -d -p /opensrf/var/run -f /opensrf/etc/opensrf_core.xml -a start -l -s psu.stewardship.identity
$ opensrf.py -d -p /opensrf/var/run -f /opensrf/etc/opensrf_core.xml -a start -l -s psu.stewardship.fixity
$ opensrf.py -d -p /opensrf/var/run -f /opensrf/etc/opensrf_core.xml -a start -l -s psu.stewardship.storage
$ opensrf.py -d -p /opensrf/var/run -f /opensrf/etc/opensrf_core.xml -a start -l -s psu.stewardship.versioning
# Now all four services are running
$ sudo ejabberdctl connected_users
opensrf@private.localhost/opensrf.persist_drone_at_localhost_21554
opensrf@private.localhost/opensrf.persist_drone_at_localhost_21555
opensrf@private.localhost/opensrf.persist_drone_at_localhost_21556
opensrf@private.localhost/opensrf.persist_drone_at_localhost_21557
opensrf@private.localhost/opensrf.persist_drone_at_localhost_21558
opensrf@private.localhost/opensrf.persist_listener_at_localhost_21553
opensrf@private.localhost/opensrf.settings_drone_at_localhost_21545
opensrf@private.localhost/opensrf.settings_drone_at_localhost_21546
opensrf@private.localhost/opensrf.settings_drone_at_localhost_21547
opensrf@private.localhost/opensrf.settings_drone_at_localhost_21548
opensrf@private.localhost/opensrf.settings_drone_at_localhost_21549
opensrf@private.localhost/opensrf.settings_listener_at_localhost_21544
opensrf@private.localhost/psu.stewardship.fixity_drone_cardinal:21650_mainthread
opensrf@private.localhost/psu.stewardship.fixity_drone_cardinal:21651_mainthread
opensrf@private.localhost/psu.stewardship.fixity_drone_cardinal:21652_mainthread
opensrf@private.localhost/psu.stewardship.fixity_drone_cardinal:21653_mainthread
opensrf@private.localhost/psu.stewardship.fixity_drone_cardinal:21654_mainthread
opensrf@private.localhost/psu.stewardship.fixity_listener_cardinal:21649_mainthread
opensrf@private.localhost/psu.stewardship.identity_drone_cardinal:21643_mainthread
opensrf@private.localhost/psu.stewardship.identity_drone_cardinal:21644_mainthread
opensrf@private.localhost/psu.stewardship.identity_drone_cardinal:21645_mainthread
opensrf@private.localhost/psu.stewardship.identity_drone_cardinal:21646_mainthread
opensrf@private.localhost/psu.stewardship.identity_drone_cardinal:21647_mainthread
opensrf@private.localhost/psu.stewardship.identity_listener_cardinal:21642_mainthread
opensrf@private.localhost/psu.stewardship.storage_drone_cardinal:21662_mainthread
opensrf@private.localhost/psu.stewardship.storage_drone_cardinal:21663_mainthread
opensrf@private.localhost/psu.stewardship.storage_drone_cardinal:21664_mainthread
opensrf@private.localhost/psu.stewardship.storage_drone_cardinal:21665_mainthread
opensrf@private.localhost/psu.stewardship.storage_drone_cardinal:21666_mainthread
opensrf@private.localhost/psu.stewardship.storage_listener_cardinal:21661_mainthread
opensrf@private.localhost/psu.stewardship.versioning_drone_cardinal:21669_mainthread
opensrf@private.localhost/psu.stewardship.versioning_drone_cardinal:21670_mainthread
opensrf@private.localhost/psu.stewardship.versioning_drone_cardinal:21671_mainthread
opensrf@private.localhost/psu.stewardship.versioning_drone_cardinal:21672_mainthread
opensrf@private.localhost/psu.stewardship.versioning_drone_cardinal:21673_mainthread
opensrf@private.localhost/psu.stewardship.versioning_listener_cardinal:21668_mainthread
router@private.localhost/opensrf.persist
router@private.localhost/opensrf.settings
router@private.localhost/psu.stewardship.fixity
router@private.localhost/psu.stewardship.identity
router@private.localhost/psu.stewardship.storage
router@private.localhost/psu.stewardship.versioning
router@private.localhost/router
router@public.localhost/psu.stewardship.fixity
router@public.localhost/psu.stewardship.identity
router@public.localhost/psu.stewardship.storage
router@public.localhost/psu.stewardship.versioning
router@public.localhost/router
# Since the services run and are usable when started individually, it does not seem to be an issue with conf files or python service code?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment