- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 Kubernetes 创建 Jupyterhub,并按照 Zero to Jupyterhub 中提供的说明进行操作文档。 jupyterhub 的基本安装工作正常,我什至可以使用 jupyterhub。后来,当我使用 Dockerfile 创建自己的 docker 容器时我写的,jupyter-test pod 崩溃了。检查日志后,我发现它由于权限问题而崩溃。现在,我知道在 docker 中每个命令都作为 sudo 运行,那么为什么会出现这个问题呢?我尝试使用 --user 标志安装 jupyterhub,但随后在 PATH 中找不到 jupyterhub-singleuser。
请在下面找到我为调试运行的一些命令的输出:
kubectl describe pod jupyter-test
Name: jupyter-test
Namespace: test-cv4faces-jupyterhub
Node: gke-test-cv4faces-cluste-default-pool-7198f95e-hrkp/10.128.0.2
Start Time: Mon, 06 Aug 2018 12:53:37 +0000
Labels: app=jupyterhub
component=singleuser-server
heritage=jupyterhub
Annotations: hub.jupyter.org/username=test
Status: Running
IP: 10.48.2.11
Init Containers:
block-cloud-metadata:
Container ID: docker://50123375a6748a03d93a4d441901ea5bdcb3d660b8c254224826d491f5a16221
Image: jupyterhub/k8s-network-tools:v0.6
Image ID: docker-pullable://jupyterhub/k8s-network-tools@sha256:271e7f7c9b4aa319788ca1bbce3428cad7b9da852a8c3af49178abcc2cc45b28
Port: <none>
Command:
iptables
-A
OUTPUT
-d
169.254.169.254
-j
DROP
State: Terminated
Reason: Completed
Exit Code: 0
Started: Mon, 06 Aug 2018 12:53:55 +0000
Finished: Mon, 06 Aug 2018 12:53:55 +0000
Ready: True
Restart Count: 0
Environment: <none>
Mounts: <none>
Containers:
notebook:
Container ID: docker://5efb329f6e91d31b71a941281fecf873433abdaf290e71354ee88a0877e62a5d
Image: gcr.io/eng-spot-212108/test-cv4faces-image:version2
Image ID: docker-pullable://gcr.io/eng-spot-212108/test-cv4faces-image@sha256:e7baf466e96c4865f50b442b49ca91fcb00f3de59c02a43c756e291ffd69161b
Port: 8888/TCP
Args:
jupyterhub-singleuser
--ip="0.0.0.0"
--port=8888
State: Terminated
Reason: Error
Exit Code: 1
Started: Mon, 06 Aug 2018 12:56:50 +0000
Finished: Mon, 06 Aug 2018 12:56:50 +0000
Last State: Terminated
Reason: Error
Exit Code: 1
Started: Mon, 06 Aug 2018 12:55:29 +0000
Finished: Mon, 06 Aug 2018 12:55:29 +0000
Ready: False
Restart Count: 5
Requests:
memory: 1073741824
Environment:
EMAIL: test@local
GIT_AUTHOR_NAME: test
GIT_COMMITTER_NAME: test
JUPYTERHUB_API_TOKEN: 284ac1090eac420f850f94a0a64b79db
JPY_API_TOKEN: 284ac1090eac420f850f94a0a64b79db
JUPYTERHUB_ADMIN_ACCESS: 1
JUPYTERHUB_CLIENT_ID: user-test
JUPYTERHUB_HOST:
JUPYTERHUB_OAUTH_CALLBACK_URL: /user/test/oauth_callback
JUPYTERHUB_USER: test
JUPYTERHUB_API_URL: http://10.51.246.119:8081/hub/api
JUPYTERHUB_BASE_URL: /
JUPYTERHUB_SERVICE_PREFIX: /user/test/
MEM_GUARANTEE: 1073741824
Mounts:
/home/jovyan from volume-test (rw)
/var/run/secrets/kubernetes.io/serviceaccount from no-api-access-please (ro)
Conditions:
Type Status
Initialized True
Ready False
PodScheduled True
Volumes:
volume-test:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: claim-test
ReadOnly: false
no-api-access-please:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
QoS Class: Burstable
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
node.kubernetes.io/unreachable:NoExecute for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 3m default-scheduler Successfully assigned jupyter-test to gke-test-cv4faces-cluste-default-pool-7198f95e-hrkp
Normal SuccessfulMountVolume 3m kubelet, gke-test-cv4faces-cluste-default-pool-7198f95e-hrkp MountVolume.SetUp succeeded for volume "no-api-access-please"
Normal SuccessfulMountVolume 3m kubelet, gke-test-cv4faces-cluste-default-pool-7198f95e-hrkp MountVolume.SetUp succeeded for volume "pvc-01c3a951-9976-11e8-b54e-42010a800122"
Normal Pulled 3m kubelet, gke-test-cv4faces-cluste-default-pool-7198f95e-hrkp Container image "jupyterhub/k8s-network-tools:v0.6" already present on machine
Normal Created 3m kubelet, gke-test-cv4faces-cluste-default-pool-7198f95e-hrkp Created container
Normal Started 3m kubelet, gke-test-cv4faces-cluste-default-pool-7198f95e-hrkp Started container
Normal Pulled 2m (x4 over 3m) kubelet, gke-test-cv4faces-cluste-default-pool-7198f95e-hrkp Container image "gcr.io/eng-spot-212108/test-cv4faces-image:version2" already present on machine
Normal Created 2m (x4 over 3m) kubelet, gke-test-cv4faces-cluste-default-pool-7198f95e-hrkp Created container
Normal Started 2m (x4 over 3m) kubelet, gke-test-cv4faces-cluste-default-pool-7198f95e-hrkp Started container
Warning BackOff 1m (x8 over 3m) kubelet, gke-test-cv4faces-cluste-default-pool-7198f95e-hrkp Back-off restarting failed container
kubectl logs jupyter-test
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/traitlets/traitlets.py", line 528, in get
value = obj._trait_values[self.name]
KeyError: 'runtime_dir'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/jupyterhub-singleuser", line 6, in <module>
main()
File "/usr/local/lib/python3.5/dist-packages/jupyterhub/singleuser.py", line 455, in main
return SingleUserNotebookApp.launch_instance(argv)
File "/usr/local/lib/python3.5/dist-packages/jupyter_core/application.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/traitlets/config/application.py", line 657, in launch_instance
app.initialize(argv)
File "<decorator-gen-7>", line 2, in initialize
File "/usr/local/lib/python3.5/dist-packages/traitlets/config/application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/notebook/notebookapp.py", line 1600, in initialize
self.init_configurables()
File "/usr/local/lib/python3.5/dist-packages/notebook/notebookapp.py", line 1293, in init_configurables
connection_dir=self.runtime_dir,
File "/usr/local/lib/python3.5/dist-packages/traitlets/traitlets.py", line 556, in __get__
return self.get(obj, cls)
File "/usr/local/lib/python3.5/dist-packages/traitlets/traitlets.py", line 535, in get
value = self._validate(obj, dynamic_default())
File "/usr/local/lib/python3.5/dist-packages/jupyter_core/application.py", line 99, in _runtime_dir_default
ensure_dir_exists(rd, mode=0o700)
File "/usr/local/lib/python3.5/dist-packages/jupyter_core/utils/__init__.py", line 13, in ensure_dir_exists
os.makedirs(path, mode=mode)
File "/usr/lib/python3.5/os.py", line 231, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.5/os.py", line 231, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.5/os.py", line 231, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.5/os.py", line 241, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/.local'
我将非常感谢有关此的任何帮助。
提前致谢
维什韦什
最佳答案
在您的 jupyter-test 容器中安装一些软件包时,/home/{user}(例如/home/jovyan)的权限可能会受到影响。您可以通过简单地向/home/{user}
授予必要的权限来修复权限为了快速修复,只需将其添加到您的 dockerfile
chown -R {user} /home/{user}
关于docker - Jupyterhub:权限被拒绝(从零到 Jupyterhub),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51717719/
我只想允许一个国家/地区访问,但排除该国家/地区内的代理。 这就是我所拥有的(为了方便起见,缩短了版本) order deny,allow deny from all allow from 139.
这个问题在这里已经有了答案: What is an unhandled promise rejection? (9 个回答) 关闭 4 年前。 我目前正在尝试实现我自己的 Promise,以便在 A
我在使用 Gitolite 推送 git 时遇到问题。 当我尝试这个时: git push origin :refs/tags/deployment 我收到这个错误: remote: D NAME/i
我已经为我的 laravel 5.0-dev 项目配置了 mysql,如下所示: 'mysql' => [ 'driver' => 'mysql', 'host' =>
我对 Web 和 SOF 进行了一些研究,但发现对于该错误没有任何真正的帮助。 我使用 Windows 10 Ubuntu Bash 安装了 Node 和 Puppeteer,但未能使其工作,但我设法
在我的应用审核期间,我收到了以下信息: “17.2:要求用户共享个人信息(例如电子邮件地址和生日)才能正常运行的应用将被拒绝 具体来说,您的应用仅使用Facebook登录名进行身份验证,但不包括该网站
我正在开发 VeriFone VX 终端的接口(interface)。虽然,这确实是一个普遍的 EMV 问题。我们的处理器的下限为零,因此它将始终在线发送。但是,如果它发生变化,您如何知道(哪些标签)
我编写了一些宏代码,根据表单提交向经理发送电子邮件(用于费用/审批流程),这是我使用谷歌表单/电子表格的第一个项目,所以也许我可能会错过一些简单的东西,但我为此浏览了 2 个教程,我的代码与重要的部分
clang 3.4 接受以下代码;而 vc++ NOV 2013 CTP 拒绝它并出现错误: error C2668: 'AreEqual' : ambiguous call to overloade
使用 nginx,您可以允许和拒绝范围和 ips (https://www.nginx.com/resources/admin-guide/restricting-access/)。使用realip模
官方编辑: 非常感谢您的帮助,但我仍然遇到问题。 我的 ffserver.conf 文件是这样的: # Port on which the server is listening. You must
我有一个问题:我是 Ubuntu 系统的根。我想授予用户(比如用户名是 X)执行任何命令的权限,但同时我有一个文件夹,除了我的用户(当然不是 X,因为它是 Admin ) 或根。有什么建议么?谢谢!
我使用 Apache2.2 作为 tomcat 服务器的前端。我想限制对某个位置的访问,但允许对子位置的所有访问,但遇到了一些麻烦。 我目前拥有的是: AllowOverride None
就像 this person ,我一直在为浏览器缓存 SSL session 而苦苦挣扎。简而言之,如果选择了客户端证书,则无法以编程方式清除状态,除非在 IE 中使用 document.execCo
我的网站是在由 Apache 服务器提供服务的 Angular 上设置的。我通过 View 将内容动态加载到主页上。 现在以下是我的问题: 我建立这个网站的主要目的是通过 google adsense
我最近遇到了我的应用程序的问题,当它突然被 Google Play 拒绝时因为他们发现我使用的是背景位置 .但实际上我并没有使用这个功能。我只有 ACCESS_COARSE_LOCATION和 ACC
function sendPushNotification(subscription, urlEncodedData){ try { webpush.sendNotification(su
我包裹了一个 request-promise-native调用返回 promise 的函数。 import request from 'request-promise-native'; functio
我正在开发我的 meteor 项目,并开始设置我的第一个更复杂的允许/拒绝规则。我发现很难看出哪些允许触发,哪些不允许触发,以及这些函数中的某些变量包含什么。例如: List.allow({ u
我正在 AngularJS 中创建一个 Factory,它是这样的: if (href) { return $http({ method: method, url: item.href });
我是一名优秀的程序员,十分优秀!