juxt

steveb8n 2017-09-05T05:11:07.000066Z

morning team, I’m back on building out my Roll deploy. Hitting a snag due to the fact that I use lein to build my artifact. it builds the jar correctly but it appears that mach “produce” uses stdout from it’s sh cmd. how would I best use lein in this type of “produce”?

steveb8n 2017-09-05T05:14:33.000072Z

scratch that, I RTFM’d and found that upload! is what I needed

steveb8n 2017-09-05T06:09:22.000053Z

progress update: I’ve deployed my app, I see it running in the console. that’s a big step

steveb8n 2017-09-05T06:09:52.000006Z

Q: I had to create an EC2 keypair but not anything in KMS. this seems to contradict the docs

steveb8n 2017-09-05T06:11:22.000039Z

also, forgive my noobness but how to do see logs for the servers? do I ssh into them like the bad old days to do this? what’s the best practice for this? I would presume OS logging to Reimann but interested to hear what works best

steveb8n 2017-09-05T07:00:53.000329Z

just tested a new artifact deploy. it correctly starts new ASG and destroys the old one. target group also updated. so, in general, it looks good

dominicm 2017-09-05T08:19:22.000307Z

@steveb8n I think you can look at Amazon CloudWatch.

steveb8n 2017-09-05T08:26:10.000187Z

thx Dom, that does look nifty. I also saw that reimann-tools can do most of what I need so I’ll play around with that first I think

dominicm 2017-09-05T08:28:02.000103Z

yeah, we use riemann for our logging. But when there's a problem we ssh onto the machine.

steveb8n 2017-09-05T08:38:08.000214Z

ok, next question. my instances come up fine but I’m struggling to get the docker container to build/run my zipped file. I had to use a different AMI id from the one in edge because that one was not available for some reason. Is that the likely cause?

dominicm 2017-09-05T08:45:50.000367Z

yeah, that AMI is probably one on our AWS account: cc/ @jonpither bug report

steveb8n 2017-09-05T08:52:09.000031Z

The AMI I am using is failing to start the apt-get script…

steveb8n 2017-09-05T08:52:10.000308Z

+ apt-get update Reading package lists... E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/

steveb8n 2017-09-05T08:52:46.000246Z

can you recommend another public AMI that is similar to the one used in edge?

steveb8n 2017-09-05T08:53:15.000167Z

I notice it is not using docker containers and I would like to use docker with roll deploys in future but happy to avoid it for now

dominicm 2017-09-05T08:59:06.000273Z

We use an arch linux ami: https://www.uplinklabs.net/projects/arch-linux-on-ec2/

dominicm 2017-09-05T08:59:36.000229Z

Would require you getting to grips with pacman to run things (install is pacman -S pkgname).

steveb8n 2017-09-05T08:59:53.000074Z

cool. I’ll see if I can find something link that on AWS

steveb8n 2017-09-05T09:00:16.000082Z

it might just work….(hope)

steveb8n 2017-09-05T09:00:55.000480Z

trying now

steveb8n 2017-09-05T09:19:57.000211Z

FYI I am having to manually disconnect some AWS components to get terraform apply to work.

steveb8n 2017-09-05T09:20:07.000384Z

once I see a pattern I’ll log an issue

steveb8n 2017-09-05T09:22:01.000388Z

I’m deploying to Sydney region, none of the AMI’s listed are available so I searched for a recent arch linux image and tried that but…. apt-get is not available to the root account in the image I tried

steveb8n 2017-09-05T09:22:59.000073Z

shall we wait for @jonpither to decide on an “official” AMI to use with roll? probably better than guessing

steveb8n 2017-09-05T09:30:22.000407Z

hmm, arch linux doesn’t seem to have apt-get (as you say, pacman instead) so I think the roll AMI is not arch. I’ll wait for @jonpither on this one

dominicm 2017-09-05T09:42:38.000258Z

What on earth has @jonpither been up to 😆

dominicm 2017-09-05T09:43:09.000057Z

oh, I see. Hold on.

dominicm 2017-09-05T09:45:15.000209Z

@steveb8n which ami did you use? ("RZr9WWrHIS"?)

dominicm 2017-09-05T09:51:03.000261Z

So apparently we have some base ami, that appears out of nowhere, called "juxt-blue"...

steveb8n 2017-09-05T09:51:48.000120Z

I used ami-1e455f7d

steveb8n 2017-09-05T09:52:07.000048Z

arch-linux-lts-hvm-2017.08.24.x86_64-ebs

steveb8n 2017-09-05T09:52:56.000466Z

I’m gonna try a generic debian since that is where apt-get comes from, last try 🙂

dominicm 2017-09-05T09:54:24.000118Z

yeah, that sounds like a safe bet. Ignore my arch linux advice 😛

steveb8n 2017-09-05T09:55:38.000051Z

hmm, not many good debians in AU region. I’ll just pick one to test the theory

dominicm 2017-09-05T09:56:02.000123Z

Okay, well, you apparently just identified a hole in our project documentation. I have no idea where those amis came from... cc/ @jonpither youbrokeit 😛

steveb8n 2017-09-05T09:58:41.000329Z

fyi I have seen a pattern in updates….

steveb8n 2017-09-05T09:58:42.000318Z

aws_launch_configuration.dev_nextdoc_0_0_1_4_g33d9144_dirty: ResourceInUse: Cannot delete launch configuration dev00d8d91630982048de1febebeb because it is attached to AutoScalingGroup dev-nextdoc-0_0_1_4_g33d9144_dirty status code: 400, request id: 9274b4b3-9220-11e7-8faa-03636973240e

steveb8n 2017-09-05T09:59:42.000303Z

I fix by manually deleting the ASG each time

steveb8n 2017-09-05T10:00:49.000011Z

BTW I don’t mind all these little roadblocks. I’m a sado-masochist in that I enjoy devops

dominicm 2017-09-05T10:11:47.000094Z

I think you can also do something like terraform taint aws_launch_configuration.dev_nextdoc_0_0_1_4_g33d9144_dirty too

steveb8n 2017-09-05T10:15:46.000151Z

oh ok, I’ll read up on ‘taint’ since I’m a TF noob

steveb8n 2017-09-05T10:18:22.000018Z

no luck with random debian…

steveb8n 2017-09-05T10:18:23.000105Z

Processing triggers for libc-bin (2.19-18+deb8u6) ... + apt-get install -y openjdk-8-jdk Reading package lists... Building dependency tree... Reading state information... Package openjdk-8-jdk is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package ‘openjdk-8-jdk’ has no installation candidate

steveb8n 2017-09-05T10:18:31.000235Z

let’s wait for @jonpither