Re: [viewvc-users] ViewVC crash

Peter Funk <[email protected]> Sat, 25 Feb 2012 18:43:58 +0100
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Message-ID <[email protected]>
Hello Joel,

Joel Dahl wrote 25.02.2012 13:34:
> I noticed that the ViewVC interface to my cvs repo was really slow today and
> that it seemed to just randomly die when I click on a link somewhere in the
> web interface. It spits out the following error message each time it dies:
> 
> # /usr/local/viewvc/bin/standalone.py -h rancid.vnode.se -p 8080
> server ready at http://rancid.vnode.se:8080/viewvc
> 172.16.4.10 - - [25/Feb/2012 09:55:23] "GET / HTTP/1.1" 301 -
> 172.16.4.10 - - [25/Feb/2012 09:55:47] "GET /viewvc/ HTTP/1.1" 200 -
> 172.16.4.10 - - [25/Feb/2012 09:56:00] ViewVC exited ok
> 172.16.4.10 - - [25/Feb/2012 09:56:24] "GET /viewvc/*docroot*/styles.css HTTP/1.1" 200 -
> 172.16.4.10 - - [25/Feb/2012 09:56:36] ViewVC exited ok
> 172.16.4.10 - - [25/Feb/2012 09:57:00] "GET /viewvc/*docroot*/images/viewvc-logo.png HTTP/1.1" 200 -
> Traceback (most recent call last):
>   File "/usr/local/viewvc/bin/standalone.py", line 879, in <module>
>     main(sys.argv)
>   File "/usr/local/viewvc/bin/standalone.py", line 874, in main
>     serve(options.host, options.port, ready)
>   File "/usr/local/viewvc/bin/standalone.py", line 421, in serve
>     ViewVCHTTPServer(host, port, callback).serve_until_quit()
>   File "/usr/local/viewvc/bin/standalone.py", line 356, in serve_until_quit
>     self.handle_request()
>   File "/usr/local/lib/python2.7/SocketServer.py", line 269, in handle_request
>     self._handle_request_noblock()
>   File "/usr/local/lib/python2.7/SocketServer.py", line 286, in _handle_request_noblock
>     self.handle_error(request, client_address)
>   File "/usr/local/lib/python2.7/SocketServer.py", line 339, 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])
> socket.error: [Errno 32] Broken pipe
> 
> After restarting it it works for a few minutes again (but it's slow) and
> then it crashes again.
> 
> I haven't seen this before. Any ideas?

When I wrote "standalone.py" in the first place years ago, I 
intended it only for experiments to get your feet wet with 
former viewcvs with out the need to hassle with Apache only
to see how viewvc would look like.  For daily use I recommend 
to use viewvc together with Apache.  

From the backtrace you posted I try to guess:  The broken pipe 
exception could mean the the process on the other end (your 
web browser?) did close the connection while viewvc stills
tries to deliver data to it.

Did you put some very huge file into your repository?  I think
it is unlikely that the file *docroot*/images/viewvc-logo.png 
suddenly causes this problem.

Best regards,
Peter Funk
-- 
Peter Funk, home: ✉Oldenburger Str.86, D-27777 Ganderkesee
mobile:+49-179-640-8878 phone:+49-421-20419-0 <http://www.artcom-gmbh.de/>
office: ArtCom GmbH, ✉Haferwende 2, D-28357 Bremen, Germany
DRUPA 3.5.-16.5.2012: Besuchen Sie uns in Halle 4 auf Stand B02

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2926649

To unsubscribe from this discussion, e-mail: [[email protected]].