nitrotasks / nitro

The beautiful way to get things done.
https://nitrotasks.com
GNU Affero General Public License v3.0
517 stars 65 forks source link

Sync still not working despite upgrade to 1.3.1 #79

Closed ghost closed 12 years ago

ghost commented 12 years ago

A per the earlier issue,now thw authentication is completed..no problem.. But its still not syncing...I authenticated and now its trying to sync from past 1hour...and still only the .jason file is the only file created...is it the only file that is supposed to be created?? and the web app(for chrome) is not syncing either...it shows a message sayin an error occured at it has been reported to developers..!! what is all this happening?? why is it still not syncing??

caioalonso commented 12 years ago

For me, it seems to stop on the Waiting for Nitro to be authenticated... part. I am using Dropbox. Here is a full log:

caio@arch ~ nitrotasks 

** (process:12444): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** (process:12444): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'

** (process:12444): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'
Disclaimer: I'm an idiot, suck at python and am 15 years old. If Nitro for Linux sucks, you'll know why.
/usr/lib/python2.7/site-packages/nitrotasks/__init__.py:46: GtkWarning: gdk_window_set_icon_list: icons too large
  window.show()
** Message: console message: file:////usr/share/nitrotasks/media/src/js/cli.js @1: Nitro 1.3.1
Copyright (C) 2012 Caffeinated Code
By George Czabania & Jono Cooper

** Message: console message: file:////usr/share/nitrotasks/media/src/js/cli.js @69: Database is up to date

Here I'll go to the Sync > Dropbox option, and this shows up:

** Message: console message: file:////usr/share/nitrotasks/media/src/js/cli.js @1212: Connecting to Nitro Sync server

reqURL
undefined
Async, I hope. Does that fix everyones problems???

And the Sync animation appears. No new window is opened. After a while this shows up:

    </html>
** Message: console message: undefined @0: SyntaxError: JSON Parse error: Unrecognized token '<'

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/urllib2.py", line 406, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 444, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 503: Service Unavailable
consindo commented 12 years ago

Ah. That's a server side error. We need to add in some error handling.

caioalonso commented 12 years ago

@consindo I see. But I'm afraid @nirmik379kale is experiencing a different issue. Perhaps I should create a new issue?

ghost commented 12 years ago

@consindo Are apps working with your other customers?? i tried it throughout the day...even after leting it sync for more than 4 hours,no success..!!

consindo commented 12 years ago

Sync should work but it doesn't work very well. We're going to rewrite Nitro from the ground up without smart lists (majority of sync bugs), use proper MVC, plugin support and sync will be perfect.

We're aiming for Nitro 1.4 to be super stable and everything is a plugin.

ghost commented 12 years ago

So what do i do as of now?? And when is 1.4 aimed to relese?? Because your app is seriously good..!! waiting for the stable version..:) also...what to do now??

consindo commented 12 years ago

Hopefully we can get it done in a few weeks. What to do now? Uh, sadly the only solution is don't use sync =(

ghost commented 12 years ago

oh... =( thats sad... no problem...eagerly waiting for the new release =)

caioalonso commented 12 years ago

@consindo About the rewrite, do you guys plan on using Coffeescript?

consindo commented 12 years ago

I've never really used Coffeescript. It might be a good idea. We will be using stuff like backbone.js though

Klikini commented 12 years ago

I have the same problem. I had to disable sync because it would never finish... after an entire night of syncing it crashed. I was using Dropbox.

selinium commented 12 years ago

Hi there,

Just wanted to say I am suffering the exact same issue CaioAlonso with the exact same error messages.

:)

So looking forward to this getting stable and thanks for the postcard! :)

consindo commented 12 years ago

Nitro 1.4 came out a while ago. Does it work?

caioalonso commented 12 years ago

Hi @consindo, sorry, but it seems to be not working. I tested it on Arch Linux using an installation done by the AUR package.

First, the version I'm using:

caio@arch ~ nitrotasks --version
nitrotasks 1.4.5

Upon executing nitrotasks, this is what I get:

caio@arch ~ nitrotasks
/usr/lib/python2.7/site-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `Window' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)

(nitrotasks:3477): Gtk-WARNING **: Can't set a parent on widget which has a parent

(nitrotasks:3477): Gtk-WARNING **: Can't set a parent on widget which has a parent

/usr/lib/python2.7/site-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `NitrotasksWindow' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)
** Message: console message: file:////usr/share/nitrotasks/media/app/js/plugins.js @1: Loaded filter.js

** Message: console message: file:////usr/share/nitrotasks/media/app/js/plugins.js @1: Loaded sort.js

** Message: console message: file:////usr/share/nitrotasks/media/app/js/plugins.js @1: Running cleanDB

** Message: console message: file:////usr/share/nitrotasks/media/app/js/plugins.js @1: Cleaning complete. Took 0.004s

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nitrotasks/NitrotasksWindow.py", line 160, in title_changed
    launcher.set_property("count", int(title[1]))
NameError: global name 'launcher' is not defined

Then, when I go to Settings > Sync > and click the Dropbox button, I get this:

** Message: console message: file:////usr/share/nitrotasks/media/app/js/plugins.js @1: Connecting to Nitro Sync server

** Message: console message: file:////usr/share/nitrotasks/media/app/js/plugins.js @1: Requesting URL

reqURL
undefined
service=undefined

And Nitro now says Waiting for Nitro to be authenticated.... No authentication page is opened, neither in Nitro or my browser.

After a while, this shows up:

<addinfourl at 46818872 whose fp = <socket._fileobject object at 0x2c66050>>
    </html>
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/urllib2.py", line 406, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 444, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 503: Service Unavailable

** Message: console message: undefined @0: SyntaxError: JSON Parse error: Unrecognized token '<'

Oh, in case you need me to retest it with --verbose, just let me know and I'll do it.

ghost commented 12 years ago

1.4 is still not syncing! :(

consindo commented 12 years ago

Ok. I have a fix and I'll release the new version when I get back to New Zealand tomorrow.

consindo commented 12 years ago

1.4.6 is now released. Does it work now?

caioalonso commented 12 years ago

Let me check.

caio@arch ~ nitrotasks --version
nitrotasks 1.4.6
caio@arch ~ nitrotasks --verbose
DEBUG:nitrotasks: set_up_logging() 'logging enabled'
/usr/lib/python2.7/site-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `Window' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)

(nitrotasks:6714): Gtk-WARNING **: Can't set a parent on widget which has a parent

(nitrotasks:6714): Gtk-WARNING **: Can't set a parent on widget which has a parent

/usr/lib/python2.7/site-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `NitrotasksWindow' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)
** Message: console message: file:////usr/share/nitrotasks/media/app/js/plugins.js @720: Loaded filter.js

** Message: console message: file:////usr/share/nitrotasks/media/app/js/plugins.js @1559: Loaded sort.js

** Message: console message: file:////usr/share/nitrotasks/media/app/js/plugins.js @157: Running cleanDB

** Message: console message: file:////usr/share/nitrotasks/media/app/js/plugins.js @157: Cleaning complete. Took 0.004s

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nitrotasks/NitrotasksWindow.py", line 164, in title_changed
    launcher.set_property("count", int(title[1]))
NameError: global name 'launcher' is not defined

Now, Settings > Sync > Dropbox button:

** Message: console message: file:////usr/share/nitrotasks/media/app/js/plugins.js @1788: Connecting to Nitro Sync server

** Message: console message: file:////usr/share/nitrotasks/media/app/js/plugins.js @1792: Requesting URL

Nothing seems to happen after this. Is it supposed to call the default browser and open the Dropbox authentication page? Maybe the python wrapper isn't letting the js open a page in my browser.

caioalonso commented 12 years ago

I don't know if this helps, but I tried to open Nitro in Chromium:

caio@arch ~/src/Nitro chromium index.html 

Then, on Chromium's console:

Loaded filter.js plugins.js:722
Loaded sort.js plugins.js:1561
Running cleanDB plugins.js:159
Cleaning complete. Took 0.005s plugins.js:453

And after clicking the Dropbox button:

Connecting to Nitro Sync server plugins.js:1790
Requesting URL plugins.js:1794
XMLHttpRequest cannot load http://app.nitrotasks.com/request_url. Origin null is not allowed by Access-Control-Allow-Origin.

Maybe it's just a consequence of running Nitro without proper app permissions.

ghost commented 12 years ago

Its still not working!! Only authentication is completed and a .jason file is created...nothing other than that....later it says "sync with server failed" and comes back to the 2 sync options. :(

consindo commented 12 years ago

What distribution are you using?

ghost commented 12 years ago

ubuntu 12.04

caioalonso commented 12 years ago

@consindo Arch Linux, installation via https://aur.archlinux.org/packages.php?ID=58082

athaller commented 12 years ago

Hey guys,

I stumbled upon your task management app and am very impressed at the work you guys have done. I do have the same issue as the rest of the users and am looking forward for the rebuild. Please let me know when this happens and also if you plan on making a SQL version of this app so it can be accessed from multiple machines in realtime.

consindo commented 12 years ago

If I get some time, I think I know how to fix this and I'll try do it in the next few days. We probably won't use SQL as the current sync service uses node.js and it's probably a better idea to use a db such as redis.

consindo commented 12 years ago

Released 1.4.7. It should work as it uses it's own web browser.