Giter Site home page Giter Site logo

dripbox's People

Contributors

brainsik avatar epall avatar jmathes 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  avatar  avatar  avatar  avatar  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  avatar  avatar

dripbox's Issues

Untitled

Got another bug, but could be user error. I know my lid closed at some point in my last session, but I didn't notice right away when it threw the error so I don't know what exactly caused it.

I'm sharing error reports because I'm just the kind of person/developer that likes to data horde, but I don't expect you to always jump and fix odd bugs like you have been. Thanks for the effort.

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/fsevents.py", line 44, in run
    _fsevents.loop(self)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/fsevents.py", line 177, in __call__
    self.callback(event)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/dripbox.py", line 94, in update_file
    sftp_client.put(full_path, remote_path)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/paramiko/sftp_client.py", line 561, in put
    fr = self.file(remotepath, 'wb')
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/paramiko/sftp_client.py", line 245, in open
    t, msg = self._request(CMD_OPEN, filename, imode, attrblock)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/paramiko/sftp_client.py", line 628, in _request
    return self._read_response(num)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/paramiko/sftp_client.py", line 675, in _read_response
    self._convert_status(msg)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/paramiko/sftp_client.py", line 703, in _convert_status
    raise IOError(errno.EACCES, text)
IOError: [Errno 13] Permission denied

Does not reopen closed connection

I think I closed my laptop, and didn't notice that drip hadn't started back up.

Here's the error output:

ERROR:paramiko.transport:Socket exception: Connection reset by peer (54)
Exception in thread Thread-2:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/fsevents.py", line 44, in run
_fsevents.loop(self)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/fsevents.py", line 177, in __call__
self.callback(event)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/dripbox.py", line 94, in update_file
sftp_client.put(full_path, remote_path)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/paramiko/sftp_client.py", line 561, in put
fr = self.file(remotepath, 'wb')
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/paramiko/sftp_client.py", line 245, in open
t, msg = self._request(CMD_OPEN, filename, imode, attrblock)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/paramiko/sftp_client.py", line 628, in _request
return self._read_response(num)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/paramiko/sftp_client.py", line 660, in _read_response
raise SSHException('Server connection dropped: %s' % (str(e),))
SSHException: Server connection dropped: 

rsync failure

I just tried to connect to my aws slice, but got this error while trying to sync an out of date remote to the most recent local changes:

rsync: failed to set times on "/ebs1/www/reejay/web": Operation not permitted (1)
rsync: failed to set times on "/ebs1/www/reejay/web/css": Operation not permitted (1)
rsync: failed to set times on "/ebs1/www/reejay/web/images": Operation not permitted (1)
rsync: failed to set times on "/ebs1/www/reejay/web/js": Operation not permitted (1)

sent 324196 bytes  received 247202 bytes  67223.29 bytes/sec
total size is 22716873  speedup is 39.76
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1042) [sender=3.0.7]
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/drip", line 7, in <module>
    execfile(__file__)
  File "/Users/Jordan/Sites/reejay/src/dripbox/scripts/drip", line 62, in <module>
dripbox.rsync(remote, host, args.remote_port, args.sync)
  File "/Users/Jordan/Sites/reejay/src/dripbox/dripbox.py", line 74, in rsync
subprocess.check_call(command)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 488, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['rsync', '--delete', '-rltvze', 'ssh -p22', '--exclude', '.git', '.', '[email protected]:/ebs1/www/reejay']' returned non-zero exit status 23

Rewrite in ruby

Python's packaging pissed me off so badly I'm re-writing this entire project in Ruby.

Intelligently handle git

Both my local and remote copies are clones of the same git repo. If drip could intelligently make use of that, and make it easier for me to keep two git repo's in line, it would be awesome.

Epic fail on non-epall system

i'll try creating a file with cat >
echo asdf > asdf.asdf
^also crashed dripbox

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 522, in __bootstrap_inner
    self.run()
  File "/Library/Python/2.6/site-packages/MacFSEvents-0.2.1-py2.6-macosx-10.6-universal.egg/fsevents.py", line 44, in run
    _fsevents.loop(self)
  File "/Library/Python/2.6/site-packages/MacFSEvents-0.2.1-py2.6-macosx-10.6-universal.egg/fsevents.py", line 173, in __call__
    self.callback(event)
  File "/Users/Joe/dripbox/dripbox.py", line 86, in update_file
    sftp_client.put(full_path, remote_path)
  File "/Library/Python/2.6/site-packages/paramiko-1.7.6-py2.6.egg/paramiko/sftp_client.py", line 561, in put
    fr = self.file(remotepath, 'wb')
  File "/Library/Python/2.6/site-packages/paramiko-1.7.6-py2.6.egg/paramiko/sftp_client.py", line 245, in open
    t, msg = self._request(CMD_OPEN, filename, imode, attrblock)
  File "/Library/Python/2.6/site-packages/paramiko-1.7.6-py2.6.egg/paramiko/sftp_client.py", line 628, in _request
    return self._read_response(num)
  File "/Library/Python/2.6/site-packages/paramiko-1.7.6-py2.6.egg/paramiko/sftp_client.py", line 675, in _read_response
    self._convert_status(msg)
  File "/Library/Python/2.6/site-packages/paramiko-1.7.6-py2.6.egg/paramiko/sftp_client.py", line 701, in _convert_status
    raise IOError(errno.ENOENT, text)
IOError: [Errno 2] No such file

Unknown distribution option: 'install_requires', python26 via macports

Installed it once, but was missing paramiko. Added paramiko using macports, then did python_select to use macports python instead of system default. But that lost my install of drip, so I did:

Jeezbook|local_code_stash: which drip
/usr/local/bin/drip
Jeezbook|local_code_stash: rm -rf /usr/local/bin/drip
Jeezbook|local_code_stash: drip
-bash: /usr/local/bin/drip: No such file or directory

I didn't notice this at first, but now it makes me think that I uninstalled it wrong. I continued on and tried to reinstall drip, but get the following, and drip doesn't work.

$ dripbox: sudo python setup.py install
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
running install
running build
running build_py
creating build
creating build/lib
copying dripbox.py -> build/lib
running build_scripts
creating build/scripts-2.6
copying and adjusting scripts/drip -> build/scripts-2.6
changing mode of build/scripts-2.6/drip from 644 to 755
running install_lib
copying build/lib/dripbox.py -> /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages
byte-compiling /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/dripbox.py to dripbox.pyc
running install_scripts
copying build/scripts-2.6/drip -> /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin
changing mode of /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/drip to 755
running install_egg_info
Writing /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Dripbox-0.1.6-py2.6.egg-info
$ dripbox: which drip
$ dripbox:

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.