Re: Unable to get any images and .css files are not loaded

2009-04-06 Thread Christian Hammond
Yeah, please do file a bug. It'll help us track it and I'll work on a fix
for the next beta.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.review-board.org
VMware, Inc. - http://www.vmware.com


On Mon, Apr 6, 2009 at 5:25 PM, kmw  wrote:

>
> On Apr 6, 5:12 pm, kmw  wrote:
> > On Apr 6, 4:12 pm, Christian Hammond  wrote:
> >
> > > It looks very possible that generated lighttpd config files have broken
> > > subdir install support.
> >
> > > Try also updating the paths in your alias.url section for for media and
> > > errordocs.
> >
> > > Christian
> >
> > Hi,
> >
> > I seem have this problem as well, after modifying the alias.url and
> > the url.rewrite rules. I'm running reviewboard via lighttpd on Ubuntu
> > 8.10. The only difference from the install instructions is that I've
> > installed reviewboard into a self-contained directory in /opt/
> > reviewboard. Here are the relevant sections of my lighttpd.conf, I can
> > provide more as needed.
> >
> > alias.url = (
> > "/reviews/media" => "/opt/reviewboard/var/www/localhost/htdocs/
> > media",
> > "/reviews/errordocs" => "/opt/reviewboard/var/www/localhost/
> > htdocs/errordocs",
> > )
> >
> > url.rewrite-once = (
> > "^(/reviews/media/.*)$" => "$1",
> > "^(/reviews/errordocs/.*)$" => "$1",
> > "^(/.*)$" => "/reviewboard.fcgi$1",
> > )
> >
> > Here are the errors from the logs
> > :::127.0.0.1 localhost - [06/Apr/2009:17:03:23 -0700] "GET /
> > reviews/media/rb/css/common.css?1239050624 HTTP/1.1" 404 345 "http://
> > localhost/reviews/account/preferences/?next=/reviews/dashboard/"
> > "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009032711
> > Ubuntu/8.10 (intrepid) Firefox/3.0.8"
> > ...
> >  
> > ...
> > :::127.0.0.1 localhost - [06/Apr/2009:17:03:23 -0700] "GET /
> > reviews/media/rb/css/common.css?1239050624 HTTP/1.1" 404 345 "http://
> > localhost/reviews/account/preferences/?next=/reviews/dashboard/"
> > "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009032711
> > Ubuntu/8.10 (intrepid) Firefox/3.0.8"
> >
> > It seems that the lighttpd conf that is generated is broken, which I
> > fixed manually above, but it also seems to have another problem
> > somewhere else.
>
> Figured it out: my url.rewrite rules were wrong, try this in the
> lighttpd.conf, it should work
>
>alias.url = (
> "/media" => "/opt/reviewboard/var/www/localhost/htdocs/media",
> "/errordocs" => "/opt/reviewboard/var/www/localhost/htdocs/
> errordocs",
>)
>
>url.rewrite-once = (
>"^/reviews(/media/.*)$" => "$1",
>"^/reviews(/errordocs/.*)$" => "$1",
>"^(/.*)$" => "/reviewboard.fcgi$1",
>)
>
> Should I file a bug in the issue tracker to fix the generated
> lighttpd.conf?
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---



Re: Unable to get any images and .css files are not loaded

2009-04-06 Thread kmw

