Comments (5)
Same issue on AWS EKS
from nocalhost.
Finally succeeded after 5 times restarts
from nocalhost.
Finally succeeded after 5 times restarts
nocalhost-api won't start until mariadb is ready. Therefore PV must be bound to ensure mariadb's startup.
from nocalhost.
What happened:
I use a k3s cluster and want to install nocalhost. It doesn't work with nocalhost-apiCrashLoopBackOff
.The output of
kubectl get pod -nnocalhost -owide
:NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES svclb-nocalhost-web-7nkvh 1/1 Running 0 73s 10.42.1.9 node-ccf0ed90 <none> <none> svclb-nocalhost-web-fqms9 1/1 Running 0 73s 10.42.0.16 master-d39b1dd5 <none> <none> svclb-nocalhost-web-77849 1/1 Running 0 73s 10.42.2.7 node-2ffe5da9 <none> <none> nocalhost-web-6f8f65d48f-xvzwt 1/1 Running 0 73s 10.42.2.8 node-2ffe5da9 <none> <none> nocalhost-api-7bdd895d99-tbthc 0/1 CrashLoopBackOff 3 73s 10.42.1.8 node-ccf0ed90 <none> <none>
The log of nocalhost-api pod:
# kubectl logs -f -nnocalhost nocalhost-api-7bdd895d99-tbthc panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0xb7d260] goroutine 1 [running]: nocalhost/pkg/nocalhost-api/pkg/log.Errorf(...) /opt/src/pkg/nocalhost-api/pkg/log/logger.go:121 nocalhost/internal/nocalhost-api/model.openDB(0xc000594118, 0x4, 0xc000594130, 0x4, 0xc000476460, 0x16, 0xc0005940f0, 0x9, 0xc00034fd80) /opt/src/internal/nocalhost-api/model/init.go:53 +0x4c0 nocalhost/internal/nocalhost-api/model.Init(0x1959b60) /opt/src/internal/nocalhost-api/model/init.go:34 +0x14d nocalhost/pkg/nocalhost-api/napp.New(0xc0003cc340, 0x17) /opt/src/pkg/nocalhost-api/napp/app.go:62 +0x4e main.main() /opt/src/cmd/nocalhost-api/nocalhost-api.go:74 +0x319
What you expected to happen:
nocalhost install successfully.How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
My k3s cluster is using containerd instand of docker.Environment:
- OS (e.g:
Macos 10.15.5 (19F96)
orWindows 10
): ubuntu 18.04.5 LTS- nhctl version (use
nchtl version
command): v0.2.1 (defe9f2)- helm version (use
helm version
command):version.BuildInfo{Version:"v3.1.2", GitCommit:"d878d4d45863e42fd5cff6743294a11d28a9abce", GitTreeState:"clean", GoVersion:"go1.13.8"}
- kubectl version (use
kubectl version
command):Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.1", GitCommit:"c4d752765b3bbac2237bf87cf0b1c2e307844666", GitTreeState:"clean", BuildDate:"2020-12-23T02:22:53Z", GoVersion:"go1.15.6", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.3-k3s.2", GitCommit:"e7e6a3c4e9a7d80b87793612730d10a863a25980", GitTreeState:"clean", BuildDate:"2019-11-18T18:31:23Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"linux/amd64"}
- Others:
# kubectl get node NAME STATUS ROLES AGE VERSION node-2ffe5da9 Ready <none> 29h v1.16.3-k3s.2 node-ccf0ed90 Ready <none> 29h v1.16.3-k3s.2 master-d39b1dd5 Ready master 29h v1.16.3-k3s.2
Please check if the pv of mariadb is cannot be bound. If k3s cannot provide pv provisioner.please install nocalhost without pv support.
nhctl init -n nocalhost -t nodeport -p 7000 --force --set mariadb.primary.persistence.enabled=false
from nocalhost.
Now you can successfully install noclhost in k3s by using nhctl init -t nodeport --force
command only:
Environment:
- OS: Ubuntu 20.04.1 LTS (or earlier version)
- nhctl version: v0.2.5
from nocalhost.
Related Issues (20)
- 可以出一个django的远程debug示例吗?
- 无法连接k8s集群,报错:Daemon responses empty data to GetDaemonServerInfo
- CNCF TOC annual review due HOT 3
- Error: Post "https://x.x.x.x:6443/apis/authorization.k8s.io/v1/selfsubjectaccessreviews": Forbidden
- 支持不改动container name为nocalhost-dev
- PHP远程调试没起到效果
- Code of Conduct update to replace mediator email with the CNCF committee email
- Supports change the sync dir when DevMode started
- gitIgnore synchronization does not take effect HOT 1
- 有没有可能支持远程调试C/C++代码
- Failed to get node configs, please try again HOT 2
- Security Slam 2023 Participation
- vscode remote-ssh方式无法工作 HOT 1
- proxy mode下,如果代理到本地的进程A`想访问部署在集群中的下游服务B,是不是没法成功访问
- nocalhost组件依赖socat组件咨询
- 你们的微信二维码 没有看过我的请求
- Plugin 'Nocalhost' (version '0.6.29-231') is not compatible with the current version of the IDE, because it requires build 231.* or older but the current build is IU-233.11799.241 HOT 1
- How to solve build network problem? HOT 1
- Impersonate-User用户模拟在vscode插件中添加集群后,后续开发功能例如View Logs在调用api时没有传递 --as 参数 导致异常 HOT 1
- golang jetbrains kubeconfig 文件权限受限,不能正常使用 nocalhost HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nocalhost.