Kubernetes deployment via Web UI - 'Failed to pull image' error [closed] - docker

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I am creating a deployment using "CREATE AN APP" option from the Kubernetes UI page on windows - with two pods and external service. The image being used is available. However, I am getting an error saying:
**Search Line limits were exceeded, some search paths have been omitted, the
applied search line is: my-namespace.svc.cluster.local svc.cluster.local cluster.local <ORG DOMAIN NAMES>**
**Failed to pull image "dockerUserName/python-app-image": rpc error: code = Unknown desc = Error response from daemon: manifest for dockerUserName/python-app-image:latest not found**
I am new to K8S and have no idea like where I am going wrong. Any help would be much appreciated.

That error is thrown by the Docker daemon when the image cannot be found. Verify that the image and tag you are trying actually exist by running docker pull dockerUserName/python-app-image:latest.
Alternatively, run docker images to get a list of images you have already pulled and check the TAG column.
Keep in mind that the latest tag for Docker is just a naming convention. You need to create it and keep it updated yourself, it does not automatically give you the last pushed image.

Related

Facing Error while running a JMeter script using docker file on AWS

Hi I am Niladri Shekhar De, relatively new to performance testing. I am trying to run my load test (scripted in JMeter) using docker file on AWS. I am editing the docker file as mentioned in docker file this picture. Also, I have edited the entrypoint as this
entry point picture. Then while I am trying to run it is waiting for long after "Waiting for possible shutdown...." line and finally I am getting all 10 errors (My script has 2 transactions and I am running for 5 users) as shown in the picturecloudwatch. The script name may be mentioned here is different than in the docker file but that I have changed later. Could anyone please look into this and help me out? It will really be a great help..
Although your way to take screenshots is fantastic you should not be posting code as images on StackOverflow
Coming back to your question: we cannot see any failure reason there so I would suggest to check:
The .jtl results file, it should have status code, response message, maybe response details, etc.
The jmeter.log file which normally can give a clue regarding what's wrong. If it doesn't - you can try increasing JMeter logging verbosity

Enable k8s experimental features in Docker Desktop

