Code Monkey home page Code Monkey logo

pastehub's People

Contributors

kiyoka avatar purcell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pastehub's Issues

`pastehub-clientSync' exit, when masterdb server is down.

When masterdb server is down and notifier is alive.
pastehub-clientSync exit with ECONNREFUSED.

Info: server is stable:    1342787821=2012-07-20.12:37:00
Info: local  has new data
synchronizing...
/usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:762:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:762:in `open'
from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:762:in `block in connect'
from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/timeout.rb:54:in `timeout'
from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/timeout.rb:99:in `timeout'
from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:762:in `connect'
from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:755:in `do_start'
from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:744:in `start'
from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:557:in `start'
from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/pastehub-0.1.2/lib/pastehub/client.rb:23:in `getList'
from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/pastehub-0.1.2/bin/pastehub-clientSync:16:in `sync_db'
from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/pastehub-0.1.2/bin/pastehub-clientSync:76:in `syncMain'
from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/pastehub-0.1.2/bin/pastehub-clientSync:117:in `block in main'

pastehub-clientSync fails with RuntimeError Exception for cloesd GDBM

Info: masterList lines = 100  7199Bytes
Info: download 1 records.
Info:   upload 0 records.
Info:   send signal to Emacs.
Emacs: no process found
Info: server is stable:    1341707393=2012-07-08.00:29:52
/usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/pastehub-0.1.0/lib/pastehub/db.rb:41:in `[]': closed GDBM file (RuntimeError)
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/pastehub-0.1.0/lib/pastehub/db.rb:41:in `getValue'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/pastehub-0.1.0/lib/pastehub/client.rb:128:in `serverHasNew?'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/pastehub-0.1.0/lib/pastehub/client.rb:93:in `block (3 levels) in wait_notify'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:395:in `call_block'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:386:in `<<'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:94:in `read'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2776:in `read_chunked'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2750:in `read_body_0'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2710:in `read_body'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/pastehub-0.1.0/lib/pastehub/client.rb:91:in `block (2 levels) in wait_notify'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1322:in `block (2 levels) in transport_request'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2671:in `reading_body'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1321:in `block in transport_request'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1316:in `catch'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1316:in `transport_request'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1293:in `request'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/pastehub-0.1.0/lib/pastehub/client.rb:89:in `block in wait_notify'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:745:in `start'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:557:in `start'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/pastehub-0.1.0/lib/pastehub/client.rb:87:in `wait_notify'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/pastehub-0.1.0/bin/pastehub-clientSync:65:in `syncMain'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/pastehub-0.1.0/bin/pastehub-clientSync:119:in `block in main'

Timeout::Error Exception occured at `PastehubSync', in `getValue' method.

Error message is:

Synchronizing...
Error: fails 'getValue' from server.:Timeout::Error
/usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/pastehub-0.1.9/lib/pastehub/client.rb:228:in `getValue': undefined method `read_body' for nil:NilClass (NoMethodError)
from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/pastehub-0.1.9/lib/pastehub/clientsync.rb:48:in `syncDb'
from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/pastehub-0.1.9/lib/pastehub/clientsync.rb:144:in `syncMain'
from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/pastehub-0.1.9/bin/PastehubSync:48:in `block in main'

`PastehubSync' abort on exception, when timeout occur.

/usr/local/stow/ruby-1.9.3-p286/lib/ruby/1.9.1/net/protocol.rb:146:in `rescue in rbuf_fill': Timeout::Error (Timeout::Error)
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/1.9.1/net/protocol.rb:140:in `rbuf_fill'
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/1.9.1/net/protocol.rb:122:in `readuntil'
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/1.9.1/net/protocol.rb:132:in `readline'
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/1.9.1/net/http.rb:2562:in `read_status_line'
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/1.9.1/net/http.rb:2551:in `read_new'
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/1.9.1/net/http.rb:1319:in `block in transport_request'
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/1.9.1/net/http.rb:1316:in `catch'
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/1.9.1/net/http.rb:1316:in `transport_request'
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/1.9.1/net/http.rb:1293:in `request'
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/1.9.1/net/http.rb:1307:in `send_entity'
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/1.9.1/net/http.rb:1096:in `post'
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/pastehub-0.1.5/lib/pastehub/client.rb:201:in `block in putValue'
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/1.9.1/net/http.rb:745:in `start'
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/1.9.1/net/http.rb:557:in `start'
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/pastehub-0.1.5/lib/pastehub/client.rb:200:in `putValue'
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/pastehub-0.1.5/bin/PastehubSync:197:in `signalHandler'
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/pastehub-0.1.5/bin/PastehubSync:224:in `block in main'
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/pastehub-0.1.5/bin/PastehubSync:230:in `call'
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/pastehub-0.1.5/bin/PastehubSync:230:in `join'
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/pastehub-0.1.5/bin/PastehubSync:230:in `block in main'
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/pastehub-0.1.5/bin/PastehubSync:230:in `each'
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/pastehub-0.1.5/bin/PastehubSync:230:in `main'
    from /usr/local/stow/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/pastehub-0.1.5/bin/PastehubSync:234:in `<top (required)>'
    from /usr/local/bin/PastehubSync:23:in `load'
    from /usr/local/bin/PastehubSync:23:in `<main>'

