[Bug 1007433] Re: zookeeperd not running after installation of zookeeperd
Scott, good call. That was definitely a red herring. So this appears to be a circular dependency problem with dpkg... because zookeeperd -> zookeeper -> default-jre-headless -> openjdk-7-jre- headless This should always guarantee that openjdk-7-jre-headless is configured before zookeeperd. Instead it is somehow being configured *after* default-jre-headless and thus, the alternatives are not set up. There is a workaround.. if you install with --no-install-recommends The order is correct. This also exposes two other bugs to me: 1) /var/lib/zookeeper should belong to zookeeper 2) the upstart job should be reporting the failure, not 'start/running' ** Changed in: zookeeper (Ubuntu) Status: In Progress => Triaged ** Changed in: zookeeper (Ubuntu) Assignee: Clint Byrum (clint-fewbar) => (unassigned) ** Also affects: dpkg (Ubuntu) Importance: Undecided Status: New ** Summary changed: - zookeeperd not running after installation of zookeeperd + circular dependency causes zookeeperd to not be running after installation of zookeeperd -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to zookeeper in Ubuntu. https://bugs.launchpad.net/bugs/1007433 Title: circular dependency causes zookeeperd to not be running after installation of zookeeperd To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1007433/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1007433] Re: zookeeperd not running after installation of zookeeperd
@Clint, I'm pretty sure the issue is that java is not ready for use when zookeeperd attempts to start. Evidence to that fact is that if you install 'default-jre-headless' before installing zookeeperd, you get functional zookeeper, and you still get the warning. I think the issue is that the alternatives are just not getting setup (providing /usr/bin/java) before zookeeperd starts. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to zookeeper in Ubuntu. https://bugs.launchpad.net/bugs/1007433 Title: zookeeperd not running after installation of zookeeperd To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/zookeeper/+bug/1007433/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1007433] Re: zookeeperd not running after installation of zookeeperd
** Branch linked: lp:~clint-fewbar/ubuntu/quantal/zookeeper/fix- zookeeper-postinst-failure -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to zookeeper in Ubuntu. https://bugs.launchpad.net/bugs/1007433 Title: zookeeperd not running after installation of zookeeperd To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/zookeeper/+bug/1007433/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1007433] Re: zookeeperd not running after installation of zookeeperd
I think the problem lies here: adduser: Warning: The home directory `/var/lib/zookeeper' does not belong to the user you are currently creating. But in the packaging: debian/zookeeper.dirs:/var/lib/zookeeper Since the package "owns" the dir, it will be owned by root, which is wrong. So the fix is to remove that line from zookeeper.dirs. I don't believe this will have any ill effects, since the adduser will create it. I am testing that change right now. ** Changed in: zookeeper (Ubuntu) Status: Confirmed => In Progress ** Changed in: zookeeper (Ubuntu) Assignee: (unassigned) => Clint Byrum (clint-fewbar) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to zookeeper in Ubuntu. https://bugs.launchpad.net/bugs/1007433 Title: zookeeperd not running after installation of zookeeperd To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/zookeeper/+bug/1007433/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1007433] Re: zookeeperd not running after installation of zookeeperd
** Changed in: zookeeper (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to zookeeper in Ubuntu. https://bugs.launchpad.net/bugs/1007433 Title: zookeeperd not running after installation of zookeeperd To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/zookeeper/+bug/1007433/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1007433] Re: zookeeperd not running after installation of zookeeperd
I encounter the same issue while trying to use the same image for juju. If I use a precise image, cloud-init-output.log ends with: Installed /usr/lib/juju/juju Processing dependencies for juju==0.5 Finished processing dependencies for juju==0.5 % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total SpentLeft Speed 0 00 00 0 0 0 --:--:-- --:--:-- --:--:-- 0 10010 100100 0 80 0 --:--:-- --:--:-- --:--:--81 2012-06-01 09:42:15,150 INFO Initializing zookeeper hierarchy 2012-06-01 09:42:15,203 INFO 'initialize' command finished successfully juju-machine-agent start/running, process 4776 juju-provision-agent start/running, process 4779 with the quantal image that's: Installed /usr/lib/juju/juju Processing dependencies for juju==0.5 Finished processing dependencies for juju==0.5 % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total SpentLeft Speed 0 00 00 0 0 0 --:--:-- --:--:-- --:--:-- 0 10010 100100 0118 0 --:--:-- --:--:-- --:--:-- 120 could not connect before timeout 2012-06-01 13:43:21,156 ERROR could not connect before timeout Accordingly, (fuzzily matching the /var/log/syslog files) in precise: Jun 1 09:41:16 server-11237 acpid: 1 rule loaded Jun 1 09:41:16 server-11237 acpid: waiting for events: event logging is off Jun 1 09:41:16 server-11237 cron[874]: (CRON) INFO (Running @reboot jobs) Jun 1 09:41:16 server-11237 kernel: [ 10.366463] init: plymouth-upstart-bridge main process (781) killed by TERM signal Jun 1 09:41:21 server-11237 ntpdate[597]: step time server 91.189.94.4 offset 1.815666 sec Jun 1 09:42:03 server-11237 dhclient: DHCPREQUEST of 10.55.60.51 on eth0 to 10.55.60.1 port 67 in quantal: Jun 1 13:42:04 server-11254 acpid: 1 rule loaded Jun 1 13:42:04 server-11254 acpid: waiting for events: event logging is off Jun 1 13:42:04 server-11254 cron[915]: (CRON) INFO (Running @reboot jobs) Jun 1 13:42:05 server-11254 kernel: [ 10.863797] init: plymouth-stop pre-start process (1010) terminated with status 1 Jun 1 13:42:09 server-11254 ntpdate[669]: step time server 91.189.94.4 offset 1.476571 sec Jun 1 13:42:17 server-11254 ntpdate[1043]: adjust time server 91.189.94.4 offset -0.02 sec Jun 1 13:42:39 server-11254 ntpdate[1565]: adjust time server 91.189.94.4 offset 0.11 sec Jun 1 13:42:49 server-11254 kernel: [ 53.716385] init: zookeeper main process (7600) terminated with status 2 Jun 1 13:42:49 server-11254 kernel: [ 53.716407] init: zookeeper main process ended, respawning Jun 1 13:42:49 server-11254 kernel: [ 53.721173] init: zookeeper main process (7603) terminated with status 2 Jun 1 13:42:49 server-11254 kernel: [ 53.721194] init: zookeeper main process ended, respawning Jun 1 13:42:49 server-11254 kernel: [ 53.726910] init: zookeeper main process (7606) terminated with status 2 Jun 1 13:42:49 server-11254 kernel: [ 53.726933] init: zookeeper main process ended, respawning Jun 1 13:42:49 server-11254 kernel: [ 53.731772] init: zookeeper main process (7610) terminated with status 2 Jun 1 13:42:49 server-11254 kernel: [ 53.731809] init: zookeeper main process ended, respawning Jun 1 13:42:49 server-11254 kernel: [ 53.736305] init: zookeeper main process (7613) terminated with status 2 Jun 1 13:42:49 server-11254 kernel: [ 53.736326] init: zookeeper main process ended, respawning Jun 1 13:42:49 server-11254 kernel: [ 53.745407] init: zookeeper main process (7616) terminated with status 2 Jun 1 13:42:49 server-11254 kernel: [ 53.745429] init: zookeeper main process ended, respawning Jun 1 13:42:49 server-11254 kernel: [ 53.749924] init: zookeeper main process (7619) terminated with status 2 Jun 1 13:42:49 server-11254 kernel: [ 53.749946] init: zookeeper main process ended, respawning Jun 1 13:42:49 server-11254 kernel: [ 53.754772] init: zookeeper main process (7622) terminated with status 2 Jun 1 13:42:49 server-11254 kernel: [ 53.754798] init: zookeeper main process ended, respawning Jun 1 13:42:49 server-11254 kernel: [ 53.759302] init: zookeeper main process (7625) terminated with status 2 Jun 1 13:42:49 server-11254 kernel: [ 53.759327] init: zookeeper main process ended, respawning Jun 1 13:42:49 server-11254 kernel: [ 53.765900] init: zookeeper main process (7628) terminated with status 2 Jun 1 13:42:49 server-11254 kernel: [ 53.765922] init: zookeeper main process ended, respawning Jun 1 13:42:49 server-11254 kernel: [ 53.770424] init: zookeeper main process (7631) terminated with status 2 Jun 1 13:42:49 server-11254 kernel: [ 53.770445] init: zookeeper respawning too fast, stopped Jun 1 13:42:53 server-11254 dhclient: DHCPREQUEST of 10.55.60.114 on eth0 t
[Bug 1007433] Re: zookeeperd not running after installation of zookeeperd
This is reproducible if you purge everything that was installed, and then try again. $ addl="ca-certificates-java default-jre-headless fontconfig-config icedtea-7-jre-cacao icedtea-7-jre-jamvm java-common libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libfontconfig1 libjline-java libjpeg-turbo8 libjpeg8 liblcms2-2 liblog4j1.2-java libnetty-java libnspr4 libnss3 libnss3-1d libservlet2.5-java libxerces2-java libxml-commons-external-java libxml-commons-resolver1.1-java libzookeeper-java openjdk-7-jre-headless openjdk-7-jre-lib ttf-dejavu-core tzdata-java zookeeper zookeeperd" $ sudo apt-get --purge remove $addl $ sudo apt-get install zookeeperd It looks like the issue is that zookeeperd uses java (/usr/bin/java) but that does not get set up until update-alternatives is run, which is running after zookeeperd is installed. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to zookeeper in Ubuntu. https://bugs.launchpad.net/bugs/1007433 Title: zookeeperd not running after installation of zookeeperd To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/zookeeper/+bug/1007433/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1007433] Re: zookeeperd not running after installation of zookeeperd
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: zookeeper (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to zookeeper in Ubuntu. https://bugs.launchpad.net/bugs/1007433 Title: zookeeperd not running after installation of zookeeperd To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/zookeeper/+bug/1007433/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1007433] Re: zookeeperd not running after installation of zookeeperd
** Attachment added: "output of 'apt-get install zookeeperd'" https://bugs.launchpad.net/bugs/1007433/+attachment/3171456/+files/apt-get-install.log -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to zookeeper in Ubuntu. https://bugs.launchpad.net/bugs/1007433 Title: zookeeperd not running after installation of zookeeperd To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/zookeeper/+bug/1007433/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs