Opened 13 years ago

Closed 13 years ago

#2732 closed defect (incomplete)

Server component errors

Reported by: icarito Owned by: jlew
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: FileShare Version: Unspecified
Severity: Unspecified Keywords:
Cc: icarito Distribution/OS: Unspecified
Bug Status: Needinfo

Description

localhost - - [26/Mar/2011 07:14:38] code 500, message Server Error or Invalid Request
localhost - - [26/Mar/2011 07:14:38] "POST /upload HTTP/1.1" 500 -


Exception happened during processing of request from ('127.0.0.1', 59661)
Traceback (most recent call last):

File "/usr/lib/python2.6/SocketServer.py", line 558, in process_request_thread

self.finish_request(request, client_address)

File "/usr/lib/python2.6/SocketServer.py", line 320, in finish_request

self.RequestHandlerClass(request, client_address, self)

File "/usr/lib/python2.6/SocketServer.py", line 615, in init

self.handle()

File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle

self.handle_one_request()

File "/usr/lib/python2.6/BaseHTTPServer.py", line 323, in handle_one_request

method()

File "server.py", line 217, in do_POST

self.send_error(500,'Server Error or Invalid Request')

File "/usr/lib/python2.6/BaseHTTPServer.py", line 357, in send_error

self.send_response(code, message)

File "/usr/lib/python2.6/BaseHTTPServer.py", line 382, in send_response

(self.protocol_version, code, message))

File "/usr/lib/python2.6/socket.py", line 300, in write

self.flush()

File "/usr/lib/python2.6/socket.py", line 286, in flush

self._sock.sendall(buffer)

error: [Errno 32] Broken pipe

Change History (6)

comment:1 Changed 13 years ago by jlew

  • Bug Status changed from Unconfirmed to Needinfo
  • Status changed from new to accepted

Does the server have write permissions to the folder it is running in (especially shared_files)?

Try checking out the newest version of the server (added in more descriptive error handlers to help diagnose this problem).

comment:2 Changed 13 years ago by icarito

Hi, I applied your patch but I still get the following (the server does have permissions on shared_files):

localhost - - [30/Mar/2011 17:10:48] "POST /upload HTTP/1.1" 500 -


Exception happened during processing of request from ('127.0.0.1', 34731)
Traceback (most recent call last):

File "/usr/lib/python2.6/SocketServer.py", line 558, in process_request_thread

self.finish_request(request, client_address)

File "/usr/lib/python2.6/SocketServer.py", line 320, in finish_request

self.RequestHandlerClass(request, client_address, self)

File "/usr/lib/python2.6/SocketServer.py", line 615, in init

self.handle()

File "/usr/lib/python2.6/BaseHTTPServer.py", line 329, in handle

self.handle_one_request()

File "/usr/lib/python2.6/BaseHTTPServer.py", line 323, in handle_one_request

method()

File "server.py", line 218, in do_POST

self.send_error(500,'Server IO Error: %s' % str(err))

File "/usr/lib/python2.6/BaseHTTPServer.py", line 357, in send_error

self.send_response(code, message)

File "/usr/lib/python2.6/BaseHTTPServer.py", line 382, in send_response

(self.protocol_version, code, message))

File "/usr/lib/python2.6/socket.py", line 300, in write

self.flush()

File "/usr/lib/python2.6/socket.py", line 286, in flush

self._sock.sendall(buffer)

error: [Errno 32] Broken pipe


comment:3 Changed 13 years ago by jlew

Is there an error report on the client computer?

Does the sever work with any file? Have you tried to upload a very small file?

I will have to try more testing on my end to see if I can reproduce this error.

comment:4 Changed 13 years ago by icarito

I'm sorry I'm not more informative. I see no error on the client side in the logs.
On the other hand, the server does save what seem like correct .xoj files.

The error happens for files of any size.

comment:5 Changed 13 years ago by jlew

Please try grabbing the server code again, this time I have it catching the broken pipe so hopefully I'll get a useful error message. It seams trying to send the error message to the client was hiding the error message I need to figure out the issue.

comment:6 Changed 13 years ago by jlew

  • Resolution set to incomplete
  • Status changed from accepted to closed
Note: See TracTickets for help on using tickets.