Re: [rt-users] Request tracker and Lighttpd

2013-12-24 Thread Ivan Osipov

Thank you, everything works.


Re: [rt-users] Request tracker and Lighttpd

2013-12-23 Thread Alex Vandiver
On Mon, 2013-12-23 at 21:47 +0400, Ivan Osipov wrote:
> When I try start RT via Apache 2 with mod_fastcgi 
> (http://www.bestpractical.com/docs/rt/4.2/web_deployment.html#mod_fastcgi) 
> in Apache error-log:
> [snip]

Sounds like you didn't configure with --with-web-handler=fastcgi, so
'make testdeps' didn't check the dependencies that that deployment adds.
 - Alex




Re: [rt-users] Request tracker and Lighttpd

2013-12-23 Thread Ivan Osipov
When I try start RT via Apache 2 with mod_fastcgi 
(http://www.bestpractical.com/docs/rt/4.2/web_deployment.html#mod_fastcgi) 
in Apache error-log:


---
[Mon Dec 23 21:24:54 2013] [warn] FastCGI: server 
"/opt/rt4/sbin/rt-server.fcgi" has failed to remain running for 30 
seconds given 3 attempts, its restart interval has been backed off to 
600 seconds
[Mon Dec 23 21:24:54 2013] [warn] FastCGI: server 
"/opt/rt4/sbin/rt-server.fcgi" has failed to remain running for 30 
seconds given 3 attempts, its restart interval has been backed off to 
600 seconds
[23549] [Mon Dec 23 17:24:54 2013] [critical]: Something went wrong 
while trying to run RT's standalone web server:
Can't locate FCGI/ProcManager.pm in @INC (@INC contains: 
/opt/rt4/sbin/../local/lib /opt/rt4/sbin/../lib /etc/perl 
/usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 
/usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 
/usr/local/lib/site_perl .) at 
/usr/local/share/perl/5.14.2/Plack/Util.pm line 23. 
(/opt/rt4/sbin/../lib/RT.pm:391)

Something went wrong while trying to run RT's standalone web server:
Can't locate FCGI/ProcManager.pm in @INC (@INC contains: 
/opt/rt4/sbin/../local/lib /opt/rt4/sbin/../lib /etc/perl 
/usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 
/usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 
/usr/local/lib/site_perl .) at 
/usr/local/share/perl/5.14.2/Plack/Util.pm line 23.
[Mon Dec 23 21:24:54 2013] [warn] FastCGI: server 
"/opt/rt4/sbin/rt-server.fcgi" (pid 23549) terminated by calling exit 
with status '2'

---

23.12.2013 20:05, Ivan Osipov пишет:

Hello all.
I'm trying to set up Request Tracker 4.2.1 and Lighttpd 
(1.4.28-2ubuntu4) on Ubuntu 12.04 LTS with all updates.

RT has been installed from sources.
When I try get http://rt.domain.tld/ I see error-message "500 - 
Internal Server Error". In web-server error log:

---
2013-12-23 19:34:50: (log.c.166) server started
2013-12-23 19:34:59: (mod_fastcgi.c.2568) unexpected end-of-file 
(perhaps the fastcgi process died): pid: 21743 socket: 
unix:/var/run/lighttpd/rt4.socket-3
2013-12-23 19:34:59: (mod_fastcgi.c.3356) response not received, 
request sent: 1173 on socket: unix:/var/run/lighttpd/rt4.socket-3 for 
?, closing connection
2013-12-23 19:37:05: (mod_fastcgi.c.1734) connect failed: Connection 
refused on unix:/var/run/lighttpd/rt4.socket-3
2013-12-23 19:37:05: (mod_fastcgi.c.3027) backend died; we'll disable 
it for 1 seconds and send the request to another backend instead: 
reconnects: 0 load: 1
2013-12-23 19:37:07: (mod_fastcgi.c.2568) unexpected end-of-file 
(perhaps the fastcgi process died): pid: 21936 socket: 
unix:/var/run/lighttpd/rt4.socket-3
2013-12-23 19:37:07: (mod_fastcgi.c.3356) response not received, 
request sent: 1144 on socket: unix:/var/run/lighttpd/rt4.socket-3 for 
?, closing connection

---
Also I tried remove directory /opt/rt4/var/mason_data/ but it did not 
help.

BTW, RT via stand-alone web-server works correctly.
Lighttpd and RT configs attached.



--
С уважением,
Иван Осипов



[rt-users] Request tracker and Lighttpd

2013-12-23 Thread Ivan Osipov

