Hi Elijah,

On 01/02/16 11:52, Elijah Zupancic wrote:
> Hi Dave,
>
> I tested with the platform image available in the Joyent public cloud
> - us-sw-1 and with the newest dev platform image.
>
> In the us-sw-1 data center, I see the same behavior that you are
> seeing: https://asciinema.org/a/00gfdqliz31zu0x34m3da0e0j
>
> In Joyent's staging datacenter, I tested the same steps and it works
> correctly: https://asciinema.org/a/bz4398l5thcl2up7kz5qsqyoa
>
> There must have been a bug in the old platform image that is now
> fixed. It is just a matter of time until that fix is deployed to your
> desired datacenter. If you are using the Joyent public cloud, please
> contact support and they will be able to give you guidance about when
> or how you can get the latest platform image. If you are running your
> own local copy of SDC, then you will need to update your platform
> image. As to what update channel to use, I will let other chime in
> with their recommendations.

Well that's a relief – I thought it might have been some obscure bug,
and not pilot error. I'll flick Joyent a line (I'm not running SDC
locally). Thanks for corroborating this.

Cheers,
Dave


>
> On Sat, Jan 30, 2016 at 9:49 PM Dave Koelmeyer
> <[email protected]
> <mailto:[email protected]>> wrote:
>
>     Hi Elijah,
>
>     I'm using the Joyent Public Cloud - the image is at the latest
>     available version. Dumb question, but platform upgrades on the JPC
>     are not applicable in this case, correct?
>
>     (I have retested this with a completely fresh, newly-installed
>     container-native Ubuntu 14.04 instance, and the test command fails
>     with an error. On a KVM instance the same succeeds.)
>
>     Cheers,
>     Dave
>
>
>     On 26 January 2016 3:20:01 PM NZDT, Dave Koelmeyer
>     <[email protected]
>     <mailto:[email protected]>> wrote:
>
>         Hi Elijah,
>
>         Thanks very much for checking that out – I'll give it a crack
>         and see! :)
>
>         Cheers,
>         Dave
>
>         -- 
>         Dave Koelmeyer
>         http://blog.davekoelmeyer.co.nz
>         GPG Key ID: 0x238BFF87
>
>
>         On 26/01/16 13:07, Elijah Zupancic wrote:
>>         Hi Dave,
>>
>>         I've attempted to reproduce your steps with a few variations:
>>
>>         Using the following:
>>
>>           * Ubuntu Image: 14.04
>>           * Image Version: 20151005
>>           * Platform Image: 20160125T130244
>>
>>         I was able to get cron to run correctly. My cron output was:
>>         aws-cli/1.10.0 Python/2.7.6 Linux/3.13.0 botocore/1.3.22
>>         0
>>
>>         You may want to upgrade the Ubuntu image you are using. Also
>>         verify that you are using the latest version of the platform
>>         image.
>>
>>         I hope I was able to help. Thanks,
>>         Elijah
>>
>>
>>         On Mon, Jan 25, 2016 at 2:56 PM, Dave Koelmeyer
>>         <[email protected]
>>         <mailto:[email protected]>> wrote:
>>
>>             Hi Elijah,
>>
>>             Apologies for the delay. The problem I am encountering is
>>             seemingly a very simple one: I cannot for the life of me
>>             get any of the AWS CLI commands to run as a cron job on
>>             my container-native Ubuntu instance. I have spun up an
>>             Ubuntu KVM also on the JPC specifically to troubleshoot
>>             this, and there is no such problem when running the same
>>             commands.
>>
>>             Testing this is easy – one does not even have to run any
>>             S3 sync commands, a simple version check will suffice.
>>             I'd be interested to see if this can be reproduced at all.
>>
>>             The problematic system is configured as follows:
>>
>>               * Image:     ubuntu-14.04
>>               * Image version:     20151005
>>               * Package:     g3-standard-0.5-smartos
>>
>>             There is no heavy customisation at all in place.
>>
>>             Download, unzip and install the AWS CLI utilities, for
>>             example:
>>
>>             wget https://s3.amazonaws.com/aws-cli/awscli-bundle.zip
>>             unzip awscli-bundle.zip
>>             sudo ./awscli-bundle/install -i /usr/local/aws -b
>>             /usr/local/bin/aws
>>
>>
>>             Verify that the command can be executed on the CLI:
>>
>>             /usr/local/bin/aws --version
>>             aws-cli/1.9.17 Python/2.7.6 Linux/3.13.0 botocore/1.3.17
>>
>>             Now, create a simple shell script with the following:
>>
>>             #!/bin/sh
>>             /usr/local/bin/aws --version >> /root/awstest.txt 2>&1
>>             echo $? >> /root/awstest.txt
>>             exit 0
>>
>>             Add it to the root user's crontab using a recurrence
>>             which suits, for example:
>>
>>             */1  *   *   *   * /root/awstest.sh
>>
>>             And observe the logged output:
>>
>>             Child exited
>>             145
>>
>>
>>             Now, the instance where this runs successfully:
>>
>>               * Image:     ubuntu-certified-14.04
>>               * Image version:     20150708
>>               * Package:     g3-standard-0.5-kvm
>>
>>
>>             Following the exact same procedure as documented above,
>>             the command runs just fine on the KVM instance. The same
>>             is true for S3 sync commands configured in a cron job.
>>             AWS CLI commands run fine on the CLI on the
>>             container-native instance, but anything set in a cron job
>>             fails.
>>
>>             This could well be a cron configuration step I've missed
>>             on my part, but I've tried all manner of setting
>>             variables and so on, with no change in behaviour. I would
>>             have thought at any rate that configuration would not
>>             differ between the container-native instance and the KVM
>>             instance. Any light you could shed on this would be great.
>>
>>             Cheers,
>>             Dave
>>
>>             On 22/01/16 06:47, Elijah Zupancic wrote:
>>>
>>>             Hi Dave,
>>>
>>>             Just to clear up any potential ambiguity, can you
>>>             provide a link to the AWS SDK in question and an example
>>>             of using the S3 utility?
>>>
>>>             On Sun, Jan 10, 2016 at 3:40 AM Dave Koelmeyer
>>>             <[email protected]
>>>             <mailto:[email protected]>> wrote:
>>>
>>>                 Hi All,
>>>
>>>                 I'm in need of a sanity check please. Is anyone here
>>>                 performing backup
>>>                 syncs to Amazon S3 via the AWS CLI on a
>>>                 container-native Ubuntu image
>>>                 (the "ubuntu-14.04" image in this case)?
>>>                 Specifically, with the relevant
>>>                 AWS CLI commands specified in a crontab file. If so
>>>                 can someone please
>>>                 confirm it works for them, if not, would anyone then
>>>                 be interested in
>>>                 helping with a brief test to eliminate the
>>>                 possibility I've run into
>>>                 some highly obscure bug?
>>>
>>>                 (I'm using the Joyent Public Cloud but their support
>>>                 forums seem to have
>>>                 disappeared...)
>>>
>>>                 Cheers,
>>>                 Dave
>>>
>>>                 --
>>>                 Dave Koelmeyer
>>>                 http://blog.davekoelmeyer.co.nz
>>>                 GPG Key ID: 0x238BFF87
>>>
>>>
>>>
>>>                 http://www.listbox.com
>>>
>>
>>
>>
>>
>>         -- 
>>         -Elijah
>
>
>     -- 
>     Sent from my Android device with K-9 Mail. Please excuse my brevity.
>
> *smartos-discuss* | Archives
> <https://www.listbox.com/member/archive/184463/=now>
> <https://www.listbox.com/member/archive/rss/184463/23736974-7f4d7ff8>
> | Modify
> <https://www.listbox.com/member/?&;>
> Your Subscription     [Powered by Listbox] <http://www.listbox.com>
>

-- 
Dave Koelmeyer
http://blog.davekoelmeyer.co.nz
GPG Key ID: 0x238BFF87




-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to