unexpected status codes

Tried to get the webdav working again. It was going well and then it just hung (love the status bar btw). The debug screen wasn't showing anything happening. Report errors gave this:

JavaScript Error: "[Exception... "'Unexpected status code 500 in Zotero.Sync.Storage.setStorageModificationTime()' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]"]

1947752975

Here are the last few line of debug before I cloased firefox:

zotero(3): Upload of attachment 629 finished with status code 204

zotero(3): HTTP PUT '1177579479' to https://darwinev0lved@gmx.co.uk:********@storage-file-eu.gmx.com/zotero/PZAS8WBT.prop

zotero(3): onStartRequest

zotero(3): onStopRequest

zotero(3): Upload of attachment 15924 finished with status code 204

zotero(3): HTTP PUT '1177579631' to https://darwinev0lved@gmx.co.uk:********@storage-file-eu.gmx.com/zotero/PHIU5EKT.prop

zotero(5): SELECT version FROM version WHERE schema='lastlocalsync'

zotero(5): SELECT version FROM version WHERE schema='lastlocalsync'

zotero(5): SELECT version FROM version WHERE schema='lastlocalsync'

zotero(5): SELECT version FROM version WHERE schema='lastlocalsync'


Is the 204 status code good or bad? It had synced 250megs worth before choking, I'm just hoping I don't hit my upload limit before sorting this out!

Regards, Jon.
  • edited October 16, 2008
    204 is good. 500 is bad. Are you able to find the section of the debug output where it gets the 500 error code?

    Grab the latest trunk build before trying, as I added a bit more debugging for that error.
  • edited October 16, 2008
    hmm, OK installed the latest build r3567.
    Tried syncing and got "storage sync is not active"
    Tried to verify server and got a popup with a "-6"
    I can get into my storage via My Network Places, so I don't think its a problem their end.

    Here's the debug:
    zotero(3): Verifying storage

    zotero(3): HTTP OPTIONS for https://darwinev0lved@gmx.co.uk:********@storage-file-eu.gmx.com/zotero/

    zotero(3): ===>200<===(number)

    zotero(3): Date: Fri, 17 Oct 2008 02:00:30 GMT
    Server: Apache/2.0.61 (Unix) mod_ssl/2.0.61 OpenSSL/0.9.7l DAV/2 Catacomb/static
    DAV: 1,2
    MS-Author-Via: DAV
    Allow: OPTIONS,GET,HEAD,POST,DELETE,TRACE,PROPFIND,PROPPATCH,COPY,MOVE,LOCK,UNLOCK,SEARCH
    DASL: <DAV:basicsearch>
    Content-Length: 0
    Connection: close
    Content-Type: text/plain


    zotero(3):

    zotero(3): ===>200<===(number)

    zotero(3): HTTP PROPFIND <?xml version="1.0" encoding="utf-8" ?>
    <D:propfind xmlns:D="DAV:">
    <D:prop>
    <D:getcontentlength/>
    </D:prop>
    </D:propfind> to https://darwinev0lved@gmx.co.uk:********@storage-file-eu.gmx.com/zotero/

    zotero(3): <?xml version="1.0" encoding="utf-8"?>
    <D:multistatus xmlns:D="DAV:" xmlns:ns0="DAV:">
    <D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/">
    <D:href>/zotero</D:href>
    <D:propstat>
    <D:prop>
    <D:getcontentlength>0</D:getcontentlength>
    </D:prop>
    <D:status>HTTP/1.1 200 OK</D:status>
    </D:propstat>
    </D:response>
    </D:multistatus>


    zotero(3): ===>207<===(number)

    zotero(3): HTTP PUT '' to https://darwinev0lved@gmx.co.uk:********@storage-file-eu.gmx.com/zotero/zotero-test-file

    zotero(3): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>500 Internal Server Error</title>
    </head><body>
    <h1>Internal Server Error</h1>
    <p>The server encountered an internal error or
    misconfiguration and was unable to complete
    your request.</p>
    <p>Please contact the server administrator,
    root@webde.de and inform them of the time the error occurred,
    and anything you might have done that may have
    caused the error.</p>
    <p>More information about this error may be available
    in the server error log.</p>
    <hr>
    <address>Apache/2.0.61 (Unix) mod_ssl/2.0.61 OpenSSL/0.9.7l DAV/2 Catacomb/static Server at storage-file-eu.gmx.com Port 443</addr
    ess>
    </body></html>


    zotero(3): ===>500<===(number)

    report id. 1472696153

    Hope that helps. Off to bed now.
    Jon.

    OK cured problem by resetting everything. Trying the webdav sync again.
  • A 500 status code is a server error. As long as Zotero is making valid requests, which it seems to be, there's not much we can do about it. Is it possible you're hitting an upload limit of some sort?
  • Not yet. Having reset everything including manually deleting all the files off the server, it is syncing again. It got stuck at about half way through last time so there's still another 200meg or so to go before I get to that point.
  • OK, figured out why it keeps getting stuck. I really should not do this kind of thing when tired - obvious solutions cease to be.
    Unfortunately GMX has a 1,000 file per folder limit. This wasn't a problem in earlier versions of the sync but now its uploading both a zipped file and the .prop file (what is that by the way, I'm assuming its meant to do that / be there?) I'm over 1,000 files when I get to half way. So I'm going to have to look for some other web serving solution.
  • edited October 17, 2008
    Switched to boxnet and after about three hours we have "No files left to upload"
    That was with r3564. So all problems seem to be resolved syncing up. Will see how it does pulling the data down later.
    And it all came down to my test profile too.
    I've hopefully said it before, but Zotero is brilliant.
    Thanks, Jon.
  • The .prop file holds metadata about the associated ZIP file (currently just a timestamp). We switched to those from native WebDAV properties so that the sync can be used on servers that haven't fully implemented the WebDAV protocol (such as Sakai's).

    Glad to hear you got it working.
Sign In or Register to comment.