proming / android-shuffle

Automatically exported from code.google.com/p/android-shuffle
0 stars 0 forks source link

Can't sync with other Tracks #149

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. get Tracks from http://getontracks.org/
2. setup, get it run
3. Open Shuffle, Settings,
4. change Tracks settings, save

What is the expected output? What do you see instead?
correct save, and able to sync

but I get
"Could not load contexts using these settings, 
something is wrong with them"
and can't leave without "Discard changes"

What version of the product are you using? On what operating system?
Shuffle 1.5.0
Tracks 1.7

Please provide any additional information below.

Original issue reported on code.google.com by andcy...@gmail.com on 9 Apr 2010 at 7:21

GoogleCodeExporter commented 9 years ago
I get the same message and am unable to sync with my tracks installation at 
http://tracks.huntscomputer.com:12002/

Thanks,
Ryan

Original comment by 6Saturd...@gmail.com on 10 May 2010 at 2:30

GoogleCodeExporter commented 9 years ago
This could be a Tracks problem.  When running Rails apps (such as Tracks) under 
Apache via FastCGI, it's possible that Apache will not pass the authentication 
headers properly.

To see if you have this problem, point your browser at your Tracks instance, 
log out, 
and then try to load "/contexts.xml" off the root of your Tracks site URL.

It should pop up an authentication dialog.  Log in using your Tracks user ID 
and 
password.  If it refuses to log in and asks you for your user ID and password 
again, 
you're being hit by this problem.

The solution can be found at the end of this page:

http://api.rubyonrails.org/classes/ActionController/HttpAuthentication/Basic.htm
l

The RewriteRule line they give should go in public/.htaccess, and it should 
replace 
the existing RewriteRule that mentions dispatch.cgi.

Original comment by j...@licquia.org on 12 May 2010 at 1:58

GoogleCodeExporter commented 9 years ago
thanks for the hint :)

but that fix doesn't work on my site, weird,
am I missing something?

here is my vhost.conf
----
<VirtualHost *:80>
  ServerName "tracks.andcycle.idv.tw"
  DocumentRoot "/var/www/tracks/public"

  AddHandler fcgid-script .fcgi
  DefaultInitEnv RAILS_ENV production

  <Files *.fcgi>
      SetHandler fcgid-script
      Options ExecCGI +FollowSymLinks
  </Files>

  <Directory /var/www/tracks/public>
      Options +ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
      RewriteEngine on
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^(.*)$ dispatch.fcgi
[E=X-HTTP_AUTHORIZATION:%{HTTP:Authorization},QSA,L]

  </Directory>
</VirtualHost>

Original comment by andcy...@gmail.com on 12 May 2010 at 3:15

GoogleCodeExporter commented 9 years ago
Thanks for the hint as well. When I log out and then point my browser to:
http://tracks.huntscomputer.com:12002/contexts.xml
i get the login box, enter my login and pass and then i get this information on 
the 
page:
2010-04-26T13:19:34-05:00 false 2 BWSC 1 2010-04-26T13:19:34-05:00 2010-04-
26T13:19:39-05:00 false 3 OC 2 2010-04-26T13:19:39-05:00 
2010-04-26T13:19:42-05:00 
false 4 HCS 3 2010-04-26T13:19:42-05:00 2010-04-26T13:19:53-05:00 false 5 Pest 
4 
2010-04-26T13:19:53-05:00 2010-04-26T14:31:39-05:00 false 6 Personal 5 2010-04-
26T14:31:39-05:00 2010-04-26T23:28:53-05:00 false 7 Sean Algaier 6 2010-05-
10T18:07:18-05:00 2010-04-26T23:28:59-05:00 false 8 RAVE 7 
2010-04-26T23:28:59-05:00

I do NOT continue to get the login dialog. I AM am at this point logged into 
tracks, 
because i can navigate back to tracks and i do not get another login dialog.

Are there any other suggestions as to why i can not authenticate to tracks from 
Shuffle?

Thanks,
Ryan

Original comment by 6Saturd...@gmail.com on 12 May 2010 at 3:32

GoogleCodeExporter commented 9 years ago
My situation is the same as Ryan's (6Saturdays). I'm able to login using the 
pop-up and see the xml.

My tracks installation is at http://tracks.thefishepic.ca (standard port 80).

I am using:
Shuffle 1.6.3
Tracks 1.8dev
lighttpd 1.4.26
on
Ubuntu Lucid Lynx 10.04

Original comment by lois.sm....@gmail.com on 7 Jul 2010 at 9:35

GoogleCodeExporter commented 9 years ago

Original comment by morten%c...@gtempaccount.com on 8 Jul 2010 at 7:31

GoogleCodeExporter commented 9 years ago
ok, I found the reason why http auth doesn't work on my machine,
that's because fcgid won't get any auth header under Apache 2.2,

http://oldwiki.rubyonrails.org/rails/pages/HowtoAuthenticateWithHTTP
according to this page there is no solution for fcgid,

after I switch to fastcgi, everything works fine.

maybe apache 2.3 have fixed this issue

Original comment by andcy...@gmail.com on 26 Jul 2010 at 8:11

GoogleCodeExporter commented 9 years ago
bump. Anyone have pointers as to why my particular setup isn't working? I'd 
rather not switch to Apache now since everything else is working rather well 
with lighttpd... cheers.

Original comment by lois.sm....@gmail.com on 11 Oct 2010 at 2:43

GoogleCodeExporter commented 9 years ago
Well, I cannot sync to http://my.gtdify.com/ with my G1 (CM 6.0) or my G2 
(Android 2.2). Both show the meantioned errors.

Original comment by tuerge...@gmail.com on 26 Nov 2010 at 10:48

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have the same problem. I use the standard tracks 1.7.3 and I get the "Could 
not load contexts using these settings, something is wrong with them" message. 
Login also fails for tracks using the android browser, however I do see 
contexts.xml and when I go back I'm suddenly logged into tracks.

Original comment by mailingd...@gmail.com on 1 May 2011 at 4:32

GoogleCodeExporter commented 9 years ago
just confirmed this line works

FcgidPassHeader Authorization

so fcgi works in Apache 2.4, that's all

ref: http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidpassheader

Original comment by andcy...@gmail.com on 16 Jul 2012 at 4:12

GoogleCodeExporter commented 9 years ago
I'm having the same hassle with my Tracks install v2.1.3. I've got it hosted on 
someone else's server, so I can't mess around with fcgi etc. I'm thinking if I 
do an install of an earlier version it might work - any hints, anyone?

Original comment by jaffa.mcneill@gmail.com on 31 Jan 2013 at 8:47

GoogleCodeExporter commented 9 years ago
Same error here, it works with my local machine, using a dev version of tracks 
on webrick. but when i install on openshift. it fails as mentioned above. I 
cant change the openshift apache config

Original comment by shad...@gmail.com on 14 Jul 2013 at 4:42