does anyone know if this is possible?
All I can find in docs is reference to enabling docker experimental features, but not the kubernetes experimental features.
I tried this, but still get error.
k alpha debug -it exchange-pricing-865d579659-s8x6d --image=busybox --target=exchange-pricing-865d579659-s8x6d
error: ephemeral containers are disabled for this cluster (error from server: "the server could not find the requested resource").
Thanks
I had the same intent (as have others in this feature request). After several hours of trial and error, I finally found out a way to do so.
Steps:
Depending on which file you're trying to edit, you may need to fully shut down Docker Desktop, and restart WSL. (right-click tray-icon and press "Quit Docker Desktop", then run wsl --shutdown, then run wsl)
Open the [...]/kubeadm/manifests folder, in the Docker filesystem.
On Windows, navigate Windows Explorer to:
For Docker Desktop 4.2.0: \\wsl$\docker-desktop-data\version-pack-data\community\kubeadm\manifests
For Docker Desktop 4.11.0: \\wsl$\docker-desktop-data\data\kubeadm\manifests
Open the kube-controller-manager.yaml, kube-apiserver.yaml, and kube-scheduler.yaml files, adding the line below:
spec:
containers:
- command:
[...]
- --feature-gates=EphemeralContainers=true <-- add this line
Start Docker Desktop again.
It looks so easy when its already figured out, huh? Well trust me, it was a pain to find out.
Some of the slowdowns I hit:
It took me quite a while to even find those manifest files. (eventually found it using grepWin, searching through the whole \\wsl$\docker-desktop-data folder for any matches of a line I grabbed from the kube-apiserver-docker-desktop pod's config, which I viewed using Lens)
Once I found it, I got confused by this documentation. When I read FEATURE STATE: Kubernetes v1.22 [alpha], I thought that meant you needed version 1.22 or higher of Kubernetes for the feature to be available. This caused a huge wild goose chase where I tried to change the version of Kubernetes that was being launched in Docker Desktop, which Docker Desktop didn't seem to like. (in retrospect, the issue may have just been the minor one in point 3 below...)
When I first made changes to the manifest files, I was using Notepad++. And despite my liking Notepad++, it's apparently not quite as smart as vscode in the following regard: it does not automatically detect the indentation type for yaml files. Thus, when I pressed tab to create an indent, so I could add the new flag to the argument list, it added it as a tab character rather than spaces. This caused Kubernetes to fail reading of the file. That might not be so bad if Kubernetes gave a sane error message for that, but instead it merely gave the message unexpected EOF. And I didn't even see that error message at first because it was not being propagated to the kube-controller-manager-docker-desktop pod (which was the only relevant one that wasn't immediately erroring/closing). Anyway, I didn't realize this was the problem at the time, so...
I decided to try bypassing the manifest-files and applying my modification to the etcd data-store directly. In retrospect, this was not a good idea, because the etcd data-store is pretty complex, the tooling is substandard, and the documentation is substandard. I spent a ton of time just trying to figure out how to send commands to read and write data to it (eventually managed to do so by calling etcdctl within the etcd-docker-desktop pod). I spent further time still writing up a NodeJS script capable of reading all the data as JSON, storing it in a dump file, and being able to write changes to entries back despite there being 3+ levels of quoting involved (I eventually was able to use stdin to pass the value rather than as part of the command string, to avoid quotation-mark-inception). After all the work on etcd reading/writing above, I found it didn't work anyway because Kubernetes invariably "breaks" if anyone else writes to its etcd data-store. (even if you write the exact same value that had been there before -- as verified by comparing the dumps before and after)
After all of the above, I decided to have one last go with just adding the flags to mentioned manifest files. Was still getting the startup failure/error, but at the very end, I decided I wanted to see exactly what about my changes was causing Kubernetes to reject them. So I tried commenting out my added line; the error remained. I thought maybe it was a checksum-based rejection then. But then I thought, maybe the YAML parser that Kubernetes is using is just outdated and is finicky about what comments it is able to recognize. So I tried moving the comment around to different places, and was puzzled when the manifest was being accepted just by moving the comment to the root level. I moved it back to various locations, with it working and not working, until I thought to try making the line "half-indented" since it's "in-between" the working and non-working versions. That's when I noticed the line had a tab as its indent. And then it hit me; are the other lines also using tabs? I checked, and nope, they were using spaces. And that's when I realized I had wasted the last few hours on something I coulda just fixed with a simple indent change.
The moral of the story for some is that YAML is a bad configuration format, because it makes it easy to make trivial errors like this. But I actually place the blame more on whatever parser Kubernetes is using for the YAML files; it is unacceptable that a YAML parser would encounter an indentation mismatch and give a message so generic as unexpected EOF. I don't know what the identity of that YAML parser is, but I'm tired enough of the subject that I'm not even going to look into it right now. If one of you finds it, please make an issue report for it -- perhaps including this story as a real-world example of the pain that ambiguous error messages can cause.
Since Ephemeral Containers is still an alpha feature, it is disabled by default.
As you can read here, for this to work, it requires the EphemeralContainers feature gate to be enabled, and Kubernetes client and server version v1.16 or later.
As to the 2nd requirement I assume both your Kuberntes server and client versions are v1.16 or later but it looks like, for the time being, the 1st requirement cannot be met on Docker Desktop. According to this issue, it currently doesn't support enabling Feature Gates.
However you may still try to ssh to your master node and edit the following files:
/etc/kubernetes/manifests/kube-apiserver.yaml
/etc/kubernetes/manifests/kube-scheduler.yaml
by adding inside the command section:
--feature-gates=EphemeralContainers=true
Then you need to delete those pods so they are recreated with new settings applied. You'll find them by running:
kubectl get pods -n kube-system

Cant publish asp.net with web deploy onto IIS [duplicate]

This question already has answers here:
Webdeploy Issues: Cannot deploy unless admin
(3 answers)
Closed 4 years ago.
I have quite a problem with web deployment from Visual Studio.
A few months ago it worked without any problems, but now I get this stupid error:
Severity Code Description Project File Line Suppression State
Error Web deployment task failed. ((12.12.2018 21:29:45) An error
occurred when the request was processed on the remote computer.)
(12.12.2018 21:29:45) An error occurred when the request was processed on
the remote computer.
Unable to perform the operation. Please contact your server administrator
to check authorization and delegation settings. S.E.P.P_WebApi 0
I just don't know what could have changed or what is wrong there.
I tried it with a completly new Asp.Net project and that didn't work either so I thought it must be the server where something was wrong. I just can't find what it could be because I haven't changed anything since the time it worked.
Please help
With the help of Mohsin Mehmood I could fix it.
The answer provided in this question:
Web deployment task build failed
could finally fix it. The problem was, that the users WDeployConfigWriter and WDeployAdmin, who are needed for Web-Deploy, have expiring passwords. Just changed that and it worked again.

How to get resolution of "closed" from optilude when getting Jira stats

Wondering if anyone can help me with this.
I'm trying to run Optilude (https://github.com/optilude/jira-cycle-extract) in the Windows10 command line.
I have installed everything, set up the yaml file as instructed, and have it running.
Every time I run it however, I get the following error:
r.status_code, error, r.url, request=request, response=r, **kwargs) jira.exceptions.JIRAError: JiraError HTTP 400 url: https://livesport.atlassian.net/rest/api/2/search?jql=project+%3D+VELCRO+AND+issueType+IN+%28%22Story%22%2C+%22Task%22%2C+%22Bug%22%29+AND+%28resolution+IS+EMPTY+OR+resolution+IN+%28%22Done%22%2C+%22Closed%22%29%29+ORDER+BY+updatedDate+DESC&validateQuery=True&startAt=0&expand=changelog
text: The value 'Closed' does not exist for the field 'resolution'.
This is the yaml file snippet, which asks for the resolutions:
And this is my Jira board, with resolution set to both Closed and Done.
Does anyone have any suggestions as to why it's not picking up the resolution for "Closed"? Is there some other way I need to set this, or write in the yaml file?
If I remove the "Closed" from the yaml file, it runs happily past that error point (and onto the next unrelated error - but that's another issue..)
Are you sure that you have "Closed" resolution at this JIRA setup? If issue has a resolution it mean that it is closed.

service created but not started

I am trying to run a driver I created as a service. I managed to create a service out of the driver (using "sc.exe create ..."): The service now appears in the registry (under HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/mydriver). However the service cannot be started! When I use net start [myservice], I get the following output:
error 1275: This driver has been blocked from loading
One thing looked suspicious to me: The entry in the registry for my driver: The value of "ImagePath" was "\??[correct path]". I manually removed the "\??\" so that the correct path was left. However it did not solve the problem, instead I got an other error message (Error 123: The filename, directory name, or volume label syntax is incorrect).
By searching on the internet, I found out that this error 1275 indicates that a key in the registry is missing or corrupted. This makes sense as I modified it manually, so the value of "ImagePath" is probably corrupted. However I don't see anything wrong with the value I entered:
"C:\ledrivertest\driver1\bin\hello.sys"
Is there some kind of special syntax for the path of a driver binary which I don't know about?
I use Windows 7.
Thanks in advance
Since you are running on a 64 bit system, and you haven't signed the driver, the most likely explanation for error 1275 is that Windows blocked the driver due to it being unsigned.

Resources