celeryroot用户启动问题 C_FORCE_ROOT
问题
celery不能用root用户启动问题 C_FORCE_ROOT environment
如果使用root用户启动celery会遇到下面的问题
python manage.py celery worker -c 4
System check identified some issues:WARNINGS:
back_manage.Account.organization: (fields.W340) null has no effect on ManyToManyField.
back_manage.Account.st_post: (fields.W340) null has no effect on ManyToManyField.
back_manage.Crop.stage: (fields.W340) null has no effect on ManyToManyField.
back_manage.DevelopmentStage.grade: (fields.W340) null has no effect on ManyToManyField.
back_manage.OrganizationStrut.ws: (fields.W340) null has no effect on ManyToManyField.
back_manage.Post.menu: (fields.W340) null has no effect on ManyToManyField.
Running a worker with superuser privileges when the
worker accepts messages serialized with pickle is a very bad idea!If you really want to continue then you have to set the C_FORCE_ROOT
environment variable (but please think about this before you do).User information: uid=0 euid=0 gid=0 egid=0
执行
export C_FORCE_ROOT=True
重新执行
python manage.py celery worker -c 4
System check identified some issues:WARNINGS:
back_manage.Account.organization: (fields.W340) null has no effect on ManyToManyField.
back_manage.Account.st_post: (fields.W340) null has no effect on ManyToManyField.
back_manage.Crop.stage: (fields.W340) null has no effect on ManyToManyField.
back_manage.DevelopmentStage.grade: (fields.W340) null has no effect on ManyToManyField.
back_manage.OrganizationStrut.ws: (fields.W340) null has no effect on ManyToManyField.
back_manage.Post.menu: (fields.W340) null has no effect on ManyToManyField.-------------- celery@iZ8vbaeuxvbzsvnyblfbctZ v3.1.26.post2 (Cipater)
---- **** -----
--- * *** * -- Linux-4.4.0-142-generic-x86_64-with-Ubuntu-16.04-xenial
-- * - **** ---
- ** ---------- [config]
- ** ---------- .> app: lot_case_demo:0x7fe250def190
- ** ---------- .> transport: redis://:**@xxxxxxxxxxxxxxxxxxx/xx
- ** ---------- .> results:
- *** --- * --- .> concurrency: 4 (prefork)
-- ******* ----
--- ***** ----- [queues]-------------- .> celery exchange=celery(direct) key=celery
celeryroot用户启动问题 C_FORCE_ROOT相关推荐
- Linux运行cat进程,linux下如何使用某个用户启动某个进程?
安全里有个原则,叫最小权限原则python 根据这个原则,对于启动某个应用或者进程,应该赋予其最小权限,根据应用权限要求,建立一个相应权限的用户,赋予其应用相应的权限,而后使用这个用户启用这个应用li ...
- SQL 2005单用户启动实例
最后在测试还原master数据库.但用单用户启动实例时,一直无法连接到服务器,提示只允许一个管理员连接到实例.在网上搜了一些方法说是关掉sql agent,可当时我的sql agent已经关掉了.试 ...
- hp-ux 单用户 启动_UX备忘单:搜索与浏览
hp-ux 单用户 启动 重点 (Top highlight) When designing search results and interest sites, you have to keep i ...
- linux redis 启动用户,redis 进程使用root用户启动 -- 整改方案
最近内部风险整改, 各种进程使用root身份进行启动不符合要求, 于是各路神仙各施其法,为的就是让 某进程不以root 启动: 先以 redis 为例: 原有进程如下: #超一流标准的执行文件位置及配 ...
- 以普通用户启动的Vim如何保存需要root权限的文件
在Linux上工作的朋友很可能遇到过这样一种情况,当你用Vim编辑完一个文件时,运行:wq保存退出,突然蹦出一个错误: E45: 'readonly' option is set (add ! to ...
- root启动php报错,php使用root用户启动
一般情况下,肯定是不推荐使用root用户启动php的 但是在某些服务器管理想使用WEB的方式来控制操作的话,那么就必须要使用root用户才有权限操作 1.修改配置文件php-fpm.conf的启动用户 ...
- 有时用weblogic用户启动weblogic时会报错的原因以及解决办法
原因:这是由于之前用root用户启动,即使用root用户关闭weblogic并杀掉进程,也没有用. 解决办法:用root用户将/data/weblogic/bea/user_projects/doma ...
- nginx修改成非root用户启动
目录 文件权限说明 1.所有步骤 2.例子 linux新建用户参考: https://blog.csdn.net/weixin_44953227/article/details/125757350 文 ...
- 【linux创建用户启动tomcat】
linux创建用户启动tomcat 前言 基本思路 开始 第一步 第二步 第三步 小知识 前言 使用root用户启动tomcat会使所有html.js等文件具备root权限,会使服务器更容易被黑. 非 ...
最新文章
- 使用maven搭建ssm框架的javaweb项目
- 如何在Pandas的DataFrame中的行上进行迭代?
- 制作基于http的yum源2
- c语言怎么在win7上运行,C语言做的中国象棋,分享,问怎么在WIN7下运行
- service层中有某个事物要立马提交_硬货你要的,binder机制来了
- paper 35 :交叉验证(CrossValidation)方法思想
- 玩转oracle 11g(25):手工删除oracle归档日志后操作步骤 和修改用户默认解锁时间
- gv推了sweethearts_3HAC0373-1
- python判断是相邻数字,检查Python中相邻数字的绝对差之和是否为素数
- 计算机考试桌贴,考试考场桌贴打印
- 宏excel怎么计算机,excel宏的使用/EXCEL 如何关闭宏
- 一个测试的日常:对于python装饰器的理解(个人心得及体会)
- 对于自己(Android)秋招的一点总结(感慨)
- Python爬取下载网易云音乐
- Jackson初次学习
- TVM: End-to-End Optimization Stack for Deep Learning
- arm 驱动基础:点亮led_firt
- 硅芯思见:SystemVerilog中的类型转换有哪些
- Delphi XE 将excel导入数据库
- 关于如何去寻找自己的另一半和我的爱情观