I found the problem. The javascript-alias mod on lighttpd changes the
search location for .js files. This mod is enabled by default and
needs to be either configured or disabled for tracks to work. I
updated the wiki page.

  Sebastian

On Thu, Sep 8, 2011 at 10:16 AM, Sebastian Fischmeister
<[email protected]> wrote:
> It seems that it cannot get files from the javascript directory, as it
> complains about other things as well:
>
> ActionController::RoutingError (No route matches
> "/javascripts/swfobject.js" with {:method=>:get}):
>  public/dispatch.fcgi:24
>
> It must be the cleanurl.lua script. I followed this guide to get rails
> running in lighttpd:
>
> http://redmine.lighttpd.net/wiki/1/LighttpdOnRails
>
>  Sebastian
>
> On Thu, Sep 8, 2011 at 10:01 AM, Stefan Richter <[email protected]> wrote:
>> Ok, so yes you found the issue, without the jquery file, the textbox cannot 
>> be shown. Can you get the other files in public/javascripts/...?
>>
>> -stefan
>>
>> -----Original Message-----
>> From: [email protected] 
>> [mailto:[email protected]] On Behalf Of Sebastian Fischmeister
>> Sent: Thursday, September 08, 2011 3:58 PM
>> To: Stefan Richter
>> Cc: Reinier Balt; [email protected]
>> Subject: Re: [Tracks-discuss] Re: bug or setup problem?
>>
>> ./script/server works, so it's a lighttpd configuration problem.
>>
>> I see no textbox on tracks.02.strich.de as well, however, when I click on 
>> the links below then the page changes.
>>
>> In my case, when I click on "go back to the standard login", then it will 
>> not change the page. It again shows the same yellow box without the text 
>> fields for username and login.
>>
>> It might be this error message in the logfile:
>>
>> ActionController::RoutingError (No route matches 
>> "/javascripts/jquery-1.6.2.min.js" with {:method=>:get}):
>>  public/dispatch.fcgi:24
>>
>> The files have the right permissions to be readable. It must be some problem 
>> with spawn-fcgi.
>>
>> This is the relevant entry portion of lighttpd.conf:
>>
>>  $HTTP["host"] == "<domain>" {
>>    server.document-root = "/opt/tracks/tracks/public/"
>>    magnet.attract-physical-path-to = ( "/etc/lighttpd/cleanurl.lua" )
>>
>>    fastcgi.server    = ( "dispatch.fcgi" =>
>>        ((
>>            "socket" => "/var/run/lighttpd/rails-tracks.sock",
>>        ))
>>    )
>> }
>>
>> And this is the spawn-fcgi line:
>>
>> RAILS_ENV="development" \
>> exec /usr/bin/spawn-fcgi  -n -s /var/run/lighttpd/rails-tracks.sock -u 
>> www-data -U www-data -- /opt/tracks/tracks/public/dispatch.fcgi
>>
>>  Sebastian
>>
>> On Thu, Sep 8, 2011 at 5:30 AM, Stefan Richter <[email protected]> wrote:
>>> It might be a dumb question, but: you see no links under the yellow box as 
>>> on http://tracks.02strich.de ??
>>>
>>> -stefan
>>>
>>> -----Original Message-----
>>> From: [email protected]
>>> [mailto:[email protected]] On Behalf Of
>>> Reinier Balt
>>> Sent: Thursday, September 08, 2011 8:44 AM
>>> To: 'Sebastian Fischmeister'; [email protected]
>>> Subject: [Tracks-discuss] Re: bug or setup problem?
>>>
>>> I think it is a setup problem. I've seen similar behavior when running 
>>> selenium scripts where mongrel (webserver) was mishandling cookies. Try 
>>> running Tracks from localhost:3000 first to see if Tracks is working fine.
>>> If so, it must be the lighttpd setup
>>>
>>> Otherwise, check your site.yml to see if database is present as
>>> authentication method
>>>
>>> Reinier
>>>
>>>> -----Oorspronkelijk bericht-----
>>>> Van: [email protected]
>>>> [mailto:tracks-discuss- [email protected]] Namens
>>>> Sebastian Fischmeister
>>>> Verzonden: donderdag 8 september 2011 4:08
>>>> Aan: [email protected]
>>>> Onderwerp: [Tracks-discuss] bug or setup problem?
>>>>
>>>> Hi,
>>>>
>>>>   I'm currently trying to setup tracks with lighttpd (
>>>> https://github.com/TracksApp/tracks/wiki/Ubuntu-11.04-with-lighttpd ).
>>>> I got it working but here's some strange behaviour:
>>>>
>>>> * I can log in the first time to create a user.
>>>> * I cannot log in anymore after that. I just get the yellow frame
>>>> "Please
>>> log in
>>>> to use Tracks:", but without the possibility to log in (no textfields).
>>>>
>>>> I get the same error on the 2.0_branch, so I think it's a setup problem.
>>>>
>>>> Thanks,  Sebastian
>>>>
>>>> ---------
>>>>
>>>> # Logfile created on Wed Sep 07 21:59:08 -0400 2011
>>>> ** has_many_polymorphs: rails environment detected
>>>> ** has_many_polymorphs: loaded ok
>>>> ** has_many_polymorphs: autoload hook invoked
>>>> ** has_many_polymorphs: preloading parent model Tagging
>>>> ** has_many_polymorphs: preloading parent model Tag
>>>> ** has_many_polymorphs: associating Tag.taggables
>>>> ** has_many_polymorphs: autoload hook invoked
>>>> ** has_many_polymorphs: preloading parent model Tagging
>>>> ** has_many_polymorphs: preloading parent model Tag
>>>> ** has_many_polymorphs: autoload hook invoked
>>>> ** has_many_polymorphs: preloading parent model Tagging
>>>> ** has_many_polymorphs: preloading parent model Tag
>>>>
>>>>
>>>> Processing LoginController#login (for <ip> at 2011-09-07 21:59:12)
>>>> [GET]
>>>>   Parameters: {"action"=>"login", "controller"=>"login"} Selected 'en'
>>>> as
>>> locale
>>>>    [4;36;1mSQL (0.1ms) [0m    [0;1mSELECT count(*) AS count_all FROM
>>>> "users"  [0m Rendering template within layouts/login Rendering
>>>> login/login Rendered shared/_flash (0.7ms) Rendered shared/_footer
>>>> (1.3ms) Completed in 120ms (View: 30, DB: 0) | 200 OK
>>>> [http://<domain>/login]
>>>> ** has_many_polymorphs: autoload hook invoked
>>>> ** has_many_polymorphs: preloading parent model Tagging
>>>> ** has_many_polymorphs: preloading parent model Tag
>>>> ** has_many_polymorphs: associating Tag.taggables
>>>>
>>>>
>>>> Processing ApplicationController#index (for <ip> at 2011-09-07
>>>> 21:59:12) [GET]
>>>>   Parameters: {"1315429651"=>nil}
>>>>
>>>> ActionController::RoutingError (No route matches
>>>> "/javascripts/jquery.cookie.js" with {:method=>:get}):
>>>>   public/dispatch.fcgi:24
>>>>
>>>> Rendering rescues/layout (not_found)
>>>> ** has_many_polymorphs: autoload hook invoked
>>>> ** has_many_polymorphs: preloading parent model Tagging
>>>> ** has_many_polymorphs: preloading parent model Tag
>>>> ** has_many_polymorphs: associating Tag.taggables
>>>>
>>>>
>>>> Processing ApplicationController#index (for <ip> at 2011-09-07
>>>> 21:59:12) [GET]
>>>>   Parameters: {"1315446775"=>nil}
>>>>
>>>> ActionController::RoutingError (No route matches
>>>> "/javascripts/jquery- 1.5.2.min.js" with {:method=>:get}):
>>>>   public/dispatch.fcgi:24
>>>>
>>>> Rendering rescues/layout (not_found)
>>>> _______________________________________________
>>>> Tracks-discuss mailing list
>>>> [email protected]
>>>> http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss
>>>
>>> _______________________________________________
>>> Tracks-discuss mailing list
>>> [email protected]
>>> http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss
>>>
>> _______________________________________________
>> Tracks-discuss mailing list
>> [email protected]
>> http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss
>>
>
_______________________________________________
Tracks-discuss mailing list
[email protected]
http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss

Reply via email to