On Apr 6, 5:12 pm, kmw  wrote:
> On Apr 6, 4:12 pm, Christian Hammond  wrote:
>
> > It looks very possible that generated lighttpd config files have broken
> > subdir install support.
>
> > Try also updating the paths in your alias.url section for for media and
> > errordocs.
>
> > Christian
>
> Hi,
>
> I seem have this problem as well, after modifying the alias.url and
> the url.rewrite rules. I'm running reviewboard via lighttpd on Ubuntu
> 8.10. The only difference from the install instructions is that I've
> installed reviewboard into a self-contained directory in /opt/
> reviewboard. Here are the relevant sections of my lighttpd.conf, I can
> provide more as needed.
>
>     alias.url = (
>         "/reviews/media" => "/opt/reviewboard/var/www/localhost/htdocs/
> media",
>         "/reviews/errordocs" => "/opt/reviewboard/var/www/localhost/
> htdocs/errordocs",
>     )
>
>     url.rewrite-once = (
>         "^(/reviews/media/.*)$" => "$1",
>         "^(/reviews/errordocs/.*)$" => "$1",
>         "^(/.*)$" => "/reviewboard.fcgi$1",
>     )
>
> Here are the errors from the logs
>     :::127.0.0.1 localhost - [06/Apr/2009:17:03:23 -0700] "GET /
> reviews/media/rb/css/common.css?1239050624 HTTP/1.1" 404 345 "http://
> localhost/reviews/account/preferences/?next=/reviews/dashboard/"
> "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009032711
> Ubuntu/8.10 (intrepid) Firefox/3.0.8"
>     ...
>      
>     ...
>     :::127.0.0.1 localhost - [06/Apr/2009:17:03:23 -0700] "GET /
> reviews/media/rb/css/common.css?1239050624 HTTP/1.1" 404 345 "http://
> localhost/reviews/account/preferences/?next=/reviews/dashboard/"
> "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009032711
> Ubuntu/8.10 (intrepid) Firefox/3.0.8"
>
> It seems that the lighttpd conf that is generated is broken, which I
> fixed manually above, but it also seems to have another problem
> somewhere else.

Figured it out: my url.rewrite rules were wrong, try this in the
lighttpd.conf, it should work

alias.url = (
"/media" => "/opt/reviewboard/var/www/localhost/htdocs/media",
"/errordocs" => "/opt/reviewboard/var/www/localhost/htdocs/
errordocs",
)

url.rewrite-once = (
"^/reviews(/media/.*)$" => "$1",
"^/reviews(/errordocs/.*)$" => "$1",
"^(/.*)$" => "/reviewboard.fcgi$1",
)

Should I file a bug in the issue tracker to fix the generated
lighttpd.conf?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---



Re: Unable to get any images and .css files are not loaded

2009-04-06 Thread kmw

On Apr 6, 4:12 pm, Christian Hammond  wrote:
> It looks very possible that generated lighttpd config files have broken
> subdir install support.
>
> Try also updating the paths in your alias.url section for for media and
> errordocs.
>
> Christian
>

Hi,

I seem have this problem as well, after modifying the alias.url and
the url.rewrite rules. I'm running reviewboard via lighttpd on Ubuntu
8.10. The only difference from the install instructions is that I've
installed reviewboard into a self-contained directory in /opt/
reviewboard. Here are the relevant sections of my lighttpd.conf, I can
provide more as needed.

alias.url = (
"/reviews/media" => "/opt/reviewboard/var/www/localhost/htdocs/
media",
"/reviews/errordocs" => "/opt/reviewboard/var/www/localhost/
htdocs/errordocs",
)

url.rewrite-once = (
"^(/reviews/media/.*)$" => "$1",
"^(/reviews/errordocs/.*)$" => "$1",
"^(/.*)$" => "/reviewboard.fcgi$1",
)

Here are the errors from the logs
:::127.0.0.1 localhost - [06/Apr/2009:17:03:23 -0700] "GET /
reviews/media/rb/css/common.css?1239050624 HTTP/1.1" 404 345 "http://
localhost/reviews/account/preferences/?next=/reviews/dashboard/"
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009032711
Ubuntu/8.10 (intrepid) Firefox/3.0.8"
...
 
...
:::127.0.0.1 localhost - [06/Apr/2009:17:03:23 -0700] "GET /
reviews/media/rb/css/common.css?1239050624 HTTP/1.1" 404 345 "http://
localhost/reviews/account/preferences/?next=/reviews/dashboard/"
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009032711
Ubuntu/8.10 (intrepid) Firefox/3.0.8"


