Page MenuHomePhabricator

webservice script broken
Closed, InvalidPublicBUG REPORT

Description

magnus@tools-sgebastion-10:~$ webservice stop
Traceback (most recent call last):
  File "/usr/local/bin/webservice", line 11, in <module>
    load_entry_point('toolforge-webservice==0.1', 'console_scripts', 'webservice')()
  File "/usr/lib/python3/dist-packages/toolsws/cli/webservice.py", line 195, in main
    KubernetesBackend.get_types(),
  File "/usr/lib/python3/dist-packages/toolsws/backends/kubernetes.py", line 291, in get_types
    kubeconfig=Kubeconfig.load(), user_agent="webservice"
  File "/usr/lib/python3/dist-packages/toolforge_weld/kubernetes_config.py", line 98, in load
    raise KubernetesConfigFileNotFoundException(str(path.resolve()))
toolforge_weld.kubernetes_config.KubernetesConfigFileNotFoundException: /mnt/nfs/labstore-secondary-tools-home/magnus/.kube/config
magnus@tools-sgebastion-10:~$ webservice status
Traceback (most recent call last):
  File "/usr/local/bin/webservice", line 11, in <module>
    load_entry_point('toolforge-webservice==0.1', 'console_scripts', 'webservice')()
  File "/usr/lib/python3/dist-packages/toolsws/cli/webservice.py", line 195, in main
    KubernetesBackend.get_types(),
  File "/usr/lib/python3/dist-packages/toolsws/backends/kubernetes.py", line 291, in get_types
    kubeconfig=Kubeconfig.load(), user_agent="webservice"
  File "/usr/lib/python3/dist-packages/toolforge_weld/kubernetes_config.py", line 98, in load
    raise KubernetesConfigFileNotFoundException(str(path.resolve()))
toolforge_weld.kubernetes_config.KubernetesConfigFileNotFoundException: /mnt/nfs/labstore-secondary-tools-home/magnus/.kube/config
magnus@tools-sgebastion-10:~$ webservice start
Traceback (most recent call last):
  File "/usr/local/bin/webservice", line 11, in <module>
    load_entry_point('toolforge-webservice==0.1', 'console_scripts', 'webservice')()
  File "/usr/lib/python3/dist-packages/toolsws/cli/webservice.py", line 195, in main
    KubernetesBackend.get_types(),
  File "/usr/lib/python3/dist-packages/toolsws/backends/kubernetes.py", line 291, in get_types
    kubeconfig=Kubeconfig.load(), user_agent="webservice"
  File "/usr/lib/python3/dist-packages/toolforge_weld/kubernetes_config.py", line 98, in load
    raise KubernetesConfigFileNotFoundException(str(path.resolve()))
toolforge_weld.kubernetes_config.KubernetesConfigFileNotFoundException: /mnt/nfs/labstore-secondary-tools-home/magnus/.kube/config

Event Timeline

Webservice is not running, returns only blank page, no error

taavi subscribed.

webservice is supposed to give a better error message, but this is happening because you forgot to become a tool account before running the command.

Magnus claimed this task.

D'oh!

JJMC89 changed the task status from Resolved to Invalid.Nov 1 2023, 2:00 PM
JJMC89 removed Magnus as the assignee of this task.