Hello all.
I'm trying to set up Request Tracker 4.2.1 and Lighttpd 
(1.4.28-2ubuntu4) on Ubuntu 12.04 LTS with all updates.

RT has been installed from sources.
When I try get http://rt.domain.tld/ I see error-message "500 - Internal 
Server Error". In web-server error log:

---
2013-12-23 19:34:50: (log.c.166) server started
2013-12-23 19:34:59: (mod_fastcgi.c.2568) unexpected end-of-file 
(perhaps the fastcgi process died): pid: 21743 socket: 
unix:/var/run/lighttpd/rt4.socket-3
2013-12-23 19:34:59: (mod_fastcgi.c.3356) response not received, request 
sent: 1173 on socket: unix:/var/run/lighttpd/rt4.socket-3 for ?, closing 
connection
2013-12-23 19:37:05: (mod_fastcgi.c.1734) connect failed: Connection 
refused on unix:/var/run/lighttpd/rt4.socket-3
2013-12-23 19:37:05: (mod_fastcgi.c.3027) backend died; we'll disable it 
for 1 seconds and send the request to another backend instead: 
reconnects: 0 load: 1
2013-12-23 19:37:07: (mod_fastcgi.c.2568) unexpected end-of-file 
(perhaps the fastcgi process died): pid: 21936 socket: 
unix:/var/run/lighttpd/rt4.socket-3
2013-12-23 19:37:07: (mod_fastcgi.c.3356) response not received, request 
sent: 1144 on socket: unix:/var/run/lighttpd/rt4.socket-3 for ?, closing 
connection

---
Also I tried remove directory /opt/rt4/var/mason_data/ but it did not help.
BTW, RT via stand-alone web-server works correctly.
Lighttpd and RT configs attached.

--
Best regards,
Ivan Osipov

server.modules = (
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
#   "mod_rewrite",
)

server.document-root= "/var/www"
server.upload-dirs  = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname= "www-data"

index-file.names= ( "index.php", "index.html",
"index.htm", "default.htm",
   " index.lighttpd.html" )

url.access-deny = ( "~", ".inc" )

static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

## Use ipv6 if available
#include_shell "/usr/share/lighttpd/use-ipv6.pl"

dir-listing.encoding= "utf-8"
server.dir-listing  = "enable"

compress.cache-dir  = "/var/cache/lighttpd/compress/"
compress.filetype   = ( "application/x-javascript", "text/css", 
"text/html", "text/plain" )

include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"

include "rt.domain.tld"
server.modules += ("mod_fastcgi")

$HTTP["host"] == "rt.domain.tld" {
server.document-root = "/opt/rt4/share/html"
#index.file-names = ( "index.html" ) 

fastcgi.server = ( "/" =>
 ((
"bin-path"  => "/opt/rt4/sbin/rt-server.fcgi",
"socket"=> "/var/run/lighttpd/rt4.socket",
"check-local"   => "disable",
"fix-root-scriptname" => "enable"
  )),
  )
}# Any configuration directives you include  here will override 
# RT's default configuration file, RT_Config.pm
#
# To include a directive here, just copy the equivalent statement
# from RT_Config.pm and change the value. We've included a single
# sample value below.
#
# This file is actually a perl module, so you can include valid
# perl code, as well.
#
# The converse is also true, if this file isn't valid perl, you're
# going to run into trouble. To check your SiteConfig file, use
# this command:
#
#   perl -c /path/to/your/etc/RT_SiteConfig.pm
#
# You must restart your webserver after making changes to this file.


# You must install Plugins on your own, this is only an example
# of the correct syntax to use when activating them.
# Plugin( "RT::Extension::QuickDelete" );
# Plugin( "RT::Extension::CommandByMail" );

Set( $CommentAddress, 'support-comm...@domain.tld' );
Set( $CorrespondAddress, 'supp...@domain.tld' );
Set( $DatabaseHost, 'localhost' );
Set( $DatabaseName, 'basename' );
Set( $DatabasePassword, 'pwd' );
Set( $DatabasePort, '' );
Set( $DatabaseRequireSSL, '' );
Set( $DatabaseType, 'mysql' );
Set( $DatabaseUser, 'username' );
Set( $Organization, 'rt.domain.tld' );
Set( $OwnerEmail, 'i...@domain.tld' );
Set( $SendmailPath, '/usr/sbin/sendmail' );
Set( $WebDomain, 'rt.domain.tld' );
Set( $WebPort, '81' );
Set($Timezone, 'Europe/Moscow');
Set( $rtname, 'my_rtname' );
1;