joe42 / CloudFusion

Linux file system (FUSE) to access Dropbox, Sugarsync, Amazon S3, Google Storage, Google Drive or WebDAV servers.
http://joe42.github.com/CloudFusion/
288 stars 35 forks source link

Bad address Error Starting CloudFusion with Dropbox #18

Closed joe42 closed 9 years ago

joe42 commented 9 years ago

@maxstainer: You can open an issue here if you experience a problem with CloudFusion. It seems that your configuration file for Dropbox is not correct. Please post the command you used to start CloudFusion, the complete error message and the ini file you used (without username and password).

Process Process-1:
Traceback (most recent call last):
   File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
     self.run()
   File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python2.7/dist-packages/CloudFusion-6.4.16-py2.7.egg/cloudfusion/main.py", line 48, in               set_configuration
shutil.copyfile(config_file, virtual_configuration_file)
  File "/usr/lib/python2.7/shutil.py", line 84, in copyfile
    copyfileobj(fsrc, fdst)
IOError: [Errno 14] Bad address
maxstainer commented 9 years ago

@joe42
Subfolders are created under the mountpoiunt but if I try to write in the folder returns the error permission denided . I tried to map both whole ( dropbox as well as app_data) same problem. This is my config file which is the template that I have taken as instructed

cloudfusion --config /home/max/Dropbox.ini /home/max/dp-cloudfusion/ foreground log

Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/CloudFusion-6.4.16-py2.7.egg/cloudfusion/fuse.py", line 301, in wrapper return func(_args, *_kwargs) or 0 File "/usr/local/lib/python2.7/dist-packages/CloudFusion-6.4.16-py2.7.egg/cloudfusion/fuse.py", line 376, in write return self.operations('write', path, data, offset, fh) File "/usr/local/lib/python2.7/dist-packages/CloudFusion-6.4.16-py2.7.egg/cloudfusion/fuse.py", line 511, in call return getattr(self, op)(_args) File "/usr/local/lib/python2.7/dist-packages/CloudFusion-6.4.16-py2.7.egg/cloudfusion/pyfusebox/transparent_configurable_pyfusebox.py", line 125, in write return super( TransparentConfigurablePyFuseBox, self ).write(path, buf, offset, fh) File "/usr/local/lib/python2.7/dist-packages/CloudFusion-6.4.16-py2.7.egg/cloudfusion/pyfusebox/configurable_pyfusebox.py", line 158, in write written_bytes = self.virtual_file.write(buf, offset) File "/usr/local/lib/python2.7/dist-packages/CloudFusion-6.4.16-py2.7.egg/cloudfusion/pyfusebox/virtualconfigfile.py", line 47, in write self._initialize_store() File "/usr/local/lib/python2.7/dist-packages/CloudFusion-6.4.16-py2.7.egg/cloudfusion/pyfusebox/virtualconfigfile.py", line 122, in _initialize_store store = self.get_new_store(service, config) #catch error? File "/usr/local/lib/python2.7/dist-packages/CloudFusion-6.4.16-py2.7.egg/cloudfusion/pyfusebox/virtualconfigfile.py", line 163, in get_new_store raise e TypeError: Incorrect padding Process Process-2: Traceback (most recent call last): File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run self._target(_self._args, **self._kwargs) File "/usr/local/lib/python2.7/dist-packages/CloudFusion-6.4.16-py2.7.egg/cloudfusion/main.py", line 48, in set_configuration shutil.copyfile(config_file, virtual_configuration_file) File "/usr/lib/python2.7/shutil.py", line 84, in copyfile copyfileobj(fsrc, fdst) IOError: [Errno 14] Bad address

joe42 commented 9 years ago

Hi,

From what I can see, this seems to be an issue in your configuration file. The simplest way to exclude this possibility would be to create a new copy of the file Dropbox.ini from your local git clone of CloudFusion, only add your username and password, and try again. Or you can post the complete ini file online without user/pwd on https://gist.github.com/, so I can take a look at it. You can post your log file (.cloudfusion/logs/dropbox.log) as well, but first remove all occurrences of your username and password from it.