-
-
Notifications
You must be signed in to change notification settings - Fork 604
Troubleshooting
Geraldo Netto edited this page Jul 19, 2018
·
7 revisions
A failed looking up symbol
error may result from a missing libc symbol.
You can use the script scripts/check-libcfunc-avail.sh
to list the required libc functions for your project.
You can add the needed function to OSv yourself, or post your error message to the osv-dev mailing list.
[https://github.com/cloudius-systems/osv/commit/00a2284f1c1bdfc9fb02158cbc509a75b8a47c51](libc: Add alphasort() function)
- Symptom: make fail with no clear output
>make
ANT tests/bench
make: *** [all] Error 1
- How to diagnose: run verbose make
make V=1
- Problem: JAVA_HOME was set to the wrong directory
- Solution: set JAVA_HOME
- Symptom: OSV do not get to the shell, while starting with -n
./scripts/run.py -n -v
- How to diagnose:
- Adding -V to the arguments to start in verbose mode. This showed that OSv got stuck on sending DHCP requests.
- Using tcpdump to capture the packets. "tcpdump -i tap0", where tap0 is the name of the interface on virbr0 (I found it using "brctl show virbr0"). This showed that the DHCP requests were going out properly.
- Testing if "libvirtd" daemon is running ("ps aux | grep libvirtd"). In my case, it wasn't running because my system didn't have it installed. Hope this helps.
- problem: libvirtd was not running
- Followups:
- Explicitly validate libvirtd is available, and return meaningful output in case it does not.
- Return return meaningful output if DHCP fail #235
- Symptom: Maven reports "trustAnchors parameter must be non-empty" when building any java app
netto@morpheus:~/Desktop/osv/osv$ scripts/build image=tomcat
Building into build/release.x64
...
cd /home/netto/Desktop/osv/osv/modules/java-base && mvn --projects :runjava-common,:runjava-non-isolated package -DskipTests=true
Apache Maven 3.5.2
Maven home: /usr/share/maven
Java version: 1.8.0_171, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.15.0-24-generic", arch: "amd64", family: "unix"
...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.osv:runjava-common:jar:1.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ io.osv:java-parent:${version}, /home/netto/Desktop/osv/osv/modules/java-base/pom.xml, line 13, column 14
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.osv:java-parent:pom:1.0-SNAPSHOT
[WARNING] 'version' contains an expression but should be a constant. @ io.osv:java-parent:${version}, /home/netto/Desktop/osv/osv/modules/java-base/pom.xml, line 13, column 14
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] runjava-common
[INFO] runjava-non-isolated
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: io.osv:runjava-common:jar:1.0-SNAPSHOT
[DEBUG] Tasks: [package]
[DEBUG] Style: Regular
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Project: io.osv:runjava-non-isolated:jar:1.0-SNAPSHOT
[DEBUG] Tasks: [package]
[DEBUG] Style: Regular
[DEBUG] =======================================================================
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building runjava-common 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] Using transporter WagonTransporter with priority -1.0 for https://repo.maven.apache.org/maven2
[DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://repo.maven.apache.org/maven2
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom
[DEBUG] Writing tracking file /home/netto/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom.lastUpdated
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] runjava-common ..................................... FAILURE [ 1.621 s]
[INFO] runjava-non-isolated ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.789 s
[INFO] Finished at: 2018-07-09T22:00:51-03:00
[INFO] Final Memory: 10M/334M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty -> [Help 1]
org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve (DefaultPluginDependenciesResolver.java:117)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor (DefaultMavenPluginManager.java:182)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDescriptor (DefaultMavenPluginManager.java:286)
at org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor (DefaultBuildPluginManager.java:241)
at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.setupMojoExecution (DefaultLifecycleExecutionPlanCalculator.java:170)
at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.setupMojoExecutions (DefaultLifecycleExecutionPlanCalculator.java:155)
at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan (DefaultLifecycleExecutionPlanCalculator.java:131)
at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan (DefaultLifecycleExecutionPlanCalculator.java:145)
at org.apache.maven.lifecycle.internal.builder.BuilderCommon.resolveBuildPlan (BuilderCommon.java:97)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:111)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
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:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
...
[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/PluginResolutionException
Makefile:19: recipe for target 'module' failed
make: *** [module] Error 1
Traceback (most recent call last):
File "scripts/module.py", line 281, in <module>
args.func(args)
File "scripts/module.py", line 234, in build
make_modules(modules, args)
File "scripts/module.py", line 124, in make_modules
raise Exception('make failed for ' + module.name)
Exception: make failed for java-non-isolated
scripts/build failed: fs_type=$fs_type jdkbase=$jdkbase ARCH=$arch mode=$mode OSV_BASE=$SRC OSV_BUILD_PATH=$OSV_BUILD_PATH scripts/module.py $j_arg build -c $modules $usrskel_arg $no_required_arg
- Solution: there is a workaround for debian/ubuntu/linux mint which is install openjdk 8:
$ sudo apt install openjdk-8-jre
$ sudo rm /etc/ssl/certs/java/cacerts
$ sudo update-ca-certificates --fresh