It seems that the lighttpd conf that is generated is broken, which I
fixed manually above, but it also seems to have another problem
somewhere else.

Thanks.


> On Mon, Apr 6, 2009 at 4:08 PM, Chuck  wrote:
>
> > Thanks for the suggestion, but it still isn't quite working. The error
> > is different, though
>
> > 10.x.x.xwww.example.com- [06/Apr/2009:16:00:41 -0700] "GET /reviews/
> > media/ HTTP/1.1" 404 345 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US;
> > rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8"
> > 10.x.x.xwww.example.com- [06/Apr/2009:16:00:41 -0700] "GET /reviews/
> > media/ HTTP/1.1" 404 345 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US;
> > rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8"
>
> > My assumption was that the configuration files took into account the
> > settings I passed to rb-site. If not, are there other changes I should
> > make to use thehttp://www.example.com/reviews/path instead of
> >http://reviews.example.com/?
>
> > On Apr 3, 2:17 pm, Christian Hammond  wrote:
> > > You need to update your lighttpd configuration to change:
>
> > >        "^(/media/.*)$" => "$1",
>
> > > to:
>
> > >        "^(/reviews/media/.*)$" => "$1",
>
> > > Christian
>
> > > --
> > > Christian Hammond - chip...@chipx86.com
> > > Review Board -http://www.review-board.org
> > > VMware, Inc. -http://www.vmware.com
>
> > > On Fri, Apr 3, 2009 at 11:18 AM, Chuck  wrote:
>
> > > > I'm going to "me too" this problem, but using lighttpd. The machine is
> > > > running Ubuntu 8.04 with a default lighttpd installation and
> > > > configuration file.
>
> > > > [660] egrep -v '^(#|$)' /etc/lighttpd/lighttpd.conf
> > > > server.modules              = (
> > > >            "mod_access",
> > > >            "mod_alias",
> > > >            "mod_accesslog",
> > > >            "mod_compress",
> > > >  )
> > > > server.document-root       = "/var/www/"
> > > > server.errorlog            = "/var/log/lighttpd/error.log"
> > > > index-file.names           = ( "index.php", "index.html",
> > > >                               "index.htm", "default.htm",
> > > >                               "index.lighttpd.html" )
> > > > accesslog.filename         = "/var/log/lighttpd/access.log"
> > > > url.access-deny            = ( "~", ".inc" )
> > > > static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
>
> > > > server.pid-file            = "/var/run/lighttpd.pid"
> > > > dir-listing.encoding        = "utf-8"
> > > > server.dir-listing          = "enable"
> > > > server.username            = "www-data"
> > > > server.groupname           = "www-data"
> > > > compress.cache-dir          = "/var/cache/lighttpd/compress/"
> > > > compress.filetype           = ("text/plain", "text/html", "application/
> > > > x-javascript", "text/css")
> > > > include_shell "/usr/share/lighttpd/create-mime.assign.pl"
> > > > include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
> > > > $HTTP["remoteip"] == "127.0.0.1" {
> > > >        alias.url += (
> > > >                "/doc/" => "/usr/share/doc/",
> > > >                "/images/" => "/usr/share/images/"
> > > >        )
> > > >        $HTTP["url"] =~ "^/doc/|^/images/" {
> > > >                dir-listing.activate = "enable"
> > > >        }
> > > > }
> > > > include "rb-lighttpd.conf"
> > > > [661] egrep -v '^(#|$)' /etc/ligh

Re: AD Authentication Supported?

2009-04-06 Thread Nasi Sakkos
It's also worth mentioning that PyDNS is required if you wish to use AD with
the "Find DC from DNS" option.

Perhaps an update to the documentation is in order?


On Sat, Apr 4, 2009 at 3:43 AM, Gavin Mogan  wrote:

> The built in AD based ldap module does for the most part work. I had to
> patch the module because our... domain suffix(?) wasn't quite a standard
> format so I wanted a config variable to override that.
>
> When I next try to upgrade to the latest beta, i'll be trying to generate a
> patch and uploading it.
>
> For most people it should be usable though if thats any help.
>
> Gavin
>
>
> On Thu, Apr 2, 2009 at 4:07 PM, Tom Sakkos  wrote:
>
>>
>> It's not exactly clear from the documentation (and other posts made on
>> the mailing list).
>>
>> Is AD Authentication (officially) supported by Review-Board?
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---



