It fails to create a socket (_sock is None). This can be an indicator of you hitting fd limits. On 2 Jul 2014 17:23, "Predrag Punosevac" <punoseva...@gmail.com> wrote:
> Stefan Sperling <s...@openbsd.org> wrote: > > > On Tue, Jul 01, 2014 at 08:36:29PM -0400, Predrag Punosevac wrote: > > > I am trying to run ViewVC in the stand alone server mode on the new svn > > > server (OpenBSD 5.5 amd64). Since ViewVC is not in ports I downloaded > > > 1.1.22 package from CollabNet website. ViewVC keeps crashing when > > > while I browse my SVN repos. They are rather large. I am not using any > > > kind a proxy but rather forcing built in server to listen on the port > > > 80. > > > > IIRC viewvc uses Subversion's python bindings. Did you install them? > > pkg_add py-subversion > > Of course :) Built in stand alone server which comes with ViewVC runs > fine until I start browsing repositories agresively. Than it crashes as > in > # uname -a > OpenBSD svnhub.int.autonlab.org 5.5 GENERIC.MP#315 amd64 > # /usr//local/bin/viewvc-1.1.22/bin/standalone.py -d -p 80 -h \ > svnhub.int.autonlab.org > > server ready at http://svnhub.int.autonlab.org:80/viewvc > # 10.8.0.6 - - [02/Jul/2014 11:16:47] "GET /viewvc HTTP/1.1" 200 - > 10.8.0.6 - - [02/Jul/2014 11:16:47] ViewVC exited ok > 10.8.0.6 - - [02/Jul/2014 11:16:47] "GET /viewvc/*docroot*/styles.css > HTTP/1.1" 200 - > 10.8.0.6 - - [02/Jul/2014 11:16:47] ViewVC exited ok > 10.8.0.6 - - [02/Jul/2014 11:16:47] "GET > /viewvc/*docroot*/images/viewvc-logo.png HTTP/1.1" 200 - > 10.8.0.6 - - [02/Jul/2014 11:16:47] ViewVC exited ok > 10.8.0.6 - - [02/Jul/2014 11:16:47] "GET > /viewvc/*docroot*/images/dir.png HTTP/1.1" 200 - > 10.8.0.6 - - [02/Jul/2014 11:16:47] ViewVC exited ok > 10.8.0.6 - - [02/Jul/2014 11:16:47] "GET > /viewvc/*docroot*/images/favicon.ico HTTP/1.1" 200 - > 10.8.0.6 - - [02/Jul/2014 11:16:47] ViewVC exited ok > 10.8.0.6 - - [02/Jul/2014 11:16:49] "GET /viewvc/cvs/ HTTP/1.1" 200 - > 10.8.0.6 - - [02/Jul/2014 11:16:49] ViewVC exited ok > 10.8.0.6 - - [02/Jul/2014 11:16:49] "GET /viewvc/*docroot*/images/up.png > HTTP/1.1" 200 - > 10.8.0.6 - - [02/Jul/2014 11:16:49] ViewVC exited ok > 10.8.0.6 - - [02/Jul/2014 11:16:57] "GET /viewvc/cvs/trunk/ HTTP/1.1" > 200 - > Traceback (most recent call last): > File "/usr/local/bin/viewvc-1.1.22/bin/standalone.py", line 879, in > <module> > main(sys.argv) > File "/usr/local/bin/viewvc-1.1.22/bin/standalone.py", line 874, in > main > serve(options.host, options.port, ready) > File "/usr/local/bin/viewvc-1.1.22/bin/standalone.py", line 421, in > serve > ViewVCHTTPServer(host, port, callback).serve_until_quit() > File "/usr/local/bin/viewvc-1.1.22/bin/standalone.py", line 356, in > serve_until_quit > self.handle_request() > File "/usr/local/lib/python2.7/SocketServer.py", line 280, in > handle_request > self._handle_request_noblock() > File "/usr/local/lib/python2.7/SocketServer.py", line 297, in > _handle_request_noblock > self.handle_error(request, client_address) > File "/usr/local/lib/python2.7/SocketServer.py", line 350, in > handle_error > print '-'*40 > File "/usr/local/lib/python2.7/socket.py", line 324, in write > self.flush() > File "/usr/local/lib/python2.7/socket.py", line 303, in flush > self._sock.sendall(view[write_offset:write_offset+buffer_size]) > AttributeError: 'NoneType' object has no attribute 'sendall' > > > Any clues Stefan from the kernel hacker point of view? > > > Most Kind Regards, > Predrag > > > > > > > Does anyone have any experience running ViewVC on OpenBSD recently? I > am > > > tempted to try to use Nginx as a proxy or install Apache 2 and use CGI > > > mode via ScriptAlias for ViewVC. The latter is running fine in out > > > current setup on Scientific Linux 6.2 which I am trying to migrate to > > > OpenBSD. Unfortunately moving to Trac (which would be my strong > > > preference) or WebSVN will probably cause ruffle feathers, a condition > I > > > want to avoid. > > > > > > Predrag > > > > WebSVN is fairly broken with SVN 1.8. Don't bother. (Which reminds me > > I've been meaning to remove it but was still waiting for patches > > promised by someone, which never arrived).