Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client端一直在Docker容器里面重启,顺便发现一个Bug #32

Open
li-baige opened this issue Apr 10, 2023 · 1 comment
Open

Comments

@li-baige
Copy link

拿一个举例子,源代码如下:

if $subfinder; then
	cd /app/subdomain_scan/subfinder
	nohup celery -A subfinder worker -l info -c 1 -Q subfinder -n subfinder_$RANDOM --logfile=/app/logs/subfinder_celery.log >/dev/null 2>&1 &
fi

然而subfinder_$RANDOM是随机生成的,如果有大量的扫描任务后,会不会生成重复的随机数,导致覆盖原来的数据,尝试修改如下:

if $subfinder; then
    task_name="subfinder_{date+$(date '+%Y.%m.%d')}_$RANDOM"
    nohup celery -A subfinder worker -l info -c 1 -Q subfinder -n $task_name --logfile=/app/logs/subfinder_celery.log > /dev/null 2>&1 &
    if [$? -eq 0]; then
    echo "subfinder 任务成功启动!"
    fi
fi
@li-baige
Copy link
Author

Xnip2023-04-10_11-53-49
Client端一直报错:

2023-04-10 16:42:57 Error relocating ./xray: __vfprintf_chk: symbol not found
2023-04-10 16:42:57 Error relocating ./xray: __fdelt_chk: symbol not found

然而我加入了musl libs库,依然报错,问题并没有被解决。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant