shunfei/cronsun

user: unknown user service 报错

yewenhai99999 opened this issue · 0 comments

Please answer these questions before submitting your issue. Thanks!
在你提交 issue 前,请先回答以下问题,谢谢!

  1. What version of Go and cronsun version are you using?
    你用的是哪个版本的 Go 和 哪个版本的 cronsun?

0.3.5

  1. What operating system and processor architecture are you using (go env)?
    你用的是哪个操作系统,什么架构的?

Centos7.8,因特尔

  1. What did you do?
    If possible, provide a recipe for reproducing the error.
    A complete runnable program is good.
    你做了什么,遇到了什么问题?尽可能描述清楚问题,最好把操作步骤写下来,按这些步骤操作后能重现你的问题。

**线上环境的定时任务中,执行用户为service,执行任务报错user: unknown user service,我确认了用户是存在的,并且手动执行没有问题;但是在测试环境没有报错,cronsun同版本,只是连接的etcd和mongodb不同;我进行交叉验证,线上cronsun连测试etcd,执行任务报该错误,测试环境cronsun连接线上etcd和mongodb,执行任务没有报错

由交叉验证,我怀疑是线上用户体系与测试环境不一致导致。**

  1. What did you expect to see?
    你期望得到什么样的结果?

我想知道cronnode是如何通过service用户执行定时任务的。

  1. What did you see instead?
    现在你得到的结果是什么样的?