Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitweb plugin #413

Closed
ghost opened this issue Jul 15, 2014 · 8 comments
Closed

Gitweb plugin #413

ghost opened this issue Jul 15, 2014 · 8 comments
Milestone

Comments

@ghost
Copy link

ghost commented Jul 15, 2014

I have settet up git location to /var/git and created this directory. However when I go to the git page, there are no projects there, after I initialized two git projects in /var/git (one bare and one normal). Also there are no options for http-auth

@peakwinter peakwinter added this to the 0.6 "Panoply" milestone Jul 15, 2014
@peakwinter
Copy link
Contributor

Your repository needs to be readable by the http user, which is what nginx and fcgiwrap are reading it as. Also, the path to the directory need to be accessible to this user as well (meaning you can't base it in /root or similar). If the folder and its subdirectories are not world-readable, they need to be owned by the http user or group.

@peakwinter peakwinter removed this from the 0.6 "Panoply" milestone Jul 15, 2014
@peakwinter peakwinter removed the bug label Jul 15, 2014
@keybits
Copy link

keybits commented Jul 15, 2014

On my 0.6 setup I can't see any repos even with the repo root being ownded by http

@peakwinter
Copy link
Contributor

Is the root directory and path to it also accessible to http?

@ghost
Copy link
Author

ghost commented Jul 15, 2014

my repository is located at /var/git which is now owned by http:http. It contains a test git repository, which is also owned by http user and group. The problem still remains. Of course the /var/git directory has the execute bit set for all users:

drwxr-xr-x 15 root root 4.0K Jul 15 03:20 var/
and in /var:
drwxr-xr-x 4 http http 4.0K Jul 16 00:43 git/
and in /var/git:
drwxr-xr-x 7 http http 4.0K Jul 16 00:39 test/
and in /var/git/test:
drwxr-xr-x 2 http http 4.0K Jul 16 00:39 branches/
-rw-r--r-- 1 http http 66 Jul 16 00:39 config
-rw-r--r-- 1 http http 73 Jul 16 00:39 description
-rw-r--r-- 1 http http 23 Jul 16 00:39 HEAD
drwxr-xr-x 2 http http 4.0K Jul 16 00:39 hooks/
drwxr-xr-x 2 http http 4.0K Jul 16 00:39 info/
drwxr-xr-x 4 http http 4.0K Jul 16 00:39 objects/
drwxr-xr-x 4 http http 4.0K Jul 16 00:39 refs/

@keybits
Copy link

keybits commented Jul 15, 2014

Yep - I just moved it to /gitweb, made that owned by http, manually updated gitweb.conf and restarted fastcgi but same issues remains

@peakwinter peakwinter added this to the 0.7 milestone Jul 22, 2014
@peakwinter peakwinter added the bug label Jul 22, 2014
@heinzK1X
Copy link

heinzK1X commented Oct 9, 2014

I'm getting this error when installing a gitweb site (maybe it's because I did not init a repository yet? -- no, it's not):
Installation successful, but nginx serverblock couldn't be written - cannot concatenate 'str' and 'list' objects.

File "/home/vagrant/genesis/genesis/plugins/webapps/backend.py", line 140, in add
add=addtoblock if addtoblock else webapp.addtoblock,
File "/home/vagrant/genesis/genesis/plugins/webapps/backend.py", line 287, in nginx_add
nginx.dumpf(c, os.path.join('/etc/nginx/sites-available', site.name))
File "/usr/lib/python2.7/site-packages/nginx/main.py", line 292, in dumpf
dump(obj, open(path, 'w'))
File "/usr/lib/python2.7/site-packages/nginx/main.py", line 288, in dump
fobj.write(dumps(obj))
File "/usr/lib/python2.7/site-packages/nginx/main.py", line 285, in dumps
return ''.join(obj.as_block())
File "/usr/lib/python2.7/site-packages/nginx/main.py", line 55, in as_block
for y in x.as_block():
File "/usr/lib/python2.7/site-packages/nginx/main.py", line 117, in as_block
y = x.as_block()
File "/usr/lib/python2.7/site-packages/nginx/main.py", line 173, in as_block
ret.append(INDENT+y)

Ok, I need to update the python-nginx package..

@heinzK1X
Copy link

heinzK1X commented Oct 9, 2014

For me gitweb works in the vagrant box, but not on the rpi, even not with chmod -R 777.
I also tried everything mentioned here plus rebooting afterwards: https://stackoverflow.com/questions/10275536/configuring-gitweb-404-no-projects-found#14547755

So I really can't help to it. Sorry..

@peakwinter peakwinter modified the milestones: 0.7.1, 0.7 Apr 13, 2015
@peakwinter
Copy link
Contributor

peakwinter commented Jan 17, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants