jcoglan / restore

Simple remoteStorage server written in Node.js
293 stars 27 forks source link

Laverna says "offline" #45

Open yorkchou92 opened 6 years ago

yorkchou92 commented 6 years ago

Hi,here is my restore.js:

process.umask(077);

var reStore = require('restore'),
  store = new reStore.Redis({
  host:     'localhost',    // default is 'localhost'
  port:     6379,                   // default is 6379
  database: 0                      // default is 0
});

    server  = new reStore({
                store:  store,
                http:   {host: '127.0.0.1', port: 8000},
                allow:  {signup: true}
              });

server.boot();

and my vhost.conf:

server {
  listen 443;
  ssl_certificate /usr/local/nginx/conf/ssl/yktn.crt;
  ssl_certificate_key /usr/local/nginx/conf/ssl/yktn.key;
  server_name s.yk.tn;
  access_log off;

    location / {
        proxy_pass http://localhost:8000;
        proxy_set_header Host $host;
    }
}

server {
  listen 80;
  server_name s.yk.tn;
  access_log off;

    location / {
        proxy_pass http://localhost:8000;
        proxy_set_header Host $host;
    }
}

My website goes well, and I can complete the oauth through APPs which support remoteStorage, but it just can't rsync data, Laverna(http://laverna.cc/) says "offline, litewrite(http://litewrite.net/) didn't say it but when I click the sync button, nothing happened.

Can anyone help?

raucao commented 6 years ago

You should see error messages in the console (try to enable the "debug" or "verbose" level in your inspector, if there's nothing otherwise).

If you can find an actual exception or failed requests, it's much easier to help.

yorkchou92 commented 6 years ago

@skddc hi, I checked the informaton of F12 on chrome,. For laverna, when I login with my reStore and complete the oauth, come back to laverna, then nothing happens, even I press the sync button, no request or anything was made according to the "network" of F12. But when I login with other people's reStore, after the login and oauth, constantly retriving and sending keep showing on the "network" tab of F12.

raucao commented 6 years ago

And there's no error message whatsoever, even when you change the log level to "verbose" in the Chrome console?