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

[ERROR (-1005)]: Host not enough! #2069

Closed
yaya159456 opened this issue Aug 13, 2022 · 13 comments
Closed

[ERROR (-1005)]: Host not enough! #2069

yaya159456 opened this issue Aug 13, 2022 · 13 comments

Comments

@yaya159456
Copy link

image
单节点部署了一个nebula,添加图空间的时候报错,hosts不够,请问该咋办?没找到相关的帖子

@yaya159456
Copy link
Author

好像是因为这个host 是OFFLINE状态,请问怎么把它激活啊?

@yaya159456
Copy link
Author

原来是因为配置文件没弄好,默认的127.0.0.1 需要修改……

@sanjinbro
Copy link

原来是因为配置文件没弄好,默认的127.0.0.1 需要修改……

您好,我目前也出现了这种情况,请问是修改哪个配置文件呢?

@sanjinbro
Copy link

原来是因为配置文件没弄好,默认的127.0.0.1 需要修改……

我修改了nebula-storaged.conf里面的local_ip,但是show hosts还是OFFLINE

@wey-gu
Copy link
Contributor

wey-gu commented Sep 7, 2022

https://docs.nebula-graph.com.cn/3.2.0/20.appendix/0.FAQ/#host_not_enough
需要执行
ADD HOSTS
激活 storage hosts 哈

@sanjinbro
Copy link

https://docs.nebula-graph.com.cn/3.2.0/20.appendix/0.FAQ/#host_not_enough 需要执行 ADD HOSTS 激活 storage hosts 哈

天呐,我就是按照官方文档,先ADD HOSTS 然后把nebula-storaged.conf里面的local_ip改成了自己ADD的HOSTS,结果还是OFFLINE

@abby-cyber
Copy link
Contributor

重启服务试过了吗?https://docs.nebula-graph.com.cn/3.2.0/4.deployment-and-installation/manage-service/

@sanjinbro
Copy link

重启服务试过了吗?https://docs.nebula-graph.com.cn/3.2.0/4.deployment-and-installation/manage-service/

重启完生效了,唉,我简直对自己的sb感到无语,谢谢大佬了

@sanjinbro
Copy link

重启服务试过了吗?https://docs.nebula-graph.com.cn/3.2.0/4.deployment-and-installation/manage-service/

不好意思大哥,我重启完还是OFFLINE,刚才看错了 这可咋整啊
我目前做了以下工作:
1.把nebula-storaged.conf里面的local_ip改成了192.168.10.100(我自己虚拟机的ip)
2.使用命令:ADD HOSTS 192.168.10.100:9779
3.重启服务:/usr/local/nebula/scripts/nebula.service restart all
4.连接nebula:./nebula-console -addr 192.168.10.100 -port 9669 -u root -p nebula
结果show hosts的时候192.168.10.100还是OFFLINE

@sanjinbro
Copy link

重启服务试过了吗?https://docs.nebula-graph.com.cn/3.2.0/4.deployment-and-installation/manage-service/

我这边把配置文件恢复成127.0.0.1 自己addhosts了127.0.0.1 目前是online的状态 可能单机版就只能这么配置吧

@wey-gu
Copy link
Contributor

wey-gu commented Sep 8, 2022

保证服务自己的 ip,服务配置的 meta 的 ip,在对应的端口上都能匹配上,都能通信。

可以看看 meta/storage 的log

@sanjinbro
Copy link

保证服务自己的 ip,服务配置的 meta 的 ip,在对应的端口上都能匹配上,都能通信。

可以看看 meta/storage 的log

谢谢,我会详细看看的,导师这边突然要求我学习这个,我就比较心急,没有太细致。感谢解答!

@wey-gu
Copy link
Contributor

wey-gu commented Sep 8, 2022

保证服务自己的 ip,服务配置的 meta 的 ip,在对应的端口上都能匹配上,都能通信。
可以看看 meta/storage 的log

谢谢,我会详细看看的,导师这边突然要求我学习这个,我就比较心急,没有太细致。感谢解答!

不要着急,仔细看看,可以贴一下配置、log 和实际网络的情况。

还有一点,如果 meta 不ready,storage 刚起来之后要过一会儿才能 online,不会特别频繁的 retry(联系 meta)

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

4 participants