Re: Unable to get any images and .css files are not loaded

2009-04-06 Thread Christian Hammond
It looks very possible that generated lighttpd config files have broken
subdir install support.

Try also updating the paths in your alias.url section for for media and
errordocs.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.review-board.org
VMware, Inc. - http://www.vmware.com


On Mon, Apr 6, 2009 at 4:08 PM, Chuck  wrote:

>
> Thanks for the suggestion, but it still isn't quite working. The error
> is different, though
>
> 10.x.x.x www.example.com - [06/Apr/2009:16:00:41 -0700] "GET /reviews/
> media/ HTTP/1.1" 404 345 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US;
> rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8"
> 10.x.x.x www.example.com - [06/Apr/2009:16:00:41 -0700] "GET /reviews/
> media/ HTTP/1.1" 404 345 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US;
> rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8"
>
> My assumption was that the configuration files took into account the
> settings I passed to rb-site. If not, are there other changes I should
> make to use the http://www.example.com/reviews/ path instead of
> http://reviews.example.com/ ?
>
> On Apr 3, 2:17 pm, Christian Hammond  wrote:
> > You need to update your lighttpd configuration to change:
> >
> >"^(/media/.*)$" => "$1",
> >
> > to:
> >
> >"^(/reviews/media/.*)$" => "$1",
> >
> > Christian
> >
> > --
> > Christian Hammond - chip...@chipx86.com
> > Review Board -http://www.review-board.org
> > VMware, Inc. -http://www.vmware.com
> >
> > On Fri, Apr 3, 2009 at 11:18 AM, Chuck  wrote:
> >
> > > I'm going to "me too" this problem, but using lighttpd. The machine is
> > > running Ubuntu 8.04 with a default lighttpd installation and
> > > configuration file.
> >
> > > [660] egrep -v '^(#|$)' /etc/lighttpd/lighttpd.conf
> > > server.modules  = (
> > >"mod_access",
> > >"mod_alias",
> > >"mod_accesslog",
> > >"mod_compress",
> > >  )
> > > server.document-root   = "/var/www/"
> > > server.errorlog= "/var/log/lighttpd/error.log"
> > > index-file.names   = ( "index.php", "index.html",
> > >   "index.htm", "default.htm",
> > >   "index.lighttpd.html" )
> > > accesslog.filename = "/var/log/lighttpd/access.log"
> > > url.access-deny= ( "~", ".inc" )
> > > static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
> >
> > > server.pid-file= "/var/run/lighttpd.pid"
> > > dir-listing.encoding= "utf-8"
> > > server.dir-listing  = "enable"
> > > server.username= "www-data"
> > > server.groupname   = "www-data"
> > > compress.cache-dir  = "/var/cache/lighttpd/compress/"
> > > compress.filetype   = ("text/plain", "text/html", "application/
> > > x-javascript", "text/css")
> > > include_shell "/usr/share/lighttpd/create-mime.assign.pl"
> > > include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
> > > $HTTP["remoteip"] == "127.0.0.1" {
> > >alias.url += (
> > >"/doc/" => "/usr/share/doc/",
> > >"/images/" => "/usr/share/images/"
> > >)
> > >$HTTP["url"] =~ "^/doc/|^/images/" {
> > >dir-listing.activate = "enable"
> > >}
> > > }
> > > include "rb-lighttpd.conf"
> > > [661] egrep -v '^(#|$)' /etc/lighttpd/rb-lighttpd.conf
> > > server.modules += (
> > >"mod_auth",
> > >"mod_access",
> > >"mod_rewrite",
> > >"mod_expire",
> > >"mod_fastcgi",
> > >"mod_alias",
> > >"mod_accesslog",
> > >"mod_compress",
> > > )
> > > $HTTP["host"] =~ "www\.example\.com" {
> > ># This is not used directly, it is superceded by our aliases
> > > below.
> > >server.document-root = "/var/www/reviews.example.com/htdocs"
> > >server.errorlog  = "/var/www/reviews.example.com/logs/lighttpd-
> > > error.log"
> > >accesslog.filename   = "/var/www/reviews.example.com/logs/lighttpd-
> > > access.log"
> > >fastcgi.server = (
> > >"/reviewboard.fcgi" => (
> > >"main" => (
> > >"bin-path" => "/var/www/reviews.example.com/htdocs/
> > > reviewboard.fcgi",
> > >"socket" => "/var/www/reviews.example.com/tmp/
> > > fastcgi.sock",
> > >"check-local" => "disable",
> > >)
> > >),
> > >)
> > >alias.url = (
> > >"/media" => "/var/www/reviews.example.com/htdocs/media",
> > >"/errordocs" => "/var/www/reviews.example.com/htdocs/
> > > errordocs",
> > >)
> > >url.rewrite-once = (
> > >"^(/media/.*)$" => "$1",
> > >"^(/errordocs/.*)$" => "$1",
> > >"^(/.*)$" => "/reviewboard.fcgi$1",
> > >)
> > ># Aggressively cache all static files
> > >$HTTP["url"] =~ "\.(jpg|gif|png|css|js|htc)" {
> > >expire.url = ( "" => "access 1 years" )
> > >}
> > ># Compress files for faster transfer
> > >compress.fil

Re: Unable to get any images and .css files are not loaded

2009-04-06 Thread Chuck

Thanks for the suggestion, but it still isn't quite working. The error
is different, though

10.x.x.x www.example.com - [06/Apr/2009:16:00:41 -0700] "GET /reviews/
media/ HTTP/1.1" 404 345 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US;
rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8"
10.x.x.x www.example.com - [06/Apr/2009:16:00:41 -0700] "GET /reviews/
media/ HTTP/1.1" 404 345 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US;
rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8"

My assumption was that the configuration files took into account the
settings I passed to rb-site. If not, are there other changes I should
make to use the http://www.example.com/reviews/ path instead of
http://reviews.example.com/ ?

On Apr 3, 2:17 pm, Christian Hammond  wrote:
> You need to update your lighttpd configuration to change:
>
>        "^(/media/.*)$" => "$1",
>
> to:
>
>        "^(/reviews/media/.*)$" => "$1",
>
> Christian
>
> --
> Christian Hammond - chip...@chipx86.com
> Review Board -http://www.review-board.org
> VMware, Inc. -http://www.vmware.com
>
> On Fri, Apr 3, 2009 at 11:18 AM, Chuck  wrote:
>
> > I'm going to "me too" this problem, but using lighttpd. The machine is
> > running Ubuntu 8.04 with a default lighttpd installation and
> > configuration file.
>
> > [660] egrep -v '^(#|$)' /etc/lighttpd/lighttpd.conf
> > server.modules              = (
> >            "mod_access",
> >            "mod_alias",
> >            "mod_accesslog",
> >            "mod_compress",
> >  )
> > server.document-root       = "/var/www/"
> > server.errorlog            = "/var/log/lighttpd/error.log"
> > index-file.names           = ( "index.php", "index.html",
> >                               "index.htm", "default.htm",
> >                               "index.lighttpd.html" )
> > accesslog.filename         = "/var/log/lighttpd/access.log"
> > url.access-deny            = ( "~", ".inc" )
> > static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
>
> > server.pid-file            = "/var/run/lighttpd.pid"
> > dir-listing.encoding        = "utf-8"
> > server.dir-listing          = "enable"
> > server.username            = "www-data"
> > server.groupname           = "www-data"
> > compress.cache-dir          = "/var/cache/lighttpd/compress/"
> > compress.filetype           = ("text/plain", "text/html", "application/
> > x-javascript", "text/css")
> > include_shell "/usr/share/lighttpd/create-mime.assign.pl"
> > include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
> > $HTTP["remoteip"] == "127.0.0.1" {
> >        alias.url += (
> >                "/doc/" => "/usr/share/doc/",
> >                "/images/" => "/usr/share/images/"
> >        )
> >        $HTTP["url"] =~ "^/doc/|^/images/" {
> >                dir-listing.activate = "enable"
> >        }
> > }
> > include "rb-lighttpd.conf"
> > [661] egrep -v '^(#|$)' /etc/lighttpd/rb-lighttpd.conf
> > server.modules += (
> >    "mod_auth",
> >    "mod_access",
> >    "mod_rewrite",
> >    "mod_expire",
> >    "mod_fastcgi",
> >    "mod_alias",
> >    "mod_accesslog",
> >    "mod_compress",
> > )
> > $HTTP["host"] =~ "www\.example\.com" {
> >    # This is not used directly, it is superceded by our aliases
> > below.
> >    server.document-root = "/var/www/reviews.example.com/htdocs"
> >    server.errorlog      = "/var/www/reviews.example.com/logs/lighttpd-
> > error.log"
> >    accesslog.filename   = "/var/www/reviews.example.com/logs/lighttpd-
> > access.log"
> >    fastcgi.server = (
> >        "/reviewboard.fcgi" => (
> >            "main" => (
> >                "bin-path" => "/var/www/reviews.example.com/htdocs/
> > reviewboard.fcgi",
> >                "socket" => "/var/www/reviews.example.com/tmp/
> > fastcgi.sock",
> >                "check-local" => "disable",
> >            )
> >        ),
> >    )
> >    alias.url = (
> >        "/media" => "/var/www/reviews.example.com/htdocs/media",
> >        "/errordocs" => "/var/www/reviews.example.com/htdocs/
> > errordocs",
> >    )
> >    url.rewrite-once = (
> >        "^(/media/.*)$" => "$1",
> >        "^(/errordocs/.*)$" => "$1",
> >        "^(/.*)$" => "/reviewboard.fcgi$1",
> >    )
> >    # Aggressively cache all static files
> >    $HTTP["url"] =~ "\.(jpg|gif|png|css|js|htc)" {
> >        expire.url = ( "" => "access 1 years" )
> >    }
> >    # Compress files for faster transfer
> >    compress.filetype = (
> >        "text/plain",
> >        "text/html",
> >        "text/javascript",
> >        "text/css",
> >        "text/xml"
> >    )
> >    compress.cache-dir = "/var/www/reviews.example.com/tmp/"
> >    mimetype.assign = (
> >        ".gif"  => "image/gif",
> >        ".jpg"  => "image/jpeg",
> >        ".jpeg" => "image/jpeg",
> >        ".ico"  => "image/png",
> >        ".png"  => "image/png",
> >        ".pdf"  => "application/pdf",
> >        ".gz"   => "application/x-gzip",
> >        ".css"  => "text/css",
> >        ".html" => "text/html",
> >        ".htm"  => "text/html",
>

Re: Error in child process: exec of 'ssh' failed: Permission denied

2009-04-06 Thread Chris Moore

I have tried this and still no luck.  I have confirmed that svn+ssh
works without any problems from the command line using the webserver
user.

Thanks,
Chris

On Apr 3, 10:38 pm, Christian Hammond  wrote:
> Just found this. Maybe it'll help.
>
> http://www.mail-archive.com/versi...@googlegroups.com/msg00222.html
>
> In summary, see if you have this line uncommented in your apache user's
> ~/.subversion/config:
>
> # ssh = $SVN_SSH ssh
>
> If so, or maybe even if not, try changing it to read:
>
> ssh = $SVN_SSH /usr/bin/ssh
>
> Christian
>
> --
> Christian Hammond - chip...@chipx86.com
> Review Board -http://www.review-board.org
> VMware, Inc. -http://www.vmware.com
>
> On Fri, Apr 3, 2009 at 7:17 PM, Chris Moore  wrote:
>
> > I have read about having seperate public and developer repositories
> > and I suggested this; however, I have been told they do not wish to
> > put up a public Subversion repository.
>
> > For testing purposes, I created a user account solely to run apache on
> > the ReviewBoard server which has access to ssh and can check out from
> > the repository.  I also tried setting up an SSH key from that user to
> > the subversion server.  Both of these have ended up giving me the same
> > error.
>
> > On Apr 3, 5:21 pm, Christian Hammond  wrote:
> > > This looks like the web server itself doesn't have permissions to run
> > ssh.
> > > Maybe try to sudo as the server's user and run ssh, see what happens.
>
> > > For SVN, I typically recommend you have an anonymous HTTP URL and a
> > > developer SSH URL. You'd then set the HTTP URL as the repository path,
> > and
> > > the developer one as the Mirror Path. This gets around these issues
> > nicely.
>
> > > Christian
>
> > > --
> > > Christian Hammond - chip...@chipx86.com
> > > Review Board -http://www.review-board.org
> > > VMware, Inc. -http://www.vmware.com
>
> > > On Fri, Apr 3, 2009 at 9:00 AM, Chris Moore  wrote:
>
> > > > Hello,
>
> > > > I have just set up ReviewBoard for the developers at my company.  We
> > > > can create Review Requests, but whenever someone attempts to "View
> > > > Diff" we get the following error:
>
> > > > Error in child process: exec of 'ssh' failed: Permission denied
>
> > > > Traceback (most recent call last):
> > > >  File "/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-
> > > > py2.4.egg/reviewboard/diffviewer/views.py", line 145, in view_diff
> > > >    interdiffset, highlighting, True)[0]
> > > >  File "/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-
> > > > py2.4.egg/reviewboard/diffviewer/diffutils.py", line 619, in
> > > > get_diff_files
> > > >    large_data=True)
> > > >  File "/usr/lib/python2.4/site-packages/Djblets-0.5alpha3-py2.4.egg/
> > > > djblets/util/misc.py", line 143, in cache_memoize
> > > >    data = lookup_callable()
> > > >  File "/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-
> > > > py2.4.egg/reviewboard/diffviewer/diffutils.py", line 618, in 
> > > >    enable_syntax_highlighting),
> > > >  File "/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-
> > > > py2.4.egg/reviewboard/diffviewer/diffutils.py", line 341, in
> > > > get_chunks
> > > >    old = get_original_file(filediff)
> > > >  File "/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-
> > > > py2.4.egg/reviewboard/diffviewer/diffutils.py", line 248, in
> > > > get_original_file
> > > >    large_data=True)[0]
> > > >  File "/usr/lib/python2.4/site-packages/Djblets-0.5alpha3-py2.4.egg/
> > > > djblets/util/misc.py", line 143, in cache_memoize
> > > >    data = lookup_callable()
> > > >  File "/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-
> > > > py2.4.egg/reviewboard/diffviewer/diffutils.py", line 247, in 
> > > >    data = cache_memoize(key, lambda: [fetch_file(file, revision)],
> > > >  File "/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-
> > > > py2.4.egg/reviewboard/diffviewer/diffutils.py", line 227, in
> > > > fetch_file
> > > >    data = tool.get_file(file, revision)
> > > >  File "/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-
> > > > py2.4.egg/reviewboard/scmtools/svn.py", line 117, in get_file
> > > >    raise SCMError(e)
> > > > SCMError: Error in child process: exec of 'ssh' failed: Permission
> > > > denied
>
> > > > Apache is set to run as a ReviewBoard-specific user and this user has
> > > > an SSH key to the subversion server so that a password is not
> > > > required.  I have confirmed that this user can checkout the repository
> > > > without a password on the command line.
>
> > > > Does anyone have any suggestions?
>
> > > > Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--