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

Srv.Register error: rpc is not available ,server addr #140

Open
coderhsz opened this issue Apr 3, 2024 · 2 comments
Open

Srv.Register error: rpc is not available ,server addr #140

coderhsz opened this issue Apr 3, 2024 · 2 comments

Comments

@coderhsz
Copy link

coderhsz commented Apr 3, 2024

使用docker版起jiacrontab_admin成功,在起jiacrontabd 的时候报错:
jiacrontabd.go:418: [ERROR] Srv.Register error: rpc is not available ,server addr: 127.0.0.1:20003
jiacrontab_admin与jiacrontabd目前在同一台服务器

config的配置如下:
[jiacrontabd]
; 任务日志页面显示冗余信息,比如时间、脚本名称
verbose_job_log = true
; 本机rpc监听地址
listen_addr = :20001
; 当前节点的广播地址,admin通过该地址与当前节点通信,默认取当前节点ip
; boardcast_addr = localhost:20001
; admin 地址
admin_addr = 127.0.0.1:20003
; 自动清理大于一个月或者单文件体积大于1G的日志文件
auto_clean_task_log = true
; 节点名,默认取节点hostname
; node_name = node1
log_level = warn
log_path = ./logs
user_agent = jiacrontabd
; jiacrontabd目前仅支持sqlite3
driver_name = sqlite3
dsn = data/jiacrontabd.db?cache=shared

; 心跳上报周期(s)
client_alive_interval = 10

@nobject
Copy link

nobject commented May 22, 2024

我也报这个错误了,你有解决么?

@iwannay
Copy link
Owner

iwannay commented May 27, 2024

这种是网络不通,建议检查下防火墙策略

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

3 participants