JupyterHub设置-CrashLoopBackOff中的Kubernetes集线器

时间:2018-07-27 09:17:06

标签: kubernetes jupyterhub

我正在尝试在RHEL7 VM上设置JupyterHub,它具有一个由主节点和工作节点组成的Kubernetes集群。按照https://zero-to-jupyterhub.readthedocs.io在Kubernetes群集上设置JupyterHub的步骤之后,“集线器”容器处于CrashLoopBackOff状态,而其他两个容器处于“运行”状态:

kubectl get pods -n jhub

Output

集线器窗格的日志:

  

kubectl记录hub-dccf64b6d-w4nl8 -n jhub   追溯(最近一次通话):         在launch_instance_async中,文件“ /usr/local/lib/python3.6/dist-packages/jupyterhub/app.py”,行1620           产生self.initialize(argv)         下一个中的文件“ /usr/lib/python3.6/types.py”,第204行           返回next(自己。包装)         在初始化中,文件“ /usr/local/lib/python3.6/dist-packages/jupyterhub/app.py”,第1373行           self.init_db()         init_db中的文件“ /usr/local/lib/python3.6/dist-packages/jupyterhub/app.py”,第888行           dbutil.upgrade_if_needed(self.db_url,log = self.log)         文件“ /usr/local/lib/python3.6/dist-packages/jupyterhub/dbutil.py”,行118,在upgrade_if_needed中           orm.check_db_revision(引擎)         文件“ /usr/local/lib/python3.6/dist-packages/jupyterhub/orm.py”,行462,位于check_db_revision中           current_table_names = set(engine.table_names())         table_names中的文件“ /usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/base.py”,行2136           与self._optional_conn_ctx_manager(connection)作为conn:         在__enter中输入文件“ /usr/lib/python3.6/contextlib.py”,第81行           返回next(self.gen)         文件“ /usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/base.py”,行1932,在_optional_conn_ctx_manager中           使用self.contextual_connect()作为conn:         文件“ /usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/base.py”,第2123行,位于contextual_connect中           self._wrap_pool_connect(self.pool.connect,无),         _wrap_pool_connect中的文件“ /usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/base.py”,行2162           e,方言,自我)         _handle_dbapi_exception_noconnection中的文件“ /usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/base.py”,行1476           exc_info         在raise_from_cause中,文件“ /usr/local/lib/python3.6/dist-packages/sqlalchemy/util/compat.py”,第203行           reraise(type(exception),exception,tb = exc_tb,cause = cause)         重新列出文件“ /usr/local/lib/python3.6/dist-packages/sqlalchemy/util/compat.py”,第186行           提高价值.with_traceback(tb)         _wrap_pool_connect中的文件“ /usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/base.py”,行2158           返回fn()         连接中的文件“ /usr/local/lib/python3.6/dist-packages/sqlalchemy/pool.py”,第403行           返回_ConnectionFairy._checkout()         _checkout中的文件“ /usr/local/lib/python3.6/dist-packages/sqlalchemy/pool.py”,第782行           童话= _ConnectionRecord.checkout(池)         在签出中的文件“ /usr/local/lib/python3.6/dist-packages/sqlalchemy/pool.py”,第532行           rec =池._do_get()         _do_get中的文件“ /usr/local/lib/python3.6/dist-packages/sqlalchemy/pool.py”,行1277           返回self._create_connection()         _create_connection中的文件“ /usr/local/lib/python3.6/dist-packages/sqlalchemy/pool.py”,第350行           返回_ConnectionRecord()          init 中的文件“ /usr/local/lib/python3.6/dist-packages/sqlalchemy/pool.py”,行477           self .__ connect(first_connect_check = True)         __connect中的文件“ /usr/local/lib/python3.6/dist-packages/sqlalchemy/pool.py”,行667           连接=池._invoke_creator(个体)         连接中的文件“ /usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/strategies.py”,第105行           返回方言.connect(* cargs,** cparams)         连接中的文件“ /usr/local/lib/python3.6/dist-packages/sqlalchemy/engine/default.py”,行410           返回self.dbapi.connect(* cargs,** cparams)       sqlalchemy.exc.OperationalError:(sqlite3.OperationalError)无法打开数据库文件(此错误的背景位于:http://sqlalche.me/e/e3q8

config.yaml的内容:

proxy:
   secretToken: "abcd"
hub:
  cookieSecret: "abcd"
storage:
  dynamic:
    storageClass: standard

除非所有吊舱都处于“正在运行”状态,否则无法继续进行设置。有什么想法吗?

0 个答案:

没有答案