prestodb / presto

The official home of the Presto distributed SQL query engine for big data
http://prestodb.io
Apache License 2.0
16.05k stars 5.38k forks source link

facing issue while building presto-docs OSError: [Errno 20000] Unknown error: 20000: '/home/test/presto/presto-docs/target/html' #3849

Closed nareshk355 closed 7 years ago

nareshk355 commented 9 years ago
[ERROR]
[ERROR] Exception occurred:
[ERROR]   File "/root/.m2/repository/org/python/jython-standalone/2.5.2/jython-standalone-2.5.2.jar/Lib/os.py", line 158, in makedirs
[ERROR]     mkdir(name, mode)
[ERROR] OSError: [Errno 20000] Unknown error: 20000: '/home/test/presto/presto-docs/target/html'
[ERROR] The full traceback has been saved in /tmp/sphinx-err-r8XCy-.log, if you want to report the issue to the developers.
[ERROR] Please also report this if it was a user error, so that a better error message can be provided next time.
[ERROR] Either send bugs to the mailing list at <http://groups.google.com/group/sphinx-dev/>,
[ERROR] or report them in the tracker at <http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 42.709 s
[INFO] Finished at: 2015-10-28T16:45:41+05:30
[INFO] Final Memory: 36M/321M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.tomdz.maven:sphinx-maven-plugin:1.0.3:generate (default) on project presto-docs: Failed to run the report: Sphinx report generation failed -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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

traceback log file

# Sphinx version: 1.1.3
# Python version: 2.5.2
# Docutils version: 0.9.1 release
# Jinja2 version: 2.6
Traceback (most recent call last):
  File "/home/test/presto/presto-docs/target/sphinx/sphinx/cmdline.py", line 189, in main
    app.build(force_all, filenames)
  File "/home/test/presto/presto-docs/target/sphinx/sphinx/application.py", line 200, in build
    self.builder.build_all()
  File "/home/test/presto/presto-docs/target/sphinx/sphinx/builders/__init__.py", line 159, in build_all
    self.build(None, summary='all source files', method='all')
  File "/home/test/presto/presto-docs/target/sphinx/sphinx/builders/__init__.py", line 252, in build
    self.write(docnames, list(updated_docnames), method)
  File "/home/test/presto/presto-docs/target/sphinx/sphinx/builders/__init__.py", line 292, in write
    self.write_doc(docname, doctree)
  File "/home/test/presto/presto-docs/target/sphinx/sphinx/builders/html.py", line 426, in write_doc
    self.handle_page(docname, ctx, event_arg=doctree)
  File "/home/test/presto/presto-docs/target/sphinx/sphinx/builders/html.py", line 738, in handle_page
    ensuredir(path.dirname(outfilename))
  File "/home/test/presto/presto-docs/target/sphinx/sphinx/util/osutil.py", line 55, in ensuredir
    os.makedirs(path)
  File "/root/.m2/repository/org/python/jython-standalone/2.5.2/jython-standalone-2.5.2.jar/Lib/os.py", line 158, in makedirs
    mkdir(name, mode)
OSError: [Errno 20000] Unknown error: 20000: '/home/test/presto/presto-docs/target/html'

please look into issue and help me to resove it

electrum commented 9 years ago

It seems to be failing when trying to create the directory /home/test/presto/presto-docs/target/html. Can you do an mvn clean and try again?

electrum commented 9 years ago

Also, please show the output of running mvn -V

nareshk355 commented 9 years ago

I have tried running mvn clean and mvn install but still getting same errors.

and here is output of mvn -V

test@pts00449-vm4:~/presto/presto-docs$ mvn -V Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T17:27:37+05:30) Maven home: /usr/local/apache-maven-3.3.3 Java version: 1.8.0_45-internal, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-8-openjdk-ppc64el/jre Default locale: en_IN, platform encoding: UTF-8 OS name: "linux", version: "3.19.0-15-generic", arch: "ppc64", family: "unix" [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.883 s [INFO] Finished at: 2015-10-29T11:45:10+05:30 [INFO] Final Memory: 11M/109M [INFO] ------------------------------------------------------------------------ [ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: 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, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [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/NoGoalSpecifiedException

electrum commented 9 years ago

It looks like you're running on ppc64. Presto only supports x86_64 on Linux (required for bundled Hadoop JNI libraries) and has many assumptions about the architecture being little endian.

This docs issue might be due to the JNI libraries from the Jython version used by the Maven Sphinx plugin. For now, I suggest you skip that module by removing it from the root pom.xml file.

nareshk355 commented 9 years ago

Hi electrum,

yes we are working on ppc64le, could you please let us the required libraries to build for building presto on ppc64le.

as suggested I skipped the presto-docs module from main build.xml where able to build it bye skipping the test cases, but when I try to run test cases for individual components we are getting test cases failed for some of the components, I think those errors are related to missing JNI libraries only.

gerrith3 commented 8 years ago

Hi IBM now has a program using its Power Development Program to allow any open source developer to use our ppc64le based cloud. There is a little bit of overhead but there is no cost for open source development.

To start, register for the service here: https://www-304.ibm.com/partnerworld/wps/ent/pdp/web/MyProgramAccess?registerosd

and then press the "Please register me as an Open Source Developer" link.

Identify yourself as an Open Source developer and your project, then include the link to any defects you want to test to get your account open (e.g. this defect). That should give you the ongoing ability to access VMs for open source development purposes.

rschlussel-zz commented 7 years ago

Duplicate of https://github.com/prestodb/presto/issues/3862