Comments (8)
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.
- 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 404The 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.
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.
Can you copy-and-paste the output from running the indexer as well as the
contents of build.log?
from dxr.
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.
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.
Thanks James! I have two more questions though:
- 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)
- 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.
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.
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)
- Advance searching in folder does not work HOT 1
- Cannot access https://dxr.mozilla.org/mozilla-central/source/devtools/client/debugger/new/debugger.js HOT 3
- How to pass multiple arguments to clang plugin ? HOT 1
- DXR fails to index files tracked by git when www_root is set
- Add robots.txt
- Suggestion: Publish to public docker hub
- Upgrade the clang plugin to clang 7 API HOT 1
- Wiki changes
- Support for distributing indexing tasks on a cluster of machines HOT 1
- Question: atomicity/consistency of incremental indexing HOT 1
- How to create a separate index for each git commit and allow browsing code as of old commits HOT 3
- "python setup.py install" results in "error: click 4.1 is installed but click>=5.1 is required by set(['Flask'])" HOT 4
- CODE_OF_CONDUCT.md file missing
- Installation fails due to conflicting click version HOT 2
- Search input isn't detected by Firefox One-Click Search Engines HOT 1
- missed keys set(['python', 'buglink', 'xpidl']) HOT 2
- Basic beginner 'getting started' broken HOT 3
- Travis CI free usage ends Dec 3; mozilla repos should switch to other CI platforms
- Suggestion: Dark mode
- Python3 support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dxr.