[Bug] sh init-store.sh error

Open
#2,844 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
java, shell
Domain
databases

Research direction

Start with init-store.sh and follow the reported call path from InitStore.main through StandardAuthenticator and EntityManager.findUser. Reproduce the command against the stated HugeGraph 1.5.0 setup, then trace why the authentication initialization queries the undefined '~user' vertex label. Done means initialization completes without that exception and the admin initialization behavior is handled as expected.

Written by the indexing model from the issue text.

Description

bug store
Bug Type (问题类型)

None

Before submit
  • 我已经确认现有的 IssuesFAQ 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)
Environment (环境信息)
  • Server Version: 1.5.0 (Apache Release Version)
  • Backend: Hstore x nodes, HDD or SSD
  • OS: xx CPUs, xx G RAM, Ubuntu 2x.x / CentOS 7.x
  • Data Size: xx vertices, xx edges
Expected & Actual behavior (期望与实际表现)

sh apache-hugegraph-server-incubating-1.5.0/bin/init-store.sh
Initializing HugeGraph Store...
main dict load finished, time elapsed 1098 ms
model load finished, time elapsed 63 ms.
Exception in thread "main" java.lang.IllegalArgumentException: Undefined vertex label: '~user'
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:167)
at org.apache.hugegraph.util.E.checkArgument(E.java:52)
at org.apache.hugegraph.StandardHugeGraph.vertexLabel(StandardHugeGraph.java:857)
at org.apache.hugegraph.auth.HugeGraphAuthProxy.lambda$vertexLabel$2(HugeGraphAuthProxy.java:272)
at org.apache.hugegraph.auth.HugeGraphAuthProxy.lambda$verifySchemaPermission$24(HugeGraphAuthProxy.java:945)
at org.apache.hugegraph.auth.HugeGraphAuthProxy.verifyResPermission(HugeGraphAuthProxy.java:970)
at org.apache.hugegraph.auth.HugeGraphAuthProxy.verifyResPermission(HugeGraphAuthProxy.java:956)
at org.apache.hugegraph.auth.HugeGraphAuthProxy.verifySchemaPermission(HugeGraphAuthProxy.java:943)
at org.apache.hugegraph.auth.HugeGraphAuthProxy.verifySchemaPermission(HugeGraphAuthProxy.java:936)
at org.apache.hugegraph.auth.HugeGraphAuthProxy.vertexLabel(HugeGraphAuthProxy.java:271)
at org.apache.hugegraph.auth.EntityManager.queryEntity(EntityManager.java:152)
at org.apache.hugegraph.auth.EntityManager.query(EntityManager.java:134)
at org.apache.hugegraph.auth.StandardAuthManager.findUser(StandardAuthManager.java:183)
at org.apache.hugegraph.auth.StandardAuthenticator.requireInitAdminUser(StandardAuthenticator.java:83)
at org.apache.hugegraph.auth.StandardAuthenticator.initAdminUser(StandardAuthenticator.java:52)
at org.apache.hugegraph.auth.StandardAuthenticator.initAdminUserIfNeeded(StandardAuthenticator.java:223)
at org.apache.hugegraph.cmd.InitStore.main(InitStore.java:89)
Initialization finished.

Vertex/Edge example (问题点 / 边数据举例)
我的所有pd 所有store 然后初始化hstore init-store报错
Initialization finished.初始化完成后也没有让我输入admin和密码(已开启org.apache.hugegraph.auth.StandardAuthenticator)
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

Dominant language
Java
Stars
3.2k
Forks
637
Avg merge
3d 18h
Merged PRs (30d)
23

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/hugegraph

All issues in apache/hugegraph

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.