On Sat, May 16, 2020 at 11:44 PM Craig Russell <apache....@gmail.com> wrote: > > I just tried bundle exec rackup and it seems to be much faster.
I don't know what's wrong with your local nginx and/or passenger, but we can avoid it. Should you wish to explore getting passenger to work, some help may be found here: https://www.phusionpassenger.com/library/install/nginx/install/oss/osx/ But for now you are using WEBrick. Puma would be better. Try adding "gem 'puma'" inside the "group :development" block in whimsy/roster/Gemfile, then run: bundle install bundle exec puma If that works, we can configure puma to automatically restart whenever you change a source file. > Clearly it is able to read iclas.txt because I type "c" and it says that 7397 > entries match and "cl" says 318 entries match and then "clr" gives only two > results. No. That data is from LDAP. > But when I select clr from the list, same error as before. > 2020-05-16 20:40:25 - Errno::ENOENT - No such file or directory @ > rb_file_s_mtime - /srv/svn/iclas.txt: That file should have been created when you ran "rake svn:update" from the whimsy directory. If it does not, make sure that there are no svn entries in your ~/.whimsy file, and rerun rake svn:update. > /Users/clr/apache/git/whimsy/lib/whimsy/asf/svn.rb:538:in `mtime' > /Users/clr/apache/git/whimsy/lib/whimsy/asf/svn.rb:538:in `getlisting' > /Users/clr/apache/git/whimsy/lib/whimsy/asf/documents.rb:93:in > `listnames' > /Users/clr/apache/git/whimsy/lib/whimsy/asf/documents.rb:57:in > `match_claRef' > /Users/clr/apache/git/whimsy/www/roster/models/committer.rb:131:in > `serialize' > /Users/clr/apache/git/whimsy/www/roster/main.rb:180:in `block in <top > (required)>' > > So I think there might be a bug (or perhaps a feature ;-). The initial > loading of iclas.txt gets the entire thing but then asking for a specific > entry fails. > > Craig > > > On May 16, 2020, at 8:11 PM, Sam Ruby <ru...@intertwingly.net> wrote: > > > > On Sat, May 16, 2020 at 10:36 PM Craig Russell <apache....@gmail.com> wrote: > >> > >> Truly bizarre this is. > >> > >>> On May 16, 2020, at 5:03 PM, Sam Ruby <ru...@intertwingly.net> wrote: > >>> > >>> OK, lets try two things. Working up from my zero dependency Ruby test > >>> script first, try this Ruby program next: > >>> > >>> --- > >>> require 'sinatra' > >>> get '/' do > >>> "Hello world! The time is #{Time.now}\n" > >>> end > >>> --- > >>> > >>> Once that is running, visit http://localhost:4567/ > >> > >> Like a charm, it works. > > > > Did you try the "bundle exec rackup" below? If it works, does it work > > faster? > > > >> I had left the tabs open from the previous tries and found that both > >> localhost:3000 and 0.0.0.0:3000 had returned the ASF Roster Tool main > >> page. But whimsy.local:3000 was still waiting for Godot. > >> > >> I had spent a goodly number of minutes before returning to the web pages, > >> so I cannot tell exactly how long it took before returning. But at least > >> 10 minutes. > >> > >> I'll try this again. New request returned within a minute. > >> > >> Restarting the server. Requesting localhost:3000 > >> > >> Seven minutes later the response came back. > >> > >> I was monitoring activity during the time. Throughout this, idle: 90%; > >> system: 5%; user: 5%. > >> > >> Now I just have to learn to be patient. > >> > >> Any ideas on the 7 minute delay? > >> And whimsy.local:3000 still hangs. > >> > >> Now that I'm past this particular issue, how do I configure clr.conf to > >> access my local repo. It's looking for /srv/svn/iclas.txt > >> but it actually should be looking for > >> /Users/clr/apache/foundation/officers/iclas.txt. > >> > >> I have added this to my clr.conf in the whimsy directory: > >> # for roster > >> Alias /foundation /Users/clr/apache/foundation > >> Alias /officers /Users/clr/apache/foundation/officers > >> Alias /member_apps /Users/clr/apache/documents/member_apps > >> > >> Alias /iclas /Users/clr/apache/documents/iclas > >> Alias /cclas /Users/clr/apache/documents/cclas > >> Alias /grants /Users/clr/apache/documents/grants > >> Alias /emeritus /Users/clr/apache/documents/emeritus > >> Alias /emeritus-requests-received > >> /Users/clr/apache/documents/emeritus-requests-received > >> > >> Craig > >>> > >>> Next, lets try working down from a full passenger application. From > >>> the whimsy/roster directory, try the following command: > >>> > >>> bundle exec rackup > >>> > >>> Once that is running, visit http://localhost:9292/ > >>> > >>> - Sam Ruby > >>> > >>> On Sat, May 16, 2020 at 7:23 PM Craig Russell <apache....@gmail.com> > >>> wrote: > >>>> > >>>> 192.168.0.12:5678 works > >>>> 192.168.0.12:3000 hangs > >>>> localhost:3000 hangs > >>>> localhost:5678 works > >>>> whimsy.local:3000 hangs > >>>> whimsy.local:5678 works > >>>> 0.0.0.0 can't connect > >>>> 0.0.0.0:3000 hangs > >>>> 0.0.0.0:5678 works > >>>> > >>>> > >>>>> On May 16, 2020, at 4:48 AM, Sam Ruby <ru...@intertwingly.net> wrote: > >>>>> > >>>>> On Sat, May 16, 2020 at 12:18 AM Craig Russell <apache....@gmail.com> > >>>>> wrote: > >>>>>> > >>>>>> While the script was running, I could reload the page and the time > >>>>>> would change. Once I killed the script, the browser could not connect > >>>>>> to the server any more. > >>>>> > >>>>> Cool. Now with both the test.rb and rake server running, try various > >>>>> combinations of: > >>>>> > >>>>> hosts: 192.168.0.12, localhost, whimsy.local, 0.0.0.0 > >>>>> ports: 5678, 3000 > >>>>> > >>>>> Which combinations work, and which do not? > >>>>> > >>>>> - Sam Ruby > >>>> > >>>> Craig L Russell > >>>> c...@apache.org > >>>> > >> > >> Craig L Russell > >> c...@apache.org > >> > > Craig L Russell > c...@apache.org >