nginx Jupyter垃圾邮件在日志中包含“Generating new user for token-authenticated request”

ca1c2owp  于 2023-03-29  发布在  Nginx
关注(0)|答案(1)|浏览(98)

我有jupyter服务器运行在Docker使用

FROM jupyter/scipy-notebook

ARG NB_USER

USER root
RUN apt-get update
COPY apt-requirements.txt .
RUN apt-get update
RUN apt-get install -y $(grep -hvE "^\s*#" apt-requirements.txt | sort -u | tr '\n' ' ')

COPY requirements.txt .
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
USER ${NB_USER}

这是我的.env根据jupyter

NB_USER=lab
CHOWN_HOME=yes
CHOWN_HOME_OPTS="-R"
RESTARTABLE=yes
LOCAL_WORKING_DIR=/home/lab
ACCESS_TOKEN=''
ACCESS_PASSWORD=''

网页工作正常。我使用nginx和基本的auth作为身份验证系统。但是当我试图运行任何内核时,它被冻结了,我在日志中看到大量相同的消息:

...
[I 2023-03-24 05:12:15.820 ServerApp] Generating new user for token-authenticated request: 9da819445a07428ba5b07d4361b37592
[I 2023-03-24 05:12:21.037 ServerApp] Generating new user for token-authenticated request: 331a45f6cce5460687f11897db9e9769
[I 2023-03-24 05:12:26.257 ServerApp] Generating new user for token-authenticated request: fee1b282a03d4b2692cf84019e720206
[I 2023-03-24 05:12:31.461 ServerApp] Generating new user for token-authenticated request: e9f3d5afb7414411bb89f3bdf33db921
[I 2023-03-24 05:12:36.696 ServerApp] Generating new user for token-authenticated request: e37235f5281345478aba2f54432de69a
[I 2023-03-24 05:12:41.896 ServerApp] Generating new user for token-authenticated request: 1d9fdf97ba47469bbdac043b061d76cd
[I 2023-03-24 05:12:47.096 ServerApp] Generating new user for token-authenticated request: 2775f602543e4e91a7b166a48841e8c5
[I 2023-03-24 05:12:52.348 ServerApp] Generating new user for token-authenticated request: c4b3a0eab9e34ef0b2e09de1c38db603
[I 2023-03-24 05:12:57.545 ServerApp] Generating new user for token-authenticated request: 6d1cdbaac5c247719aa2ea5c2cac4ca9
[I 2023-03-24 05:13:02.759 ServerApp] Generating new user for token-authenticated request: c84253281c3147c2990d7ba7359b93bb
[I 2023-03-24 05:13:07.959 ServerApp] Generating new user for token-authenticated request: f186b1d4966d4bf886dec3d9f5844ffa
[I 2023-03-24 05:13:13.188 ServerApp] Generating new user for token-authenticated request: 64fcc05713fa441eb9b3bcad5281433c
[I 2023-03-24 05:13:18.384 ServerApp] Generating new user for token-authenticated request: 224e24f08a654dc390ffa2696861caa1
[I 2023-03-24 05:13:23.601 ServerApp] Generating new user for token-authenticated request: aa3bef1b7b004e83889741a0ac3c7158
[I 2023-03-24 05:13:28.808 ServerApp] Generating new user for token-authenticated request: f255c769aa304de2b1a41b9aabbdbd44
[I 2023-03-24 05:13:34.014 ServerApp] Generating new user for token-authenticated request: fa7abb6e35eb42cba3c6e642d18cea6f
[I 2023-03-24 05:13:39.215 ServerApp] Generating new user for token-authenticated request: 46d7ac3d6fff4880a26d0873587dd155
[I 2023-03-24 05:13:44.419 ServerApp] Generating new user for token-authenticated request: 6d23b2e4c9524ea78d7821b3a47f8db2
[I 2023-03-24 05:13:49.624 ServerApp] Generating new user for token-authenticated request: 5405124b3b3244c3bcb0aed218d3277b
[W 2023-03-24 05:13:53.034 ServerApp] 400 GET /api/events/subscribe (701491a4151d4b8fad8ba9526a46e9ff@172.16.102.12) 0.98ms referer=None
[I 2023-03-24 05:13:54.819 ServerApp] Generating new user for token-authenticated request: ef027366b79a4392aff548dbfb9bac77
[I 2023-03-24 05:14:00.026 ServerApp] Generating new user for token-authenticated request: 903c995330614162ba09c1ae13a57e92
[I 2023-03-24 05:14:05.260 ServerApp] Generating new user for token-authenticated request: 831d1c53bbc949c3a7745f72524f34b1
[I 2023-03-24 05:14:10.466 ServerApp] Generating new user for token-authenticated request: 8a4d2f6f74ee4d3e8edc05decf764359
[I 2023-03-24 05:14:15.659 ServerApp] Generating new user for token-authenticated request: 088e7bda4c514c40b6c5d1737309a021
[I 2023-03-24 05:14:20.869 ServerApp] Generating new user for token-authenticated request: 30b53a766f3a4bfca21be730183cc971
[I 2023-03-24 05:14:26.083 ServerApp] Generating new user for token-authenticated request: 55e2dd38626d4bc4b1e55b06393361b8
[I 2023-03-24 05:14:31.299 ServerApp] Generating new user for token-authenticated request: c98d4183a07f45d8b396e0edd85182ca
[I 2023-03-24 05:14:36.541 ServerApp] Generating new user for token-authenticated request: 5f1d10320a3a42fda710e9413fd27eda
[I 2023-03-24 05:14:41.741 ServerApp] Generating new user for token-authenticated request: 1ca84895821f44d4bed13521361f1002
[I 2023-03-24 05:14:46.980 ServerApp] Generating new user for token-authenticated request: 483a959a4b2345fab737d191f888842b
[I 2023-03-24 05:14:52.179 ServerApp] Generating new user for token-authenticated request: 84753d15f76c4c2cb70366d67c04fcc3
[I 2023-03-24 05:14:57.380 ServerApp] Generating new user for token-authenticated request: 175dfe09239548cb889eabe6a0803dde
[I 2023-03-24 05:15:02.580 ServerApp] Generating new user for token-authenticated request: 8f583f31f5c54820b0431d9b435eeb84
[I 2023-03-24 05:15:07.842 ServerApp] Generating new user for token-authenticated request: 04cca534776b4817bc0fe0091ce02a10
[I 2023-03-24 05:15:13.071 ServerApp] Generating new user for token-authenticated request: 138db06f0aa343fdabc946133f7fd8e5
[I 2023-03-24 05:15:18.268 ServerApp] Generating new user for token-authenticated request: 4c62df2491404e2fa69d398725d21e63
[I 2023-03-24 05:15:23.472 ServerApp] Generating new user for token-authenticated request: 0dbe0057a0464a218ef8016ca9f7e170
[I 2023-03-24 05:15:28.674 ServerApp] Generating new user for token-authenticated request: 5a36c1a37316480ebd9864587def8fd1
[I 2023-03-24 05:15:33.887 ServerApp] Generating new user for token-authenticated request: 849bf77ff1e9445d9f2ab568d9c48618
[I 2023-03-24 05:15:39.091 ServerApp] Generating new user for token-authenticated request: a26cb196adfa4ce69b17e31aa427c450
[I 2023-03-24 05:15:44.334 ServerApp] Generating new user for token-authenticated request: 3804cbba1b4f4059a45ea5ad91227710
[I 2023-03-24 05:15:49.546 ServerApp] Generating new user for token-authenticated request: eb0d83ecb7594ba89944ea4e943eb5f4
[I 2023-03-24 05:15:54.737 ServerApp] Generating new user for token-authenticated request: 0baa835fff2c4211b41608b32abb60d0
[I 2023-03-24 05:15:59.937 ServerApp] Generating new user for token-authenticated request: 4dc52b7d2ca54717bffe75789db4be1a
[I 2023-03-24 05:16:05.130 ServerApp] Generating new user for token-authenticated request: f3efd62297c84ee59d07e315849d1d54
[I 2023-03-24 05:16:10.330 ServerApp] Generating new user for token-authenticated request: 0b460674f8094a8688faa4c93109b697
[I 2023-03-24 05:16:15.530 ServerApp] Generating new user for token-authenticated request: 6a2093d84b1a4c578b93a0964e8d6a2f
[I 2023-03-24 05:16:20.749 ServerApp] Generating new user for token-authenticated request: d6c76c336fd0455aa003efc06dd729b1
[I 2023-03-24 05:16:25.953 ServerApp] Generating new user for token-authenticated request: 620e157766f645f6b004a386b494d87b
[I 2023-03-24 05:16:31.150 ServerApp] Generating new user for token-authenticated request: 41e5d41f81824bbc9720b57e003e8fb9
[I 2023-03-24 05:16:36.394 ServerApp] Generating new user for token-authenticated request: 9e0993d57318499c8a6a541d0a6decea
[I 2023-03-24 05:16:41.616 ServerApp] Generating new user for token-authenticated request: f3bd064e04614c01840625f30895d10c
[I 2023-03-24 05:16:46.827 ServerApp] Generating new user for token-authenticated request: 636c5c670e7742ebb0c49f0f1818f7fd
...

找不到任何信息这意味着什么以及如何修复它。这条消息是否会影响内核冻结?

7dl7o3gd

7dl7o3gd1#

我正在查看完全相同的日志消息,其中一个共同的设置是空令牌LAB_TOKEN=""。我刚刚尝试了一个随机令牌LAB_TOKEN="test",现在我这边的日志垃圾邮件已经消失了。不过,我没有冻结内核,所以这似乎是一个无关的问题。

相关问题