PageSourceSearch

https://kubeedge.io/assets/js/91a30793.260afba2.js

js kubeedge.io collected 2026-10-02 16:42:47 UTC 10,075 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkmy_website=globalThis.webpackChunkmy_website||[]).push([[4082],{15680(e,t,n){n.d(t,{xA:()=>c,yg:()=>g});var o=n(96540);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var d=o.createContext({}),p=function(e){var t=o.useContext(d),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},c=function(e){var t=p(e.components);return o.createElement(d.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){var t=e.children;return o.createElement(o.Fragment,{},t)}},u=o.forwardRef((function(e,t){var n=e.components,a=e.mdxType,r=e.originalType,d=e.parentName,c=i(e,["components","mdxType","originalType","parentName"]),u=p(n),g=a,m=u["".concat(d,".").concat(g)]||u[g]||s[g]||r;return n?o.createElement(m,l(l({ref:t},c),{},{components:n})):o.createElement(m,l({ref:t},c))}));function g(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var r=n.length,l=new Array(r);l[0]=u;var i={};for(var d in t)hasOwnProperty.call(t,d)&&(i[d]=t[d]);i.originalType=e,i.mdxType="string"==typeof e?e:a,l[1]=i;for(var p=2;p<r;p++)l[p]=n[p];return o.createElement.apply(null,l)}return o.createElement.apply(null,n)}u.displayName="MDXCreateElement"},95633(e,t,n){n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>l,default:()=>s,frontMatter:()=>r,metadata:()=>i,toc:()=>p});var o=n(58168),a=(n(96540),n(15680));const r={title:"TroubleShooting",sidebar_position:7},l=void 0,i={unversionedId:"developer/troubleshooting",id:"developer/troubleshooting",title:"TroubleShooting",description:"This page contains a few commonly occurring questions.",source:"@site/docs/developer/troubleshooting.md",sourceDirName:"developer",slug:"/developer/troubleshooting",permalink:"/docs/developer/troubleshooting",draft:!1,editUrl:"https://github.com/kubeedge/website/blob/master/docs/developer/troubleshooting.md",tags:[],version:"current",lastUpdatedBy:"Shelley-BaoYue",lastUpdatedAt:1691408841,formattedLastUpdatedAt:"Aug 7, 2023",sidebarPosition:7,frontMatter:{title:"TroubleShooting",sidebar_position:7},sidebar:"documentationSideBar",previous:{title:"Message Topics",permalink:"/docs/developer/message_topics"},next:{title:"Supplementary Developer Contribution Guidelines",permalink:"/docs/developer/Supplemental_developer_guide"}},d={},p=[{value:"keadm init failed to download release",id:"keadm-init-failed-to-download-release",level:2},{value:"Container keeps pending/ terminating",id:"container-keeps-pending-terminating",level:2},{value:"Where do we find cloudcore/edgecore logs",id:"where-do-we-find-cloudcoreedgecore-logs",level:2},{value:"Where do we find the pod logs",id:"where-do-we-find-the-pod-logs",level:2}],c={toc:p};function s(e){let{components:t,...n}=e;return(0,a.yg)("wrapper",(0,o.A)({},c,n,{components:t,mdxType:"MDXLayout"}),(0,a.yg)("p",null,"This page contains a few commonly occurring questions."),(0,a.yg)("h2",{id:"keadm-init-failed-to-download-release"},"keadm init failed to download release"),(0,a.yg)("p",null,"If you have issue about connection to github, please follow below guide with proxy before do setup, take ",(0,a.yg)("inlineCode",{parentName:"p"},"v1.12.1")," as example:"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("p",{parentName:"li"},"download release pkgs from ",(0,a.yg)("a",{parentName:"p",href:"https://github.com/kubeedge/kubeedge/releases/tag/v1.12.1"},"release page"))),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("p",{parentName:"li"},"download crds yamls matches the release version you downloaded, links as below:"),(0,a.yg)("ul",{parentName:"li"},(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"https://raw.githubusercontent.com/kubeedge/kubeedge/v1.12.1/build/crds/devices/devices_v1alpha2_device.yaml"},"devices_v1alpha1_device.yaml")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"https://raw.githubusercontent.com/kubeedge/kubeedge/v1.12.1/build/crds/devices/devices_v1alpha2_devicemodel.yaml"},"devices_v1alpha1_devicemodel.yaml")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"https://raw.githubusercontent.com/kubeedge/kubeedge/v1.12.1/build/crds/reliablesyncs/cluster_objectsync_v1alpha1.yaml"},"cluster_objectsync_v1alpha1.yaml")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"https://raw.githubusercontent.com/kubeedge/kubeedge/v1.12.1/build/crds/reliablesyncs/objectsync_v1alpha1.yaml"},"objectsync_v1alpha1.yaml")))),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("p",{parentName:"li"},"put them under ",(0,a.yg)("inlineCode",{parentName:"p"},"/etc/kubeedge")," as below:"),(0,a.yg)("pre",{parentName:"li"},(0,a.yg)("code",{parentName:"pre",className:"language-bash"},"$ tree -L 3\n.\n\u251c\u2500\u2500 crds\n\u2502\xa0\xa0 \u251c\u2500\u2500 devices\n\u2502\xa0\xa0 \u2502\xa0\xa0 \u251c\u2500\u2500 devices_v1alpha2_devicemodel.yaml\n\u2502\xa0\xa0 \u2502\xa0\xa0 \u2514\u2500\u2500 devices_v1alpha2_device.yaml\n\u2502\xa0\xa0 \u2514\u2500\u2500 reliablesyncs\n\u2502\xa0\xa0     \u251c\u2500\u2500 cluster_objectsync_v1alpha1.yaml\n\u2502\xa0\xa0     \u2514\u2500\u2500 objectsync_v1alpha1.yaml\n\u2514\u2500\u2500 kubeedge-v1.12.1-linux-amd64.tar.gz\n\n3 directories, 5 files\n\n")))),(0,a.yg)("p",null,"Then you can do setup without any network issue, ",(0,a.yg)("inlineCode",{parentName:"p"},"keadm")," would detect them and not download again(make sure you specify ",(0,a.yg)("inlineCode",{parentName:"p"},"v1.12.1")," with option ",(0,a.yg)("inlineCode",{parentName:"p"},"--kubeedge-version v1.12.1"),")."),(0,a.yg)("h2",{id:"container-keeps-pending-terminating"},"Container keeps pending/ terminating"),(0,a.yg)("ol",null,(0,a.yg)("li",{parentName:"ol"},(0,a.yg)("p",{parentName:"li"},"Check the output of ",(0,a.yg)("inlineCode",{parentName:"p"},"kubectl get nodes"),", whether the node is running healthy. Note that nodes in unreachable, offline status cannot complete graceful/soft pod deletion until they come back to normal.")),(0,a.yg)("li",{parentName:"ol"},(0,a.yg)("p",{parentName:"li"},"Check the output of ",(0,a.yg)("inlineCode",{parentName:"p"},"kubectl describe pod <your-pod>"),", whether the pod is scheduled successfully.")),(0,a.yg)("li",{parentName:"ol"},(0,a.yg)("p",{parentName:"li"},"Check the ",(0,a.yg)("inlineCode",{parentName:"p"},"edgecore")," logs for any errors.")),(0,a.yg)("li",{parentName:"ol"},(0,a.yg)("p",{parentName:"li"},"Check the architecture of the node running ",(0,a.yg)("inlineCode",{parentName:"p"},"edgecore")," and make sure that container image you are trying to run is of the same architecture.\nFor example, if you are running ",(0,a.yg)("inlineCode",{parentName:"p"},"edgecore")," on Raspberry Pi 4, which is of ",(0,a.yg)("inlineCode",{parentName:"p"},"arm64v8")," architecture, the nginx image to be executed would be ",(0,a.yg)("inlineCode",{parentName:"p"},"arm64v8/nginx")," from the docker hub.")),(0,a.yg)("li",{parentName:"ol"},(0,a.yg)("p",{parentName:"li"},"Also, check that the ",(0,a.yg)("inlineCode",{parentName:"p"},"podSandboxImage")," is correctly set as defined in ",(0,a.yg)("a",{parentName:"p",href:"../setup/config#modification-in-edgecoreyaml"},"Modification in edgecore.yaml"),".")),(0,a.yg)("li",{parentName:"ol"},(0,a.yg)("p",{parentName:"li"},"If all of the above is correctly set, login manually to your edge node and run your docker image manually by"),(0,a.yg)("pre",{parentName:"li"},(0,a.yg)("code",{parentName:"pre",className:"language-shell"}," docker run <your-container-image>\n"))),(0,a.yg)("li",{parentName:"ol"},(0,a.yg)("p",{parentName:"li"}
1,"If the docker container image is not pulled from the docker hub, please check that there is enough space on the edge node."))),(0,a.yg)("h2",{id:"where-do-we-find-cloudcoreedgecore-logs"},"Where do we find cloudcore/edgecore logs"),(0,a.yg)("p",null,"This depends on the how cloudcore/ edgecore has been executed."),(0,a.yg)("ol",null,(0,a.yg)("li",{parentName:"ol"},"If ",(0,a.yg)("inlineCode",{parentName:"li"},"systemd")," was used to start the cloudcore/ edgecore? then use ",(0,a.yg)("inlineCode",{parentName:"li"},"journalctl --unit <name of the service probably edgecore.service>")," to view the logs."),(0,a.yg)("li",{parentName:"ol"},"If ",(0,a.yg)("inlineCode",{parentName:"li"},"nohup")," was used to start the cloudcore/ edgecore, either a path would have been added where the log is located, Otherwise, if the log file wasn't provided, the logs would be written to stdout.")),(0,a.yg)("h2",{id:"where-do-we-find-the-pod-logs"},"Where do we find the pod logs"),(0,a.yg)("p",null,"Connect to the edge node and then either"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},"use the log file located in ",(0,a.yg)("inlineCode",{parentName:"li"},"/var/log/pods")," or"),(0,a.yg)("li",{parentName:"ul"},"use commands like ",(0,a.yg)("inlineCode",{parentName:"li"},"docker logs <container id>"))),(0,a.yg)("p",null,"You can also enable ",(0,a.yg)("inlineCode",{parentName:"p"},"kubectl logs")," feature refer to this ",(0,a.yg)("a",{parentName:"p",href:"/docs/advanced/debug"},"guide"),"."))}s.isMDXComponent=!0}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.