Page MenuHomePhabricator

can't start webservices kubernetes
Closed, ResolvedPublic

Description

I have a tool on toolforge and i'm trying to use kubernetes, and whatever webservices command that i use, even webservices start, i got an error:

Traceback (most recent call last):
   File "/usr/local/bin/webservice", line 412, in <module>
     extra_args=args.extra_args,
   File "/usr/lib/python2.7/dist-packages/toolsws/backends/kubernetes.py", line 211, in __init__
     self.api = K8sClient.from_file()
   File "/usr/lib/python2.7/dist-packages/toolsws/backends/kubernetes.py", line 528, in from_file
     with open(filename) as f:
 IOError: [Errno 2] No such file or directory: '/data/project/xxxxx/.kube/config'

xxxxx : my tool name
Should i create a config file? or it will be created automatically?

Event Timeline

Mentioned in SAL (#wikimedia-cloud) [2020-11-28T04:35:35Z] <Krenair> Ran sudo -i kubectl -n tool-mdbot delete cm maintain-kubeusers on tools-k8s-control-1 for T268904, seems to have regenerated ~tools.mdbot/.kube/config

Hi @Krenair sorry for bothering you, i just have a little question, shortly before i use --backend=kubernetes and worked fine, now i try to use --backend=gridengine, and it give me a massage:

Could not find a public_html folder or a .lighttpd.conf file in your tool home.

is that normal and i just need to set lighttpd.conf file or it's a problem need to be fixed? thx again.

Hi @Krenair sorry for bothering you, i just have a little question, shortly before i use --backend=kubernetes and worked fine, now i try to use --backend=gridengine, and it give me a massage:

Could not find a public_html folder or a .lighttpd.conf file in your tool home.

is that normal and i just need to set lighttpd.conf file or it's a problem need to be fixed? thx again.

I don't know much about the Grid Engine, sorry.

Hi @Krenair sorry for bothering you, i just have a little question, shortly before i use --backend=kubernetes and worked fine, now i try to use --backend=gridengine, and it give me a massage:

Could not find a public_html folder or a .lighttpd.conf file in your tool home.

is that normal and i just need to set lighttpd.conf file or it's a problem need to be fixed? thx again.

I don't know much about the Grid Engine, sorry.

@Krenair that's fine thank you, and if can mention any body knows i'll be grateful, if u don't it's OK also.

Hi @Krenair sorry for bothering you, i just have a little question, shortly before i use --backend=kubernetes and worked fine, now i try to use --backend=gridengine, and it give me a massage:

Could not find a public_html folder or a .lighttpd.conf file in your tool home.

is that normal and i just need to set lighttpd.conf file or it's a problem need to be fixed? thx again.

I don't know much about the Grid Engine, sorry.

@Krenair that's fire thank you, and if can mention any body knows i'll be grateful, if u don't it's OK also.

I'd probably ask in #wikimedia-cloud or on the cloud mailing list, or open another ticket

I'd probably ask in #wikimedia-cloud or on the cloud mailing list, or open another ticket

@Krenair thx a lot.