error while creating node fromtemplate (gns3 error) - vmware

i am trying to create lab in gns3.Whenever i import metasplotable vm in dashboard it give me following error.can someone help me to solve this error
error while creating node from template.
Try to run "D:\vmware\vmrun.exe" -T ws clone "E:\Downloads\Metasploitable2-Linux\Metasploitable.vmx" "C:\Users\DCS Lab\GNS3\projects\vlan\project-files\vmware\710d0d4d-6a83-4f1c-b561-b362766c2f9d\Metasploitable2-Linux-39.vmx" linked "-snapshot=GNS3 Linked Base for clones" "-cloneName=Metasploitable2-Linux-39" in a terminal to see more details.
And make sure GNS3 and VMware run under the same use

Related

invalid argument "gcr.io//hello-app:v1" for "-t, --tag" flag: invalid reference format

I'm following this tutorial: https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app for Google Cloud Platform. I'm using the Google Cloud Shell command line. When I got to the step:
To build the container image of this application and tag it for uploading, run the following command:
docker build -t gcr.io/${PROJECT_ID}/hello-app:v1 .
I get an error:
invalid argument "gcr.io//hello-app:v1" for "-t, --tag" flag: invalid reference format
Bear in mind I already have 3 instances cluster (created from Kubernetes Engine) and one VM instance created on its own, existing in my VM instances, created from previous tutorials. Not sure if this has anything to do with the error.
Thanks in advance.
You missed setting PROJECT_ID. In the the "Before you begin" section of the tutorial you linked to it has you run
gcloud config set project [PROJECT_ID]
and then in Step 1 you run
export PROJECT_ID="$(gcloud config get-value project -q)"
After those two commands you should have the shell variable set correctly.
I also got the same error when running
docker build -t gcr.io/${PROJECT_ID}/hello-app:v1 .
but changing it to (my PROJECT_ID is say deepworld123)
docker build -t gcr.io/deepworld123/hello-app:v1 .
fixed it for me. Even though i did set PROJECT_ID=deepworld123.
Your tutorial link doesn't work (it's a link to a GCP dashboard, not a tutorial), but presumably there was a step where you were supposed to set the PROJECT_ID variable, which you skipped. The error message shows nothing between the two slashes where ${PROJECT_ID} appears in your command.
Had a very similar issue involving PROJECT_ID not being set correctly. The solution has to deal with formating as the error message says.
My PROJECT_ID string has the following format companyname.com:companyname-1 After I followed all the steps in the accepted answer the error message was the same.
It turns out the : needs to be replaced by a /. The final gcr.io string looks like:
gcr.io/companyname.com/companyname-1/hello-app:v1

During add service hdfs in cloudera manager, I am getting error message failed to create tmp directory

I installed cloudera manager 5.12.0 successfully . But when I try to add hdfs
service, I got following error message :
failed to create tmp directory . But it was installed. Then try to restart cluster. But if failed to start again . It says no data node role are associated with hdfs . At least one node is required.
Could anyone please tell me why I am getting error message like this ? How to solve the problem.
I am using centos 7.
Thanks

Hyperledger Composer: Error: Error trying to ping. Error: Error trying to query business network. Error: Connect Failed

I'm following this link: Hyperledger Composer Queries Tutorial to update an existing business network. Till step:3 everything working fine for me. But whenever I am executing step:4 (2) command I'm getting some error.
This is the error:
Error: Error trying to ping. Error: Error trying to query business network. Error: Connect Failed
Command failed
Not sure why I'm getting the above error. It seems the business network is somehow not reachable.
Possibly I was getting the error as Fabric was not running in background. But after running the Fabric the error is slightly different. Here is the current error I am getting:
Error: Error trying to ping. Error: Error trying to query business network. Error: could not find chaincode with name 'tutorial-network' - make sure the chaincode tutorial-network has been successfully instantiated and try again
Command failed
I had the same problem when I restarted my system. I could not connect to the previous networks. I have the .bna file in the same folder and I ran these commands every time and it worked.
composer network install --card PeerAdmin#hlfv1 --archiveFile tutorial-network#0.0.1.bna
composer network start --networkName tutorial-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin#hlfv1 --file networkA.card
The network should be up and running then only you will be able to update it. Otherwise you will get some error and won't be able to update it.
So I ran the following command before updating it as mentioned in the question and it works well.
composer network start --card PeerAdmin#hlfv1 --networkAdmin admin --networkAdminEnrollSecret adminpw --archiveFile tutorial-network#0.0.1.bna --file networkadmin.card

Ember-Build - How config for local host running?

I require to run my ember application after I do the ember build -prod for testing purpose. I am using xaamp local server. But I am not able to run my app.
I am getting the following errors:
localhost/:13 GET http://localhost:8080/assets/vendor-67b1c7f5f2eb1b051649864903c92044.css
localhost/:14 GET http://localhost:8080/assets/rdc-ui-servicerequest-csd-9635212553537ffc063efb35021419f0.css
Navigated to http://localhost:8080/Ember/
localhost/:22 GET http://localhost:8080/assets/rdc-ui-servicerequest-csd-718fc0f8bad1138cf9007d42e5ab2fff.js
localhost/:21 GET http://localhost:8080/assets/vendor-0e6b914827a8308d459cf96ddc1a551e.js
localhost/:14 GET http://localhost:8080/assets/rdc-ui-servicerequest-csd-9635212553537ffc063efb35021419f0.css
localhost/:13 GET http://localhost:8080/assets/vendor-67b1c7f5f2eb1b051649864903c92044.css
localhost/:22 GET http://localhost:8080/assets/rdc-ui-servicerequest-csd-718fc0f8bad1138cf9007d42e5ab2fff.js
How to fix this? any how can i run my build in localhost of my system. any one please help me to configure?
Thanks in advance

Hyperledger Fabric My first network

I am trying to work on my first network in Hyperledger Fabric. Using the following documentation http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html
I have completed the setup till http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#create-join-channel but when I run the
peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
I got hte following error:
Error: Got unexpected status: BAD_REQUEST
In attempt to resolve i follow the solution given at First network in hyperledger but faced error on running
/bin/bash -c './scripts/script.sh ${CHANNEL_NAME}; sleep $TIMEOUT'
I brought my network down using
./bfyn.sh -m down
and bring the network up that gave me following error:
ERROR: for orderer.example.com Cannot start service orderer.example.com: oci runtime error: container_linux.go:265: starting container process caused "process_
linux.go:368: container init caused \"rootfs_linux.go:57: mounting \\"/c/Users/lenovo/fabric-samples/first-network/channel-artifacts/genesis.block\\" to rootfs \\"/mnt/sda1/var/lib/docker/aufs/mnt/16c8954b277dec9a00370bdaa4316db282759b3dd6892ffc25f860a4c9e06d58\\" at\"/mnt/sda1/var/lib/docker/aufs/mnt/16c8954b277dec9a00370bdaa4316db282759b3dd6892ffc25f860a4c9e06d58/var/hyperledger/orderer/orderer.genesis.block\\" caused \\"not a directory\\"\"":Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type ERROR: Encountered errors while bringing up the project.
ERROR !!!! Unable to start network
Error response from daemon: No such container: cli
Delete as admin the channel-artifacts folder, down the network and restart it. Your error must be related to an error at channel-artifacts generation.
You need to be in /c/users when you run the curl command, as documented here.
Continue on with other setup instructions
also, please make sure you run your docker command prompt in administrator mode.