[Bug] sh init-store.sh error
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
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 Type (问题类型)
None
Before submit
- 我已经确认现有的 Issues 与 FAQ 中没有相同 / 重复问题 (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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/hugegraph
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 3/5 1-2 days Newbie friendliness 64/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 28/100
All issues in apache/hugegraph
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
1.0.0-alpha2 Type/Improvement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
wso2/dpdp-accelerator#272 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
area/frontend
Difficulty 2/5 1-3 hours Newbie friendliness 65/100