GithubHelp home page GithubHelp logo

cozy-labs / cozy-desktop Goto Github PK

View Code? Open in Web Editor NEW
98.0 13.0 45.0 18.82 MB

File Synchronisation for Cozy on Desktop and Laptop

Home Page: https://cozy-labs.github.io/cozy-desktop/

License: GNU Affero General Public License v3.0

JavaScript 92.80% HTML 0.10% Elm 5.51% Shell 0.28% Python 0.07% Stylus 0.74% jq 0.38% PowerShell 0.13%
cozy desktop linux cozy-v3 sync electron elm pouchdb windows javascript

cozy-desktop's People

Contributors

aenario avatar archangegabriel avatar bnjbvr avatar cballevre avatar clochix avatar dependabot[bot] avatar enguerran avatar frankrousseau avatar gelnior avatar greenkeeper[bot] avatar greenkeeperio-bot avatar hleroy avatar jsilvestre avatar kivengh avatar kloadut avatar kosssi avatar lapalice avatar ljinod avatar nono avatar poupotte avatar rzr avatar sblaisot avatar sebn avatar taratatach avatar tpetitberghien avatar zuron7 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  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  avatar  avatar  avatar  avatar  avatar  avatar

cozy-desktop's Issues

Error on first sync

info - Filesystem  | Start watching file system for changes
info - DB | Design document created: _design/folder
info - DB | Design document created: _design/file
info - DB | Design document created: _design/binary
info - DB | Design document created: _design/localrev
info - Replication | Start first replication to resync local device and your Cozy.
info - Replication | Resync from sequence 0
error - Replication | {}
error - Replication | undefined
error - Replication | An error occured during replication.

Let me know if there are any more details you'd need.

Bug : tous les fichiers font 20.8Ko

This was originally reported by @combaudon at cozy/cozy-sync#73

Par contre bug:
Tout mes fichiers synchronisés font le même poid (20,8 Ko) et sont illisibles (.ODT, .PDF, .DOC) excepté les fichiers .JPG qui ont conservé aussi leur libellé mais à l'ouverture sont tous les mêmes!
En fait il s'agit d'un .JPG qui fait 20,8 Ko et que j'avais déposé dans un répertoire de "FILE" puis ensuite transféré via COZYCLOUD dans "PHOTO".

Salut @combaudon et désolé pour le retard. Nous avons mis le client desktop en standby pour le mois à venir pour se focaliser sur le client mail et j'ai laissé passer ton issue dans l'oubli. Toute mes excuses.

Pour ton problème, ça ressemble à une erreur de transfert mal géré par le client, qui mettrait du coup le message d'erreur dans les fichier à la place de leur contenu correct. Peux-tu essayer de changer l'extension d'un fichier en .txt et de l'ouvrir ?

Can't get stuff installed

It's been a while I am trying to install cozy-desktop on OSX.
I installed node (but don't know how to install 'build-essentatials' on OSX).
Everything goes fine untill I launch cozy-desktop sync which stays at "info - Remote watcher | Start building your filesystem on your device."
At this point I can see my device on my cozy cloud

Then after installing GUI, and after 'node_modules/.bin/gulp leveldown' the command cozy-desktop sync do not work and return :
"/usr/local/lib/node_modules/cozy-desktop/node_modules/pouchdb/node_modules/leveldown/node_modules/bindings/bindings.js:83
throw e
^
Error: dlopen(/usr/local/lib/node_modules/cozy-desktop/node_modules/pouchdb/node_modules/leveldown/build/Release/leveldown.node, 1): no suitable image found. Did find:
/usr/local/lib/node_modules/cozy-desktop/node_modules/pouchdb/node_modules/leveldown/build/Release/leveldown.node: mach-o, but wrong architecture
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at bindings (/usr/local/lib/node_modules/cozy-desktop/node_modules/pouchdb/node_modules/leveldown/node_modules/bindings/bindings.js:76:44)
at Object. (/usr/local/lib/node_modules/cozy-desktop/node_modules/pouchdb/node_modules/leveldown/index.js:1:99)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)"

GUI will never show and files will never synced.

(I have try to install /uninstall multiple times and have to say that on the first time GUI was launching, even the icon tray)

