Hello John, from the exception you provided, it seems that an old version bookkeeper client talking to a new version bookie server.
After BOOKKEEPER-135 is applied, bookkeeper client needs to provide password to do fencing for recovery, as code: https://github.com/apache/bookkeeper/blob/47244dd77fb291ec95d5da4c96751ea92bc2d516/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/BookieServer.java#L384 from client side, bookkeeper client provides its protocol version and password when readAndFenceLedger https://github.com/apache/bookkeeper/blob/47244dd77fb291ec95d5da4c96751ea92bc2d516/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/PerChannelBookieClient.java#L282 and current protocol version is 2. https://github.com/apache/bookkeeper/blob/47244dd77fb291ec95d5da4c96751ea92bc2d516/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/BookieProtocol.java#L40 so could you provide which version of bookkeeper client & bookie server you used? Thanks, Sijie On Fri, May 11, 2012 at 5:40 AM, John Nagro <[email protected]> wrote: > Flavio - > > It appears that the second message is generated based on the version in > the packet header, not the password itself: > > > https://github.com/apache/bookkeeper/blob/trunk/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/BookieServer.java#L390 > > Am I missing something? > > Thanks! > > -John > > > On Thu, May 10, 2012 at 5:37 PM, Flavio Junqueira <[email protected]>wrote: > >> The second message refers to fencing, so it sounds like you're trying to >> recover the ledger. The fencing mechanism seems to be rejecting your >> request because the password is incorrect. >> >> -Flavio >> >> On May 10, 2012, at 5:16 PM, John Nagro wrote: >> >> Hello - >> >> I've been trying to recover some old ledgers on the server and i thought >> i was having an issue with my supplied passwords, but i suspect it may be >> something else. On the client i see warnings for code 102 (which i know is >> an auth issue), on the server i see these log lines: >> >> 2012-05-10 11:05:01,493 - WARN [NIOServerFactory-3181:BookieServer@383] >> - Ledger 251784 fenced by >> Socket[addr=/***REDACTED***,port=57050,localport=3181] >> 2012-05-10 11:05:01,493 - ERROR [NIOServerFactory-3181:BookieServer@390] >> - Password not provided, Not safe to fence 251784 >> 2012-05-10 11:05:01,493 - ERROR [NIOServerFactory-3181:BookieServer@414] >> - Unauthorized access to ledger 251784 >> >> org.apache.bookkeeper.bookie.BookieException$BookieUnauthorizedAccessException >> at >> org.apache.bookkeeper.bookie.BookieException.create(BookieException.java:46) >> at >> org.apache.bookkeeper.proto.BookieServer.processPacket(BookieServer.java:391) >> at >> org.apache.bookkeeper.proto.NIOServerFactory$Cnxn.readRequest(NIOServerFactory.java:315) >> at >> org.apache.bookkeeper.proto.NIOServerFactory$Cnxn.doIO(NIOServerFactory.java:213) >> at >> org.apache.bookkeeper.proto.NIOServerFactory.run(NIOServerFactory.java:124) >> >> >> Looking at the code, I think these errors come from here: >> >> >> https://github.com/apache/bookkeeper/blob/trunk/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/BookieServer.java#L387 >> >> Which looks like it relates to the version number extracted from the >> client packet? >> >> >> https://github.com/apache/bookkeeper/blob/trunk/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/BookieServer.java#L389 >> >> Looks like those messages were added on April 2nd: >> >> >> https://github.com/apache/bookkeeper/commit/47244dd77fb291ec95d5da4c96751ea92bc2d516#diff-10 >> >> >> I'm running the latest published 4.1-SNAPSHOT client-side. >> >> Am i experiencing a password issue? Or is it not getting to the point >> where it is checked? Any ideas would be appreciated, thanks! >> >> -John Nagro >> >> >> flavio >> junqueira >> senior research scientist >> >> [email protected] >> direct +34 93-183-8828 >> >> avinguda diagonal 177, 8th floor, barcelona, 08018, es >> phone (408) 349 3300 fax (408) 349 3301 >> >> >