`PastehubSync' abort on exception, when disconnect from masterdb.rb.

Aborted when disconnected from server side ( server is masterdb.rb )

$ pastehub-clientSync
.
.
.
synchronizing...
Info: download 0 records.
Info:   upload 2 records.
  key=1346567794=2012-09-02.06:36:34=b730e4e3c594f46f75aa8aa59d643065b606a035
  key=1346567775=2012-09-02.06:36:15=51fa5866c8ce751dda8048f1f092c65274637e40
Info:   send signal to Emacs.
Emacs: no process found
Info: server has new data: 1346567775=2012-09-02.06:36:15=51fa5866c8ce751dda8048f1f092c65274637e40
Info: fetch one entry
synchronizing...
/usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:141:in `read_nonblock': Connection reset by peer (Errno::ECONNRESET)
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:141:in `rbuf_fill'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:122:in `readuntil'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/protocol.rb:132:in `readline'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2562:in `read_status_line'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2551:in `read_new'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1319:in `block in transport_request'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1316:in `catch'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1316:in `transport_request'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1293:in `request'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1307:in `send_entity'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:1096:in `post'
    from /home/kiyoka/work/github/pastehub/lib/pastehub/client.rb:60:in `block in putValue'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:745:in `start'
    from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:557:in `start'
    from /home/kiyoka/work/github/pastehub/lib/pastehub/client.rb:59:in `putValue'
    from bin/pastehub-clientSync:55:in `block in syncDb'
    from bin/pastehub-clientSync:53:in `each'
    from bin/pastehub-clientSync:53:in `syncDb'
    from bin/pastehub-clientSync:135:in `syncMain'
    from bin/pastehub-clientSync:196:in `block in main'

MacRuby + PasteSync crashes (SEGV) when new paste data comes.

MacRuby + PasteSync crashes (SEGV) when new paste data comes.

GCing...
Info:   delete 15 records.
<< ONLINE >>
Info: fetch ALL entries
Info: posted data from MacOS X.
Info: masterList lines = 10  719Bytes
synchronizing...
Info: push to MacOS X clipboard.
Info: download 4 records.
Info:   upload 0 records.
Info:   send signal to Emacs.
No matching processes belonging to you were found
<< COUNTUP >>
Info: force sync.
GCing...
Info:   delete 4 records.
Info: fetch ALL entries
Info: masterList lines = 10  719Bytes
synchronizing...
Info: push to MacOS X clipboard.
Info: download 1 records.
Info:   upload 0 records.
Info:   send signal to Emacs.
No matching processes belonging to you were found
<< COUNTUP >>
Info: server has new data: 1360975232=2013-02-16.00:40:32=d3964f9dad9f60363c81b688324d95b4ec7c8038

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xfffffffbff81ae0f
[Switching to process 1384 thread 0x1b0b]
0x00007fff93927e04 in _cache_getMethod ()

It's may be gdbm problem?

`PastehubSync' abort on nil object, when getaddrinfo fails.

PastehubSync exit. It is nil object.

Info: force sync.
GCing...
Info:   delete 24 records.
Info: fetch ALL entries
Error: fails 'getList' from server.:getaddrinfo: nodename nor servname provided, or not known
/usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/pastehub-0.1.9/lib/pastehub/client.rb:209:in `getList': undefined method `read_body' for nil:NilClass (NoMethodError)
from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/pastehub-0.1.9/lib/pastehub/clientsync.rb:109:in `fetchServerList'
from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/pastehub-0.1.9/lib/pastehub/clientsync.rb:143:in `syncMain'
from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/pastehub-0.1.9/bin/PastehubSync:48:in `block in main'

server/notifier.rb is down by OutOfMemoryError: Java heap space

Error message:

Failed to accept a connection.
java.lang.OutOfMemoryError: Java heap space

Unexpected exception in Ruby verticle
java.lang.OutOfMemoryError: Java heap space

Exception in thread "vert.x-acceptor-thread-0" java.lang.OutOfMemoryError: Java heap space

`pastehub-clientSync' exit, when Oeration timed out occur.

waiting...
Info: posted data from MacOS X.
/usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:762:in initialize': Operation timed out - connect(2) (Errno::ETIMEDOUT) from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:762:inopen'
from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:762:in block in connect' from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/timeout.rb:54:intimeout'
from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/timeout.rb:99:in timeout' from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:762:inconnect'
from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:755:in do_start' from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:744:instart'
from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:557:in start' from /usr/local/stow/ruby-1.9.3-p194/lib/ruby/gems/1.9.1/gems/pastehub-0.1.0/lib/pastehub/client.rb:87:inwait_notify'
from ./pastehub-clientSync:65:in syncMain' from ./pastehub-clientSync:117:inblock in main'
bash-4.2$

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.