hugegraph / hugegraph-studio

HugeGraph Database web UI
Apache License 2.0
42 stars 33 forks source link

启动报 ui 目录不存在 #26

Open choleraehyq opened 5 years ago

choleraehyq commented 5 years ago
➜  hugegraph-studio-0.9.0 git:(fixbuild) ./bin/hugegraph-studio.sh
10:58:42.932 [main] DEBUG com.baidu.hugegraph.config.OptionSpace ID:  TS: - Registered options for OptionHolder: StudioServerOptions
10:58:42.961 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'graph.server.host' is redundant, please ensure it has been registered
10:58:42.961 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'graph.server.port' is redundant, please ensure it has been registered
10:58:42.961 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'graph.name' is redundant, please ensure it has been registered
10:58:42.961 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'client.timeout' is redundant, please ensure it has been registered
10:58:42.961 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'data.base_directory' is redundant, please ensure it has been registered
10:58:42.961 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'show.limit.data' is redundant, please ensure it has been registered
10:58:42.961 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'show.limit.edge.total' is redundant, please ensure it has been registered
10:58:42.962 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'show.limit.edge.increment' is redundant, please ensure it has been registered
10:58:42.962 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'gremlin.limit_suffix' is redundant, please ensure it has been registered
10:58:42.962 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'vertex.vis.font.color' is redundant, please ensure it has been registered
10:58:42.962 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'vertex.vis.font.size' is redundant, please ensure it has been registered
10:58:42.962 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'vertex.vis.size' is redundant, please ensure it has been registered
10:58:42.962 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'vertex.vis.scaling.min' is redundant, please ensure it has been registered
10:58:42.962 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'vertex.vis.scaling.max' is redundant, please ensure it has been registered
10:58:42.963 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'vertex.vis.shape' is redundant, please ensure it has been registered
10:58:42.963 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'vertex.vis.color' is redundant, please ensure it has been registered
10:58:42.963 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'edge.vis.color.default' is redundant, please ensure it has been registered
10:58:42.963 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'edge.vis.color.hover' is redundant, please ensure it has been registered
10:58:42.963 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'edge.vis.color.highlight' is redundant, please ensure it has been registered
10:58:42.963 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'edge.vis.font.color' is redundant, please ensure it has been registered
10:58:42.963 [main] WARN  com.baidu.hugegraph.config.HugeConfig ID:  TS: - The config option 'edge.vis.font.size' is redundant, please ensure it has been registered
10:58:42.973 [main] ERROR com.baidu.hugegraph.studio.HugeGraphStudio ID:  TS: - Can't start Studio, directory /Users/cholerae/Documents/javacode/hugegraph-studio/hugegraph-studio-0.9.0/ui doesn't exist
javeme commented 5 years ago

@choleraehyq 请描述一下出现这个问题的过程,以方便问题分析

choleraehyq commented 5 years ago

@javeme 我现在怀疑是我 https://github.com/hugegraph/hugegraph-studio/pull/25 这个修改引入的问题。但是如果我不修改,直接用master 分支,编译会失败。日志是:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (default) on project studio-dist: An Ant BuildException has occured: exec returned: 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (default) on project studio-dist: An Ant BuildException has occured: exec returned: 1
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: An Ant BuildException has occured: exec returned: 1
    at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks (AbstractAntMojo.java:131)
    at org.apache.maven.plugin.antrun.AntRunMojo.execute (AntRunMojo.java:98)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.tools.ant.BuildException: exec returned: 1
    at org.apache.tools.ant.taskdefs.ExecTask.runExecute (ExecTask.java:636)
    at org.apache.tools.ant.taskdefs.ExecTask.runExec (ExecTask.java:662)
    at org.apache.tools.ant.taskdefs.ExecTask.execute (ExecTask.java:487)
    at org.apache.tools.ant.UnknownElement.execute (UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute (DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform (Task.java:348)
    at org.apache.tools.ant.Target.execute (Target.java:357)
    at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks (AbstractAntMojo.java:118)
    at org.apache.maven.plugin.antrun.AntRunMojo.execute (AntRunMojo.java:98)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :studio-dist
choleraehyq commented 5 years ago

复现步骤就是直接 clone master 然后跑 mvn package -DskipTests -X。 我的版本:

➜  hugegraph-studio git:(master) mvn --version
Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-05T03:00:29+08:00)
Maven home: /usr/local/Cellar/maven/3.6.1/libexec
Java version: 1.8.0_162, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "mac os x", version: "10.14.5", arch: "x86_64", family: "mac"
➜  hugegraph-studio git:(master) javac -version
javac 1.8.0_162
javeme commented 5 years ago

@choleraehyq 可以参考一下 #4