EDIT : renaming /usr/local/lib/node_modules/cozy-desktop/node_modules/nodewebkit/package.json into _package.json allow me to launch UI, system icon tray is here and UI can be launched without errors. But sync is still not working

Install from npm failed on debian jessie

Install from npm failed on debian jessie

root@x200:~# npm install cozy-desktop
npm WARN install Couldn't install optional dependency: Unsupported
npm WARN deprecated [email protected]: Please update to the latest object-keys

> [email protected] install /root/node_modules/leveldown
> node-gyp rebuild

Usage: gyp_main.py [options ...] [build_file ...]

gyp_main.py: error: no such option: --no-parallel
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:355:16)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 4.2.0-0.bpo.1-amd64
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/node_modules/leveldown
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 
npm WARN install:[email protected] [email protected] install: `node-gyp rebuild`
npm WARN install:[email protected] Exit status 1
/root
├── [email protected] 
├─┬ [email protected] 
│ ├── [email protected] 
│ └── [email protected] 
├── [email protected] 
├── [email protected] 
├─┬ [email protected] 
│ ├─┬ [email protected] 
│ │ ├── [email protected] 
│ │ └── [email protected] 
│ ├─┬ [email protected] 
│ │ ├── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ └── [email protected] 
│ │ ├── [email protected] 
│ │ └─┬ [email protected] 
│ │   ├─┬ [email protected] 
│ │   │ └── [email protected] 
│ │   ├─┬ [email protected] 
│ │   │ └─┬ [email protected] 
│ │   │   ├── [email protected] 
│ │   │   └── [email protected] 
│ │   └── [email protected] 
│ ├── [email protected] 
│ └─┬ [email protected] 
│   └─┬ [email protected] 
│     └── [email protected] 
├── [email protected] 
├─┬ [email protected] 
│ ├─┬ [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ └── [email protected] 
│ │ └── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├─┬ [email protected] 
│ │ └── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├─┬ [email protected] 
│ │ └── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├─┬ [email protected] 
│ │ └── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├─┬ [email protected] 
│ │ ├── [email protected] 
│ │ └── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├─┬ [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected] 
│ │ └── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ └── [email protected] 
├─┬ [email protected] 
│ ├── [email protected] 
│ ├─┬ [email protected] 
│ │ └── [email protected] 
│ ├── [email protected] 
│ └── [email protected] 
├─┬ [email protected] 
│ ├─┬ [email protected] 
│ │ └── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ └── [email protected] 
├─┬ [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ └─┬ [email protected] 
│   ├── [email protected] 
│   └─┬ [email protected] 
│     ├── [email protected] 
│     ├── [email protected] 
│     └── [email protected] 
├─┬ [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ └── [email protected] 
├─┬ [email protected] 
│ ├─┬ [email protected] 
│ │ └── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ └── [email protected] 
├─┬ [email protected] 
│ ├─┬ [email protected] 
│ │ └── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ └── [email protected] 
├── [email protected] 
├─┬ [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ └─┬ [email protected] 
│   └─┬ [email protected] 
│     └── [email protected] 
├── [email protected] 
├── [email protected] 
├─┬ [email protected] 
│ └── [email protected] 
├─┬ [email protected] 
│ ├── [email protected] 
│ ├─┬ [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ └── [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected] 
│ │ └─┬ [email protected] 
│ │   └─┬ [email protected] 
│ │     └── [email protected] 
│ ├─┬ [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ ├─┬ [email protected] 
│ │ │ │ └── [email protected] 
│ │ │ └── [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ └── [email protected] 
│ │ ├── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ └── [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ └── [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ ├── [email protected] 
│ │ │ └── [email protected] 
│ │ ├── [email protected] 
│ │ └── [email protected] 
│ ├── [email protected] 
│ ├─┬ [email protected] 
│ │ └─┬ [email protected] 
│ │   └── [email protected] 
│ ├─┬ [email protected] 
│ │ ├── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ └─┬ [email protected] 
│ │ │   └─┬ [email protected] 
│ │ │     └── [email protected] 
│ │ └─┬ [email protected] 
│ │   ├─┬ [email protected] 
│ │   │ ├── [email protected] 
│ │   │ ├── [email protected] 
│ │   │ └── [email protected] 
│ │   ├─┬ [email protected] 
│ │   │ ├── [email protected] 
│ │   │ ├─┬ [email protected] 
│ │   │ │ ├─┬ [email protected] 
│ │   │ │ │ ├── [email protected] 
│ │   │ │ │ └── [email protected] 
│ │   │ │ └── [email protected] 
│ │   │ ├── [email protected] 
│ │   │ ├─┬ [email protected] 
│ │   │ │ ├── [email protected] 
│ │   │ │ └── [email protected] 
│ │   │ ├── [email protected] 
│ │   │ ├── [email protected] 
│ │   │ └── [email protected] 
│ │   ├─┬ [email protected] 
│ │   │ ├── [email protected] 
│ │   │ ├── [email protected] 
│ │   │ ├── [email protected] 
│ │   │ ├── [email protected] 
│ │   │ └── [email protected] 
│ │   └── [email protected] 
│ └─┬ [email protected] 
│   └── [email protected] 
├─┬ [email protected] 
│ ├─┬ [email protected] 
│ │ ├── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ ├── [email protected] 
│ │ │ └─┬ [email protected] 
│ │ │   └── [email protected] 
│ │ └── [email protected] 
│ ├─┬ [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ └─┬ [email protected] 
│ │ │   └─┬ [email protected] 
│ │ │     └── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ ├─┬ [email protected] 
│ │ │ │ ├── [email protected] 
│ │ │ │ └── [email protected] 
│ │ │ └─┬ [email protected] 
│ │ │   └── [email protected] 
│ │ └─┬ [email protected] 
│ │   ├── [email protected] 
│ │   ├─┬ [email protected] 
│ │   │ ├── [email protected] 
│ │   │ ├── [email protected] 
│ │   │ ├── [email protected] 
│ │   │ └── [email protected] 
│ │   └─┬ [email protected] 
│ │     └── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ └── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├─┬ [email protected] 
│ └── [email protected] 
├─┬ [email protected] 
│ ├── [email protected] 
│ ├─┬ [email protected] 
│ │ ├── [email protected] 
│ │ └── [email protected] 
│ └─┬ [email protected] 
│   ├── [email protected] 
│   ├── [email protected] 
│   └── [email protected] 
├─┬ [email protected] 
│ └─┬ [email protected] 
│   ├── [email protected] 
│   ├── [email protected] 
│   ├─┬ [email protected] 
│   │ ├── [email protected] 
│   │ ├── [email protected] 
│   │ ├── [email protected] 
│   │ └── [email protected] 
│   ├─┬ [email protected] 
│   │ ├── [email protected] 
│   │ ├── [email protected] 
│   │ └── [email protected] 
│   ├── [email protected] 
│   ├── [email protected] 
│   ├── [email protected] 
│   ├── [email protected] 
│   ├── [email protected] 
│   └── [email protected] 
├─┬ [email protected] 
│ ├─┬ [email protected] 
│ │ └─┬ [email protected] 
│ │   └── [email protected] 
│ └── [email protected] 
├─┬ [email protected] 
│ └─┬ [email protected] 
│   └── [email protected] 
├─┬ [email protected] 
│ └─┬ [email protected] 
│   └── [email protected] 
├── [email protected] 
└── [email protected] 

npm WARN ENOENT ENOENT, open '/root/package.json'
npm WARN EPACKAGEJSON root No description
npm WARN EPACKAGEJSON root No repository field.
npm WARN EPACKAGEJSON root No README data
npm WARN EPACKAGEJSON root No license field.
root@x200:~# 

So it s look like that s a leveldown packaging error.

Small UI improvements on the onboarding

The on-boarding is awesome! These are just few details:

@nono On the second screen would it be possible to have an example in the form imput (like cozyxxx.cozycloud.cc)? I was going to put my email address, as it is the case in every other on-boarding process.

@kelukelu About those link just above the big button (like "Don't have an account? Request one") could it be possible to underline them, at least when hovering them? It would be tremendously better in terms of accessibility.

And maybe a go back button, sometimes you press Next too fast.

My two cents :)

Properly display move operations

For now, the move operation triggers 2 "deletion" messages, and 1 "addition" message.
It would nice to have just one "moved" message.

where shoud be .cozyignore ?

When I read that it .cozyignore was working like .gitignore, I put it into my synchronized folder ... but it did not work. I figured out that I had to put it in my home directory. Is there a reason for that ? If not, what about puting into the synchronized folder ? If yes, I think that the documentation should be clear on that.
Thanks for the work, it seems to be working already!

Put logs in a file

That would be nice to save logs in a file. That the user could send it to us.

Choose which files to sync

I am thinking about an enhancement that would allow user to choose which files to sync from his cozy.

That would be either select files/folder in the cozy-desktop app to sync or select files/folder in cozy instance that should not be synced to devices.

For example, if I uploaded all the pictures from my mobile phone they'll appear in CozyFiles and thus being synced to my desktop. I would like to be able not to sync them on my Desktop.

Memory leak on event emitters

A warning is raised in my node webkit console:

warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit." 31"

Windows Support

So just tried this on windows and there is 1 or 2 errors :
#1 - Download & reupload

Not sure if this an error, but when i firs sync my folder (local empty), I have :

info - Queue          | Missing file detected: C:\Users\Romain\cozy-synced\YOLO57\cozy_attaque_56.png
info - Filesystem     | Downloading: C:\Users\Romain\cozy-synced\YOLO57\cozy_attaque_56.png...
info - Filesystem     | Binary downloaded: C:\Users\Romain\cozy-synced\YOLO57\cozy_attaque_56.png
info - Queue          | Creating unlisted folders remotely...
info - Queue          | Uploading modifications to remote...
info - Pouch/CouchDB  | Changes replicated to remote
info - Queue          | New file detected: C:\Users\Romain\cozy-synced\YOLO57\cozy_attaque_56.png
info - Pouch/CouchDB  | Uploading binary: C:\Users\Romain\cozy-synced\YOLO57\cozy_attaque_56.png...
info - Pouch/CouchDB  | Binary uploaded: C:\Users\Romain\cozy-synced\YOLO57\cozy_attaque_56.png
info - Remote watcher | All your files are now available on your device.
info - Pouch/CouchDB  | Changes replicated to remote

The result is OK, althought.
#2 - Paths

info - Local watcher  | File changed: C:\Users\Romain\cozy-synced\C:\Users\Romain\cozy-synced\BEBOPALLULA.txt
error - Queue          | An error occured during the operation updateFileRemotely:
Error: C:\Users\Romain\cozy-synced\C:\Users\Romain\cozy-synced\BEBOPALLULA.txt does not exist
    at c:\Users\Romain\Projects\cozy-desktop\backend\filesystem.js:107:27
    at Object.cb [as oncomplete] (fs.js:168:19)
info - Pouch/CouchDB  | Changes replicated to remote

(seems like an absolute path considered relative)
and a minute later :

SyntaxError: Unexpected end of input
    at Object.parse (native)
    at Request._callback (c:\Users\Romain\Projects\cozy-desktop\node_modules\pouchdb\lib\deps\ajax.js:156:19)
    at Request.self.callback (c:\Users\Romain\Projects\cozy-desktop\node_modules\pouchdb\node_modules\request\request.js:123:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request.<anonymous> (c:\Users\Romain\Projects\cozy-desktop\node_modules\pouchdb\node_modules\request\request.js:877:14)
    at Request.EventEmitter.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (c:\Users\Romain\Projects\cozy-desktop\node_modules\pouchdb\node_modules\request\request.js:828:12)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:920:16
    at process._tickCallback (node.js:415:13)

Handle overwrite

Make sure that the file is redownloaded when an overwrite occurs remotely.

Batch local operations are not well detected eventually

Eventually, the deletion or addition of multiple files locally is not detected well by the FS watcher and does not apply in DB and remotely.

It is probably due to a too ealry blocking of the FS watcher.

Reproduced randomly on Ubuntu 14.04 with a SSD

Steps to reproduce

  1. Add 15 files to your synchronization directory
  2. Delete those 15 files
  3. If everything went well, repeat those steps

Erreur : unable to verify the first certificate

My Cozy Cloud is under a HAProxy SSL forcing config. Certificates is not self-signed, I'd made my own authority for sign it.

So when the desktop-client try to connect on my cloud, he want to check the CA, but I believe that failed.

Can we add a option to bypass SSL certificates check ?

sudo apt-get install nodejs-legacy build-essentials > KO

Hi,
Debian 7.8
When I do "sudo apt-get install nodejs-legacy build-essentatials"
I've got (for french speakers, sorry ;o)

"Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Aucune version du paquet nodejs-legacy n'est disponible, mais il existe dans la base
de données. Cela signifie en général que le paquet est manquant, qu'il est devenu obsolète
ou qu'il n'est disponible que sur une autre source

E: Le paquet « nodejs-legacy » n'a pas de version susceptible d'être installée
E: Impossible de trouver le paquet build-essentatials"

Issues in package.json

NPM warnings

optional dep failed, continuing [email protected]
engine [email protected]: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.40","npm":"1.4.28"})

Broken script

$ npm run build
> gulp build
[11:53:34] Using gulpfile ~/cozy/cozy-desktop/gulpfile.js
[11:53:34] Task 'build' is not in your gulpfile
[11:53:34] Please check the documentation for proper gulpfile formatting

Self-signed certificate error reporting could be enhanced

I can successfully install, add a device and connect to my cozy. Files from my cozy are getting copied, at start time. However, sync doesn't seem to be working (in any direction, that is: from the cozy to my device; from my device to the cozy).

Logs:

info - Pouch/CouchDB  | Design document created: _design/folder
info - Pouch/CouchDB  | Design document created: _design/file
info - Pouch/CouchDB  | Design document created: _design/binary
info - Pouch/CouchDB  | Design document created: _design/localrev
info - Remote watcher | Run first synchronisation...
info - Remote watcher | All your files are available on your device.
info - Remote watcher | First replication is complete (last seq: 54247)
info - Remote watcher | Start building your filesystem on your device.
info - Queue          | Creating locally missing folders...
info - Queue          | Downloading missing files from remote...
info - Queue          | Creating unlisted folders remotely...
info - Queue          | Uploading modifications to remote...
error - Pouch/CouchDB  | An error occured during replication.
error - Pouch/CouchDB  | {}
info - Queue          | No new file to create.
info - Remote watcher | Filesystem built on your device.
info - Cozy Desktop   | Init done
info - Local watcher  | Start watching filesystem for changes
warn - Remote watcher | An error occured during replication.
warn - Remote watcher | Connection error, try to reconnect in 5s...
error - Remote watcher | {}

Version info:

➜  ~  cozy-desktop -V
0.2.1

Cozy:

Data System: 1.0.24
Proxy: 1.0.10
Home: 1.0.34
Controller: 2.0.11

If there's anything I can do to help you debug all of this more, please let me know..

Upload only file difference

That one is probably a big one. But when a file is changed, the whole file is uploaded. That's not very efficient.

Error while trying to sync my files

Hello,

I tried to use Cozy Desktop with my Cozy. Registration worked fine but syncing failed. Here is the stacktrace:

[2016-04-05 15:47:58:825] info - Local watcher  | Start watching filesystem for changes
[2016-04-05 15:48:09:363] error - Remote watcher | An error occured copying database
[2016-04-05 15:48:09:363] error - Remote watcher | An error occured copying database
[2016-04-05 15:48:09:368] error - Remote watcher | Error: ETIMEDOUT
    at onError (/usr/local/lib/node_modules/cozy-desktop/node_modules/pouchdb/lib/index.js:2597:18)
    at Request._callback (/usr/local/lib/node_modules/cozy-desktop/node_modules/pouchdb/lib/index.js:2635:14)
    at self.callback (/usr/local/lib/node_modules/cozy-desktop/node_modules/pouchdb/node_modules/request/request.js:199:22)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at null._onTimeout (/usr/local/lib/node_modules/cozy-desktop/node_modules/pouchdb/node_modules/request/request.js:765:12)
    at Timer.listOnTimeout (timers.js:92:15)

Any idea about where the problem comes from?

No automatic file syncing

Hi all,

First of all, thanks for the great work on cozy. I’ve been experimenting with it in the last weeks and it is a real pleasure to use.

I’ve got an issue with the Cozy Desktop syncing application. When I start the daemon, it correctly recovers files from the Cozy server. However, when I add or modify a file on the server while the application is running, it is not taken into account, and I need to restart it. By the way, I also have strange behavior on locally created and deleted files, but I guess this must be linked to the read only version.

I’m using the .deb file to install cozy-desktop, on a Debian jessie (testing). I tried to build it myself with npm, but it fails because of external dependencies. However, it cannot install fsevents due to incompatible architecture (requires darwin), I don’t know if it is linked. I run my cozy server in a docker container, with only 443 and 80 ports forwarded.

Is it a normal behavior in the current version ?

Pierre-Henri

Multiple file uploading is slow

Just run a test on a "powerful" computer. It took almost 3 hours to upload ~5500 small files (basically a node_modules directory full of .js files). The upload was made to a local VM, thus with no bandwidth overhead whatsoever.

The time between each upload is about 1sec, mostly due to checksum calculation.

Anyway we need to improve that somehow.

Improve logging

Set a lot of debug trace because it's tedious to fix bugs.

cozy-desktop sync TypeError

I installed the cozy-desktop and I execute command "cozy-desktop add-remote-cozy https://url.of.my.cozy/ /cozy",it have no error,but when I run "cozy-desktop sync",It have error:
root@raspberrypi:
# cozy-desktop sync
Cozy-desktop v0.12.0 started (PID: 2536)
[2016-05-30 05:43:40:777] info - Cozy Desktop | Run first synchronisation...
[2016-05-30 05:43:40:950] info - Local watcher | Start watching filesystem for changes
[2016-05-30 05:43:41:200] info - Local watcher | File added test.py
[2016-05-30 05:43:41:812] info - Remote CouchDB | Getting last remote change sequence number:
/usr/local/lib/node_modules/cozy-desktop/node_modules/pouchdb/lib/index.js:7928
var changeStream = stores.bySeqStore.readStream(streamOpts);
^

TypeError: Cannot read property 'readStream' of undefined
at PouchDB.LevelPouch.api._changes (/usr/local/lib/node_modules/cozy-desktop/node_modules/p ouchdb/lib/index.js:7928:41)
at Changes.doChanges (/usr/local/lib/node_modules/cozy-desktop/node_modules/pouchdb/lib/ind ex.js:843:28)
at /usr/local/lib/node_modules/cozy-desktop/node_modules/pouchdb/lib/index.js:745:14
at TaskQueue.execute (/usr/local/lib/node_modules/cozy-desktop/node_modules/pouchdb/lib/ind ex.js:2210:7)
at TaskQueue.addTask (/usr/local/lib/node_modules/cozy-desktop/node_modules/pouchdb/lib/ind ex.js:2233:10)
at new Changes (/usr/local/lib/node_modules/cozy-desktop/node_modules/pouchdb/lib/index.js: 741:18)
at PouchDB.AbstractPouchDB.changes (/usr/local/lib/node_modules/cozy-desktop/node_modules/p ouchdb/lib/index.js:2031:10)
at Couch.getLastRemoteChangeSeq (/usr/local/lib/node_modules/cozy-desktop/lib/remote/couch. js:130:26)
at Couch.getLastRemoteChangeSeq (/usr/local/lib/node_modules/cozy-desktop/lib/remote/couch. js:4:59)
at RemoteWatcher.initialReplication (/usr/local/lib/node_modules/cozy-desktop/lib/remote/wa tcher.js:46:25)

what reason lead to this error? I do not know what to do!

Manage 400 error properly

debug - Filesystem  | Operation queued: postFolder
error - Replication | {"status":400,"result":{"ok":false,"start_time":"2014-11-24T11:07:39.826Z","docs_read":1,"docs_written":1,"doc_write_failures":0,"errors":[],"last_seq":2323,"status":"aborting","end_time":"2014-11-24T11:09:27.534Z"}}

Allow to configure a proxy

Users behind a proxy are unable to synchronize their files as there is no way for now to setup the URL of a proxy.

CPU usage is too high

On my computer, the FS watcher is taking around 5% of my CPU in idle mode, and the live replication around 70%!

It is definitely not reliable to keep this live replication on a laptop on battery, but even on a desktop we should find some better way.

We should be able to detect local DB modifications, and getting just-in-time synchronization with remote. And from remote, we should try to pull modifications every 5sec for instance.

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.