Git Product home page Git Product logo

Comments (8)

abbeyj avatar abbeyj commented on August 18, 2024

On Sun, Aug 10, 2014 at 5:55 PM, Andrea Veri [email protected]
wrote:

WSGIPythonHome /home/gnomeweb/dxr_venv

Do you have this line in the vhost section? According to
http://dxr.readthedocs.org/en/latest/deployment.html#apache-and-mod-wsgi it
won't work there.

Running dxr from dxr-serve.py works just fine but another issue arises.

  1. All the files are indexed properly and searching for code through
    the search bar works as expected and every single file content is properly
    showed when a string matches the search but I can seem to access the files
    content when clicking on them, for example:

http://dxr-test.gnome.org/git-test/source/gtk+ works OK
http://dxr-test.gnome.org/git-test/source/gtk+/AUTHORS returns a 404

The directories are accessible by the web server and I can't seem to find
any permission error on the setup, my dxr_output folder only shows
directories but no files at all, an excerpt of a tree run:

You should have one file in the output directory for every input file. If
you have a file called foo.cpp in your source tree there should be a
corresponding foo.cpp.html in your output directory. If that's not there
then it looks like something went wrong during indexing. Try to run the
indexer again or check the log files from the last run for any problems.

from dxr.

averi avatar averi commented on August 18, 2024

WSGIPythonHome /home/gnomeweb/dxr_venv is outside from the vhost itself as it should be.

About the files indexing seems the problem is really there and no html file is created at all for each of them. Directories do have a .dxr-directory-index.html file but no other files are showing up there. Additionally /tmp/dxr-temp/logs/git-test/build.log shows pretty much nothing and the documentation does not seem to provide log levels to increase debugging messages. I'm also wondering if this is really a permissions problem as directories are indexed correctly (and they have 0755 permissions) while files aren't. (with 0644 permissions, and surely the files don't need to be executable themselves /me thinks)

I'm clueless : /

from dxr.

abbeyj avatar abbeyj commented on August 18, 2024

Can you copy-and-paste the output from running the indexer as well as the
contents of build.log?

from dxr.

averi avatar averi commented on August 18, 2024

Indeed!

Indexer:

Generating target folder
Creating tables
Indexing files from the 'git-test' tree
(finished in 0:01:05.200946)
Building the 'git-test' tree
Build command for 'git-test' failed, exited non-zero.
Log follows:
    | make: *** No targets specified and no makefile found.  Stop.

build.log

make: *** No targets specified and no makefile found.  Stop.

With default build_command:

build_command = make clean; make -j $jobs

Is this probably the cause of the problem? i.e not building the sources properly?

from dxr.

abbeyj avatar abbeyj commented on August 18, 2024

Yes, that looks like the problem. Note that the build_command gets
executed from the object_folder not the source_folder. If your source code
is designed to be built in-tree then you can add "cd $source_folder && " to
the beginning of your build_command. Otherwise you have to do whatever is
needed to set up the object_folder with a makefile. For autoconf-based
setups you'd want something like "$source_folder/configure && ".

from dxr.

averi avatar averi commented on August 18, 2024

Thanks James! I have two more questions though:

  1. does this mean we would have to specify the build commands for each of the repositories we are going to serve through dxr? (in the case the build system differs for example)
  2. does this mean all the build dependencies for each of the hosted repositories has to be installed on the machine? (answer to 2. should be a strict consequence of 1.'s answer as otherwise all the builds will just fail)

from dxr.

averi avatar averi commented on August 18, 2024

About the missing HTML files creation: dxr-build.py was failing cause of a missing plugin configuration key. Adding the missing key wasn't enough as the build kept feeling, so disabled_plugins = buglink under the DXR configuration section was enough.

Additionally seems there is no current way to index repositories available outside GitHub, the current workaround would be: disabled_plugins omniglot.

That fixed the build for me.

from dxr.

erikrose avatar erikrose commented on August 18, 2024

It's git repos outside GitHub that are the problem, specifically. I've opened a ticket to fix that: https://bugzilla.mozilla.org/show_bug.cgi?id=1052572. Thanks for being persistent!

from dxr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.