Install Error - missing rsync

Bug #1031362 reported by Garrett Carson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
statusnet (Juju Charms Collection)
Fix Released
Undecided
Unassigned

Bug Description

I am brand new to the world of juju, so forgive me if I'm missing something obvious.
Basically just rsync is missing and install fails, easily fixable. Here's the context in case it helps.

I am deploying nodes as suggested by the nagios charm
[code]
juju deploy nagios central-monitor
juju deploy mysql big-db
(fails here) juju deploy statusnet microblog
juju add-relation big-db microblog
juju add-relation big-db central-monitor
juju add-relation microblog central-monitor
[/code]

at "juju deploy statusnet microblog" the install hook fails
[code]
2012-07-31 08:08:02,667 unit:microblog/1: unit.hook.api INFO: Downloading and verifying StatusNet
2012-07-31 08:08:51,769 unit:microblog/1: unit.hook.api INFO: Extracting StatusNet
2012-07-31 08:08:52,009 unit:microblog/1: unit.hook.api INFO: Relocating files to document root
2012-07-31 08:08:52,036 unit:microblog/1: hook.output INFO: /tmp /var/www

2012-07-31 08:08:52,807 unit:microblog/1: hook.output ERROR: /var/lib/juju/units/microblog-1/charm/hooks/install: line 28: rsync: command not found

2012-07-31 08:08:52,808 unit:microblog/1: hook.output DEBUG: hook install exited, exit code Traceback (most recent call last):
Failure: juju.errors.CharmInvocationError: Error processing '/var/lib/juju/units/microblog-1/charm/hooks/install': exit code 127.
.
2012-07-31 08:08:52,808 unit:microblog/1: hook.executor DEBUG: Hook error: /var/lib/juju/units/microblog-1/charm/hooks/install Error processing '/var/lib/juju/units/microblog-1/charm/hooks/install': exit code 127.
2012-07-31 08:08:52,809 unit:microblog/1: statemachine DEBUG: unitworkflowstate: executing error transition error_install, Error processing '/var/lib/juju/units/microblog-1/charm/hooks/install': exit code 127.
2012-07-31 08:08:53,350 unit:microblog/1: statemachine DEBUG: unitworkflowstate: transition error_install (None -> install_error) {}
2012-07-31 08:08:53,391 unit:microblog/1: statemachine DEBUG: unitworkflowstate: transition complete error_install (state install_error) {}
[/code]

no idea why rsync could not be found. This is a local install using precise, here is the relevant section of environments config
[code]
local:
    type: local
    control-bucket: juju-censorednumbers
    admin-secret: morecensorednumbers
    default-series: precise
    juju-origin: distro
    data-dir: /home/user/local-juju
[/code]

no constraints applied anywhere.
reproducable from scratch every time.
reproducable from juju resolved --retry every time.

after a juju ssh microblog/0 and a sudo apt-get install rsync and a juju resolved --retry it works fine

Revision history for this message
Garrett Carson (meryandpipin) wrote :
Revision history for this message
Jorge Castro (jorge) wrote :

Hi Garrett, thanks for your contribution to Ubuntu!

In the future here's the step-by-step on how to submit a fix to a charm (so that it gets into the review queue and not lost)

https://juju.ubuntu.com/docs/charm-store.html#submitting-a-fix-to-an-existing-charm

Changed in statusnet (Juju Charms Collection):
status: New → Confirmed
Revision history for this message
Marco Ceppi (marcoceppi) wrote :

Hi Garrett. Thanks for pointing this out, I went ahead and applied your patch. Thanks!

Changed in statusnet (Juju Charms Collection):
status: Confirmed → Won't Fix
status: Won't Fix → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.