-
Notifications
You must be signed in to change notification settings - Fork 205
Import error when running dxr through mod_wsgi | 404 when trying to access files with built-in web server #307
Comments
On Sun, Aug 10, 2014 at 5:55 PM, Andrea Veri notifications@github.com
Do you have this line in the vhost section? According to Running dxr from dxr-serve.py works just fine but another issue arises.
|
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 : / |
Can you copy-and-paste the output from running the indexer as well as the |
Indeed! Indexer:
build.log
With default build_command:
Is this probably the cause of the problem? i.e not building the sources properly? |
Yes, that looks like the problem. Note that the build_command gets |
Thanks James! I have two more questions though:
|
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. |
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! |
I did a fresh install of dxr today on a Fedora 20 machine, it worked smoothly but I encountered a few issues:
Trying to run dxr through mod_wsgi results in a "ImportError: No module named site" on error_log, the vhost:
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 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:
Thanks for all the help in advance!
The text was updated successfully, but these errors were encountered: