Reputation
1,182
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
3 8
Newest
 Yearling
Impact
~26k people reached

  • 0 posts edited
  • 1 helpful flag
  • 37 votes cast
Sep
13
comment Chef 11 node attributes available and ordering
So the same error is thrown when you use that code? You might need a default attribute defined in the cookbook you are reloading for chef to load the node override. default[:appname] = 'default' or whatever suits your code. I never got into the gory detail of what the reload does because it just worked for me, but I tend to define everything in the attribute files.
Sep
13
comment How can I add an ephemeral disk to an existing EC2 instance?
Changing the instance type (m1, m3,c1, c3, m2, t1 etc) will generally move your instance to physically different hardware which is in a different location in Amazon's network/DC. Internal Amazon IP's are assigned by DHCP and will change. From what I've been led to believe their network subnetting is per rack or smaller, at least for the small instances. There are types you can swap between where you can be sure of a hardware move, e.g cg1
Sep
12
comment Make scp always overwrite or create directory
Can you sftp? then check the output of a cd dir2.
Sep
12
comment Make scp always overwrite or create directory
The only problem there is you will try the second copy on any failure, which is not necessarily dir2 not existing. Maybe if you can come up with a test that does virtually nothing (say copy a blank dir). Then based on the output either run scp1 or scp2
Sep
12
comment Make scp always overwrite or create directory
It errors 'Is a directory' when the destination directory doesn't exist for me.
Sep
12
comment Scp fails in one direction for admin but is successful with root user
That confirms adm has write access. If locally as adm you can cd into the directory and create a file then list it. I'm not sure how you got a "No such file or directory" then? As that implies something failed, and you didn't run the above with then &&s. Can you ls -al /home/adm/test/
Sep
12
comment Make scp always overwrite or create directory
@Giles are you saying that does work?
Sep
12
comment Make scp always overwrite or create directory
you have scp access but not ssh?
Sep
12
answered Make scp always overwrite or create directory
Sep
12
comment Scp fails in one direction for admin but is successful with root user
Log into the box as the adm user. cd /home/adm/test/ && touch afile && ls -a afile
Sep
12
answered ec2 linux instance root access
Sep
12
comment How to make sure that a file exists in my svn repository but no commits are allowed?
You will find a lot of answers on SO before the other communities were split out.
Sep
12
comment How can I add an ephemeral disk to an existing EC2 instance?
Plesk should be able to handle different internal IPs, there's a number of ways that can occur on EC2. Maybe try shifting the host to a new size at the same time as attaching the root volume. Plesk should expect an IP change then.
Sep
12
comment High CPU usage in random IP/Port UDP DDoS
You could probably drop all inbound UDP except for locally initiated connections (probably only DNS lookups) and anything you serve on a UDP port.
Sep
12
comment ec2 linux instance root access
how are you sshing to the box?
Sep
12
revised Chef 11 node attributes available and ordering
prettify code
Sep
12
comment Is searching for a file on a live production server a bad idea?
Assuming Linux, disk based search would rarely hit CPU issues. ionice -c 3 might help.
Sep
12
answered How to make sure that a file exists in my svn repository but no commits are allowed?
Sep
12
comment Scp fails in one direction for admin but is successful with root user
The SSH connection looks successful. Does the adm user have access to write to /home/adm/test/ on prosrv1 ?
Sep
12
answered Chef 11 node attributes available and ordering