failed to register layer: Error processing tar file(exit status 1): write /opt/conda/lib/python3.5/site-packages/sympy/core/tests/test_args.py: no space left on device
Monday 7 August 2017
August 07, 2017
no space left on device docker
August 07, 2017
install docker-engine issue
sudo apt install docker-engine
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
docker-engine : Depends: libsystemd-journal0 (>= 201) but it is not installable
Recommends: aufs-tools but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
August 07, 2017
The program 'docker' is currently not installed.
docker -v
The program 'docker' is currently not installed. You can install it by typing:
sudo apt install docker.io
(my_env) ubuntu@ip-192-31-19-128:/tmp$ sudo apt install docker.io
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
bridge-utils cgroupfs-mount containerd runc ubuntu-fan
Suggested packages:
mountall aufs-tools debootstrap docker-doc rinse zfs-fuse | zfsutils
The following NEW packages will be installed:
bridge-utils cgroupfs-mount containerd docker.io runc ubuntu-fan
0 upgraded, 6 newly installed, 0 to remove and 22 not upgraded.
Need to get 16.4 MB of archives.
After this operation, 83.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 bridge-utils amd64 1.5-9ubuntu1 [28.6 kB]
Get:2 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 cgroupfs-mount all 1.2 [4970 B]
Get:3 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 runc amd64 1.0.0~rc2+docker1.12.6-0ubuntu1~16.04.1 [1479 kB]
Get:4 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 containerd amd64 0.2.5-0ubuntu1~16.04.1 [4041 kB]
Get:5 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 docker.io amd64 1.12.6-0ubuntu1~16.04.1 [10.8 MB]
Get:6 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 ubuntu-fan all 0.9.2 [30.7 kB]
Fetched 16.4 MB in 1s (12.2 MB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package bridge-utils.
(Reading database ... 62405 files and directories currently installed.)
Preparing to unpack .../bridge-utils_1.5-9ubuntu1_amd64.deb ...
Unpacking bridge-utils (1.5-9ubuntu1) ...
Selecting previously unselected package cgroupfs-mount.
Preparing to unpack .../cgroupfs-mount_1.2_all.deb ...
Unpacking cgroupfs-mount (1.2) ...
Selecting previously unselected package runc.
Preparing to unpack .../runc_1.0.0~rc2+docker1.12.6-0ubuntu1~16.04.1_amd64.deb ...
Unpacking runc (1.0.0~rc2+docker1.12.6-0ubuntu1~16.04.1) ...
Selecting previously unselected package containerd.
Preparing to unpack .../containerd_0.2.5-0ubuntu1~16.04.1_amd64.deb ...
Unpacking containerd (0.2.5-0ubuntu1~16.04.1) ...
Selecting previously unselected package docker.io.
Preparing to unpack .../docker.io_1.12.6-0ubuntu1~16.04.1_amd64.deb ...
Unpacking docker.io (1.12.6-0ubuntu1~16.04.1) ...
Selecting previously unselected package ubuntu-fan.
Preparing to unpack .../ubuntu-fan_0.9.2_all.deb ...
Unpacking ubuntu-fan (0.9.2) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu19) ...
Setting up bridge-utils (1.5-9ubuntu1) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up cgroupfs-mount (1.2) ...
Setting up runc (1.0.0~rc2+docker1.12.6-0ubuntu1~16.04.1) ...
Setting up containerd (0.2.5-0ubuntu1~16.04.1) ...
Setting up docker.io (1.12.6-0ubuntu1~16.04.1) ...
Adding group `docker' (GID 116) ...
Done.
Setting up ubuntu-fan (0.9.2) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
August 07, 2017
Permission error- Unable to ssh into Amazon EC2 instance
ssh -i ec2-instance-cert.pem
root@publicip or public dns
@@@@@@@@@@@@@@@@@@@@@@@@######@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ ### WARNING: UNPROTECTED PRIVATE KEY FILE! ### @
@@@@@@@@@@@@@@@@@@@@@@@@######@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for 'test.pem' are too open.
It is required that your private key files are NOT accessible by others.
Solution :
key must not be publicly viewable for SSH to work. Use this command if required
key must not be publicly viewable for SSH to work. Use this command if required
$ chmod 400 ec2-instance-cert.pem
Sunday 6 August 2017
August 06, 2017
Mongoose
It is an object modeling tool for nodejs that connects MongoDB.Mongoose take the models and maps them to MongoDB database.
install required dependencies
npm install mongoose
var mongoose = require('mongoose');
/*without callback */
mongoose.connect('localhost','mydatabase');
/* with callback */ create a connection object and bind two callabcks.
var db = mongoose.connection;
db.on('open',function callback(){
//connection success
});
db.on('error',function(msg){
//connection error
});
Schema Creation :
var empSchema = mongoose.Schema({
name: String,
designation : String,
location: String,
Skills: String
});
Model Creation :
var Employee = mongoose.model('employee',empSchema);
Saving the model :
employee.save(function(err,emp){
if(err){
//error handling
}else{
//success
}
});
Reading the model :
var Employee = mongoose.model('employee',empSchema);
Employee.find(function(err,emp){
if(err){
//error handling
}else{
//success
}
});
Reading specific model :
Employee.find({name:'SrinivasNidadavolu'},function(err,emp){
if(err){
//error handling
}else{
//success
}
});
output:
[{name:'SrinivasNidadavolu',designation:'software engineer',location:'building number 14,Raheja Mindpsace, Hyderabad',Skills:'Java,C++,AWS,AZURE,Containers,cloud specialist'}]
install required dependencies
npm install mongoose
var mongoose = require('mongoose');
/*without callback */
mongoose.connect('localhost','mydatabase');
/* with callback */ create a connection object and bind two callabcks.
var db = mongoose.connection;
db.on('open',function callback(){
//connection success
});
db.on('error',function(msg){
//connection error
});
Schema Creation :
var empSchema = mongoose.Schema({
name: String,
designation : String,
location: String,
Skills: String
});
Model Creation :
var Employee = mongoose.model('employee',empSchema);
Saving the model :
employee.save(function(err,emp){
if(err){
//error handling
}else{
//success
}
});
Reading the model :
var Employee = mongoose.model('employee',empSchema);
Employee.find(function(err,emp){
if(err){
//error handling
}else{
//success
}
});
Reading specific model :
Employee.find({name:'SrinivasNidadavolu'},function(err,emp){
if(err){
//error handling
}else{
//success
}
});
output:
[{name:'SrinivasNidadavolu',designation:'software engineer',location:'building number 14,Raheja Mindpsace, Hyderabad',Skills:'Java,C++,AWS,AZURE,Containers,cloud specialist'}]
August 06, 2017
Elastic Load Balancing
Elastic Load Balancing automatically distributes the incoming application traffic across multiple was ec2 instances.
Two types of load balancers :
Application Load Balancer
Classic Load Balancer
Elastic Load Balancing :
It is in-region load balancing service and distributed traffic across multiple availability zones -HTTP/S, TCP/S.
Fully fault tolerant
Buit in health check
Application Load Balancer Features:
• It has Containerized Application Support
• It has Content-Based Routing
• It support for HTTP/2
• Contains Delete Protection
• Supports WebSockets
• Supports Layer-7 Load Balancing
• Supports Web Application Firewall (WAF)
• Contains Request Tracing
Classic Load Balancer Features:
• Contains Health Checks
• It has High Availability
• Supports Security Features
• Supports Sticky Sessions
• Supports SSL Offloading
• Support for Layer 4 or 7 Load Balancing
• It has Operational Monitoring
• provides Logging
• provides IPv6 Support
Two types of load balancers :
Application Load Balancer
Classic Load Balancer
Elastic Load Balancing :
It is in-region load balancing service and distributed traffic across multiple availability zones -HTTP/S, TCP/S.
Fully fault tolerant
Buit in health check
Application Load Balancer Features:
• It has Containerized Application Support
• It has Content-Based Routing
• It support for HTTP/2
• Contains Delete Protection
• Supports WebSockets
• Supports Layer-7 Load Balancing
• Supports Web Application Firewall (WAF)
• Contains Request Tracing
Classic Load Balancer Features:
• Contains Health Checks
• It has High Availability
• Supports Security Features
• Supports Sticky Sessions
• Supports SSL Offloading
• Support for Layer 4 or 7 Load Balancing
• It has Operational Monitoring
• provides Logging
• provides IPv6 Support
Labels
- Access Denied IAM (1)
- amazon ecs (1)
- amazon ecs clustor (1)
- amazon elastic beanstack (1)
- amazon elatsiccache (1)
- amazon vpc (1)
- amazon web services (1)
- amazon web services benefits (1)
- amazon web services cli (1)
- apache redirection (1)
- apache tomcat ubuntu 16.04 (1)
- application load balancing (1)
- apt get install docker (1)
- aws (1)
- aws diagram drag and drop (1)
- aws diagrams (1)
- aws diagrams creation (1)
- aws domains (1)
- aws dynamodb (1)
- Aws ebs (1)
- aws ec2 docker insufficient memory (1)
- aws eip (1)
- aws elastic beanstalk (1)
- aws elastic cache (1)
- aws elastic ip (1)
- aws lambda (1)
- aws lambda function (1)
- aws lambda pricing (1)
- aws no sql (1)
- aws online training (1)
- aws php (1)
- aws route53 (1)
- aws route53 domain issue (1)
- aws route53 Latency Based Routing queries pricing (1)
- AWS route53 strategy (1)
- aws route53 Traffic Flow pricing (1)
- aws route53 Tried to create resource record set type (1)
- aws s3 (1)
- aws s3 multi part data upload (1)
- aws s3 pricing (1)
- aws security group ip range (1)
- aws security group limits (1)
- aws security group rules (1)
- AWS SES (1)
- block vs object storage (1)
- but DryRun flag is set (1)
- centos (2)
- centos nodejs (1)
- centos npm (1)
- ChangeResourceRecordSet - Update issue (1)
- ChangeResourceRecordSets aws (1)
- ChangeResourceRecordSets nodejs (1)
- classic load balancing (1)
- cloud computing training (1)
- comodo ssl (1)
- ConfigError in aws (1)
- Connection timed out after (1)
- Could not load credentials from any providers (1)
- create database in mongodb (1)
- create database mongodb (1)
- create iam policy for route53 (1)
- creating docker image (1)
- creating subdomain api (1)
- cvc-enumeration-valid: Value 'UPDATE' is not facet-valid with respect to enumeration (1)
- Device: /dev/sda1 (1)
- digitalocean (1)
- docker hub (1)
- docker info (1)
- docker install (1)
- docker install ubuntu (1)
- docker machine (1)
- docker machine amazon linux (1)
- docker machine redhat (1)
- docker machine ubuntu (1)
- docker ubuntu (1)
- docker ubuntu 14.04 (1)
- docker version (1)
- docker-engine : Depends: libsystemd-journal0 (1)
- docker-engine issue (1)
- dynamodb (1)
- dynamodb api (1)
- dynamodb local (1)
- dynamodb pricing (1)
- ec2 image will be stored in aws s3. cheapest storage in aws (1)
- ec2 instance types (1)
- ec2 with elastic ip (1)
- eip (1)
- elastic block storage (1)
- elastic ip (1)
- elastic ip charges (1)
- Error starting instances (1)
- getting aws issues (1)
- homebrew mac osx (1)
- how to create aws diagrams (1)
- how to create dynamic subdomain (1)
- how to get docker status (1)
- how to install nodejs on ubuntu 16.04 (1)
- how to install comodo ssl (1)
- how to install mongodb on ubuntu (1)
- how to install nodejs in redhat (1)
- how to register domain aws (1)
- how to setup aws vpc (1)
- how to start docker (1)
- how to use aws vpc (1)
- how to use comodo ssl (1)
- how to use route53 (1)
- how to use vc (1)
- http to https redirection ec2 instance (1)
- iis https redirection (1)
- insalling comodo ssl (1)
- install amazon web services cli (1)
- install aws cli (1)
- install cli (1)
- install docker (2)
- install docker in aws (1)
- install docker ubuntu (2)
- install docker ubuntu 14.04 (1)
- install homebrew mac osx (1)
- install mongodb linux (1)
- install mongodb mac (1)
- install mongodb ubuntu (1)
- install mongodb ubuntu 16.04 (1)
- install mongodb windows (1)
- install nodejs (1)
- install nodejs in redhat (1)
- Invalid login: 535 Authentication Credentials Invalid (1)
- Invalid value 'i-08cbb15' for instanceId (1)
- InvalidInstanceID (1)
- lambda (1)
- lambda aws (1)
- lambda function aws (1)
- lambda lambda lambda (1)
- missing credentials in config (1)
- mongodb features (1)
- mongodb install ubuntu (1)
- mongodb scalability (1)
- mongodb server (1)
- mongodb ubuntu 16.04 (1)
- mongoose create database (1)
- mongoose mongoldb (1)
- mongoose nodes (1)
- nginx https redirection (1)
- No package httpd24 available (1)
- No package mysql55-server available (1)
- No package php56 available (1)
- No package php56-mysqlnd available (1)
- node js mongoose (1)
- node mongoose (1)
- node redhat (1)
- nodejs centos (1)
- nodejs docker image (1)
- not authorized to perform: route53:ChangeResourceRecordSets on resource: (1)
- object storage vs block storage (1)
- object store (1)
- online training amazon web services (1)
- online training ec2 (1)
- Orchestration in aws (1)
- Orchestration worrkflow (1)
- Permission denied (publickey) when SSH Access (1)
- php (1)
- pointing domain using route53 (1)
- redhat (1)
- redhat nodejs (1)
- registering subdomain (1)
- Request would have succeeded (1)
- route53 access denied (1)
- run mongodb mac (1)
- run mongodb ubuntu (1)
- run mongodb windows (1)
- run nodejs without sudo (1)
- security group best practices (1)
- security group inbound outbound (1)
- sharding features in mongod (1)
- start docker at reboot (1)
- storage area network (1)
- The pending instance AWS (1)
- tomcat admin (1)
- tomcat admin permissions (1)
- tomcat ubuntu (1)
- tomcat users (1)
- Traditional Architecture vs microservices (1)
- ubuntu 16.04 tomcat (1)
- ubuntu docker install (1)
- UnknownEndpoint: Inaccessible host aws (1)
- use of microservices (1)
- virtual private network (1)
- webservices subdomain (1)
- What are microservices (1)
- what are the domains in cloud (1)
- what is amazon vpc (2)
- what is aws diagram (1)
- what is aws ebs (1)
- what is aws ecs (1)
- what is aws route53 (1)
- what is aws s3 storage (1)
- what is block storage (1)
- what is elastic ip (1)
- what is object storage (1)
- what is Orchestration (1)
- what is sharding in mongodb (1)
- what is vpc (2)
- when to use aws ecs (1)
- when to use aws s3 (1)
- where to use ssl (1)
- why amazon elastic cache (1)
- why aws (1)
- why aws ecs (1)
- why elastic ip (1)
- why Orchestration (1)
- why route53 (1)
- why sharding (1)
- why vpc (2)
- why we need microservices (1)
- Why would i need Microservices (1)
- wordpress (1)
- ws security group ipv6 (1)
- yum (1)
- yum install httpd24 php56 mysql55-server php56-mysqlnd (1)