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

tutorial is broken: Host not enough! #5659

Closed
dcsan opened this issue Jul 28, 2023 · 12 comments
Closed

tutorial is broken: Host not enough! #5659

dcsan opened this issue Jul 28, 2023 · 12 comments
Labels
type/question Type: question about the product

Comments

@dcsan
Copy link

dcsan commented Jul 28, 2023

going through the quickstart i have the DB running as a docker extension and have logged in.

https://docs.nebula-graph.io/3.5.0/2.quick-start/1.quick-start-workflow/

CREATE SPACE bverse(partition_num=10, replica_factor=1, vid_type=fixed_string(30));

gives the error Host not enough

tried reducing partitions, no luck

digging around i found something about setting up hosts

ADD HOSTS 192.168.10.100:9779, 192.168.10.101:9779, 192.168.10.102:9779;

which runs OK...

but CREATE SPACE still fails.

is there a getting started that actually works? this isn't very reassuring.

@dcsan dcsan added the type/bug Type: something is unexpected label Jul 28, 2023
@github-actions github-actions bot added affects/none PR/issue: this bug affects none version. severity/none Severity of bug labels Jul 28, 2023
@wey-gu
Copy link
Contributor

wey-gu commented Jul 28, 2023

Dear @dcsan ,

Sorry for the bad first impression, it seems you deployed a cluster in the first run!👍🏻

ADD HOSTS is an action to activate storaged hosts, while the service need some time to be fully up if they were not activated for a while.

Could you please query SHOW HOSTS to see if they are ONLINE now?

@wey-gu
Copy link
Contributor

wey-gu commented Jul 28, 2023

Actually, the easiest way to quickly get started from on the server side(rather than the docker extension on the desktop) should be with Docker-Compose, see here, which ideally should cover the ADD HOSTS automatically in the initial go.

We'll improve the docs!

Thanks again~~

@dcsan
Copy link
Author

dcsan commented Jul 28, 2023

"status offline"
image

so the quickstart using a docker extension is NOT expected to work?
that did seem a nice way to get going, more slick than even neo4j.

the docker verison says:

Starting from NebulaGraph version 3.1.0, nebula-docker-compose automatically starts a NebulaGraph Console docker container and adds the storage host to the cluster (i.e. ADD HOSTS command).

But if even the most basic quickstart has these type of bugs... 😅

git clone -b release-3.5 https://github.com/vesoft-inc/nebula-docker-compose.git
docker-compose up -d

so then the connection string for with python would be... ?

@wey-gu
Copy link
Contributor

wey-gu commented Jul 28, 2023

so the quickstart using a docker extension is NOT expected to work?

Sorry didn't mean that and docker extension is supposed to work! With only one click if we are on the docker desktop like here.

For the initial desktop playing it's the most recommended way :).

I thought you are on a server(as you started with a cluster in the issue), thus recommending the docker-compose way(instead of the extension way), with docker-compose, everything should be up and running after docker-compose up -d w/o extra steps.

And regarding
image

For the ADD HOSTS was done and still they are offline, we could then check the logs of storaged on what it complains about, which could be due to the ports were not open for the clustering or other issues.

But if even the most basic quickstart has these type of bugs... 😅

Sorry for this, also it's more than welcome to help improve our docs if you would like to, either to click the pencil from the corresponding page or via https://github.com/vesoft-inc/nebula-docs.

so then the connection string for with python would be... ?

I would recommend https://github.com/wey-gu/ipython-ngql if you are try it the first time for playing NebulaGraph with python. For application layers, use https://github.com/vesoft-inc/nebula-python

@dcsan
Copy link
Author

dcsan commented Jul 28, 2023

hiya - no I'm on a mac desktop for development.

I installed the docker extension, opened a browser to login to the DB, it's all running. But I cannot write any data - see the error above.
After reading all this, I'm still not sure how do I fix the extension to work?

ADD HOSTS was mentioned in the docs as a solution to Host not enough

I'm on a mac with M2 chip - is that supported? there were some docker problems a year ago but mostly working now.

I could try the whole dockerfile approach but I'm not running this server side now.
But things are going to be pretty messy cos the extension is running so i assume there will be port collisions... and of course I don't want all that running in the background, as an invisible docker system extension if it's broken. So I'd need to dig around how to uninstall the extension first I assume.

so this 'offline' status means it wasn't able to start... something? where can i find logs to diagnose?

image

@dcsan
Copy link
Author

dcsan commented Jul 28, 2023

I restarted the whole docker desktop give it a few minutes to startup, and still get the same condition:

image

@dcsan
Copy link
Author

dcsan commented Jul 28, 2023

For the ADD HOSTS was done and still they are offline, we could then check the logs of storaged on what it complains about, which could be due to the ports were not open for the clustering or other issues.

where can i find these logs?

@wey-gu
Copy link
Contributor

wey-gu commented Jul 29, 2023

I restarted the whole docker desktop give it a few minutes to startup, and still get the same condition:

image

Ok so the previous capture was actually docker compose? If so plz do so instead:

ADD HOSTS "storaged0":9779,"storaged1":9779,"storaged2":9779'

@wey-gu
Copy link
Contributor

wey-gu commented Jul 29, 2023

hiya - no I'm on a mac desktop for development.

I installed the docker extension, opened a browser to login to the DB, it's all running. But I cannot write any data - see the error above.

After reading all this, I'm still not sure how do I fix the extension to work?

ADD HOSTS was mentioned in the docs as a solution to Host not enough

I'm on a mac with M2 chip - is that supported? there were some docker problems a year ago but mostly working now.

I could try the whole dockerfile approach but I'm not running this server side now.

But things are going to be pretty messy cos the extension is running so i assume there will be port collisions... and of course I don't want all that running in the background, as an invisible docker system extension if it's broken. So I'd need to dig around how to uninstall the extension first I assume.

so this 'offline' status means it wasn't able to start... something? where can i find logs to diagnose?

image

And if we already have docker compose based cluster running it'll impact the extension based service, we should remove one to enable the other to work.

Apple chip should work( we are Mac users too)😊

@dcsan
Copy link
Author

dcsan commented Jul 29, 2023

No, the top terminal screenshot was the terminal inside the docker extension. I haven't tried the dockercompose method yet. I uninstalled the extension so I guess i can try via the dc up method.

thanks for all your help! will try later.

@wey-gu
Copy link
Contributor

wey-gu commented Jul 29, 2023

OK, if it's inside the docker extension, it should be done without needing of manually add hosts, as I implemented this via the extension itself, maybe something is wrong.

On docker desktop, extension is the recommended way to go. Could you do via the get started inside the docker extension window?(when dc is confirmed to be stopped) It guided how to add hosts although, too.

@QingZ11
Copy link
Contributor

QingZ11 commented Dec 18, 2023

Hi, I have noticed that the issue you created hasn’t been updated for nearly a month, so I have to close it for now. If you have any new updates, you are welcome to reopen this issue anytime.

Thanks a lot for your contribution anyway 😊

@QingZ11 QingZ11 closed this as completed Dec 18, 2023
@github-actions github-actions bot added the process/fixed Process of bug label Dec 18, 2023
@QingZ11 QingZ11 added type/question Type: question about the product and removed type/bug Type: something is unexpected severity/none Severity of bug process/fixed Process of bug affects/none PR/issue: this bug affects none version. labels Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question Type: question about the product
Projects
None yet
Development

No branches or pull requests

3 participants