You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whimsical.apache.org by Craig Russell <ap...@gmail.com> on 2020/05/12 23:36:14 UTC

Re: Roster emeritus function now with code to review

https://github.com/apache/whimsy/pull/93

I'm starting this project with a simple(r) task: allowing the roster committer page to display any files related to the member's emeritus status: files in documents/emeritus and documents/emeritus-requests-received.

I added a find method to the EmeritusRequestFiles and EmeritusFiles classes. There should be a way to *not* copy and paste the details of these methods, like a generic or static method.

Suggestions/comments are appreciated.

Thanks,
Craig


> On May 6, 2020, at 1:01 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> 
> On Wed, May 6, 2020 at 3:48 PM Craig Russell <ap...@gmail.com> wrote:
>> 
>> I've been looking for where the roster post actions are handled. I have the model for committer and the html in the browser.
>> 
>> But where are post action:emeritus and action:active handled?
> 
> All of the routes are defined here:
> 
> https://github.com/apache/whimsy/blob/master/www/roster/main.rb
> 
> Unless you have unusual needs, you can take advantage of the generic
> route defined here:
> 
> https://github.com/apache/whimsy/blob/1316a898d5e8c91e8a33d89565d12efc4842dd56/www/roster/main.rb#L343
> 
> If you use that route, then /actions/emeritus will invoke a script by
> that name in the whimsy/www/roster/views/actions directory, and will
> take value returned by the last line, convert it to JSON and sent the
> results back to the client.
> 
>> Thanks,
>> Craig
> 
> - Sam Ruby
> 
>> Craig L Russell
>> clr@apache.org
>> 

Craig L Russell
clr@apache.org


Re: Roster emeritus function now with code to review and a local failure

Posted by Sam Ruby <ru...@intertwingly.net>.
On Sun, May 17, 2020 at 10:50 AM Craig Russell <ap...@gmail.com> wrote:
>
> I have lots of svn entries in .whimsy:
>      :svn:
>      - /Users/clr/apache/foundation
>      - /Users/clr/apache/documents
>      - /Users/clr/apache/committers
>      - /Users/clr/apache/infrastructure/apmail/trunk/bin
>      - /Users/clr/apache/incubator/public
>
> Clearly I set these up when I last was running whimsy locally.
>
> Do I just remove them?

Sebb changed things so that in many cases the whimsy server will only
check out individual files or get a directory listing.  It likely is
no longer wise to list svn entries in your .whimsy file that
correspond to entries that contain either a list of files or specify
list: true in the following file:

https://github.com/apache/whimsy/blob/master/repository.yml

The code in question is here:

https://github.com/apache/whimsy/blob/c8acf028b4e0999c5055633328bb957633dd3ecc/Rakefile#L124

> Craig

- Sam Ruby

> > On May 16, 2020, at 9:09 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> >
> >> 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.
>
> Craig L Russell
> clr@apache.org
>

Re: Leaking sensitive info? (Was: Re: Roster emeritus function now with code to review and a local failure)

Posted by Matt Sicker <bo...@gmail.com>.
That's a good question. I know some potentially sensitive data was
migrated out of Whimsy into svn, and all of that is ACL-controlled.

On Mon, 18 May 2020 at 08:33, Jim Jagielski <ji...@jagunet.com> wrote:
>
> I am curious... in this discussion, and maybe even in the Whimsy code, both of which are public, are we "leaking" information about how the ASF data is stored, locations, environment, etc in a way that potentially compromises our security?
>
> > On May 18, 2020, at 6:54 AM, Sam Ruby <ru...@intertwingly.net> wrote:
> >
> > On Sun, May 17, 2020 at 11:09 PM Craig Russell <ap...@gmail.com> wrote:
> >>
> >> I'm used to debugging using e.g. console.log("Here is some data:" + data)
> >>
> >> What is the way to emit some debug messages on the console in the whimsy test server environments?
> >
> > Some reading materials:
> >
> > https://ruby-doc.org/stdlib-2.4.0/libdoc/logger/rdoc/Logger.html
> >
> > Wunderbar provides a logger.  Example uses:
> >
> > https://github.com/apache/whimsy/blob/master/tools/collate_minutes.rb#L11
> > https://github.com/apache/whimsy/blob/c8acf028b4e0999c5055633328bb957633dd3ecc/lib/whimsy/asf/ldap.rb#L86
> >
> >> And perhaps there are unit tests for (the components that I've modified) documents.rb and committer.rb?
> >
> > There are two test suites currently defined, one for the board/agenda
> > tool, and one for the libs:
> >
> > https://github.com/apache/whimsy/blob/master/.travis.yml#L5
> >
> > Test suites are run on every push to git:
> >
> > https://travis-ci.org/github/apache/whimsy/builds
> >
> > If you add a 'test' task to whimsy/www/roster/Rakefile, and add
> > www/roster/Gemfile to the .travis.yml file, it will be run on every
> > push.
> >
> >> Thanks,
> >> Craig
> >
> > - Sam Ruby
> >
> >> P.S. google/
> >>> On May 17, 2020, at 7:41 PM, Craig Russell <ap...@gmail.com> wrote:
> >>>
> >>> I removed the svn entries in .whimsy and checked out 609 MB of files that were already in my local repo.
> >>>
> >>> So now I'm able to test my changes. Could someone please take a look?
> >>>
> >>> git branch roster-emeritus
> >>>
> >>> Thanks,
> >>> Craig
> >>>
> >>>
> >>>> On May 17, 2020, at 7:50 AM, Craig Russell <apache.clr@gmail.com <ma...@gmail.com>> wrote:
> >>>>
> >>>> I have lots of svn entries in .whimsy:
> >>>>     :svn:
> >>>>     - /Users/clr/apache/foundation
> >>>>     - /Users/clr/apache/documents
> >>>>     - /Users/clr/apache/committers
> >>>>     - /Users/clr/apache/infrastructure/apmail/trunk/bin
> >>>>     - /Users/clr/apache/incubator/public
> >>>>
> >>>> Clearly I set these up when I last was running whimsy locally.
> >>>>
> >>>> Do I just remove them?
> >>>>
> >>>> Craig
> >>>>
> >>>>> On May 16, 2020, at 9:09 PM, Sam Ruby <rubys@intertwingly.net <ma...@intertwingly.net>> wrote:
> >>>>>
> >>>>>> 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.
> >>>>
> >>>> Craig L Russell
> >>>> clr@apache.org <ma...@apache.org>
> >>>>
> >>>
> >>> Craig L Russell
> >>> clr@apache.org <ma...@apache.org>
> >>>
> >>
> >> Craig L Russell
> >> clr@apache.org
> >>
>


-- 
Matt Sicker <bo...@gmail.com>

Leaking sensitive info? (Was: Re: Roster emeritus function now with code to review and a local failure)

Posted by Jim Jagielski <ji...@jaguNET.com>.
I am curious... in this discussion, and maybe even in the Whimsy code, both of which are public, are we "leaking" information about how the ASF data is stored, locations, environment, etc in a way that potentially compromises our security?

> On May 18, 2020, at 6:54 AM, Sam Ruby <ru...@intertwingly.net> wrote:
> 
> On Sun, May 17, 2020 at 11:09 PM Craig Russell <ap...@gmail.com> wrote:
>> 
>> I'm used to debugging using e.g. console.log("Here is some data:" + data)
>> 
>> What is the way to emit some debug messages on the console in the whimsy test server environments?
> 
> Some reading materials:
> 
> https://ruby-doc.org/stdlib-2.4.0/libdoc/logger/rdoc/Logger.html
> 
> Wunderbar provides a logger.  Example uses:
> 
> https://github.com/apache/whimsy/blob/master/tools/collate_minutes.rb#L11
> https://github.com/apache/whimsy/blob/c8acf028b4e0999c5055633328bb957633dd3ecc/lib/whimsy/asf/ldap.rb#L86
> 
>> And perhaps there are unit tests for (the components that I've modified) documents.rb and committer.rb?
> 
> There are two test suites currently defined, one for the board/agenda
> tool, and one for the libs:
> 
> https://github.com/apache/whimsy/blob/master/.travis.yml#L5
> 
> Test suites are run on every push to git:
> 
> https://travis-ci.org/github/apache/whimsy/builds
> 
> If you add a 'test' task to whimsy/www/roster/Rakefile, and add
> www/roster/Gemfile to the .travis.yml file, it will be run on every
> push.
> 
>> Thanks,
>> Craig
> 
> - Sam Ruby
> 
>> P.S. google/
>>> On May 17, 2020, at 7:41 PM, Craig Russell <ap...@gmail.com> wrote:
>>> 
>>> I removed the svn entries in .whimsy and checked out 609 MB of files that were already in my local repo.
>>> 
>>> So now I'm able to test my changes. Could someone please take a look?
>>> 
>>> git branch roster-emeritus
>>> 
>>> Thanks,
>>> Craig
>>> 
>>> 
>>>> On May 17, 2020, at 7:50 AM, Craig Russell <apache.clr@gmail.com <ma...@gmail.com>> wrote:
>>>> 
>>>> I have lots of svn entries in .whimsy:
>>>>     :svn:
>>>>     - /Users/clr/apache/foundation
>>>>     - /Users/clr/apache/documents
>>>>     - /Users/clr/apache/committers
>>>>     - /Users/clr/apache/infrastructure/apmail/trunk/bin
>>>>     - /Users/clr/apache/incubator/public
>>>> 
>>>> Clearly I set these up when I last was running whimsy locally.
>>>> 
>>>> Do I just remove them?
>>>> 
>>>> Craig
>>>> 
>>>>> On May 16, 2020, at 9:09 PM, Sam Ruby <rubys@intertwingly.net <ma...@intertwingly.net>> wrote:
>>>>> 
>>>>>> 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.
>>>> 
>>>> Craig L Russell
>>>> clr@apache.org <ma...@apache.org>
>>>> 
>>> 
>>> Craig L Russell
>>> clr@apache.org <ma...@apache.org>
>>> 
>> 
>> Craig L Russell
>> clr@apache.org
>> 


Re: Roster emeritus function now with code to review and a local failure

Posted by Sam Ruby <ru...@intertwingly.net>.
On Sun, May 17, 2020 at 11:09 PM Craig Russell <ap...@gmail.com> wrote:
>
> I'm used to debugging using e.g. console.log("Here is some data:" + data)
>
> What is the way to emit some debug messages on the console in the whimsy test server environments?

Some reading materials:

https://ruby-doc.org/stdlib-2.4.0/libdoc/logger/rdoc/Logger.html

Wunderbar provides a logger.  Example uses:

https://github.com/apache/whimsy/blob/master/tools/collate_minutes.rb#L11
https://github.com/apache/whimsy/blob/c8acf028b4e0999c5055633328bb957633dd3ecc/lib/whimsy/asf/ldap.rb#L86

> And perhaps there are unit tests for (the components that I've modified) documents.rb and committer.rb?

There are two test suites currently defined, one for the board/agenda
tool, and one for the libs:

https://github.com/apache/whimsy/blob/master/.travis.yml#L5

Test suites are run on every push to git:

https://travis-ci.org/github/apache/whimsy/builds

If you add a 'test' task to whimsy/www/roster/Rakefile, and add
www/roster/Gemfile to the .travis.yml file, it will be run on every
push.

> Thanks,
> Craig

- Sam Ruby

> P.S. google/
> > On May 17, 2020, at 7:41 PM, Craig Russell <ap...@gmail.com> wrote:
> >
> > I removed the svn entries in .whimsy and checked out 609 MB of files that were already in my local repo.
> >
> > So now I'm able to test my changes. Could someone please take a look?
> >
> > git branch roster-emeritus
> >
> > Thanks,
> > Craig
> >
> >
> >> On May 17, 2020, at 7:50 AM, Craig Russell <apache.clr@gmail.com <ma...@gmail.com>> wrote:
> >>
> >> I have lots of svn entries in .whimsy:
> >>      :svn:
> >>      - /Users/clr/apache/foundation
> >>      - /Users/clr/apache/documents
> >>      - /Users/clr/apache/committers
> >>      - /Users/clr/apache/infrastructure/apmail/trunk/bin
> >>      - /Users/clr/apache/incubator/public
> >>
> >> Clearly I set these up when I last was running whimsy locally.
> >>
> >> Do I just remove them?
> >>
> >> Craig
> >>
> >>> On May 16, 2020, at 9:09 PM, Sam Ruby <rubys@intertwingly.net <ma...@intertwingly.net>> wrote:
> >>>
> >>>> 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.
> >>
> >> Craig L Russell
> >> clr@apache.org <ma...@apache.org>
> >>
> >
> > Craig L Russell
> > clr@apache.org <ma...@apache.org>
> >
>
> Craig L Russell
> clr@apache.org
>

Re: Roster emeritus function now with code to review and a local failure

Posted by Craig Russell <ap...@gmail.com>.
I'm used to debugging using e.g. console.log("Here is some data:" + data)

What is the way to emit some debug messages on the console in the whimsy test server environments?

And perhaps there are unit tests for (the components that I've modified) documents.rb and committer.rb?

Thanks,
Craig

P.S. google/
> On May 17, 2020, at 7:41 PM, Craig Russell <ap...@gmail.com> wrote:
> 
> I removed the svn entries in .whimsy and checked out 609 MB of files that were already in my local repo. 
> 
> So now I'm able to test my changes. Could someone please take a look?
> 
> git branch roster-emeritus
> 
> Thanks,
> Craig
> 
> 
>> On May 17, 2020, at 7:50 AM, Craig Russell <apache.clr@gmail.com <ma...@gmail.com>> wrote:
>> 
>> I have lots of svn entries in .whimsy:
>>      :svn:
>>      - /Users/clr/apache/foundation
>>      - /Users/clr/apache/documents
>>      - /Users/clr/apache/committers
>>      - /Users/clr/apache/infrastructure/apmail/trunk/bin
>>      - /Users/clr/apache/incubator/public
>> 
>> Clearly I set these up when I last was running whimsy locally.
>> 
>> Do I just remove them?
>> 
>> Craig
>> 
>>> On May 16, 2020, at 9:09 PM, Sam Ruby <rubys@intertwingly.net <ma...@intertwingly.net>> wrote:
>>> 
>>>> 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.
>> 
>> Craig L Russell
>> clr@apache.org <ma...@apache.org>
>> 
> 
> Craig L Russell
> clr@apache.org <ma...@apache.org>
> 

Craig L Russell
clr@apache.org


Re: Roster emeritus function now with code to review and a local failure

Posted by Craig Russell <ap...@gmail.com>.
If someone could take a look at the roster-emeritus branch it will help.

Thanks,
Craig

> On May 17, 2020, at 7:41 PM, Craig Russell <ap...@gmail.com> wrote:
> 
> I removed the svn entries in .whimsy and checked out 609 MB of files that were already in my local repo. 
> 
> So now I'm able to test my changes. Could someone please take a look?
> 
> git branch roster-emeritus
> 
> Thanks,
> Craig
> 
> 
>> On May 17, 2020, at 7:50 AM, Craig Russell <apache.clr@gmail.com <ma...@gmail.com>> wrote:
>> 
>> I have lots of svn entries in .whimsy:
>>      :svn:
>>      - /Users/clr/apache/foundation
>>      - /Users/clr/apache/documents
>>      - /Users/clr/apache/committers
>>      - /Users/clr/apache/infrastructure/apmail/trunk/bin
>>      - /Users/clr/apache/incubator/public
>> 
>> Clearly I set these up when I last was running whimsy locally.
>> 
>> Do I just remove them?
>> 
>> Craig
>> 
>>> On May 16, 2020, at 9:09 PM, Sam Ruby <rubys@intertwingly.net <ma...@intertwingly.net>> wrote:
>>> 
>>>> 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.
>> 
>> Craig L Russell
>> clr@apache.org <ma...@apache.org>
>> 
> 
> Craig L Russell
> clr@apache.org <ma...@apache.org>
> 

Craig L Russell
clr@apache.org


Re: Roster emeritus function now with code to review and a local failure

Posted by Craig Russell <ap...@gmail.com>.
I removed the svn entries in .whimsy and checked out 609 MB of files that were already in my local repo. 

So now I'm able to test my changes. Could someone please take a look?

git branch roster-emeritus

Thanks,
Craig


> On May 17, 2020, at 7:50 AM, Craig Russell <ap...@gmail.com> wrote:
> 
> I have lots of svn entries in .whimsy:
>      :svn:
>      - /Users/clr/apache/foundation
>      - /Users/clr/apache/documents
>      - /Users/clr/apache/committers
>      - /Users/clr/apache/infrastructure/apmail/trunk/bin
>      - /Users/clr/apache/incubator/public
> 
> Clearly I set these up when I last was running whimsy locally.
> 
> Do I just remove them?
> 
> Craig
> 
>> On May 16, 2020, at 9:09 PM, Sam Ruby <rubys@intertwingly.net <ma...@intertwingly.net>> wrote:
>> 
>>> 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.
> 
> Craig L Russell
> clr@apache.org <ma...@apache.org>
> 

Craig L Russell
clr@apache.org


Re: Roster emeritus function now with code to review and a local failure

Posted by Matt Sicker <bo...@gmail.com>.
I cleared out mine and let whimsy clone everything on its own. Maybe after
I understand the config better, I can slowly replace those with my local
copies I manually manage.

On Sun, May 17, 2020 at 09:50 Craig Russell <ap...@gmail.com> wrote:

> I have lots of svn entries in .whimsy:
>      :svn:
>      - /Users/clr/apache/foundation
>      - /Users/clr/apache/documents
>      - /Users/clr/apache/committers
>      - /Users/clr/apache/infrastructure/apmail/trunk/bin
>      - /Users/clr/apache/incubator/public
>
> Clearly I set these up when I last was running whimsy locally.
>
> Do I just remove them?
>
> Craig
>
> > On May 16, 2020, at 9:09 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> >
> >> 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.
>
> Craig L Russell
> clr@apache.org
>
> --
Matt Sicker <bo...@gmail.com>

Re: Roster emeritus function now with code to review and a local failure

Posted by Craig Russell <ap...@gmail.com>.
I have lots of svn entries in .whimsy:
     :svn:
     - /Users/clr/apache/foundation
     - /Users/clr/apache/documents
     - /Users/clr/apache/committers
     - /Users/clr/apache/infrastructure/apmail/trunk/bin
     - /Users/clr/apache/incubator/public

Clearly I set these up when I last was running whimsy locally.

Do I just remove them?

Craig

> On May 16, 2020, at 9:09 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> 
>> 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.

Craig L Russell
clr@apache.org


Re: Roster emeritus function now with code to review and a local failure

Posted by Sam Ruby <ru...@intertwingly.net>.
On Sat, May 16, 2020 at 11:44 PM Craig Russell <ap...@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 <ap...@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 <ap...@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 <ap...@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
> >>>> clr@apache.org
> >>>>
> >>
> >> Craig L Russell
> >> clr@apache.org
> >>
>
> Craig L Russell
> clr@apache.org
>

Re: Roster emeritus function now with code to review and a local failure

Posted by Craig Russell <ap...@gmail.com>.
I just tried bundle exec rackup and it seems to be much faster.

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.

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:
	/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 <ap...@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 <ap...@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 <ap...@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
>>>> clr@apache.org
>>>> 
>> 
>> Craig L Russell
>> clr@apache.org
>> 

Craig L Russell
clr@apache.org


Re: Roster emeritus function now with code to review and a local failure

Posted by Sam Ruby <ru...@intertwingly.net>.
On Sat, May 16, 2020 at 10:36 PM Craig Russell <ap...@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 <ap...@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 <ap...@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
> >> clr@apache.org
> >>
>
> Craig L Russell
> clr@apache.org
>

Re: Roster emeritus function now with code to review and a local failure

Posted by Craig Russell <ap...@gmail.com>.
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.

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 <ap...@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 <ap...@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
>> clr@apache.org
>> 

Craig L Russell
clr@apache.org


Re: Roster emeritus function now with code to review and a local failure

Posted by Sam Ruby <ru...@intertwingly.net>.
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/

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 <ap...@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 <ap...@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
> clr@apache.org
>

Re: Roster emeritus function now with code to review and a local failure

Posted by Craig Russell <ap...@gmail.com>.
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 <ap...@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
clr@apache.org


Re: Roster emeritus function now with code to review and a local failure

Posted by Sam Ruby <ru...@intertwingly.net>.
On Sat, May 16, 2020 at 12:18 AM Craig Russell <ap...@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

Re: Roster emeritus function now with code to review and a local failure

Posted by Craig Russell <ap...@gmail.com>.
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.

> On May 15, 2020, at 9:15 PM, Craig Russell <ap...@gmail.com> wrote:
> 
> [MacBook-Pro-10:~] clr% vi test.rb
> [MacBook-Pro-10:~] clr% ruby test.rb
> open http://192.168.0.12:5678/ <http://192.168.0.12:5678/>
> ^CTraceback (most recent call last):
> 	1: from test.rb:11:in `<main>'
> test.rb:11:in `accept': Interrupt
> 
> 
> In the browser that popped up: at url http://192.168.0.12:5678 <http://192.168.0.12:5678/>
> Hello world! The time is 2020-05-15 21:13:44 -0700
> Then nothing so I killed the ruby script.
> 
> Craig
> 
>> On May 15, 2020, at 7:30 PM, Sam Ruby <rubys@intertwingly.net <ma...@intertwingly.net>> wrote:
>> 
>> On Fri, May 15, 2020 at 10:23 PM Craig Russell <apache.clr@gmail.com <ma...@gmail.com>> wrote:
>>> 
>>> Sorry, what do I do with the lines between --------------
>>> 
>>> Is this a shell script? I run csh...
>> 
>> It is a Ruby script.  Put it in a file, say test.rb.  Then run 'ruby test.rb'.
>> 
>>> Craig
>> 
>> - Sam Ruby
>> 
>>>> On May 15, 2020, at 6:38 PM, Sam Ruby <rubys@intertwingly.net <ma...@intertwingly.net>> wrote:
>>>> 
>>>> On Fri, May 15, 2020 at 8:10 PM Craig Russell <apache.clr@gmail.com <ma...@gmail.com> <mailto:apache.clr@gmail.com <ma...@gmail.com>>> wrote:
>>>>> 
>>>>> Hi Sam,
>>>>> 
>>>>> That helped. I had not installed cctools via brew but I made a backup copy of the/opt/local/bin/ar and ranlib tools so I got farther along with installing ruby 2.4.1.
>>>>> 
>>>>> [MacBook-Pro-10:whimsy/www/roster] clr% rbenv global
>>>>> 2.4.1
>>>>> [MacBook-Pro-10:whimsy/www/roster] clr% which ruby
>>>>> /usr/local/opt/ruby/bin/ruby
>>>>> [MacBook-Pro-10:whimsy/www/roster] clr% ruby -v
>>>>> ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin18]
>>>>> 
>>>>> I hope you are aware that
>>>>> WARNING: ruby-2.4.1 is past its end of life and is now unsupported.
>>>>> It no longer receives bug fixes or critical security updates.
>>>>> 
>>>>> Are we planning on migrating to ruby 2.7.x or are we stuck on 2.4?
>>>> 
>>>> Whimsy-vm4 runs Ubuntu 16.04 which comes with Ruby 2.4.
>>>> 
>>>> Sebb is working on getting whimsy-vm5 up and running on Ubuntu 18.04
>>>> which comes with Ruby 2.5.
>>>> 
>>>>> Anyway, I rebooted and still no joy. None of these urls succeed:
>>>>> whimsy.local hangs forever
>>>>> whimsy.local:3000 hangs forever
>>>> 
>>>> That's defined using IPv6.
>>>> 
>>>>> 0.0.0.0 Safari can't connect to the server
>>>>> 0.0.0.0:3000 Safari can't connect to the server
>>>> 
>>>> We've established that Safari can't talk to 0:0:0:0.
>>>> 
>>>> Lets try something different.  What does the following do on your machine?
>>>> 
>>>> ---
>>>> require 'socket'
>>>> server = TCPServer.new 5678
>>>> ip = Socket.ip_address_list.detect{|intf| intf.ipv4_private?}.ip_address
>>>> 
>>>> Thread.new do
>>>> sleep 1
>>>> puts "open http://#{ip}:5678/ <http://#{ip}:5678/> <http://#{ip}:5678/ <http://#{ip}:5678/>>"
>>>> system "open http://#{ip}:5678/ <http://#{ip}:5678/> <http://#{ip}:5678/ <http://#{ip}:5678/>>"
>>>> end
>>>> 
>>>> while session = server.accept
>>>> response = "Hello world! The time is #{Time.now}\n"
>>>> session.print "HTTP/1.1 200 OK\r\n" +
>>>>    "Content-Type: text/plain\r\n" +
>>>>    "Content-Length: #{response.bytesize}\r\n" +
>>>>    "Connection: close\r\n\r\n" +
>>>>    response
>>>> session.close
>>>> end
>>>> ---
>>>> 
>>>> - Sam Ruby
>>> 
>>> Craig L Russell
>>> clr@apache.org <ma...@apache.org>
>>> 
> 
> Craig L Russell
> clr@apache.org <ma...@apache.org>
> 

Craig L Russell
clr@apache.org


Re: Roster emeritus function now with code to review and a local failure

Posted by Craig Russell <ap...@gmail.com>.
[MacBook-Pro-10:~] clr% vi test.rb
[MacBook-Pro-10:~] clr% ruby test.rb
open http://192.168.0.12:5678/
^CTraceback (most recent call last):
	1: from test.rb:11:in `<main>'
test.rb:11:in `accept': Interrupt


In the browser that popped up: at url http://192.168.0.12:5678
Hello world! The time is 2020-05-15 21:13:44 -0700
Then nothing so I killed the ruby script.

Craig

> On May 15, 2020, at 7:30 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> 
> On Fri, May 15, 2020 at 10:23 PM Craig Russell <ap...@gmail.com> wrote:
>> 
>> Sorry, what do I do with the lines between --------------
>> 
>> Is this a shell script? I run csh...
> 
> It is a Ruby script.  Put it in a file, say test.rb.  Then run 'ruby test.rb'.
> 
>> Craig
> 
> - Sam Ruby
> 
>>> On May 15, 2020, at 6:38 PM, Sam Ruby <ru...@intertwingly.net> wrote:
>>> 
>>> On Fri, May 15, 2020 at 8:10 PM Craig Russell <apache.clr@gmail.com <ma...@gmail.com>> wrote:
>>>> 
>>>> Hi Sam,
>>>> 
>>>> That helped. I had not installed cctools via brew but I made a backup copy of the/opt/local/bin/ar and ranlib tools so I got farther along with installing ruby 2.4.1.
>>>> 
>>>> [MacBook-Pro-10:whimsy/www/roster] clr% rbenv global
>>>> 2.4.1
>>>> [MacBook-Pro-10:whimsy/www/roster] clr% which ruby
>>>> /usr/local/opt/ruby/bin/ruby
>>>> [MacBook-Pro-10:whimsy/www/roster] clr% ruby -v
>>>> ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin18]
>>>> 
>>>> I hope you are aware that
>>>> WARNING: ruby-2.4.1 is past its end of life and is now unsupported.
>>>> It no longer receives bug fixes or critical security updates.
>>>> 
>>>> Are we planning on migrating to ruby 2.7.x or are we stuck on 2.4?
>>> 
>>> Whimsy-vm4 runs Ubuntu 16.04 which comes with Ruby 2.4.
>>> 
>>> Sebb is working on getting whimsy-vm5 up and running on Ubuntu 18.04
>>> which comes with Ruby 2.5.
>>> 
>>>> Anyway, I rebooted and still no joy. None of these urls succeed:
>>>> whimsy.local hangs forever
>>>> whimsy.local:3000 hangs forever
>>> 
>>> That's defined using IPv6.
>>> 
>>>> 0.0.0.0 Safari can't connect to the server
>>>> 0.0.0.0:3000 Safari can't connect to the server
>>> 
>>> We've established that Safari can't talk to 0:0:0:0.
>>> 
>>> Lets try something different.  What does the following do on your machine?
>>> 
>>> ---
>>> require 'socket'
>>> server = TCPServer.new 5678
>>> ip = Socket.ip_address_list.detect{|intf| intf.ipv4_private?}.ip_address
>>> 
>>> Thread.new do
>>> sleep 1
>>> puts "open http://#{ip}:5678/ <http://#{ip}:5678/>"
>>> system "open http://#{ip}:5678/ <http://#{ip}:5678/>"
>>> end
>>> 
>>> while session = server.accept
>>> response = "Hello world! The time is #{Time.now}\n"
>>> session.print "HTTP/1.1 200 OK\r\n" +
>>>    "Content-Type: text/plain\r\n" +
>>>    "Content-Length: #{response.bytesize}\r\n" +
>>>    "Connection: close\r\n\r\n" +
>>>    response
>>> session.close
>>> end
>>> ---
>>> 
>>> - Sam Ruby
>> 
>> Craig L Russell
>> clr@apache.org
>> 

Craig L Russell
clr@apache.org


Re: Roster emeritus function now with code to review and a local failure

Posted by Sam Ruby <ru...@intertwingly.net>.
On Fri, May 15, 2020 at 10:23 PM Craig Russell <ap...@gmail.com> wrote:
>
> Sorry, what do I do with the lines between --------------
>
> Is this a shell script? I run csh...

It is a Ruby script.  Put it in a file, say test.rb.  Then run 'ruby test.rb'.

> Craig

- Sam Ruby

> > On May 15, 2020, at 6:38 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> >
> > On Fri, May 15, 2020 at 8:10 PM Craig Russell <apache.clr@gmail.com <ma...@gmail.com>> wrote:
> >>
> >> Hi Sam,
> >>
> >> That helped. I had not installed cctools via brew but I made a backup copy of the/opt/local/bin/ar and ranlib tools so I got farther along with installing ruby 2.4.1.
> >>
> >> [MacBook-Pro-10:whimsy/www/roster] clr% rbenv global
> >> 2.4.1
> >> [MacBook-Pro-10:whimsy/www/roster] clr% which ruby
> >> /usr/local/opt/ruby/bin/ruby
> >> [MacBook-Pro-10:whimsy/www/roster] clr% ruby -v
> >> ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin18]
> >>
> >> I hope you are aware that
> >> WARNING: ruby-2.4.1 is past its end of life and is now unsupported.
> >> It no longer receives bug fixes or critical security updates.
> >>
> >> Are we planning on migrating to ruby 2.7.x or are we stuck on 2.4?
> >
> > Whimsy-vm4 runs Ubuntu 16.04 which comes with Ruby 2.4.
> >
> > Sebb is working on getting whimsy-vm5 up and running on Ubuntu 18.04
> > which comes with Ruby 2.5.
> >
> >> Anyway, I rebooted and still no joy. None of these urls succeed:
> >> whimsy.local hangs forever
> >> whimsy.local:3000 hangs forever
> >
> > That's defined using IPv6.
> >
> >> 0.0.0.0 Safari can't connect to the server
> >> 0.0.0.0:3000 Safari can't connect to the server
> >
> > We've established that Safari can't talk to 0:0:0:0.
> >
> > Lets try something different.  What does the following do on your machine?
> >
> > ---
> > require 'socket'
> > server = TCPServer.new 5678
> > ip = Socket.ip_address_list.detect{|intf| intf.ipv4_private?}.ip_address
> >
> > Thread.new do
> >  sleep 1
> >  puts "open http://#{ip}:5678/ <http://#{ip}:5678/>"
> >  system "open http://#{ip}:5678/ <http://#{ip}:5678/>"
> > end
> >
> > while session = server.accept
> >  response = "Hello world! The time is #{Time.now}\n"
> >  session.print "HTTP/1.1 200 OK\r\n" +
> >     "Content-Type: text/plain\r\n" +
> >     "Content-Length: #{response.bytesize}\r\n" +
> >     "Connection: close\r\n\r\n" +
> >     response
> >  session.close
> > end
> > ---
> >
> > - Sam Ruby
>
> Craig L Russell
> clr@apache.org
>

Re: Roster emeritus function now with code to review and a local failure

Posted by Craig Russell <ap...@gmail.com>.
Sorry, what do I do with the lines between --------------

Is this a shell script? I run csh...

Craig

> On May 15, 2020, at 6:38 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> 
> On Fri, May 15, 2020 at 8:10 PM Craig Russell <apache.clr@gmail.com <ma...@gmail.com>> wrote:
>> 
>> Hi Sam,
>> 
>> That helped. I had not installed cctools via brew but I made a backup copy of the/opt/local/bin/ar and ranlib tools so I got farther along with installing ruby 2.4.1.
>> 
>> [MacBook-Pro-10:whimsy/www/roster] clr% rbenv global
>> 2.4.1
>> [MacBook-Pro-10:whimsy/www/roster] clr% which ruby
>> /usr/local/opt/ruby/bin/ruby
>> [MacBook-Pro-10:whimsy/www/roster] clr% ruby -v
>> ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin18]
>> 
>> I hope you are aware that
>> WARNING: ruby-2.4.1 is past its end of life and is now unsupported.
>> It no longer receives bug fixes or critical security updates.
>> 
>> Are we planning on migrating to ruby 2.7.x or are we stuck on 2.4?
> 
> Whimsy-vm4 runs Ubuntu 16.04 which comes with Ruby 2.4.
> 
> Sebb is working on getting whimsy-vm5 up and running on Ubuntu 18.04
> which comes with Ruby 2.5.
> 
>> Anyway, I rebooted and still no joy. None of these urls succeed:
>> whimsy.local hangs forever
>> whimsy.local:3000 hangs forever
> 
> That's defined using IPv6.
> 
>> 0.0.0.0 Safari can't connect to the server
>> 0.0.0.0:3000 Safari can't connect to the server
> 
> We've established that Safari can't talk to 0:0:0:0.
> 
> Lets try something different.  What does the following do on your machine?
> 
> ---
> require 'socket'
> server = TCPServer.new 5678
> ip = Socket.ip_address_list.detect{|intf| intf.ipv4_private?}.ip_address
> 
> Thread.new do
>  sleep 1
>  puts "open http://#{ip}:5678/ <http://#{ip}:5678/>"
>  system "open http://#{ip}:5678/ <http://#{ip}:5678/>"
> end
> 
> while session = server.accept
>  response = "Hello world! The time is #{Time.now}\n"
>  session.print "HTTP/1.1 200 OK\r\n" +
>     "Content-Type: text/plain\r\n" +
>     "Content-Length: #{response.bytesize}\r\n" +
>     "Connection: close\r\n\r\n" +
>     response
>  session.close
> end
> ---
> 
> - Sam Ruby

Craig L Russell
clr@apache.org


Re: Roster emeritus function now with code to review and a local failure

Posted by Sam Ruby <ru...@intertwingly.net>.
On Fri, May 15, 2020 at 8:10 PM Craig Russell <ap...@gmail.com> wrote:
>
> Hi Sam,
>
> That helped. I had not installed cctools via brew but I made a backup copy of the/opt/local/bin/ar and ranlib tools so I got farther along with installing ruby 2.4.1.
>
> [MacBook-Pro-10:whimsy/www/roster] clr% rbenv global
> 2.4.1
> [MacBook-Pro-10:whimsy/www/roster] clr% which ruby
> /usr/local/opt/ruby/bin/ruby
> [MacBook-Pro-10:whimsy/www/roster] clr% ruby -v
> ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin18]
>
> I hope you are aware that
> WARNING: ruby-2.4.1 is past its end of life and is now unsupported.
> It no longer receives bug fixes or critical security updates.
>
> Are we planning on migrating to ruby 2.7.x or are we stuck on 2.4?

Whimsy-vm4 runs Ubuntu 16.04 which comes with Ruby 2.4.

Sebb is working on getting whimsy-vm5 up and running on Ubuntu 18.04
which comes with Ruby 2.5.

> Anyway, I rebooted and still no joy. None of these urls succeed:
> whimsy.local hangs forever
> whimsy.local:3000 hangs forever

That's defined using IPv6.

> 0.0.0.0 Safari can't connect to the server
> 0.0.0.0:3000 Safari can't connect to the server

We've established that Safari can't talk to 0:0:0:0.

Lets try something different.  What does the following do on your machine?

---
require 'socket'
server = TCPServer.new 5678
ip = Socket.ip_address_list.detect{|intf| intf.ipv4_private?}.ip_address

Thread.new do
  sleep 1
  puts "open http://#{ip}:5678/"
  system "open http://#{ip}:5678/"
end

while session = server.accept
  response = "Hello world! The time is #{Time.now}\n"
  session.print "HTTP/1.1 200 OK\r\n" +
     "Content-Type: text/plain\r\n" +
     "Content-Length: #{response.bytesize}\r\n" +
     "Connection: close\r\n\r\n" +
     response
  session.close
end
---

- Sam Ruby

Re: Roster emeritus function now with code to review and a local failure

Posted by Craig Russell <ap...@gmail.com>.
Hi Sam,

That helped. I had not installed cctools via brew but I made a backup copy of the/opt/local/bin/ar and ranlib tools so I got farther along with installing ruby 2.4.1. 

[MacBook-Pro-10:whimsy/www/roster] clr% rbenv global
2.4.1
[MacBook-Pro-10:whimsy/www/roster] clr% which ruby
/usr/local/opt/ruby/bin/ruby
[MacBook-Pro-10:whimsy/www/roster] clr% ruby -v
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin18]

I hope you are aware that
WARNING: ruby-2.4.1 is past its end of life and is now unsupported.
It no longer receives bug fixes or critical security updates.

Are we planning on migrating to ruby 2.7.x or are we stuck on 2.4?

Anyway, I rebooted and still no joy. None of these urls succeed:
whimsy.local hangs forever
whimsy.local:3000 hangs forever
0.0.0.0 Safari can't connect to the server
0.0.0.0:3000 Safari can't connect to the server

I've attached my clr.conf in case that helps...

Thanks,
Craig



> On May 15, 2020, at 12:16 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> 
> On Fri, May 15, 2020 at 10:38 AM Craig Russell <ap...@gmail.com> wrote:
> 
>> Hi Sam,
>> 
>> Thanks for that. Sadly,
>> 
>> ar: creating archive libcrypto.a
>> /opt/local/bin/ranlib: object: libcrypto.a(aes-x86_64.o) malformed object
>> (unknown load command 1)
>> ar: internal ranlib command failed
>> make[1]: *** [libcrypto.a] Error 1
>> make: *** [all] Error 2
>> 
> 
> This looks like a potential match:
> https://github.com/commercialhaskell/stack/issues/4380
> 
> The suggested solution is to run 'brew uninstall cctools"
> 
> - Sam Ruby

Craig L Russell
clr@apache.org


Re: Roster emeritus function now with code to review and a local failure

Posted by Sam Ruby <ru...@intertwingly.net>.
On Fri, May 15, 2020 at 10:38 AM Craig Russell <ap...@gmail.com> wrote:

> Hi Sam,
>
> Thanks for that. Sadly,
>
> ar: creating archive libcrypto.a
> /opt/local/bin/ranlib: object: libcrypto.a(aes-x86_64.o) malformed object
> (unknown load command 1)
> ar: internal ranlib command failed
> make[1]: *** [libcrypto.a] Error 1
> make: *** [all] Error 2
>

This looks like a potential match:
https://github.com/commercialhaskell/stack/issues/4380

The suggested solution is to run 'brew uninstall cctools"

- Sam Ruby

Re: Roster emeritus function now with code to review and a local failure

Posted by Craig Russell <ap...@gmail.com>.
Hi Sam,

Thanks for that. Sadly,

[MacBook-Pro-10:whimsy/www/roster] clr% rbenv install 2.4.1
Downloading openssl-1.1.0j.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/31bec6c203ce1a8e93d5994f4ed304c63ccf07676118b6634edded12ad1b3246
Installing openssl-1.1.0j...

BUILD FAILED (OS X 10.14.6 using ruby-build 20200401)

Inspect or clean up the working tree at /var/folders/mx/t44d3_bs437dpnywzk_mwl_0002msd/T/ruby-build.20200515073508.82054.d28SH5
Results logged to /var/folders/mx/t44d3_bs437dpnywzk_mwl_0002msd/T/ruby-build.20200515073508.82054.log

Last 10 log lines:
clang  -I. -Icrypto/include -Iinclude -DZLIB -DZLIB_SHARED -DDSO_DLFCN -DHAVE_DLFCN_H -DNDEBUG -DOPENSSL_THREADS -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DRC4_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPADLOCK_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/Users/clr/.rbenv/versions/2.4.1/openssl/ssl\"" -DENGINESDIR="\"/Users/clr/.rbenv/versions/2.4.1/openssl/lib/engines-1.1\"" -O3 -D_REENTRANT -arch x86_64 -DL_ENDIAN -Wall  -fPIC -MMD -MF crypto/x509v3/v3_utl.d.tmp -MT crypto/x509v3/v3_utl.o -c -o crypto/x509v3/v3_utl.o crypto/x509v3/v3_utl.c
clang  -I. -Icrypto/include -Iinclude -DZLIB -DZLIB_SHARED -DDSO_DLFCN -DHAVE_DLFCN_H -DNDEBUG -DOPENSSL_THREADS -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DRC4_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPADLOCK_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/Users/clr/.rbenv/versions/2.4.1/openssl/ssl\"" -DENGINESDIR="\"/Users/clr/.rbenv/versions/2.4.1/openssl/lib/engines-1.1\"" -O3 -D_REENTRANT -arch x86_64 -DL_ENDIAN -Wall  -fPIC -MMD -MF crypto/x509v3/v3err.d.tmp -MT crypto/x509v3/v3err.o -c -o crypto/x509v3/v3err.o crypto/x509v3/v3err.c
CC="clang" /opt/local/bin/perl5.22 crypto/x86_64cpuid.pl macosx crypto/x86_64cpuid.s
clang -DZLIB -DZLIB_SHARED -DDSO_DLFCN -DHAVE_DLFCN_H -DNDEBUG -DOPENSSL_THREADS -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DRC4_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPADLOCK_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/Users/clr/.rbenv/versions/2.4.1/openssl/ssl\"" -DENGINESDIR="\"/Users/clr/.rbenv/versions/2.4.1/openssl/lib/engines-1.1\"" -O3 -D_REENTRANT -arch x86_64 -DL_ENDIAN -Wall  -fPIC -c -o crypto/x86_64cpuid.o crypto/x86_64cpuid.s
ar  r libcrypto.a crypto/aes/aes-x86_64.o crypto/aes/aes_cfb.o crypto/aes/aes_ecb.o crypto/aes/aes_ige.o crypto/aes/aes_misc.o crypto/aes/aes_ofb.o crypto/aes/aes_wrap.o crypto/aes/aesni-mb-x86_64.o crypto/aes/aesni-sha1-x86_64.o crypto/aes/aesni-sha256-x86_64.o crypto/aes/aesni-x86_64.o crypto/aes/bsaes-x86_64.o crypto/aes/vpaes-x86_64.o crypto/asn1/a_bitstr.o crypto/asn1/a_d2i_fp.o crypto/asn1/a_digest.o crypto/asn1/a_dup.o crypto/asn1/a_gentm.o crypto/asn1/a_i2d_fp.o crypto/asn1/a_int.o crypto/asn1/a_mbstr.o crypto/asn1/a_object.o crypto/asn1/a_octet.o crypto/asn1/a_print.o crypto/asn1/a_sign.o crypto/asn1/a_strex.o crypto/asn1/a_strnid.o crypto/asn1/a_time.o crypto/asn1/a_type.o crypto/asn1/a_utctm.o crypto/asn1/a_utf8.o crypto/asn1/a_verify.o crypto/asn1/ameth_lib.o crypto/asn1/asn1_err.o crypto/asn1/asn1_gen.o crypto/asn1/asn1_lib.o crypto/asn1/asn1_par.o crypto/asn1/asn_mime.o crypto/asn1/asn_moid.o crypto/asn1/asn_mstbl.o crypto/asn1/asn_pack.o crypto/asn1/bio_asn1.o crypto/asn1/bio_ndef.o crypto/asn1/d2i_pr.o crypto/asn1/d2i_pu.o crypto/asn1/evp_asn1.o crypto/asn1/f_int.o crypto/asn1/f_string.o crypto/asn1/i2d_pr.o crypto/asn1/i2d_pu.o crypto/asn1/n_pkey.o crypto/asn1/nsseq.o crypto/asn1/p5_pbe.o crypto/asn1/p5_pbev2.o crypto/asn1/p5_scrypt.o crypto/asn1/p8_pkey.o crypto/asn1/t_bitst.o crypto/asn1/t_pkey.o crypto/asn1/t_spki.o crypto/asn1/tasn_dec.o crypto/asn1/tasn_enc.o crypto/asn1/tasn_fre.o crypto/asn1/tasn_new.o crypto/asn1/tasn_prn.o crypto/asn1/tasn_scn.o crypto/asn1/tasn_typ.o crypto/asn1/tasn_utl.o crypto/asn1/x_algor.o crypto/asn1/x_bignum.o crypto/asn1/x_info.o crypto/asn1/x_int64.o crypto/asn1/x_long.o crypto/asn1/x_pkey.o crypto/asn1/x_sig.o crypto/asn1/x_spki.o crypto/asn1/x_val.o crypto/async/arch/async_null.o crypto/async/arch/async_posix.o crypto/async/arch/async_win.o crypto/async/async.o crypto/async/async_err.o crypto/async/async_wait.o crypto/bf/bf_cfb64.o crypto/bf/bf_ecb.o crypto/bf/bf_enc.o crypto/bf/bf_ofb64.o crypto/bf/bf_skey.o crypto/bio/b_addr.o crypto/bio/b_dump.o crypto/bio/b_print.o crypto/bio/b_sock.o crypto/bio/b_sock2.o crypto/bio/bf_buff.o crypto/bio/bf_lbuf.o crypto/bio/bf_nbio.o crypto/bio/bf_null.o crypto/bio/bio_cb.o crypto/bio/bio_err.o crypto/bio/bio_lib.o crypto/bio/bio_meth.o crypto/bio/bss_acpt.o crypto/bio/bss_bio.o crypto/bio/bss_conn.o crypto/bio/bss_dgram.o crypto/bio/bss_fd.o crypto/bio/bss_file.o crypto/bio/bss_log.o crypto/bio/bss_mem.o crypto/bio/bss_null.o crypto/bio/bss_sock.o crypto/blake2/blake2b.o crypto/blake2/blake2s.o crypto/blake2/m_blake2b.o crypto/blake2/m_blake2s.o crypto/bn/asm/x86_64-gcc.o crypto/bn/bn_add.o crypto/bn/bn_blind.o crypto/bn/bn_const.o crypto/bn/bn_ctx.o crypto/bn/bn_depr.o crypto/bn/bn_dh.o crypto/bn/bn_div.o crypto/bn/bn_err.o crypto/bn/bn_exp.o crypto/bn/bn_exp2.o crypto/bn/bn_gcd.o crypto/bn/bn_gf2m.o crypto/bn/bn_intern.o crypto/bn/bn_kron.o crypto/bn/bn_lib.o crypto/bn/bn_mod.o crypto/bn/bn_mont.o crypto/bn/bn_mpi.o crypto/bn/bn_mul.o crypto/bn/bn_nist.o crypto/bn/bn_prime.o crypto/bn/bn_print.o crypto/bn/bn_rand.o crypto/bn/bn_recp.o crypto/bn/bn_shift.o crypto/bn/bn_sqr.o crypto/bn/bn_sqrt.o crypto/bn/bn_srp.o crypto/bn/bn_word.o crypto/bn/bn_x931p.o crypto/bn/rsaz-avx2.o crypto/bn/rsaz-x86_64.o crypto/bn/rsaz_exp.o crypto/bn/x86_64-gf2m.o crypto/bn/x86_64-mont.o crypto/bn/x86_64-mont5.o crypto/buffer/buf_err.o crypto/buffer/buffer.o crypto/camellia/cmll-x86_64.o crypto/camellia/cmll_cfb.o crypto/camellia/cmll_ctr.o crypto/camellia/cmll_ecb.o crypto/camellia/cmll_misc.o crypto/camellia/cmll_ofb.o crypto/cast/c_cfb64.o crypto/cast/c_ecb.o crypto/cast/c_enc.o crypto/cast/c_ofb64.o crypto/cast/c_skey.o crypto/chacha/chacha-x86_64.o crypto/cmac/cm_ameth.o crypto/cmac/cm_pmeth.o crypto/cmac/cmac.o crypto/cms/cms_asn1.o crypto/cms/cms_att.o crypto/cms/cms_cd.o crypto/cms/cms_dd.o crypto/cms/cms_enc.o crypto/cms/cms_env.o crypto/cms/cms_err.o crypto/cms/cms_ess.o crypto/cms/cms_io.o crypto/cms/cms_kari.o crypto/cms/cms_lib.o crypto/cms/cms_pwri.o crypto/cms/cms_sd.o crypto/cms/cms_smime.o crypto/comp/c_zlib.o crypto/comp/comp_err.o crypto/comp/comp_lib.o crypto/conf/conf_api.o crypto/conf/conf_def.o crypto/conf/conf_err.o crypto/conf/conf_lib.o crypto/conf/conf_mall.o crypto/conf/conf_mod.o crypto/conf/conf_sap.o crypto/conf/conf_ssl.o crypto/cpt_err.o crypto/cryptlib.o crypto/ct/ct_b64.o crypto/ct/ct_err.o crypto/ct/ct_log.o crypto/ct/ct_oct.o crypto/ct/ct_policy.o crypto/ct/ct_prn.o crypto/ct/ct_sct.o crypto/ct/ct_sct_ctx.o crypto/ct/ct_vfy.o crypto/ct/ct_x509v3.o crypto/cversion.o crypto/des/cbc_cksm.o crypto/des/cbc_enc.o crypto/des/cfb64ede.o crypto/des/cfb64enc.o crypto/des/cfb_enc.o crypto/des/des_enc.o crypto/des/ecb3_enc.o crypto/des/ecb_enc.o crypto/des/fcrypt.o crypto/des/fcrypt_b.o crypto/des/ofb64ede.o crypto/des/ofb64enc.o crypto/des/ofb_enc.o crypto/des/pcbc_enc.o crypto/des/qud_cksm.o crypto/des/rand_key.o crypto/des/rpc_enc.o crypto/des/set_key.o crypto/des/str2key.o crypto/des/xcbc_enc.o crypto/dh/dh_ameth.o crypto/dh/dh_asn1.o crypto/dh/dh_check.o crypto/dh/dh_depr.o crypto/dh/dh_err.o crypto/dh/dh_gen.o crypto/dh/dh_kdf.o crypto/dh/dh_key.o crypto/dh/dh_lib.o crypto/dh/dh_meth.o crypto/dh/dh_pmeth.o crypto/dh/dh_prn.o crypto/dh/dh_rfc5114.o crypto/dsa/dsa_ameth.o crypto/dsa/dsa_asn1.o crypto/dsa/dsa_depr.o crypto/dsa/dsa_err.o crypto/dsa/dsa_gen.o crypto/dsa/dsa_key.o crypto/dsa/dsa_lib.o crypto/dsa/dsa_meth.o crypto/dsa/dsa_ossl.o crypto/dsa/dsa_pmeth.o crypto/dsa/dsa_prn.o crypto/dsa/dsa_sign.o crypto/dsa/dsa_vrf.o crypto/dso/dso_dl.o crypto/dso/dso_dlfcn.o crypto/dso/dso_err.o crypto/dso/dso_lib.o crypto/dso/dso_openssl.o crypto/dso/dso_vms.o crypto/dso/dso_win32.o crypto/ebcdic.o crypto/ec/curve25519.o crypto/ec/ec2_mult.o crypto/ec/ec2_oct.o crypto/ec/ec2_smpl.o crypto/ec/ec_ameth.o crypto/ec/ec_asn1.o crypto/ec/ec_check.o crypto/ec/ec_curve.o crypto/ec/ec_cvt.o crypto/ec/ec_err.o crypto/ec/ec_key.o crypto/ec/ec_kmeth.o crypto/ec/ec_lib.o crypto/ec/ec_mult.o crypto/ec/ec_oct.o crypto/ec/ec_pmeth.o crypto/ec/ec_print.o crypto/ec/ecdh_kdf.o crypto/ec/ecdh_ossl.o crypto/ec/ecdsa_ossl.o crypto/ec/ecdsa_sign.o crypto/ec/ecdsa_vrf.o crypto/ec/eck_prn.o crypto/ec/ecp_mont.o crypto/ec/ecp_nist.o crypto/ec/ecp_nistp224.o crypto/ec/ecp_nistp256.o crypto/ec/ecp_nistp521.o crypto/ec/ecp_nistputil.o crypto/ec/ecp_nistz256-x86_64.o crypto/ec/ecp_nistz256.o crypto/ec/ecp_oct.o crypto/ec/ecp_smpl.o crypto/ec/ecx_meth.o crypto/engine/eng_all.o crypto/engine/eng_cnf.o crypto/engine/eng_cryptodev.o crypto/engine/eng_ctrl.o crypto/engine/eng_dyn.o crypto/engine/eng_err.o crypto/engine/eng_fat.o crypto/engine/eng_init.o crypto/engine/eng_lib.o crypto/engine/eng_list.o crypto/engine/eng_openssl.o crypto/engine/eng_pkey.o crypto/engine/eng_rdrand.o crypto/engine/eng_table.o crypto/engine/tb_asnmth.o crypto/engine/tb_cipher.o crypto/engine/tb_dh.o crypto/engine/tb_digest.o crypto/engine/tb_dsa.o crypto/engine/tb_eckey.o crypto/engine/tb_pkmeth.o crypto/engine/tb_rand.o crypto/engine/tb_rsa.o crypto/err/err.o crypto/err/err_all.o crypto/err/err_prn.o crypto/evp/bio_b64.o crypto/evp/bio_enc.o crypto/evp/bio_md.o crypto/evp/bio_ok.o crypto/evp/c_allc.o crypto/evp/c_alld.o crypto/evp/cmeth_lib.o crypto/evp/digest.o crypto/evp/e_aes.o crypto/evp/e_aes_cbc_hmac_sha1.o crypto/evp/e_aes_cbc_hmac_sha256.o crypto/evp/e_bf.o crypto/evp/e_camellia.o crypto/evp/e_cast.o crypto/evp/e_chacha20_poly1305.o crypto/evp/e_des.o crypto/evp/e_des3.o crypto/evp/e_idea.o crypto/evp/e_null.o crypto/evp/e_old.o crypto/evp/e_rc2.o crypto/evp/e_rc4.o crypto/evp/e_rc4_hmac_md5.o crypto/evp/e_rc5.o crypto/evp/e_seed.o crypto/evp/e_xcbc_d.o crypto/evp/encode.o crypto/evp/evp_cnf.o crypto/evp/evp_enc.o crypto/evp/evp_err.o crypto/evp/evp_key.o crypto/evp/evp_lib.o crypto/evp/evp_pbe.o crypto/evp/evp_pkey.o crypto/evp/m_md2.o crypto/evp/m_md4.o crypto/evp/m_md5.o crypto/evp/m_md5_sha1.o crypto/evp/m_mdc2.o crypto/evp/m_null.o crypto/evp/m_ripemd.o crypto/evp/m_sha1.o crypto/evp/m_sigver.o crypto/evp/m_wp.o crypto/evp/names.o crypto/evp/p5_crpt.o crypto/evp/p5_crpt2.o crypto/evp/p_dec.o crypto/evp/p_enc.o crypto/evp/p_lib.o crypto/evp/p_open.o crypto/evp/p_seal.o crypto/evp/p_sign.o crypto/evp/p_verify.o crypto/evp/pmeth_fn.o crypto/evp/pmeth_gn.o crypto/evp/pmeth_lib.o crypto/evp/scrypt.o crypto/ex_data.o crypto/getenv.o crypto/hmac/hm_ameth.o crypto/hmac/hm_pmeth.o crypto/hmac/hmac.o crypto/idea/i_cbc.o crypto/idea/i_cfb64.o crypto/idea/i_ecb.o crypto/idea/i_ofb64.o crypto/idea/i_skey.o crypto/init.o crypto/kdf/hkdf.o crypto/kdf/kdf_err.o crypto/kdf/tls1_prf.o crypto/lhash/lh_stats.o crypto/lhash/lhash.o crypto/md4/md4_dgst.o crypto/md4/md4_one.o crypto/md5/md5-x86_64.o crypto/md5/md5_dgst.o crypto/md5/md5_one.o crypto/mdc2/mdc2_one.o crypto/mdc2/mdc2dgst.o crypto/mem.o crypto/mem_dbg.o crypto/mem_sec.o crypto/modes/aesni-gcm-x86_64.o crypto/modes/cbc128.o crypto/modes/ccm128.o crypto/modes/cfb128.o crypto/modes/ctr128.o crypto/modes/cts128.o crypto/modes/gcm128.o crypto/modes/ghash-x86_64.o crypto/modes/ocb128.o crypto/modes/ofb128.o crypto/modes/wrap128.o crypto/modes/xts128.o crypto/o_dir.o crypto/o_fips.o crypto/o_fopen.o crypto/o_init.o crypto/o_str.o crypto/o_time.o crypto/objects/o_names.o crypto/objects/obj_dat.o crypto/objects/obj_err.o crypto/objects/obj_lib.o crypto/objects/obj_xref.o crypto/ocsp/ocsp_asn.o crypto/ocsp/ocsp_cl.o crypto/ocsp/ocsp_err.o crypto/ocsp/ocsp_ext.o crypto/ocsp/ocsp_ht.o crypto/ocsp/ocsp_lib.o crypto/ocsp/ocsp_prn.o crypto/ocsp/ocsp_srv.o crypto/ocsp/ocsp_vfy.o crypto/ocsp/v3_ocsp.o crypto/pem/pem_all.o crypto/pem/pem_err.o crypto/pem/pem_info.o crypto/pem/pem_lib.o crypto/pem/pem_oth.o crypto/pem/pem_pk8.o crypto/pem/pem_pkey.o crypto/pem/pem_sign.o crypto/pem/pem_x509.o crypto/pem/pem_xaux.o crypto/pem/pvkfmt.o crypto/pkcs12/p12_add.o crypto/pkcs12/p12_asn.o crypto/pkcs12/p12_attr.o crypto/pkcs12/p12_crpt.o crypto/pkcs12/p12_crt.o crypto/pkcs12/p12_decr.o crypto/pkcs12/p12_init.o crypto/pkcs12/p12_key.o crypto/pkcs12/p12_kiss.o crypto/pkcs12/p12_mutl.o crypto/pkcs12/p12_npas.o crypto/pkcs12/p12_p8d.o crypto/pkcs12/p12_p8e.o crypto/pkcs12/p12_sbag.o crypto/pkcs12/p12_utl.o crypto/pkcs12/pk12err.o crypto/pkcs7/bio_pk7.o crypto/pkcs7/pk7_asn1.o crypto/pkcs7/pk7_attr.o crypto/pkcs7/pk7_doit.o crypto/pkcs7/pk7_lib.o crypto/pkcs7/pk7_mime.o crypto/pkcs7/pk7_smime.o crypto/pkcs7/pkcs7err.o crypto/poly1305/poly1305-x86_64.o crypto/poly1305/poly1305.o crypto/rand/md_rand.o crypto/rand/rand_egd.o crypto/rand/rand_err.o crypto/rand/rand_lib.o crypto/rand/rand_unix.o crypto/rand/rand_vms.o crypto/rand/rand_win.o crypto/rand/randfile.o crypto/rc2/rc2_cbc.o crypto/rc2/rc2_ecb.o crypto/rc2/rc2_skey.o crypto/rc2/rc2cfb64.o crypto/rc2/rc2ofb64.o crypto/rc4/rc4-md5-x86_64.o crypto/rc4/rc4-x86_64.o crypto/ripemd/rmd_dgst.o crypto/ripemd/rmd_one.o crypto/rsa/rsa_ameth.o crypto/rsa/rsa_asn1.o crypto/rsa/rsa_chk.o crypto/rsa/rsa_crpt.o crypto/rsa/rsa_depr.o crypto/rsa/rsa_err.o crypto/rsa/rsa_gen.o crypto/rsa/rsa_lib.o crypto/rsa/rsa_meth.o crypto/rsa/rsa_none.o crypto/rsa/rsa_null.o crypto/rsa/rsa_oaep.o crypto/rsa/rsa_ossl.o crypto/rsa/rsa_pk1.o crypto/rsa/rsa_pmeth.o crypto/rsa/rsa_prn.o crypto/rsa/rsa_pss.o crypto/rsa/rsa_saos.o crypto/rsa/rsa_sign.o crypto/rsa/rsa_ssl.o crypto/rsa/rsa_x931.o crypto/rsa/rsa_x931g.o crypto/seed/seed.o crypto/seed/seed_cbc.o crypto/seed/seed_cfb.o crypto/seed/seed_ecb.o crypto/seed/seed_ofb.o crypto/sha/sha1-mb-x86_64.o crypto/sha/sha1-x86_64.o crypto/sha/sha1_one.o crypto/sha/sha1dgst.o crypto/sha/sha256-mb-x86_64.o crypto/sha/sha256-x86_64.o crypto/sha/sha256.o crypto/sha/sha512-x86_64.o crypto/sha/sha512.o crypto/srp/srp_lib.o crypto/srp/srp_vfy.o crypto/stack/stack.o crypto/threads_none.o crypto/threads_pthread.o crypto/threads_win.o crypto/ts/ts_asn1.o crypto/ts/ts_conf.o crypto/ts/ts_err.o crypto/ts/ts_lib.o crypto/ts/ts_req_print.o crypto/ts/ts_req_utils.o crypto/ts/ts_rsp_print.o crypto/ts/ts_rsp_sign.o crypto/ts/ts_rsp_utils.o crypto/ts/ts_rsp_verify.o crypto/ts/ts_verify_ctx.o crypto/txt_db/txt_db.o crypto/ui/ui_err.o crypto/ui/ui_lib.o crypto/ui/ui_openssl.o crypto/ui/ui_util.o crypto/uid.o crypto/whrlpool/wp-x86_64.o crypto/whrlpool/wp_dgst.o crypto/x509/by_dir.o crypto/x509/by_file.o crypto/x509/t_crl.o crypto/x509/t_req.o crypto/x509/t_x509.o crypto/x509/x509_att.o crypto/x509/x509_cmp.o crypto/x509/x509_d2.o crypto/x509/x509_def.o crypto/x509/x509_err.o crypto/x509/x509_ext.o crypto/x509/x509_lu.o crypto/x509/x509_meth.o crypto/x509/x509_obj.o crypto/x509/x509_r2x.o crypto/x509/x509_req.o crypto/x509/x509_set.o crypto/x509/x509_trs.o crypto/x509/x509_txt.o crypto/x509/x509_v3.o crypto/x509/x509_vfy.o crypto/x509/x509_vpm.o crypto/x509/x509cset.o crypto/x509/x509name.o crypto/x509/x509rset.o crypto/x509/x509spki.o crypto/x509/x509type.o crypto/x509/x_all.o crypto/x509/x_attrib.o crypto/x509/x_crl.o crypto/x509/x_exten.o crypto/x509/x_name.o crypto/x509/x_pubkey.o crypto/x509/x_req.o crypto/x509/x_x509.o crypto/x509/x_x509a.o crypto/x509v3/pcy_cache.o crypto/x509v3/pcy_data.o crypto/x509v3/pcy_lib.o crypto/x509v3/pcy_map.o crypto/x509v3/pcy_node.o crypto/x509v3/pcy_tree.o crypto/x509v3/v3_addr.o crypto/x509v3/v3_akey.o crypto/x509v3/v3_akeya.o crypto/x509v3/v3_alt.o crypto/x509v3/v3_asid.o crypto/x509v3/v3_bcons.o crypto/x509v3/v3_bitst.o crypto/x509v3/v3_conf.o crypto/x509v3/v3_cpols.o crypto/x509v3/v3_crld.o crypto/x509v3/v3_enum.o crypto/x509v3/v3_extku.o crypto/x509v3/v3_genn.o crypto/x509v3/v3_ia5.o crypto/x509v3/v3_info.o crypto/x509v3/v3_int.o crypto/x509v3/v3_lib.o crypto/x509v3/v3_ncons.o crypto/x509v3/v3_pci.o crypto/x509v3/v3_pcia.o crypto/x509v3/v3_pcons.o crypto/x509v3/v3_pku.o crypto/x509v3/v3_pmaps.o crypto/x509v3/v3_prn.o crypto/x509v3/v3_purp.o crypto/x509v3/v3_skey.o crypto/x509v3/v3_sxnet.o crypto/x509v3/v3_tlsf.o crypto/x509v3/v3_utl.o crypto/x509v3/v3err.o crypto/x86_64cpuid.o
ar: creating archive libcrypto.a
/opt/local/bin/ranlib: object: libcrypto.a(aes-x86_64.o) malformed object (unknown load command 1)
ar: internal ranlib command failed
make[1]: *** [libcrypto.a] Error 1
make: *** [all] Error 2


> On May 15, 2020, at 4:23 AM, Sam Ruby <ru...@intertwingly.net> wrote:
> 
> On Fri, May 15, 2020 at 12:00 AM Craig Russell <ap...@gmail.com> wrote:
> 
>> So, any ideas to try next?
>> 
> 
> I tried Ruby 2.7.1, and saw the hang.  I tried Ruby 2.4.1, and it started
> right up:
> 
> rbenv install 2.4.1
> rbenv global 2.4.1
> gem install bundler:1.17.2
> bundle update
> export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
> rake server
> 
> - Sam Ruby
> 
> 
>> The server starts up, and within 10 seconds emits
>> [ N 2020-05-14 20:49:52.3082 46685/T5 age/Cor/SecurityUpdateChecker.h:519
>> ]: Security update check: no update found (next check in 24 hours)
>> App 46731 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18:
>> warning: $SAFE will become a normal global variable in Ruby 3.0
>> 
>> I go to a browser Safari, Firefox, or Chrome and no response, no console
>> output.
>> 
>> The most I get for error message is E_CONNECTION_REFUSED message from
>> Chrome.
>> 
>> 
>>> On May 14, 2020, at 6:04 PM, Sam Ruby <ru...@intertwingly.net> wrote:
>>> 
>>> On Thu, May 14, 2020 at 8:11 PM Craig Russell <ap...@gmail.com>
>> wrote:
>>> 
>>>> So is this normal?
>>>> 
>>>> App 34044 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18:
>>>> warning: $SAFE will become a normal global variable in Ruby 3.0
>>>> 
>>> 
>>> I'm currently running 2.6.3., so I'm not sure what warnings 2.7.0 puts
>> out,
>>> but yes, that warning can safely
>>> be ignored.
>>> 
>>> - Sam Ruby
>>> 
>>> 
>>>>> On May 14, 2020, at 4:54 PM, Sam Ruby <ru...@intertwingly.net> wrote:
>>>>> 
>>>>> On Thu, May 14, 2020 at 7:24 PM Craig Russell <ap...@gmail.com>
>>>> wrote:
>>>>> 
>>>>>> [MacBook-Pro-10:~] clr% cat /etc/hosts
>>>>>> ##
>>>>>> # Host Database
>>>>>> #
>>>>>> # localhost is used to configure the loopback interface
>>>>>> # when the system is booting.  Do not change this entry.
>>>>>> ##
>>>>>> 127.0.0.1       localhost
>>>>>> 255.255.255.255 broadcasthost
>>>>>> ::1             whimsy.local
>>>>>> # Added by Docker Desktop
>>>>>> # To allow the same kube context to work on the host and the
>> container:
>>>>>> 127.0.0.1 kubernetes.docker.internal
>>>>>> # End of section
>>>>>> 
>>>>>> I think my wunderbar is out of date.
>>>>>> App 26532 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18:
>>>>>> warning: $SAFE will become a normal global variable in Ruby 3.0
>>>>>> [ W 2020-05-14 16:17:42.8530 27475/T1 age/Wat/WatchdogMain.cpp:538 ]:
>>>> Some
>>>>>> Phusion Passenger agent processes did not exit in time, forcefully
>>>> shutting
>>>>>> down all.
>>>>>> Remind me how to update my wunderbar?
>>>>>> 
>>>>> 
>>>>> In whimsy/roster, issue:
>>>>> 
>>>>>  bundle update
>>>>> 
>>>>> Or, if you want to do this for all whimsy tools, in the top level
>> whimsy
>>>>> directory:
>>>>> 
>>>>>  rake update
>>>>> 
>>>>> 
>>>>>> Thanks,
>>>>>> Craig
>>>>>> 
>>>>> 
>>>>> - Sam Ruby
>>>>> 
>>>>>> On May 14, 2020, at 8:41 AM, Sam Ruby <ru...@intertwingly.net> wrote:
>>>>>>> 
>>>>>>> On Thu, May 14, 2020 at 10:27 AM Craig Russell <apache.clr@gmail.com
>>> 
>>>>>> wrote:
>>>>>>> 
>>>>>>>> I've updated the local svn repos. The server now starts via rake
>> auth
>>>>>>>> server but nothing is returned from the browser
>>>>>> https://whimsy.local:3000
>>>>>>>> whimsy.local
>>>>>>>> whimsy.local:3000
>>>>>>>> When I try http://0.0.0.0:3000/
>>>>>>>> Safari can't connect to the server "0.0.0.0"
>>>>>>>> 
>>>>>>> 
>>>>>>> Reproduced on my machine.  Workarounds:
>>>>>>> 
>>>>>>> 1) Try http://localhost:3000/, or even http://127.0.0.1:3000/
>>>>>>> 
>>>>>>> 2) Try FIrefox or Chrome.  They work with 0.0.0.0.  Heck, even curl
>>>> does.
>>>>>>> 
>>>>>>> - Sam Ruby
>>>>>>> 
>>>>>>> P.S.
>>>>>>> 
>>>>>>> 1) I'm curious as to how you have whimsy.local set up in your
>>>> /etc/hosts
>>>>>>> file.  If it is not there, that would explain it.  Normally I ask
>>>> people
>>>>>> to
>>>>>>> set up whimsy.local when the run the full server (via setupmymac or
>> the
>>>>>>> instructions in MACOSX.md), and it points to an Apache httpd web
>>>> server.
>>>>>>> You are running just this tool standalone.
>>>>>>> 
>>>>>>> 2) Below I still see "Unexpected name 'Chukwa' in report section".
>>>> That
>>>>>>> would indicated that you still have a stale copy of
>> committee-info.txt
>>>>>>> being picked up.
>>>>>>> 
>>>>>>> 
>>>>>>>> [MacBook-Pro-10:whimsy/www/roster] clr% rake auth server
>>>>>>>> Enter password for clr:
>>>>>>>> bundle exec passenger start
>>>>>>>> =============== Phusion Passenger Standalone web server started
>>>>>>>> ===============
>>>>>>>> PID file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.pid
>>>>>>>> Log file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.log
>>>>>>>> Environment: development
>>>>>>>> Accessible via: http://0.0.0.0:3000/
>>>>>>>> 
>>>>>>>> You can stop Phusion Passenger Standalone by pressing Ctrl-C.
>>>>>>>> Problems? Check
>>>>>>>> 
>>>>>> 
>>>> 
>> https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/
>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> ===============================================================================
>>>>>>>> [ N 2020-05-14 07:20:45.7033 10132/T5
>>>>>> age/Cor/SecurityUpdateChecker.h:519
>>>>>>>> ]: Security update check: no update found (next check in 24 hours)
>>>>>>>> App 10179 output: _WARN Unexpected name 'Chukwa' in report section;
>>>>>> ignored
>>>>>>>> App 10179 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18:
>>>>>>>> warning: $SAFE will become a normal global variable in Ruby 3.0
>>>>>>>> ^CStopping web server...rake aborted!
>>>>>>>> Interrupt:
>>>>>>>> /Users/clr/apache/git/whimsy/www/roster/Rakefile:5:in `block in <top
>>>>>>>> (required)>'
>>>>>>>> Tasks: TOP => server
>>>>>>>> (See full trace by running task with --trace)
>>>>>>>> done
>>>>>>>> 
>>>>>>>> 
>>>>>>>>> On May 14, 2020, at 4:28 AM, Sam Ruby <ru...@intertwingly.net>
>>>> wrote:
>>>>>>>>> 
>>>>>>>>> On Thu, May 14, 2020 at 1:14 AM Craig Russell <
>> apache.clr@gmail.com>
>>>>>>>> wrote:
>>>>>>>>> 
>>>>>>>>>> So close... Maybe something to install with git
>>>>>> infrastructure-puppet???
>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> It also looks like you don't have a recent checkout of
>>>>>>>> committee-info.txt.
>>>>>>>>> 
>>>>>>>>> In the whimsy directory, run:
>>>>>>>>> 
>>>>>>>>> rake git:pull svn:update
>>>>>>>>> 
>>>>>>>>> - Sam Ruby
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>> [MacBook-Pro-10:whimsy/www/roster] clr% rake server
>>>>>>>>>> bundle exec passenger start
>>>>>>>>>> =============== Phusion Passenger Standalone web server started
>>>>>>>>>> ===============
>>>>>>>>>> PID file:
>> /Users/clr/apache/git/whimsy/www/roster/passenger.3000.pid
>>>>>>>>>> Log file:
>> /Users/clr/apache/git/whimsy/www/roster/passenger.3000.log
>>>>>>>>>> Environment: development
>>>>>>>>>> Accessible via: http://0.0.0.0:3000/
>>>>>>>>>> 
>>>>>>>>>> You can stop Phusion Passenger Standalone by pressing Ctrl-C.
>>>>>>>>>> Problems? Check
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> ===============================================================================
>>>>>>>>>> [ N 2020-05-13 16:37:59.4373 81640/T5
>>>>>>>> age/Cor/SecurityUpdateChecker.h:519
>>>>>>>>>> ]: Security update check: no update found (next check in 24 hours)
>>>>>>>>>> App 81688 output: _WARN Unexpected name 'Chukwa' in report
>> section;
>>>>>>>> ignored
>>>>>>>>>> App 81688 output: 2020-05-13 16:38:07 - Exception - Cannot find
>> Git:
>>>>>>>>>> infrastructure-puppet:
>>>>>>>>>> App 81688 output:
>>>>>>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/auth.rb:31:in
>>>> `initialize'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> /Users/clr/apache/git/whimsy/www/roster/models/group.rb:16:in
>> `new'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> /Users/clr/apache/git/whimsy/www/roster/models/group.rb:16:in
>> `list'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> /Users/clr/apache/git/whimsy/www/roster/main.rb:46:in `block in
>> <top
>>>>>>>>>> (required)>'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in
>>>>>>>>>> `call'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in
>>>>>>>>>> `block in compile!'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in
>>>>>>>>>> `block (3 levels) in route!'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1006:in
>>>>>>>>>> `route_eval'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in
>>>>>>>>>> `block (2 levels) in route!'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1035:in
>>>>>>>>>> `block in process_route'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in
>>>>>>>>>> `catch'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in
>>>>>>>>>> `process_route'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:985:in
>>>>>>>>>> `block in route!'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in
>>>>>>>>>> `each'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in
>>>>>>>>>> `route!'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1098:in
>>>>>>>>>> `block in dispatch!'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>>>>>>>> `block in invoke'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>>>>>>>> `catch'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>>>>>>>> `invoke'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1095:in
>>>>>>>>>> `dispatch!'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in
>>>>>>>>>> `block in call!'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>>>>>>>> `block in invoke'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>>>>>>>> `catch'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>>>>>>>> `invoke'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in
>>>>>>>>>> `call!'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:908:in
>>>>>>>>>> `call'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/xss_header.rb:18:in
>>>>>>>>>> `call'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/path_traversal.rb:16:in
>>>>>>>>>> `call'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/json_csrf.rb:26:in
>>>>>>>>>> `call'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in
>>>>>>>>>> `call'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in
>>>>>>>>>> `call'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/frame_options.rb:31:in
>>>>>>>>>> `call'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/null_logger.rb:11:in
>>>>>>>>>> `call'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/head.rb:12:in
>>>>>>>>>> `call'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/method_override.rb:24:in
>>>>>>>>>> `call'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/show_exceptions.rb:22:in
>>>>>>>>>> `call'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:194:in
>>>>>>>>>> `call'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1951:in
>>>>>>>>>> `call'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in
>>>>>>>>>> `block in call'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1730:in
>>>>>>>>>> `synchronize'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in
>>>>>>>>>> `call'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/deflater.rb:44:in
>>>>>>>>>> `call'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:223:in `call'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:48:in `call'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:200:in `call'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:254:in `call'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in
>>>>>>>>>> `process_request'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:157:in
>>>>>>>>>> `accept_and_process_next_request'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:110:in
>>>>>>>>>> `main_loop'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler.rb:415:in
>>>>>>>>>> `block (3 levels) in start_threads'
>>>>>>>>>> App 81688 output:
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/utils.rb:113:in
>>>>>>>>>> `block in create_thread_and_abort_on_exception'
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>>> On May 13, 2020, at 3:32 PM, Sam Ruby <ru...@intertwingly.net>
>>>>>> wrote:
>>>>>>>>>>> 
>>>>>>>>>>> On Wed, May 13, 2020 at 5:58 PM Craig Russell <
>>>> apache.clr@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>> 
>>>>>>>>>>>> I cannot implode rvm.
>>>>>>>>>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% rvm implode
>>>>>>>>>>>> Required ruby-2.4.1 is not installed.
>>>>>>>>>>>> To install do: 'rvm install "ruby-2.4.1"'
>>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> At a minimum, remove rvm from your .bash_profile or equivalent.
>>>>>>>>>>> 
>>>>>>>>>>> But I try to brew install ruby. It would only get me 2.7.1 but it
>>>>>>>> doesn't
>>>>>>>>>>>> work either.
>>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> Bummer.  Can you try rbenv?  I see you are running Mojave, so:
>>>>>>>>>>> 
>>>>>>>>>>> https://gorails.com/setup/osx/10.14-mojave#ruby
>>>>>>>>>>> 
>>>>>>>>>>> I do have docker installed so i can give that a try if I cannot
>>>> get a
>>>>>>>> 2.4
>>>>>>>>>>>> version of ruby.
>>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> I would recommend VirtualBox, but Sebb seemed to have some
>> success
>>>>>> with
>>>>>>>>>>> Docker.
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>>> Craig
>>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> - Sam Ruby
>>>>>>>>>>> 
>>>>>>>>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% brew upgrade ruby
>>>>>>>>>>>> ==> Upgrading 1 outdated package:
>>>>>>>>>>>> ruby 2.3.1 -> 2.7.1_2
>>>>>>>>>>>> ==> Upgrading ruby 2.3.1 -> 2.7.1_2
>>>>>>>>>>>> ==> Installing dependencies for ruby: libyaml
>>>>>>>>>>>> ==> Installing ruby dependency: libyaml
>>>>>>>>>>>> ==> Downloading
>>>>>>>>>>>> 
>>>>>>>> 
>>>> https://homebrew.bintray.com/bottles/libyaml-0.2.4.mojave.bottle.tar.gz
>>>>>>>>>>>> 
>>>>>>>> 
>>>> ########################################################################
>>>>>>>>>>>> 100.0%
>>>>>>>>>>>> ==> Pouring libyaml-0.2.4.mojave.bottle.tar.gz
>>>>>>>>>>>> 🍺  /usr/local/Cellar/libyaml/0.2.4: 10 files, 300.6KB
>>>>>>>>>>>> ==> Installing ruby
>>>>>>>>>>>> ==> Downloading
>>>>>>>>>>>> 
>>>>>>>> 
>>>> https://homebrew.bintray.com/bottles/ruby-2.7.1_2.mojave.bottle.tar.gz
>>>>>>>>>>>> ==> Downloading from
>>>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> https://akamai.bintray.com/d5/d597bee751f9419ea7b40d8125e4f58b2c1eb675b929fe85d8463a6e008b2250?__gda__=exp=1589407606~hmac=7e2c9a4deb10bf88d31f39c705e
>>>>>>>>>>>> 
>>>>>>>> 
>>>> ########################################################################
>>>>>>>>>>>> 100.0%
>>>>>>>>>>>> ==> Pouring ruby-2.7.1_2.mojave.bottle.tar.gz
>>>>>>>>>>>> Error: The `brew link` step did not complete successfully
>>>>>>>>>>>> The formula built, but is not symlinked into /usr/local
>>>>>>>>>>>> Could not symlink bin/bundle
>>>>>>>>>>>> Target /usr/local/bin/bundle
>>>>>>>>>>>> already exists. You may want to remove it:
>>>>>>>>>>>> rm '/usr/local/bin/bundle'
>>>>>>>>>>>> 
>>>>>>>>>>>> To force the link and overwrite all conflicting files:
>>>>>>>>>>>> brew link --overwrite ruby
>>>>>>>>>>>> 
>>>>>>>>>>>> To list all files that would be deleted:
>>>>>>>>>>>> brew link --overwrite --dry-run ruby
>>>>>>>>>>>> 
>>>>>>>>>>>> Possible conflicting files are:
>>>>>>>>>>>> /usr/local/bin/bundle
>>>>>>>>>>>> /usr/local/bin/bundler
>>>>>>>>>>>> /usr/local/bin/rake
>>>>>>>>>>>> ==> Caveats
>>>>>>>>>>>> By default, binaries installed by gem will be placed into:
>>>>>>>>>>>> /usr/local/lib/ruby/gems/2.7.0/bin
>>>>>>>>>>>> 
>>>>>>>>>>>> You may want to add this to your PATH.
>>>>>>>>>>>> 
>>>>>>>>>>>> ruby is keg-only, which means it was not symlinked into
>>>> /usr/local,
>>>>>>>>>>>> because macOS already provides this software and installing
>>>> another
>>>>>>>>>>>> version in
>>>>>>>>>>>> parallel can cause all kinds of trouble.
>>>>>>>>>>>> 
>>>>>>>>>>>> If you need to have ruby first in your PATH run:
>>>>>>>>>>>> echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
>>>>>>>>>>>> 
>>>>>>>>>>>> For compilers to find ruby you may need to set:
>>>>>>>>>>>> setenv LDFLAGS -L/usr/local/opt/ruby/lib;
>>>>>>>>>>>> setenv CPPFLAGS -I/usr/local/opt/ruby/include;
>>>>>>>>>>>> 
>>>>>>>>>>>> For pkg-config to find ruby you may need to set:
>>>>>>>>>>>> setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
>>>>>>>>>>>> 
>>>>>>>>>>>> ==> Summary
>>>>>>>>>>>> 🍺  /usr/local/Cellar/ruby/2.7.1_2: 20,142 files, 31.9MB
>>>>>>>>>>>> Removing: /usr/local/Cellar/ruby/2.3.1... (1,260 files, 19.0MB)
>>>>>>>>>>>> ==> Checking for dependents of upgraded formulae...
>>>>>>>>>>>> ==> No dependents found!
>>>>>>>>>>>> ==> Caveats
>>>>>>>>>>>> ==> ruby
>>>>>>>>>>>> By default, binaries installed by gem will be placed into:
>>>>>>>>>>>> /usr/local/lib/ruby/gems/2.7.0/bin
>>>>>>>>>>>> 
>>>>>>>>>>>> You may want to add this to your PATH.
>>>>>>>>>>>> 
>>>>>>>>>>>> ruby is keg-only, which means it was not symlinked into
>>>> /usr/local,
>>>>>>>>>>>> because macOS already provides this software and installing
>>>> another
>>>>>>>>>>>> version in
>>>>>>>>>>>> parallel can cause all kinds of trouble.
>>>>>>>>>>>> 
>>>>>>>>>>>> If you need to have ruby first in your PATH run:
>>>>>>>>>>>> echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
>>>>>>>>>>>> 
>>>>>>>>>>>> For compilers to find ruby you may need to set:
>>>>>>>>>>>> setenv LDFLAGS -L/usr/local/opt/ruby/lib;
>>>>>>>>>>>> setenv CPPFLAGS -I/usr/local/opt/ruby/include;
>>>>>>>>>>>> 
>>>>>>>>>>>> For pkg-config to find ruby you may need to set:
>>>>>>>>>>>> setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>>> On May 13, 2020, at 2:48 PM, Sam Ruby <ru...@intertwingly.net>
>>>>>>>> wrote:
>>>>>>>>>>>>> 
>>>>>>>>>>>>> On Wed, May 13, 2020 at 5:38 PM Craig Russell <
>>>>>> apache.clr@gmail.com>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>> 
>>>>>>>>>>>>>> I think I'm in a loop:
>>>>>>>>>>>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% ~/.rvm/scripts/rvm
>>>>>> install
>>>>>>>>>>>>>> "ruby-2.4.1"
>>>>>>>>>>>>>> Required ruby-2.4.1 is not installed.
>>>>>>>>>>>>>> To install do: 'rvm install "ruby-2.4.1"'
>>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Recommendation:
>>>>>>>>>>>>> 
>>>>>>>>>>>>> rvm implode
>>>>>>>>>>>>> brew install ruby
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Explanation:
>>>>>>>>>>>>> 
>>>>>>>>>>>>> rvm solves the problem of "I want to run multiple versions of
>>>>>> Ruby".
>>>>>>>>>>>>> 
>>>>>>>>>>>>> brew solves the problem of "I want to run a recent version of
>>>> Ruby"
>>>>>>>>>>>>> 
>>>>>>>>>>>>> I think brew is a better match to your needs.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> If you do want to run multiple versions of Ruby, try rbenv
>>>> instead:
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> https://github.com/apache/whimsy/blob/master/MACOSX.md#upgrade-ruby-if-needed
>>>>>>>>>>>>> 
>>>>>>>>>>>>> - Sam Ruby
>>>>>>>>>>>> 
>>>>>>>>>>>> Craig L Russell
>>>>>>>>>>>> clr@apache.org
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> Craig L Russell
>>>>>>>>>> clr@apache.org
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>> 
>>>>>>>> Craig L Russell
>>>>>>>> clr@apache.org
>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>>>> Craig L Russell
>>>>>> clr@apache.org
>>>>>> 
>>>>>> 
>>>> 
>>>> Craig L Russell
>>>> clr@apache.org
>>>> 
>>>> 
>> 
>> Craig L Russell
>> clr@apache.org
>> 
>> 

Craig L Russell
clr@apache.org


Re: Roster emeritus function now with code to review and a local failure

Posted by Sam Ruby <ru...@intertwingly.net>.
On Fri, May 15, 2020 at 12:00 AM Craig Russell <ap...@gmail.com> wrote:

> So, any ideas to try next?
>

I tried Ruby 2.7.1, and saw the hang.  I tried Ruby 2.4.1, and it started
right up:

rbenv install 2.4.1
rbenv global 2.4.1
gem install bundler:1.17.2
bundle update
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
rake server

- Sam Ruby


> The server starts up, and within 10 seconds emits
> [ N 2020-05-14 20:49:52.3082 46685/T5 age/Cor/SecurityUpdateChecker.h:519
> ]: Security update check: no update found (next check in 24 hours)
> App 46731 output:
> /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18:
> warning: $SAFE will become a normal global variable in Ruby 3.0
>
> I go to a browser Safari, Firefox, or Chrome and no response, no console
> output.
>
> The most I get for error message is E_CONNECTION_REFUSED message from
> Chrome.
>
>
> > On May 14, 2020, at 6:04 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> >
> > On Thu, May 14, 2020 at 8:11 PM Craig Russell <ap...@gmail.com>
> wrote:
> >
> >> So is this normal?
> >>
> >> App 34044 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18:
> >> warning: $SAFE will become a normal global variable in Ruby 3.0
> >>
> >
> > I'm currently running 2.6.3., so I'm not sure what warnings 2.7.0 puts
> out,
> > but yes, that warning can safely
> > be ignored.
> >
> > - Sam Ruby
> >
> >
> >>> On May 14, 2020, at 4:54 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> >>>
> >>> On Thu, May 14, 2020 at 7:24 PM Craig Russell <ap...@gmail.com>
> >> wrote:
> >>>
> >>>> [MacBook-Pro-10:~] clr% cat /etc/hosts
> >>>> ##
> >>>> # Host Database
> >>>> #
> >>>> # localhost is used to configure the loopback interface
> >>>> # when the system is booting.  Do not change this entry.
> >>>> ##
> >>>> 127.0.0.1       localhost
> >>>> 255.255.255.255 broadcasthost
> >>>> ::1             whimsy.local
> >>>> # Added by Docker Desktop
> >>>> # To allow the same kube context to work on the host and the
> container:
> >>>> 127.0.0.1 kubernetes.docker.internal
> >>>> # End of section
> >>>>
> >>>> I think my wunderbar is out of date.
> >>>> App 26532 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18:
> >>>> warning: $SAFE will become a normal global variable in Ruby 3.0
> >>>> [ W 2020-05-14 16:17:42.8530 27475/T1 age/Wat/WatchdogMain.cpp:538 ]:
> >> Some
> >>>> Phusion Passenger agent processes did not exit in time, forcefully
> >> shutting
> >>>> down all.
> >>>> Remind me how to update my wunderbar?
> >>>>
> >>>
> >>> In whimsy/roster, issue:
> >>>
> >>>   bundle update
> >>>
> >>> Or, if you want to do this for all whimsy tools, in the top level
> whimsy
> >>> directory:
> >>>
> >>>   rake update
> >>>
> >>>
> >>>> Thanks,
> >>>> Craig
> >>>>
> >>>
> >>> - Sam Ruby
> >>>
> >>>> On May 14, 2020, at 8:41 AM, Sam Ruby <ru...@intertwingly.net> wrote:
> >>>>>
> >>>>> On Thu, May 14, 2020 at 10:27 AM Craig Russell <apache.clr@gmail.com
> >
> >>>> wrote:
> >>>>>
> >>>>>> I've updated the local svn repos. The server now starts via rake
> auth
> >>>>>> server but nothing is returned from the browser
> >>>> https://whimsy.local:3000
> >>>>>> whimsy.local
> >>>>>> whimsy.local:3000
> >>>>>> When I try http://0.0.0.0:3000/
> >>>>>> Safari can't connect to the server "0.0.0.0"
> >>>>>>
> >>>>>
> >>>>> Reproduced on my machine.  Workarounds:
> >>>>>
> >>>>> 1) Try http://localhost:3000/, or even http://127.0.0.1:3000/
> >>>>>
> >>>>> 2) Try FIrefox or Chrome.  They work with 0.0.0.0.  Heck, even curl
> >> does.
> >>>>>
> >>>>> - Sam Ruby
> >>>>>
> >>>>> P.S.
> >>>>>
> >>>>> 1) I'm curious as to how you have whimsy.local set up in your
> >> /etc/hosts
> >>>>> file.  If it is not there, that would explain it.  Normally I ask
> >> people
> >>>> to
> >>>>> set up whimsy.local when the run the full server (via setupmymac or
> the
> >>>>> instructions in MACOSX.md), and it points to an Apache httpd web
> >> server.
> >>>>> You are running just this tool standalone.
> >>>>>
> >>>>> 2) Below I still see "Unexpected name 'Chukwa' in report section".
> >> That
> >>>>> would indicated that you still have a stale copy of
> committee-info.txt
> >>>>> being picked up.
> >>>>>
> >>>>>
> >>>>>> [MacBook-Pro-10:whimsy/www/roster] clr% rake auth server
> >>>>>> Enter password for clr:
> >>>>>> bundle exec passenger start
> >>>>>> =============== Phusion Passenger Standalone web server started
> >>>>>> ===============
> >>>>>> PID file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.pid
> >>>>>> Log file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.log
> >>>>>> Environment: development
> >>>>>> Accessible via: http://0.0.0.0:3000/
> >>>>>>
> >>>>>> You can stop Phusion Passenger Standalone by pressing Ctrl-C.
> >>>>>> Problems? Check
> >>>>>>
> >>>>
> >>
> https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/
> >>>>>>
> >>>>>>
> >>>>
> >>
> ===============================================================================
> >>>>>> [ N 2020-05-14 07:20:45.7033 10132/T5
> >>>> age/Cor/SecurityUpdateChecker.h:519
> >>>>>> ]: Security update check: no update found (next check in 24 hours)
> >>>>>> App 10179 output: _WARN Unexpected name 'Chukwa' in report section;
> >>>> ignored
> >>>>>> App 10179 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18:
> >>>>>> warning: $SAFE will become a normal global variable in Ruby 3.0
> >>>>>> ^CStopping web server...rake aborted!
> >>>>>> Interrupt:
> >>>>>> /Users/clr/apache/git/whimsy/www/roster/Rakefile:5:in `block in <top
> >>>>>> (required)>'
> >>>>>> Tasks: TOP => server
> >>>>>> (See full trace by running task with --trace)
> >>>>>> done
> >>>>>>
> >>>>>>
> >>>>>>> On May 14, 2020, at 4:28 AM, Sam Ruby <ru...@intertwingly.net>
> >> wrote:
> >>>>>>>
> >>>>>>> On Thu, May 14, 2020 at 1:14 AM Craig Russell <
> apache.clr@gmail.com>
> >>>>>> wrote:
> >>>>>>>
> >>>>>>>> So close... Maybe something to install with git
> >>>> infrastructure-puppet???
> >>>>>>>>
> >>>>>>>
> >>>>>>> It also looks like you don't have a recent checkout of
> >>>>>> committee-info.txt.
> >>>>>>>
> >>>>>>> In the whimsy directory, run:
> >>>>>>>
> >>>>>>> rake git:pull svn:update
> >>>>>>>
> >>>>>>> - Sam Ruby
> >>>>>>>
> >>>>>>>
> >>>>>>>> [MacBook-Pro-10:whimsy/www/roster] clr% rake server
> >>>>>>>> bundle exec passenger start
> >>>>>>>> =============== Phusion Passenger Standalone web server started
> >>>>>>>> ===============
> >>>>>>>> PID file:
> /Users/clr/apache/git/whimsy/www/roster/passenger.3000.pid
> >>>>>>>> Log file:
> /Users/clr/apache/git/whimsy/www/roster/passenger.3000.log
> >>>>>>>> Environment: development
> >>>>>>>> Accessible via: http://0.0.0.0:3000/
> >>>>>>>>
> >>>>>>>> You can stop Phusion Passenger Standalone by pressing Ctrl-C.
> >>>>>>>> Problems? Check
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/
> >>>>>>>>
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> ===============================================================================
> >>>>>>>> [ N 2020-05-13 16:37:59.4373 81640/T5
> >>>>>> age/Cor/SecurityUpdateChecker.h:519
> >>>>>>>> ]: Security update check: no update found (next check in 24 hours)
> >>>>>>>> App 81688 output: _WARN Unexpected name 'Chukwa' in report
> section;
> >>>>>> ignored
> >>>>>>>> App 81688 output: 2020-05-13 16:38:07 - Exception - Cannot find
> Git:
> >>>>>>>> infrastructure-puppet:
> >>>>>>>> App 81688 output:
> >>>>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/auth.rb:31:in
> >> `initialize'
> >>>>>>>> App 81688 output:
> >>>>>>>> /Users/clr/apache/git/whimsy/www/roster/models/group.rb:16:in
> `new'
> >>>>>>>> App 81688 output:
> >>>>>>>> /Users/clr/apache/git/whimsy/www/roster/models/group.rb:16:in
> `list'
> >>>>>>>> App 81688 output:
> >>>>>>>> /Users/clr/apache/git/whimsy/www/roster/main.rb:46:in `block in
> <top
> >>>>>>>> (required)>'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in
> >>>>>>>> `call'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in
> >>>>>>>> `block in compile!'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in
> >>>>>>>> `block (3 levels) in route!'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1006:in
> >>>>>>>> `route_eval'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in
> >>>>>>>> `block (2 levels) in route!'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1035:in
> >>>>>>>> `block in process_route'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in
> >>>>>>>> `catch'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in
> >>>>>>>> `process_route'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:985:in
> >>>>>>>> `block in route!'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in
> >>>>>>>> `each'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in
> >>>>>>>> `route!'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1098:in
> >>>>>>>> `block in dispatch!'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >>>>>>>> `block in invoke'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >>>>>>>> `catch'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >>>>>>>> `invoke'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1095:in
> >>>>>>>> `dispatch!'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in
> >>>>>>>> `block in call!'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >>>>>>>> `block in invoke'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >>>>>>>> `catch'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >>>>>>>> `invoke'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in
> >>>>>>>> `call!'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:908:in
> >>>>>>>> `call'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/xss_header.rb:18:in
> >>>>>>>> `call'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/path_traversal.rb:16:in
> >>>>>>>> `call'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/json_csrf.rb:26:in
> >>>>>>>> `call'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in
> >>>>>>>> `call'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in
> >>>>>>>> `call'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/frame_options.rb:31:in
> >>>>>>>> `call'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/null_logger.rb:11:in
> >>>>>>>> `call'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/head.rb:12:in
> >>>>>>>> `call'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/method_override.rb:24:in
> >>>>>>>> `call'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/show_exceptions.rb:22:in
> >>>>>>>> `call'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:194:in
> >>>>>>>> `call'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1951:in
> >>>>>>>> `call'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in
> >>>>>>>> `block in call'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1730:in
> >>>>>>>> `synchronize'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in
> >>>>>>>> `call'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/deflater.rb:44:in
> >>>>>>>> `call'
> >>>>>>>> App 81688 output:
> >>>>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:223:in `call'
> >>>>>>>> App 81688 output:
> >>>>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:48:in `call'
> >>>>>>>> App 81688 output:
> >>>>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:200:in `call'
> >>>>>>>> App 81688 output:
> >>>>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:254:in `call'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in
> >>>>>>>> `process_request'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:157:in
> >>>>>>>> `accept_and_process_next_request'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:110:in
> >>>>>>>> `main_loop'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler.rb:415:in
> >>>>>>>> `block (3 levels) in start_threads'
> >>>>>>>> App 81688 output:
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/utils.rb:113:in
> >>>>>>>> `block in create_thread_and_abort_on_exception'
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> On May 13, 2020, at 3:32 PM, Sam Ruby <ru...@intertwingly.net>
> >>>> wrote:
> >>>>>>>>>
> >>>>>>>>> On Wed, May 13, 2020 at 5:58 PM Craig Russell <
> >> apache.clr@gmail.com>
> >>>>>>>> wrote:
> >>>>>>>>>
> >>>>>>>>>> I cannot implode rvm.
> >>>>>>>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% rvm implode
> >>>>>>>>>> Required ruby-2.4.1 is not installed.
> >>>>>>>>>> To install do: 'rvm install "ruby-2.4.1"'
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> At a minimum, remove rvm from your .bash_profile or equivalent.
> >>>>>>>>>
> >>>>>>>>> But I try to brew install ruby. It would only get me 2.7.1 but it
> >>>>>> doesn't
> >>>>>>>>>> work either.
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> Bummer.  Can you try rbenv?  I see you are running Mojave, so:
> >>>>>>>>>
> >>>>>>>>> https://gorails.com/setup/osx/10.14-mojave#ruby
> >>>>>>>>>
> >>>>>>>>> I do have docker installed so i can give that a try if I cannot
> >> get a
> >>>>>> 2.4
> >>>>>>>>>> version of ruby.
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> I would recommend VirtualBox, but Sebb seemed to have some
> success
> >>>> with
> >>>>>>>>> Docker.
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>> Craig
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> - Sam Ruby
> >>>>>>>>>
> >>>>>>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% brew upgrade ruby
> >>>>>>>>>> ==> Upgrading 1 outdated package:
> >>>>>>>>>> ruby 2.3.1 -> 2.7.1_2
> >>>>>>>>>> ==> Upgrading ruby 2.3.1 -> 2.7.1_2
> >>>>>>>>>> ==> Installing dependencies for ruby: libyaml
> >>>>>>>>>> ==> Installing ruby dependency: libyaml
> >>>>>>>>>> ==> Downloading
> >>>>>>>>>>
> >>>>>>
> >> https://homebrew.bintray.com/bottles/libyaml-0.2.4.mojave.bottle.tar.gz
> >>>>>>>>>>
> >>>>>>
> >> ########################################################################
> >>>>>>>>>> 100.0%
> >>>>>>>>>> ==> Pouring libyaml-0.2.4.mojave.bottle.tar.gz
> >>>>>>>>>> 🍺  /usr/local/Cellar/libyaml/0.2.4: 10 files, 300.6KB
> >>>>>>>>>> ==> Installing ruby
> >>>>>>>>>> ==> Downloading
> >>>>>>>>>>
> >>>>>>
> >> https://homebrew.bintray.com/bottles/ruby-2.7.1_2.mojave.bottle.tar.gz
> >>>>>>>>>> ==> Downloading from
> >>>>>>>>>>
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> https://akamai.bintray.com/d5/d597bee751f9419ea7b40d8125e4f58b2c1eb675b929fe85d8463a6e008b2250?__gda__=exp=1589407606~hmac=7e2c9a4deb10bf88d31f39c705e
> >>>>>>>>>>
> >>>>>>
> >> ########################################################################
> >>>>>>>>>> 100.0%
> >>>>>>>>>> ==> Pouring ruby-2.7.1_2.mojave.bottle.tar.gz
> >>>>>>>>>> Error: The `brew link` step did not complete successfully
> >>>>>>>>>> The formula built, but is not symlinked into /usr/local
> >>>>>>>>>> Could not symlink bin/bundle
> >>>>>>>>>> Target /usr/local/bin/bundle
> >>>>>>>>>> already exists. You may want to remove it:
> >>>>>>>>>> rm '/usr/local/bin/bundle'
> >>>>>>>>>>
> >>>>>>>>>> To force the link and overwrite all conflicting files:
> >>>>>>>>>> brew link --overwrite ruby
> >>>>>>>>>>
> >>>>>>>>>> To list all files that would be deleted:
> >>>>>>>>>> brew link --overwrite --dry-run ruby
> >>>>>>>>>>
> >>>>>>>>>> Possible conflicting files are:
> >>>>>>>>>> /usr/local/bin/bundle
> >>>>>>>>>> /usr/local/bin/bundler
> >>>>>>>>>> /usr/local/bin/rake
> >>>>>>>>>> ==> Caveats
> >>>>>>>>>> By default, binaries installed by gem will be placed into:
> >>>>>>>>>> /usr/local/lib/ruby/gems/2.7.0/bin
> >>>>>>>>>>
> >>>>>>>>>> You may want to add this to your PATH.
> >>>>>>>>>>
> >>>>>>>>>> ruby is keg-only, which means it was not symlinked into
> >> /usr/local,
> >>>>>>>>>> because macOS already provides this software and installing
> >> another
> >>>>>>>>>> version in
> >>>>>>>>>> parallel can cause all kinds of trouble.
> >>>>>>>>>>
> >>>>>>>>>> If you need to have ruby first in your PATH run:
> >>>>>>>>>> echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
> >>>>>>>>>>
> >>>>>>>>>> For compilers to find ruby you may need to set:
> >>>>>>>>>> setenv LDFLAGS -L/usr/local/opt/ruby/lib;
> >>>>>>>>>> setenv CPPFLAGS -I/usr/local/opt/ruby/include;
> >>>>>>>>>>
> >>>>>>>>>> For pkg-config to find ruby you may need to set:
> >>>>>>>>>> setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
> >>>>>>>>>>
> >>>>>>>>>> ==> Summary
> >>>>>>>>>> 🍺  /usr/local/Cellar/ruby/2.7.1_2: 20,142 files, 31.9MB
> >>>>>>>>>> Removing: /usr/local/Cellar/ruby/2.3.1... (1,260 files, 19.0MB)
> >>>>>>>>>> ==> Checking for dependents of upgraded formulae...
> >>>>>>>>>> ==> No dependents found!
> >>>>>>>>>> ==> Caveats
> >>>>>>>>>> ==> ruby
> >>>>>>>>>> By default, binaries installed by gem will be placed into:
> >>>>>>>>>> /usr/local/lib/ruby/gems/2.7.0/bin
> >>>>>>>>>>
> >>>>>>>>>> You may want to add this to your PATH.
> >>>>>>>>>>
> >>>>>>>>>> ruby is keg-only, which means it was not symlinked into
> >> /usr/local,
> >>>>>>>>>> because macOS already provides this software and installing
> >> another
> >>>>>>>>>> version in
> >>>>>>>>>> parallel can cause all kinds of trouble.
> >>>>>>>>>>
> >>>>>>>>>> If you need to have ruby first in your PATH run:
> >>>>>>>>>> echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
> >>>>>>>>>>
> >>>>>>>>>> For compilers to find ruby you may need to set:
> >>>>>>>>>> setenv LDFLAGS -L/usr/local/opt/ruby/lib;
> >>>>>>>>>> setenv CPPFLAGS -I/usr/local/opt/ruby/include;
> >>>>>>>>>>
> >>>>>>>>>> For pkg-config to find ruby you may need to set:
> >>>>>>>>>> setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>> On May 13, 2020, at 2:48 PM, Sam Ruby <ru...@intertwingly.net>
> >>>>>> wrote:
> >>>>>>>>>>>
> >>>>>>>>>>> On Wed, May 13, 2020 at 5:38 PM Craig Russell <
> >>>> apache.clr@gmail.com>
> >>>>>>>>>> wrote:
> >>>>>>>>>>>
> >>>>>>>>>>>> I think I'm in a loop:
> >>>>>>>>>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% ~/.rvm/scripts/rvm
> >>>> install
> >>>>>>>>>>>> "ruby-2.4.1"
> >>>>>>>>>>>> Required ruby-2.4.1 is not installed.
> >>>>>>>>>>>> To install do: 'rvm install "ruby-2.4.1"'
> >>>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>> Recommendation:
> >>>>>>>>>>>
> >>>>>>>>>>> rvm implode
> >>>>>>>>>>> brew install ruby
> >>>>>>>>>>>
> >>>>>>>>>>> Explanation:
> >>>>>>>>>>>
> >>>>>>>>>>> rvm solves the problem of "I want to run multiple versions of
> >>>> Ruby".
> >>>>>>>>>>>
> >>>>>>>>>>> brew solves the problem of "I want to run a recent version of
> >> Ruby"
> >>>>>>>>>>>
> >>>>>>>>>>> I think brew is a better match to your needs.
> >>>>>>>>>>>
> >>>>>>>>>>> If you do want to run multiple versions of Ruby, try rbenv
> >> instead:
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> https://github.com/apache/whimsy/blob/master/MACOSX.md#upgrade-ruby-if-needed
> >>>>>>>>>>>
> >>>>>>>>>>> - Sam Ruby
> >>>>>>>>>>
> >>>>>>>>>> Craig L Russell
> >>>>>>>>>> clr@apache.org
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>
> >>>>>>>> Craig L Russell
> >>>>>>>> clr@apache.org
> >>>>>>>>
> >>>>>>>>
> >>>>>>
> >>>>>> Craig L Russell
> >>>>>> clr@apache.org
> >>>>>>
> >>>>>>
> >>>>
> >>>> Craig L Russell
> >>>> clr@apache.org
> >>>>
> >>>>
> >>
> >> Craig L Russell
> >> clr@apache.org
> >>
> >>
>
> Craig L Russell
> clr@apache.org
>
>

Re: Roster emeritus function now with code to review and a local failure

Posted by Craig Russell <ap...@gmail.com>.
So, any ideas to try next?

The server starts up, and within 10 seconds emits 
[ N 2020-05-14 20:49:52.3082 46685/T5 age/Cor/SecurityUpdateChecker.h:519 ]: Security update check: no update found (next check in 24 hours)
App 46731 output: /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18: warning: $SAFE will become a normal global variable in Ruby 3.0

I go to a browser Safari, Firefox, or Chrome and no response, no console output.

The most I get for error message is E_CONNECTION_REFUSED message from Chrome.


> On May 14, 2020, at 6:04 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> 
> On Thu, May 14, 2020 at 8:11 PM Craig Russell <ap...@gmail.com> wrote:
> 
>> So is this normal?
>> 
>> App 34044 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18:
>> warning: $SAFE will become a normal global variable in Ruby 3.0
>> 
> 
> I'm currently running 2.6.3., so I'm not sure what warnings 2.7.0 puts out,
> but yes, that warning can safely
> be ignored.
> 
> - Sam Ruby
> 
> 
>>> On May 14, 2020, at 4:54 PM, Sam Ruby <ru...@intertwingly.net> wrote:
>>> 
>>> On Thu, May 14, 2020 at 7:24 PM Craig Russell <ap...@gmail.com>
>> wrote:
>>> 
>>>> [MacBook-Pro-10:~] clr% cat /etc/hosts
>>>> ##
>>>> # Host Database
>>>> #
>>>> # localhost is used to configure the loopback interface
>>>> # when the system is booting.  Do not change this entry.
>>>> ##
>>>> 127.0.0.1       localhost
>>>> 255.255.255.255 broadcasthost
>>>> ::1             whimsy.local
>>>> # Added by Docker Desktop
>>>> # To allow the same kube context to work on the host and the container:
>>>> 127.0.0.1 kubernetes.docker.internal
>>>> # End of section
>>>> 
>>>> I think my wunderbar is out of date.
>>>> App 26532 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18:
>>>> warning: $SAFE will become a normal global variable in Ruby 3.0
>>>> [ W 2020-05-14 16:17:42.8530 27475/T1 age/Wat/WatchdogMain.cpp:538 ]:
>> Some
>>>> Phusion Passenger agent processes did not exit in time, forcefully
>> shutting
>>>> down all.
>>>> Remind me how to update my wunderbar?
>>>> 
>>> 
>>> In whimsy/roster, issue:
>>> 
>>>   bundle update
>>> 
>>> Or, if you want to do this for all whimsy tools, in the top level whimsy
>>> directory:
>>> 
>>>   rake update
>>> 
>>> 
>>>> Thanks,
>>>> Craig
>>>> 
>>> 
>>> - Sam Ruby
>>> 
>>>> On May 14, 2020, at 8:41 AM, Sam Ruby <ru...@intertwingly.net> wrote:
>>>>> 
>>>>> On Thu, May 14, 2020 at 10:27 AM Craig Russell <ap...@gmail.com>
>>>> wrote:
>>>>> 
>>>>>> I've updated the local svn repos. The server now starts via rake auth
>>>>>> server but nothing is returned from the browser
>>>> https://whimsy.local:3000
>>>>>> whimsy.local
>>>>>> whimsy.local:3000
>>>>>> When I try http://0.0.0.0:3000/
>>>>>> Safari can't connect to the server "0.0.0.0"
>>>>>> 
>>>>> 
>>>>> Reproduced on my machine.  Workarounds:
>>>>> 
>>>>> 1) Try http://localhost:3000/, or even http://127.0.0.1:3000/
>>>>> 
>>>>> 2) Try FIrefox or Chrome.  They work with 0.0.0.0.  Heck, even curl
>> does.
>>>>> 
>>>>> - Sam Ruby
>>>>> 
>>>>> P.S.
>>>>> 
>>>>> 1) I'm curious as to how you have whimsy.local set up in your
>> /etc/hosts
>>>>> file.  If it is not there, that would explain it.  Normally I ask
>> people
>>>> to
>>>>> set up whimsy.local when the run the full server (via setupmymac or the
>>>>> instructions in MACOSX.md), and it points to an Apache httpd web
>> server.
>>>>> You are running just this tool standalone.
>>>>> 
>>>>> 2) Below I still see "Unexpected name 'Chukwa' in report section".
>> That
>>>>> would indicated that you still have a stale copy of committee-info.txt
>>>>> being picked up.
>>>>> 
>>>>> 
>>>>>> [MacBook-Pro-10:whimsy/www/roster] clr% rake auth server
>>>>>> Enter password for clr:
>>>>>> bundle exec passenger start
>>>>>> =============== Phusion Passenger Standalone web server started
>>>>>> ===============
>>>>>> PID file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.pid
>>>>>> Log file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.log
>>>>>> Environment: development
>>>>>> Accessible via: http://0.0.0.0:3000/
>>>>>> 
>>>>>> You can stop Phusion Passenger Standalone by pressing Ctrl-C.
>>>>>> Problems? Check
>>>>>> 
>>>> 
>> https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/
>>>>>> 
>>>>>> 
>>>> 
>> ===============================================================================
>>>>>> [ N 2020-05-14 07:20:45.7033 10132/T5
>>>> age/Cor/SecurityUpdateChecker.h:519
>>>>>> ]: Security update check: no update found (next check in 24 hours)
>>>>>> App 10179 output: _WARN Unexpected name 'Chukwa' in report section;
>>>> ignored
>>>>>> App 10179 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18:
>>>>>> warning: $SAFE will become a normal global variable in Ruby 3.0
>>>>>> ^CStopping web server...rake aborted!
>>>>>> Interrupt:
>>>>>> /Users/clr/apache/git/whimsy/www/roster/Rakefile:5:in `block in <top
>>>>>> (required)>'
>>>>>> Tasks: TOP => server
>>>>>> (See full trace by running task with --trace)
>>>>>> done
>>>>>> 
>>>>>> 
>>>>>>> On May 14, 2020, at 4:28 AM, Sam Ruby <ru...@intertwingly.net>
>> wrote:
>>>>>>> 
>>>>>>> On Thu, May 14, 2020 at 1:14 AM Craig Russell <ap...@gmail.com>
>>>>>> wrote:
>>>>>>> 
>>>>>>>> So close... Maybe something to install with git
>>>> infrastructure-puppet???
>>>>>>>> 
>>>>>>> 
>>>>>>> It also looks like you don't have a recent checkout of
>>>>>> committee-info.txt.
>>>>>>> 
>>>>>>> In the whimsy directory, run:
>>>>>>> 
>>>>>>> rake git:pull svn:update
>>>>>>> 
>>>>>>> - Sam Ruby
>>>>>>> 
>>>>>>> 
>>>>>>>> [MacBook-Pro-10:whimsy/www/roster] clr% rake server
>>>>>>>> bundle exec passenger start
>>>>>>>> =============== Phusion Passenger Standalone web server started
>>>>>>>> ===============
>>>>>>>> PID file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.pid
>>>>>>>> Log file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.log
>>>>>>>> Environment: development
>>>>>>>> Accessible via: http://0.0.0.0:3000/
>>>>>>>> 
>>>>>>>> You can stop Phusion Passenger Standalone by pressing Ctrl-C.
>>>>>>>> Problems? Check
>>>>>>>> 
>>>>>> 
>>>> 
>> https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/
>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> ===============================================================================
>>>>>>>> [ N 2020-05-13 16:37:59.4373 81640/T5
>>>>>> age/Cor/SecurityUpdateChecker.h:519
>>>>>>>> ]: Security update check: no update found (next check in 24 hours)
>>>>>>>> App 81688 output: _WARN Unexpected name 'Chukwa' in report section;
>>>>>> ignored
>>>>>>>> App 81688 output: 2020-05-13 16:38:07 - Exception - Cannot find Git:
>>>>>>>> infrastructure-puppet:
>>>>>>>> App 81688 output:
>>>>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/auth.rb:31:in
>> `initialize'
>>>>>>>> App 81688 output:
>>>>>>>> /Users/clr/apache/git/whimsy/www/roster/models/group.rb:16:in `new'
>>>>>>>> App 81688 output:
>>>>>>>> /Users/clr/apache/git/whimsy/www/roster/models/group.rb:16:in `list'
>>>>>>>> App 81688 output:
>>>>>>>> /Users/clr/apache/git/whimsy/www/roster/main.rb:46:in `block in <top
>>>>>>>> (required)>'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in
>>>>>>>> `call'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in
>>>>>>>> `block in compile!'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in
>>>>>>>> `block (3 levels) in route!'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1006:in
>>>>>>>> `route_eval'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in
>>>>>>>> `block (2 levels) in route!'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1035:in
>>>>>>>> `block in process_route'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in
>>>>>>>> `catch'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in
>>>>>>>> `process_route'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:985:in
>>>>>>>> `block in route!'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in
>>>>>>>> `each'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in
>>>>>>>> `route!'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1098:in
>>>>>>>> `block in dispatch!'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>>>>>> `block in invoke'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>>>>>> `catch'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>>>>>> `invoke'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1095:in
>>>>>>>> `dispatch!'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in
>>>>>>>> `block in call!'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>>>>>> `block in invoke'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>>>>>> `catch'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>>>>>> `invoke'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in
>>>>>>>> `call!'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:908:in
>>>>>>>> `call'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/xss_header.rb:18:in
>>>>>>>> `call'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/path_traversal.rb:16:in
>>>>>>>> `call'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/json_csrf.rb:26:in
>>>>>>>> `call'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in
>>>>>>>> `call'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in
>>>>>>>> `call'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/frame_options.rb:31:in
>>>>>>>> `call'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/null_logger.rb:11:in
>>>>>>>> `call'
>>>>>>>> App 81688 output:
>>>>>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/head.rb:12:in
>>>>>>>> `call'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/method_override.rb:24:in
>>>>>>>> `call'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/show_exceptions.rb:22:in
>>>>>>>> `call'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:194:in
>>>>>>>> `call'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1951:in
>>>>>>>> `call'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in
>>>>>>>> `block in call'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1730:in
>>>>>>>> `synchronize'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in
>>>>>>>> `call'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/deflater.rb:44:in
>>>>>>>> `call'
>>>>>>>> App 81688 output:
>>>>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:223:in `call'
>>>>>>>> App 81688 output:
>>>>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:48:in `call'
>>>>>>>> App 81688 output:
>>>>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:200:in `call'
>>>>>>>> App 81688 output:
>>>>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:254:in `call'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in
>>>>>>>> `process_request'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:157:in
>>>>>>>> `accept_and_process_next_request'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:110:in
>>>>>>>> `main_loop'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler.rb:415:in
>>>>>>>> `block (3 levels) in start_threads'
>>>>>>>> App 81688 output:
>>>>>>>> 
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/utils.rb:113:in
>>>>>>>> `block in create_thread_and_abort_on_exception'
>>>>>>>> 
>>>>>>>> 
>>>>>>>>> On May 13, 2020, at 3:32 PM, Sam Ruby <ru...@intertwingly.net>
>>>> wrote:
>>>>>>>>> 
>>>>>>>>> On Wed, May 13, 2020 at 5:58 PM Craig Russell <
>> apache.clr@gmail.com>
>>>>>>>> wrote:
>>>>>>>>> 
>>>>>>>>>> I cannot implode rvm.
>>>>>>>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% rvm implode
>>>>>>>>>> Required ruby-2.4.1 is not installed.
>>>>>>>>>> To install do: 'rvm install "ruby-2.4.1"'
>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> At a minimum, remove rvm from your .bash_profile or equivalent.
>>>>>>>>> 
>>>>>>>>> But I try to brew install ruby. It would only get me 2.7.1 but it
>>>>>> doesn't
>>>>>>>>>> work either.
>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> Bummer.  Can you try rbenv?  I see you are running Mojave, so:
>>>>>>>>> 
>>>>>>>>> https://gorails.com/setup/osx/10.14-mojave#ruby
>>>>>>>>> 
>>>>>>>>> I do have docker installed so i can give that a try if I cannot
>> get a
>>>>>> 2.4
>>>>>>>>>> version of ruby.
>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> I would recommend VirtualBox, but Sebb seemed to have some success
>>>> with
>>>>>>>>> Docker.
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>> Craig
>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> - Sam Ruby
>>>>>>>>> 
>>>>>>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% brew upgrade ruby
>>>>>>>>>> ==> Upgrading 1 outdated package:
>>>>>>>>>> ruby 2.3.1 -> 2.7.1_2
>>>>>>>>>> ==> Upgrading ruby 2.3.1 -> 2.7.1_2
>>>>>>>>>> ==> Installing dependencies for ruby: libyaml
>>>>>>>>>> ==> Installing ruby dependency: libyaml
>>>>>>>>>> ==> Downloading
>>>>>>>>>> 
>>>>>> 
>> https://homebrew.bintray.com/bottles/libyaml-0.2.4.mojave.bottle.tar.gz
>>>>>>>>>> 
>>>>>> 
>> ########################################################################
>>>>>>>>>> 100.0%
>>>>>>>>>> ==> Pouring libyaml-0.2.4.mojave.bottle.tar.gz
>>>>>>>>>> 🍺  /usr/local/Cellar/libyaml/0.2.4: 10 files, 300.6KB
>>>>>>>>>> ==> Installing ruby
>>>>>>>>>> ==> Downloading
>>>>>>>>>> 
>>>>>> 
>> https://homebrew.bintray.com/bottles/ruby-2.7.1_2.mojave.bottle.tar.gz
>>>>>>>>>> ==> Downloading from
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> https://akamai.bintray.com/d5/d597bee751f9419ea7b40d8125e4f58b2c1eb675b929fe85d8463a6e008b2250?__gda__=exp=1589407606~hmac=7e2c9a4deb10bf88d31f39c705e
>>>>>>>>>> 
>>>>>> 
>> ########################################################################
>>>>>>>>>> 100.0%
>>>>>>>>>> ==> Pouring ruby-2.7.1_2.mojave.bottle.tar.gz
>>>>>>>>>> Error: The `brew link` step did not complete successfully
>>>>>>>>>> The formula built, but is not symlinked into /usr/local
>>>>>>>>>> Could not symlink bin/bundle
>>>>>>>>>> Target /usr/local/bin/bundle
>>>>>>>>>> already exists. You may want to remove it:
>>>>>>>>>> rm '/usr/local/bin/bundle'
>>>>>>>>>> 
>>>>>>>>>> To force the link and overwrite all conflicting files:
>>>>>>>>>> brew link --overwrite ruby
>>>>>>>>>> 
>>>>>>>>>> To list all files that would be deleted:
>>>>>>>>>> brew link --overwrite --dry-run ruby
>>>>>>>>>> 
>>>>>>>>>> Possible conflicting files are:
>>>>>>>>>> /usr/local/bin/bundle
>>>>>>>>>> /usr/local/bin/bundler
>>>>>>>>>> /usr/local/bin/rake
>>>>>>>>>> ==> Caveats
>>>>>>>>>> By default, binaries installed by gem will be placed into:
>>>>>>>>>> /usr/local/lib/ruby/gems/2.7.0/bin
>>>>>>>>>> 
>>>>>>>>>> You may want to add this to your PATH.
>>>>>>>>>> 
>>>>>>>>>> ruby is keg-only, which means it was not symlinked into
>> /usr/local,
>>>>>>>>>> because macOS already provides this software and installing
>> another
>>>>>>>>>> version in
>>>>>>>>>> parallel can cause all kinds of trouble.
>>>>>>>>>> 
>>>>>>>>>> If you need to have ruby first in your PATH run:
>>>>>>>>>> echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
>>>>>>>>>> 
>>>>>>>>>> For compilers to find ruby you may need to set:
>>>>>>>>>> setenv LDFLAGS -L/usr/local/opt/ruby/lib;
>>>>>>>>>> setenv CPPFLAGS -I/usr/local/opt/ruby/include;
>>>>>>>>>> 
>>>>>>>>>> For pkg-config to find ruby you may need to set:
>>>>>>>>>> setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
>>>>>>>>>> 
>>>>>>>>>> ==> Summary
>>>>>>>>>> 🍺  /usr/local/Cellar/ruby/2.7.1_2: 20,142 files, 31.9MB
>>>>>>>>>> Removing: /usr/local/Cellar/ruby/2.3.1... (1,260 files, 19.0MB)
>>>>>>>>>> ==> Checking for dependents of upgraded formulae...
>>>>>>>>>> ==> No dependents found!
>>>>>>>>>> ==> Caveats
>>>>>>>>>> ==> ruby
>>>>>>>>>> By default, binaries installed by gem will be placed into:
>>>>>>>>>> /usr/local/lib/ruby/gems/2.7.0/bin
>>>>>>>>>> 
>>>>>>>>>> You may want to add this to your PATH.
>>>>>>>>>> 
>>>>>>>>>> ruby is keg-only, which means it was not symlinked into
>> /usr/local,
>>>>>>>>>> because macOS already provides this software and installing
>> another
>>>>>>>>>> version in
>>>>>>>>>> parallel can cause all kinds of trouble.
>>>>>>>>>> 
>>>>>>>>>> If you need to have ruby first in your PATH run:
>>>>>>>>>> echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
>>>>>>>>>> 
>>>>>>>>>> For compilers to find ruby you may need to set:
>>>>>>>>>> setenv LDFLAGS -L/usr/local/opt/ruby/lib;
>>>>>>>>>> setenv CPPFLAGS -I/usr/local/opt/ruby/include;
>>>>>>>>>> 
>>>>>>>>>> For pkg-config to find ruby you may need to set:
>>>>>>>>>> setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>>> On May 13, 2020, at 2:48 PM, Sam Ruby <ru...@intertwingly.net>
>>>>>> wrote:
>>>>>>>>>>> 
>>>>>>>>>>> On Wed, May 13, 2020 at 5:38 PM Craig Russell <
>>>> apache.clr@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>> 
>>>>>>>>>>>> I think I'm in a loop:
>>>>>>>>>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% ~/.rvm/scripts/rvm
>>>> install
>>>>>>>>>>>> "ruby-2.4.1"
>>>>>>>>>>>> Required ruby-2.4.1 is not installed.
>>>>>>>>>>>> To install do: 'rvm install "ruby-2.4.1"'
>>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> Recommendation:
>>>>>>>>>>> 
>>>>>>>>>>> rvm implode
>>>>>>>>>>> brew install ruby
>>>>>>>>>>> 
>>>>>>>>>>> Explanation:
>>>>>>>>>>> 
>>>>>>>>>>> rvm solves the problem of "I want to run multiple versions of
>>>> Ruby".
>>>>>>>>>>> 
>>>>>>>>>>> brew solves the problem of "I want to run a recent version of
>> Ruby"
>>>>>>>>>>> 
>>>>>>>>>>> I think brew is a better match to your needs.
>>>>>>>>>>> 
>>>>>>>>>>> If you do want to run multiple versions of Ruby, try rbenv
>> instead:
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> https://github.com/apache/whimsy/blob/master/MACOSX.md#upgrade-ruby-if-needed
>>>>>>>>>>> 
>>>>>>>>>>> - Sam Ruby
>>>>>>>>>> 
>>>>>>>>>> Craig L Russell
>>>>>>>>>> clr@apache.org
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>> 
>>>>>>>> Craig L Russell
>>>>>>>> clr@apache.org
>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>>>> Craig L Russell
>>>>>> clr@apache.org
>>>>>> 
>>>>>> 
>>>> 
>>>> Craig L Russell
>>>> clr@apache.org
>>>> 
>>>> 
>> 
>> Craig L Russell
>> clr@apache.org
>> 
>> 

Craig L Russell
clr@apache.org


Re: Roster emeritus function now with code to review and a local failure

Posted by Sam Ruby <ru...@intertwingly.net>.
On Thu, May 14, 2020 at 8:11 PM Craig Russell <ap...@gmail.com> wrote:

> So is this normal?
>
> App 34044 output:
> /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18:
> warning: $SAFE will become a normal global variable in Ruby 3.0
>

I'm currently running 2.6.3., so I'm not sure what warnings 2.7.0 puts out,
but yes, that warning can safely
be ignored.

- Sam Ruby


> > On May 14, 2020, at 4:54 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> >
> > On Thu, May 14, 2020 at 7:24 PM Craig Russell <ap...@gmail.com>
> wrote:
> >
> >> [MacBook-Pro-10:~] clr% cat /etc/hosts
> >> ##
> >> # Host Database
> >> #
> >> # localhost is used to configure the loopback interface
> >> # when the system is booting.  Do not change this entry.
> >> ##
> >> 127.0.0.1       localhost
> >> 255.255.255.255 broadcasthost
> >> ::1             whimsy.local
> >> # Added by Docker Desktop
> >> # To allow the same kube context to work on the host and the container:
> >> 127.0.0.1 kubernetes.docker.internal
> >> # End of section
> >>
> >> I think my wunderbar is out of date.
> >> App 26532 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18:
> >> warning: $SAFE will become a normal global variable in Ruby 3.0
> >> [ W 2020-05-14 16:17:42.8530 27475/T1 age/Wat/WatchdogMain.cpp:538 ]:
> Some
> >> Phusion Passenger agent processes did not exit in time, forcefully
> shutting
> >> down all.
> >> Remind me how to update my wunderbar?
> >>
> >
> > In whimsy/roster, issue:
> >
> >    bundle update
> >
> > Or, if you want to do this for all whimsy tools, in the top level whimsy
> > directory:
> >
> >    rake update
> >
> >
> >> Thanks,
> >> Craig
> >>
> >
> > - Sam Ruby
> >
> >> On May 14, 2020, at 8:41 AM, Sam Ruby <ru...@intertwingly.net> wrote:
> >>>
> >>> On Thu, May 14, 2020 at 10:27 AM Craig Russell <ap...@gmail.com>
> >> wrote:
> >>>
> >>>> I've updated the local svn repos. The server now starts via rake auth
> >>>> server but nothing is returned from the browser
> >> https://whimsy.local:3000
> >>>> whimsy.local
> >>>> whimsy.local:3000
> >>>> When I try http://0.0.0.0:3000/
> >>>> Safari can't connect to the server "0.0.0.0"
> >>>>
> >>>
> >>> Reproduced on my machine.  Workarounds:
> >>>
> >>> 1) Try http://localhost:3000/, or even http://127.0.0.1:3000/
> >>>
> >>> 2) Try FIrefox or Chrome.  They work with 0.0.0.0.  Heck, even curl
> does.
> >>>
> >>> - Sam Ruby
> >>>
> >>> P.S.
> >>>
> >>> 1) I'm curious as to how you have whimsy.local set up in your
> /etc/hosts
> >>> file.  If it is not there, that would explain it.  Normally I ask
> people
> >> to
> >>> set up whimsy.local when the run the full server (via setupmymac or the
> >>> instructions in MACOSX.md), and it points to an Apache httpd web
> server.
> >>> You are running just this tool standalone.
> >>>
> >>> 2) Below I still see "Unexpected name 'Chukwa' in report section".
> That
> >>> would indicated that you still have a stale copy of committee-info.txt
> >>> being picked up.
> >>>
> >>>
> >>>> [MacBook-Pro-10:whimsy/www/roster] clr% rake auth server
> >>>> Enter password for clr:
> >>>> bundle exec passenger start
> >>>> =============== Phusion Passenger Standalone web server started
> >>>> ===============
> >>>> PID file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.pid
> >>>> Log file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.log
> >>>> Environment: development
> >>>> Accessible via: http://0.0.0.0:3000/
> >>>>
> >>>> You can stop Phusion Passenger Standalone by pressing Ctrl-C.
> >>>> Problems? Check
> >>>>
> >>
> https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/
> >>>>
> >>>>
> >>
> ===============================================================================
> >>>> [ N 2020-05-14 07:20:45.7033 10132/T5
> >> age/Cor/SecurityUpdateChecker.h:519
> >>>> ]: Security update check: no update found (next check in 24 hours)
> >>>> App 10179 output: _WARN Unexpected name 'Chukwa' in report section;
> >> ignored
> >>>> App 10179 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18:
> >>>> warning: $SAFE will become a normal global variable in Ruby 3.0
> >>>> ^CStopping web server...rake aborted!
> >>>> Interrupt:
> >>>> /Users/clr/apache/git/whimsy/www/roster/Rakefile:5:in `block in <top
> >>>> (required)>'
> >>>> Tasks: TOP => server
> >>>> (See full trace by running task with --trace)
> >>>> done
> >>>>
> >>>>
> >>>>> On May 14, 2020, at 4:28 AM, Sam Ruby <ru...@intertwingly.net>
> wrote:
> >>>>>
> >>>>> On Thu, May 14, 2020 at 1:14 AM Craig Russell <ap...@gmail.com>
> >>>> wrote:
> >>>>>
> >>>>>> So close... Maybe something to install with git
> >> infrastructure-puppet???
> >>>>>>
> >>>>>
> >>>>> It also looks like you don't have a recent checkout of
> >>>> committee-info.txt.
> >>>>>
> >>>>> In the whimsy directory, run:
> >>>>>
> >>>>> rake git:pull svn:update
> >>>>>
> >>>>> - Sam Ruby
> >>>>>
> >>>>>
> >>>>>> [MacBook-Pro-10:whimsy/www/roster] clr% rake server
> >>>>>> bundle exec passenger start
> >>>>>> =============== Phusion Passenger Standalone web server started
> >>>>>> ===============
> >>>>>> PID file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.pid
> >>>>>> Log file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.log
> >>>>>> Environment: development
> >>>>>> Accessible via: http://0.0.0.0:3000/
> >>>>>>
> >>>>>> You can stop Phusion Passenger Standalone by pressing Ctrl-C.
> >>>>>> Problems? Check
> >>>>>>
> >>>>
> >>
> https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/
> >>>>>>
> >>>>>>
> >>>>
> >>
> ===============================================================================
> >>>>>> [ N 2020-05-13 16:37:59.4373 81640/T5
> >>>> age/Cor/SecurityUpdateChecker.h:519
> >>>>>> ]: Security update check: no update found (next check in 24 hours)
> >>>>>> App 81688 output: _WARN Unexpected name 'Chukwa' in report section;
> >>>> ignored
> >>>>>> App 81688 output: 2020-05-13 16:38:07 - Exception - Cannot find Git:
> >>>>>> infrastructure-puppet:
> >>>>>> App 81688 output:
> >>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/auth.rb:31:in
> `initialize'
> >>>>>> App 81688 output:
> >>>>>> /Users/clr/apache/git/whimsy/www/roster/models/group.rb:16:in `new'
> >>>>>> App 81688 output:
> >>>>>> /Users/clr/apache/git/whimsy/www/roster/models/group.rb:16:in `list'
> >>>>>> App 81688 output:
> >>>>>> /Users/clr/apache/git/whimsy/www/roster/main.rb:46:in `block in <top
> >>>>>> (required)>'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in
> >>>>>> `call'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in
> >>>>>> `block in compile!'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in
> >>>>>> `block (3 levels) in route!'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1006:in
> >>>>>> `route_eval'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in
> >>>>>> `block (2 levels) in route!'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1035:in
> >>>>>> `block in process_route'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in
> >>>>>> `catch'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in
> >>>>>> `process_route'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:985:in
> >>>>>> `block in route!'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in
> >>>>>> `each'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in
> >>>>>> `route!'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1098:in
> >>>>>> `block in dispatch!'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >>>>>> `block in invoke'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >>>>>> `catch'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >>>>>> `invoke'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1095:in
> >>>>>> `dispatch!'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in
> >>>>>> `block in call!'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >>>>>> `block in invoke'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >>>>>> `catch'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >>>>>> `invoke'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in
> >>>>>> `call!'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:908:in
> >>>>>> `call'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/xss_header.rb:18:in
> >>>>>> `call'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/path_traversal.rb:16:in
> >>>>>> `call'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/json_csrf.rb:26:in
> >>>>>> `call'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in
> >>>>>> `call'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in
> >>>>>> `call'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/frame_options.rb:31:in
> >>>>>> `call'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/null_logger.rb:11:in
> >>>>>> `call'
> >>>>>> App 81688 output:
> >>>>>>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/head.rb:12:in
> >>>>>> `call'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/method_override.rb:24:in
> >>>>>> `call'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/show_exceptions.rb:22:in
> >>>>>> `call'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:194:in
> >>>>>> `call'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1951:in
> >>>>>> `call'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in
> >>>>>> `block in call'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1730:in
> >>>>>> `synchronize'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in
> >>>>>> `call'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/deflater.rb:44:in
> >>>>>> `call'
> >>>>>> App 81688 output:
> >>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:223:in `call'
> >>>>>> App 81688 output:
> >>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:48:in `call'
> >>>>>> App 81688 output:
> >>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:200:in `call'
> >>>>>> App 81688 output:
> >>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:254:in `call'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in
> >>>>>> `process_request'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:157:in
> >>>>>> `accept_and_process_next_request'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:110:in
> >>>>>> `main_loop'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler.rb:415:in
> >>>>>> `block (3 levels) in start_threads'
> >>>>>> App 81688 output:
> >>>>>>
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/utils.rb:113:in
> >>>>>> `block in create_thread_and_abort_on_exception'
> >>>>>>
> >>>>>>
> >>>>>>> On May 13, 2020, at 3:32 PM, Sam Ruby <ru...@intertwingly.net>
> >> wrote:
> >>>>>>>
> >>>>>>> On Wed, May 13, 2020 at 5:58 PM Craig Russell <
> apache.clr@gmail.com>
> >>>>>> wrote:
> >>>>>>>
> >>>>>>>> I cannot implode rvm.
> >>>>>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% rvm implode
> >>>>>>>> Required ruby-2.4.1 is not installed.
> >>>>>>>> To install do: 'rvm install "ruby-2.4.1"'
> >>>>>>>>
> >>>>>>>
> >>>>>>> At a minimum, remove rvm from your .bash_profile or equivalent.
> >>>>>>>
> >>>>>>> But I try to brew install ruby. It would only get me 2.7.1 but it
> >>>> doesn't
> >>>>>>>> work either.
> >>>>>>>>
> >>>>>>>
> >>>>>>> Bummer.  Can you try rbenv?  I see you are running Mojave, so:
> >>>>>>>
> >>>>>>> https://gorails.com/setup/osx/10.14-mojave#ruby
> >>>>>>>
> >>>>>>> I do have docker installed so i can give that a try if I cannot
> get a
> >>>> 2.4
> >>>>>>>> version of ruby.
> >>>>>>>>
> >>>>>>>
> >>>>>>> I would recommend VirtualBox, but Sebb seemed to have some success
> >> with
> >>>>>>> Docker.
> >>>>>>>
> >>>>>>>
> >>>>>>>> Craig
> >>>>>>>>
> >>>>>>>
> >>>>>>> - Sam Ruby
> >>>>>>>
> >>>>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% brew upgrade ruby
> >>>>>>>> ==> Upgrading 1 outdated package:
> >>>>>>>> ruby 2.3.1 -> 2.7.1_2
> >>>>>>>> ==> Upgrading ruby 2.3.1 -> 2.7.1_2
> >>>>>>>> ==> Installing dependencies for ruby: libyaml
> >>>>>>>> ==> Installing ruby dependency: libyaml
> >>>>>>>> ==> Downloading
> >>>>>>>>
> >>>>
> https://homebrew.bintray.com/bottles/libyaml-0.2.4.mojave.bottle.tar.gz
> >>>>>>>>
> >>>>
> ########################################################################
> >>>>>>>> 100.0%
> >>>>>>>> ==> Pouring libyaml-0.2.4.mojave.bottle.tar.gz
> >>>>>>>> 🍺  /usr/local/Cellar/libyaml/0.2.4: 10 files, 300.6KB
> >>>>>>>> ==> Installing ruby
> >>>>>>>> ==> Downloading
> >>>>>>>>
> >>>>
> https://homebrew.bintray.com/bottles/ruby-2.7.1_2.mojave.bottle.tar.gz
> >>>>>>>> ==> Downloading from
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> https://akamai.bintray.com/d5/d597bee751f9419ea7b40d8125e4f58b2c1eb675b929fe85d8463a6e008b2250?__gda__=exp=1589407606~hmac=7e2c9a4deb10bf88d31f39c705e
> >>>>>>>>
> >>>>
> ########################################################################
> >>>>>>>> 100.0%
> >>>>>>>> ==> Pouring ruby-2.7.1_2.mojave.bottle.tar.gz
> >>>>>>>> Error: The `brew link` step did not complete successfully
> >>>>>>>> The formula built, but is not symlinked into /usr/local
> >>>>>>>> Could not symlink bin/bundle
> >>>>>>>> Target /usr/local/bin/bundle
> >>>>>>>> already exists. You may want to remove it:
> >>>>>>>> rm '/usr/local/bin/bundle'
> >>>>>>>>
> >>>>>>>> To force the link and overwrite all conflicting files:
> >>>>>>>> brew link --overwrite ruby
> >>>>>>>>
> >>>>>>>> To list all files that would be deleted:
> >>>>>>>> brew link --overwrite --dry-run ruby
> >>>>>>>>
> >>>>>>>> Possible conflicting files are:
> >>>>>>>> /usr/local/bin/bundle
> >>>>>>>> /usr/local/bin/bundler
> >>>>>>>> /usr/local/bin/rake
> >>>>>>>> ==> Caveats
> >>>>>>>> By default, binaries installed by gem will be placed into:
> >>>>>>>> /usr/local/lib/ruby/gems/2.7.0/bin
> >>>>>>>>
> >>>>>>>> You may want to add this to your PATH.
> >>>>>>>>
> >>>>>>>> ruby is keg-only, which means it was not symlinked into
> /usr/local,
> >>>>>>>> because macOS already provides this software and installing
> another
> >>>>>>>> version in
> >>>>>>>> parallel can cause all kinds of trouble.
> >>>>>>>>
> >>>>>>>> If you need to have ruby first in your PATH run:
> >>>>>>>> echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
> >>>>>>>>
> >>>>>>>> For compilers to find ruby you may need to set:
> >>>>>>>> setenv LDFLAGS -L/usr/local/opt/ruby/lib;
> >>>>>>>> setenv CPPFLAGS -I/usr/local/opt/ruby/include;
> >>>>>>>>
> >>>>>>>> For pkg-config to find ruby you may need to set:
> >>>>>>>> setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
> >>>>>>>>
> >>>>>>>> ==> Summary
> >>>>>>>> 🍺  /usr/local/Cellar/ruby/2.7.1_2: 20,142 files, 31.9MB
> >>>>>>>> Removing: /usr/local/Cellar/ruby/2.3.1... (1,260 files, 19.0MB)
> >>>>>>>> ==> Checking for dependents of upgraded formulae...
> >>>>>>>> ==> No dependents found!
> >>>>>>>> ==> Caveats
> >>>>>>>> ==> ruby
> >>>>>>>> By default, binaries installed by gem will be placed into:
> >>>>>>>> /usr/local/lib/ruby/gems/2.7.0/bin
> >>>>>>>>
> >>>>>>>> You may want to add this to your PATH.
> >>>>>>>>
> >>>>>>>> ruby is keg-only, which means it was not symlinked into
> /usr/local,
> >>>>>>>> because macOS already provides this software and installing
> another
> >>>>>>>> version in
> >>>>>>>> parallel can cause all kinds of trouble.
> >>>>>>>>
> >>>>>>>> If you need to have ruby first in your PATH run:
> >>>>>>>> echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
> >>>>>>>>
> >>>>>>>> For compilers to find ruby you may need to set:
> >>>>>>>> setenv LDFLAGS -L/usr/local/opt/ruby/lib;
> >>>>>>>> setenv CPPFLAGS -I/usr/local/opt/ruby/include;
> >>>>>>>>
> >>>>>>>> For pkg-config to find ruby you may need to set:
> >>>>>>>> setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> On May 13, 2020, at 2:48 PM, Sam Ruby <ru...@intertwingly.net>
> >>>> wrote:
> >>>>>>>>>
> >>>>>>>>> On Wed, May 13, 2020 at 5:38 PM Craig Russell <
> >> apache.clr@gmail.com>
> >>>>>>>> wrote:
> >>>>>>>>>
> >>>>>>>>>> I think I'm in a loop:
> >>>>>>>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% ~/.rvm/scripts/rvm
> >> install
> >>>>>>>>>> "ruby-2.4.1"
> >>>>>>>>>> Required ruby-2.4.1 is not installed.
> >>>>>>>>>> To install do: 'rvm install "ruby-2.4.1"'
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> Recommendation:
> >>>>>>>>>
> >>>>>>>>> rvm implode
> >>>>>>>>> brew install ruby
> >>>>>>>>>
> >>>>>>>>> Explanation:
> >>>>>>>>>
> >>>>>>>>> rvm solves the problem of "I want to run multiple versions of
> >> Ruby".
> >>>>>>>>>
> >>>>>>>>> brew solves the problem of "I want to run a recent version of
> Ruby"
> >>>>>>>>>
> >>>>>>>>> I think brew is a better match to your needs.
> >>>>>>>>>
> >>>>>>>>> If you do want to run multiple versions of Ruby, try rbenv
> instead:
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>
> >>>>>>
> >>>>
> >>
> https://github.com/apache/whimsy/blob/master/MACOSX.md#upgrade-ruby-if-needed
> >>>>>>>>>
> >>>>>>>>> - Sam Ruby
> >>>>>>>>
> >>>>>>>> Craig L Russell
> >>>>>>>> clr@apache.org
> >>>>>>>>
> >>>>>>>>
> >>>>>>
> >>>>>> Craig L Russell
> >>>>>> clr@apache.org
> >>>>>>
> >>>>>>
> >>>>
> >>>> Craig L Russell
> >>>> clr@apache.org
> >>>>
> >>>>
> >>
> >> Craig L Russell
> >> clr@apache.org
> >>
> >>
>
> Craig L Russell
> clr@apache.org
>
>

Re: Roster emeritus function now with code to review and a local failure

Posted by Craig Russell <ap...@gmail.com>.
So is this normal?

App 34044 output: /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18: warning: $SAFE will become a normal global variable in Ruby 3.0

> On May 14, 2020, at 4:54 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> 
> On Thu, May 14, 2020 at 7:24 PM Craig Russell <ap...@gmail.com> wrote:
> 
>> [MacBook-Pro-10:~] clr% cat /etc/hosts
>> ##
>> # Host Database
>> #
>> # localhost is used to configure the loopback interface
>> # when the system is booting.  Do not change this entry.
>> ##
>> 127.0.0.1       localhost
>> 255.255.255.255 broadcasthost
>> ::1             whimsy.local
>> # Added by Docker Desktop
>> # To allow the same kube context to work on the host and the container:
>> 127.0.0.1 kubernetes.docker.internal
>> # End of section
>> 
>> I think my wunderbar is out of date.
>> App 26532 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18:
>> warning: $SAFE will become a normal global variable in Ruby 3.0
>> [ W 2020-05-14 16:17:42.8530 27475/T1 age/Wat/WatchdogMain.cpp:538 ]: Some
>> Phusion Passenger agent processes did not exit in time, forcefully shutting
>> down all.
>> Remind me how to update my wunderbar?
>> 
> 
> In whimsy/roster, issue:
> 
>    bundle update
> 
> Or, if you want to do this for all whimsy tools, in the top level whimsy
> directory:
> 
>    rake update
> 
> 
>> Thanks,
>> Craig
>> 
> 
> - Sam Ruby
> 
>> On May 14, 2020, at 8:41 AM, Sam Ruby <ru...@intertwingly.net> wrote:
>>> 
>>> On Thu, May 14, 2020 at 10:27 AM Craig Russell <ap...@gmail.com>
>> wrote:
>>> 
>>>> I've updated the local svn repos. The server now starts via rake auth
>>>> server but nothing is returned from the browser
>> https://whimsy.local:3000
>>>> whimsy.local
>>>> whimsy.local:3000
>>>> When I try http://0.0.0.0:3000/
>>>> Safari can't connect to the server "0.0.0.0"
>>>> 
>>> 
>>> Reproduced on my machine.  Workarounds:
>>> 
>>> 1) Try http://localhost:3000/, or even http://127.0.0.1:3000/
>>> 
>>> 2) Try FIrefox or Chrome.  They work with 0.0.0.0.  Heck, even curl does.
>>> 
>>> - Sam Ruby
>>> 
>>> P.S.
>>> 
>>> 1) I'm curious as to how you have whimsy.local set up in your /etc/hosts
>>> file.  If it is not there, that would explain it.  Normally I ask people
>> to
>>> set up whimsy.local when the run the full server (via setupmymac or the
>>> instructions in MACOSX.md), and it points to an Apache httpd web server.
>>> You are running just this tool standalone.
>>> 
>>> 2) Below I still see "Unexpected name 'Chukwa' in report section".  That
>>> would indicated that you still have a stale copy of committee-info.txt
>>> being picked up.
>>> 
>>> 
>>>> [MacBook-Pro-10:whimsy/www/roster] clr% rake auth server
>>>> Enter password for clr:
>>>> bundle exec passenger start
>>>> =============== Phusion Passenger Standalone web server started
>>>> ===============
>>>> PID file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.pid
>>>> Log file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.log
>>>> Environment: development
>>>> Accessible via: http://0.0.0.0:3000/
>>>> 
>>>> You can stop Phusion Passenger Standalone by pressing Ctrl-C.
>>>> Problems? Check
>>>> 
>> https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/
>>>> 
>>>> 
>> ===============================================================================
>>>> [ N 2020-05-14 07:20:45.7033 10132/T5
>> age/Cor/SecurityUpdateChecker.h:519
>>>> ]: Security update check: no update found (next check in 24 hours)
>>>> App 10179 output: _WARN Unexpected name 'Chukwa' in report section;
>> ignored
>>>> App 10179 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18:
>>>> warning: $SAFE will become a normal global variable in Ruby 3.0
>>>> ^CStopping web server...rake aborted!
>>>> Interrupt:
>>>> /Users/clr/apache/git/whimsy/www/roster/Rakefile:5:in `block in <top
>>>> (required)>'
>>>> Tasks: TOP => server
>>>> (See full trace by running task with --trace)
>>>> done
>>>> 
>>>> 
>>>>> On May 14, 2020, at 4:28 AM, Sam Ruby <ru...@intertwingly.net> wrote:
>>>>> 
>>>>> On Thu, May 14, 2020 at 1:14 AM Craig Russell <ap...@gmail.com>
>>>> wrote:
>>>>> 
>>>>>> So close... Maybe something to install with git
>> infrastructure-puppet???
>>>>>> 
>>>>> 
>>>>> It also looks like you don't have a recent checkout of
>>>> committee-info.txt.
>>>>> 
>>>>> In the whimsy directory, run:
>>>>> 
>>>>> rake git:pull svn:update
>>>>> 
>>>>> - Sam Ruby
>>>>> 
>>>>> 
>>>>>> [MacBook-Pro-10:whimsy/www/roster] clr% rake server
>>>>>> bundle exec passenger start
>>>>>> =============== Phusion Passenger Standalone web server started
>>>>>> ===============
>>>>>> PID file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.pid
>>>>>> Log file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.log
>>>>>> Environment: development
>>>>>> Accessible via: http://0.0.0.0:3000/
>>>>>> 
>>>>>> You can stop Phusion Passenger Standalone by pressing Ctrl-C.
>>>>>> Problems? Check
>>>>>> 
>>>> 
>> https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/
>>>>>> 
>>>>>> 
>>>> 
>> ===============================================================================
>>>>>> [ N 2020-05-13 16:37:59.4373 81640/T5
>>>> age/Cor/SecurityUpdateChecker.h:519
>>>>>> ]: Security update check: no update found (next check in 24 hours)
>>>>>> App 81688 output: _WARN Unexpected name 'Chukwa' in report section;
>>>> ignored
>>>>>> App 81688 output: 2020-05-13 16:38:07 - Exception - Cannot find Git:
>>>>>> infrastructure-puppet:
>>>>>> App 81688 output:
>>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/auth.rb:31:in `initialize'
>>>>>> App 81688 output:
>>>>>> /Users/clr/apache/git/whimsy/www/roster/models/group.rb:16:in `new'
>>>>>> App 81688 output:
>>>>>> /Users/clr/apache/git/whimsy/www/roster/models/group.rb:16:in `list'
>>>>>> App 81688 output:
>>>>>> /Users/clr/apache/git/whimsy/www/roster/main.rb:46:in `block in <top
>>>>>> (required)>'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in
>>>>>> `call'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in
>>>>>> `block in compile!'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in
>>>>>> `block (3 levels) in route!'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1006:in
>>>>>> `route_eval'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in
>>>>>> `block (2 levels) in route!'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1035:in
>>>>>> `block in process_route'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in
>>>>>> `catch'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in
>>>>>> `process_route'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:985:in
>>>>>> `block in route!'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in
>>>>>> `each'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in
>>>>>> `route!'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1098:in
>>>>>> `block in dispatch!'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>>>> `block in invoke'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>>>> `catch'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>>>> `invoke'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1095:in
>>>>>> `dispatch!'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in
>>>>>> `block in call!'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>>>> `block in invoke'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>>>> `catch'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>>>> `invoke'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in
>>>>>> `call!'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:908:in
>>>>>> `call'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/xss_header.rb:18:in
>>>>>> `call'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/path_traversal.rb:16:in
>>>>>> `call'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/json_csrf.rb:26:in
>>>>>> `call'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in
>>>>>> `call'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in
>>>>>> `call'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/frame_options.rb:31:in
>>>>>> `call'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/null_logger.rb:11:in
>>>>>> `call'
>>>>>> App 81688 output:
>>>>>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/head.rb:12:in
>>>>>> `call'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/method_override.rb:24:in
>>>>>> `call'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/show_exceptions.rb:22:in
>>>>>> `call'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:194:in
>>>>>> `call'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1951:in
>>>>>> `call'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in
>>>>>> `block in call'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1730:in
>>>>>> `synchronize'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in
>>>>>> `call'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/deflater.rb:44:in
>>>>>> `call'
>>>>>> App 81688 output:
>>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:223:in `call'
>>>>>> App 81688 output:
>>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:48:in `call'
>>>>>> App 81688 output:
>>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:200:in `call'
>>>>>> App 81688 output:
>>>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:254:in `call'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in
>>>>>> `process_request'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:157:in
>>>>>> `accept_and_process_next_request'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:110:in
>>>>>> `main_loop'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler.rb:415:in
>>>>>> `block (3 levels) in start_threads'
>>>>>> App 81688 output:
>>>>>> 
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/utils.rb:113:in
>>>>>> `block in create_thread_and_abort_on_exception'
>>>>>> 
>>>>>> 
>>>>>>> On May 13, 2020, at 3:32 PM, Sam Ruby <ru...@intertwingly.net>
>> wrote:
>>>>>>> 
>>>>>>> On Wed, May 13, 2020 at 5:58 PM Craig Russell <ap...@gmail.com>
>>>>>> wrote:
>>>>>>> 
>>>>>>>> I cannot implode rvm.
>>>>>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% rvm implode
>>>>>>>> Required ruby-2.4.1 is not installed.
>>>>>>>> To install do: 'rvm install "ruby-2.4.1"'
>>>>>>>> 
>>>>>>> 
>>>>>>> At a minimum, remove rvm from your .bash_profile or equivalent.
>>>>>>> 
>>>>>>> But I try to brew install ruby. It would only get me 2.7.1 but it
>>>> doesn't
>>>>>>>> work either.
>>>>>>>> 
>>>>>>> 
>>>>>>> Bummer.  Can you try rbenv?  I see you are running Mojave, so:
>>>>>>> 
>>>>>>> https://gorails.com/setup/osx/10.14-mojave#ruby
>>>>>>> 
>>>>>>> I do have docker installed so i can give that a try if I cannot get a
>>>> 2.4
>>>>>>>> version of ruby.
>>>>>>>> 
>>>>>>> 
>>>>>>> I would recommend VirtualBox, but Sebb seemed to have some success
>> with
>>>>>>> Docker.
>>>>>>> 
>>>>>>> 
>>>>>>>> Craig
>>>>>>>> 
>>>>>>> 
>>>>>>> - Sam Ruby
>>>>>>> 
>>>>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% brew upgrade ruby
>>>>>>>> ==> Upgrading 1 outdated package:
>>>>>>>> ruby 2.3.1 -> 2.7.1_2
>>>>>>>> ==> Upgrading ruby 2.3.1 -> 2.7.1_2
>>>>>>>> ==> Installing dependencies for ruby: libyaml
>>>>>>>> ==> Installing ruby dependency: libyaml
>>>>>>>> ==> Downloading
>>>>>>>> 
>>>> https://homebrew.bintray.com/bottles/libyaml-0.2.4.mojave.bottle.tar.gz
>>>>>>>> 
>>>> ########################################################################
>>>>>>>> 100.0%
>>>>>>>> ==> Pouring libyaml-0.2.4.mojave.bottle.tar.gz
>>>>>>>> 🍺  /usr/local/Cellar/libyaml/0.2.4: 10 files, 300.6KB
>>>>>>>> ==> Installing ruby
>>>>>>>> ==> Downloading
>>>>>>>> 
>>>> https://homebrew.bintray.com/bottles/ruby-2.7.1_2.mojave.bottle.tar.gz
>>>>>>>> ==> Downloading from
>>>>>>>> 
>>>>>> 
>>>> 
>> https://akamai.bintray.com/d5/d597bee751f9419ea7b40d8125e4f58b2c1eb675b929fe85d8463a6e008b2250?__gda__=exp=1589407606~hmac=7e2c9a4deb10bf88d31f39c705e
>>>>>>>> 
>>>> ########################################################################
>>>>>>>> 100.0%
>>>>>>>> ==> Pouring ruby-2.7.1_2.mojave.bottle.tar.gz
>>>>>>>> Error: The `brew link` step did not complete successfully
>>>>>>>> The formula built, but is not symlinked into /usr/local
>>>>>>>> Could not symlink bin/bundle
>>>>>>>> Target /usr/local/bin/bundle
>>>>>>>> already exists. You may want to remove it:
>>>>>>>> rm '/usr/local/bin/bundle'
>>>>>>>> 
>>>>>>>> To force the link and overwrite all conflicting files:
>>>>>>>> brew link --overwrite ruby
>>>>>>>> 
>>>>>>>> To list all files that would be deleted:
>>>>>>>> brew link --overwrite --dry-run ruby
>>>>>>>> 
>>>>>>>> Possible conflicting files are:
>>>>>>>> /usr/local/bin/bundle
>>>>>>>> /usr/local/bin/bundler
>>>>>>>> /usr/local/bin/rake
>>>>>>>> ==> Caveats
>>>>>>>> By default, binaries installed by gem will be placed into:
>>>>>>>> /usr/local/lib/ruby/gems/2.7.0/bin
>>>>>>>> 
>>>>>>>> You may want to add this to your PATH.
>>>>>>>> 
>>>>>>>> ruby is keg-only, which means it was not symlinked into /usr/local,
>>>>>>>> because macOS already provides this software and installing another
>>>>>>>> version in
>>>>>>>> parallel can cause all kinds of trouble.
>>>>>>>> 
>>>>>>>> If you need to have ruby first in your PATH run:
>>>>>>>> echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
>>>>>>>> 
>>>>>>>> For compilers to find ruby you may need to set:
>>>>>>>> setenv LDFLAGS -L/usr/local/opt/ruby/lib;
>>>>>>>> setenv CPPFLAGS -I/usr/local/opt/ruby/include;
>>>>>>>> 
>>>>>>>> For pkg-config to find ruby you may need to set:
>>>>>>>> setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
>>>>>>>> 
>>>>>>>> ==> Summary
>>>>>>>> 🍺  /usr/local/Cellar/ruby/2.7.1_2: 20,142 files, 31.9MB
>>>>>>>> Removing: /usr/local/Cellar/ruby/2.3.1... (1,260 files, 19.0MB)
>>>>>>>> ==> Checking for dependents of upgraded formulae...
>>>>>>>> ==> No dependents found!
>>>>>>>> ==> Caveats
>>>>>>>> ==> ruby
>>>>>>>> By default, binaries installed by gem will be placed into:
>>>>>>>> /usr/local/lib/ruby/gems/2.7.0/bin
>>>>>>>> 
>>>>>>>> You may want to add this to your PATH.
>>>>>>>> 
>>>>>>>> ruby is keg-only, which means it was not symlinked into /usr/local,
>>>>>>>> because macOS already provides this software and installing another
>>>>>>>> version in
>>>>>>>> parallel can cause all kinds of trouble.
>>>>>>>> 
>>>>>>>> If you need to have ruby first in your PATH run:
>>>>>>>> echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
>>>>>>>> 
>>>>>>>> For compilers to find ruby you may need to set:
>>>>>>>> setenv LDFLAGS -L/usr/local/opt/ruby/lib;
>>>>>>>> setenv CPPFLAGS -I/usr/local/opt/ruby/include;
>>>>>>>> 
>>>>>>>> For pkg-config to find ruby you may need to set:
>>>>>>>> setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
>>>>>>>> 
>>>>>>>> 
>>>>>>>>> On May 13, 2020, at 2:48 PM, Sam Ruby <ru...@intertwingly.net>
>>>> wrote:
>>>>>>>>> 
>>>>>>>>> On Wed, May 13, 2020 at 5:38 PM Craig Russell <
>> apache.clr@gmail.com>
>>>>>>>> wrote:
>>>>>>>>> 
>>>>>>>>>> I think I'm in a loop:
>>>>>>>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% ~/.rvm/scripts/rvm
>> install
>>>>>>>>>> "ruby-2.4.1"
>>>>>>>>>> Required ruby-2.4.1 is not installed.
>>>>>>>>>> To install do: 'rvm install "ruby-2.4.1"'
>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> Recommendation:
>>>>>>>>> 
>>>>>>>>> rvm implode
>>>>>>>>> brew install ruby
>>>>>>>>> 
>>>>>>>>> Explanation:
>>>>>>>>> 
>>>>>>>>> rvm solves the problem of "I want to run multiple versions of
>> Ruby".
>>>>>>>>> 
>>>>>>>>> brew solves the problem of "I want to run a recent version of Ruby"
>>>>>>>>> 
>>>>>>>>> I think brew is a better match to your needs.
>>>>>>>>> 
>>>>>>>>> If you do want to run multiple versions of Ruby, try rbenv instead:
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>> 
>> https://github.com/apache/whimsy/blob/master/MACOSX.md#upgrade-ruby-if-needed
>>>>>>>>> 
>>>>>>>>> - Sam Ruby
>>>>>>>> 
>>>>>>>> Craig L Russell
>>>>>>>> clr@apache.org
>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>>>> Craig L Russell
>>>>>> clr@apache.org
>>>>>> 
>>>>>> 
>>>> 
>>>> Craig L Russell
>>>> clr@apache.org
>>>> 
>>>> 
>> 
>> Craig L Russell
>> clr@apache.org
>> 
>> 

Craig L Russell
clr@apache.org


Re: Roster emeritus function now with code to review and a local failure

Posted by Sam Ruby <ru...@intertwingly.net>.
On Thu, May 14, 2020 at 7:24 PM Craig Russell <ap...@gmail.com> wrote:

> [MacBook-Pro-10:~] clr% cat /etc/hosts
> ##
> # Host Database
> #
> # localhost is used to configure the loopback interface
> # when the system is booting.  Do not change this entry.
> ##
> 127.0.0.1       localhost
> 255.255.255.255 broadcasthost
> ::1             whimsy.local
> # Added by Docker Desktop
> # To allow the same kube context to work on the host and the container:
> 127.0.0.1 kubernetes.docker.internal
> # End of section
>
> I think my wunderbar is out of date.
> App 26532 output:
> /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18:
> warning: $SAFE will become a normal global variable in Ruby 3.0
> [ W 2020-05-14 16:17:42.8530 27475/T1 age/Wat/WatchdogMain.cpp:538 ]: Some
> Phusion Passenger agent processes did not exit in time, forcefully shutting
> down all.
> Remind me how to update my wunderbar?
>

In whimsy/roster, issue:

    bundle update

Or, if you want to do this for all whimsy tools, in the top level whimsy
directory:

    rake update


> Thanks,
> Craig
>

- Sam Ruby

> On May 14, 2020, at 8:41 AM, Sam Ruby <ru...@intertwingly.net> wrote:
> >
> > On Thu, May 14, 2020 at 10:27 AM Craig Russell <ap...@gmail.com>
> wrote:
> >
> >> I've updated the local svn repos. The server now starts via rake auth
> >> server but nothing is returned from the browser
> https://whimsy.local:3000
> >> whimsy.local
> >> whimsy.local:3000
> >> When I try http://0.0.0.0:3000/
> >> Safari can't connect to the server "0.0.0.0"
> >>
> >
> > Reproduced on my machine.  Workarounds:
> >
> > 1) Try http://localhost:3000/, or even http://127.0.0.1:3000/
> >
> > 2) Try FIrefox or Chrome.  They work with 0.0.0.0.  Heck, even curl does.
> >
> > - Sam Ruby
> >
> > P.S.
> >
> > 1) I'm curious as to how you have whimsy.local set up in your /etc/hosts
> > file.  If it is not there, that would explain it.  Normally I ask people
> to
> > set up whimsy.local when the run the full server (via setupmymac or the
> > instructions in MACOSX.md), and it points to an Apache httpd web server.
> > You are running just this tool standalone.
> >
> > 2) Below I still see "Unexpected name 'Chukwa' in report section".  That
> > would indicated that you still have a stale copy of committee-info.txt
> > being picked up.
> >
> >
> >> [MacBook-Pro-10:whimsy/www/roster] clr% rake auth server
> >> Enter password for clr:
> >> bundle exec passenger start
> >> =============== Phusion Passenger Standalone web server started
> >> ===============
> >> PID file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.pid
> >> Log file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.log
> >> Environment: development
> >> Accessible via: http://0.0.0.0:3000/
> >>
> >> You can stop Phusion Passenger Standalone by pressing Ctrl-C.
> >> Problems? Check
> >>
> https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/
> >>
> >>
> ===============================================================================
> >> [ N 2020-05-14 07:20:45.7033 10132/T5
> age/Cor/SecurityUpdateChecker.h:519
> >> ]: Security update check: no update found (next check in 24 hours)
> >> App 10179 output: _WARN Unexpected name 'Chukwa' in report section;
> ignored
> >> App 10179 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18:
> >> warning: $SAFE will become a normal global variable in Ruby 3.0
> >> ^CStopping web server...rake aborted!
> >> Interrupt:
> >> /Users/clr/apache/git/whimsy/www/roster/Rakefile:5:in `block in <top
> >> (required)>'
> >> Tasks: TOP => server
> >> (See full trace by running task with --trace)
> >> done
> >>
> >>
> >>> On May 14, 2020, at 4:28 AM, Sam Ruby <ru...@intertwingly.net> wrote:
> >>>
> >>> On Thu, May 14, 2020 at 1:14 AM Craig Russell <ap...@gmail.com>
> >> wrote:
> >>>
> >>>> So close... Maybe something to install with git
> infrastructure-puppet???
> >>>>
> >>>
> >>> It also looks like you don't have a recent checkout of
> >> committee-info.txt.
> >>>
> >>> In the whimsy directory, run:
> >>>
> >>> rake git:pull svn:update
> >>>
> >>> - Sam Ruby
> >>>
> >>>
> >>>> [MacBook-Pro-10:whimsy/www/roster] clr% rake server
> >>>> bundle exec passenger start
> >>>> =============== Phusion Passenger Standalone web server started
> >>>> ===============
> >>>> PID file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.pid
> >>>> Log file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.log
> >>>> Environment: development
> >>>> Accessible via: http://0.0.0.0:3000/
> >>>>
> >>>> You can stop Phusion Passenger Standalone by pressing Ctrl-C.
> >>>> Problems? Check
> >>>>
> >>
> https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/
> >>>>
> >>>>
> >>
> ===============================================================================
> >>>> [ N 2020-05-13 16:37:59.4373 81640/T5
> >> age/Cor/SecurityUpdateChecker.h:519
> >>>> ]: Security update check: no update found (next check in 24 hours)
> >>>> App 81688 output: _WARN Unexpected name 'Chukwa' in report section;
> >> ignored
> >>>> App 81688 output: 2020-05-13 16:38:07 - Exception - Cannot find Git:
> >>>> infrastructure-puppet:
> >>>> App 81688 output:
> >>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/auth.rb:31:in `initialize'
> >>>> App 81688 output:
> >>>> /Users/clr/apache/git/whimsy/www/roster/models/group.rb:16:in `new'
> >>>> App 81688 output:
> >>>> /Users/clr/apache/git/whimsy/www/roster/models/group.rb:16:in `list'
> >>>> App 81688 output:
> >>>> /Users/clr/apache/git/whimsy/www/roster/main.rb:46:in `block in <top
> >>>> (required)>'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in
> >>>> `call'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in
> >>>> `block in compile!'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in
> >>>> `block (3 levels) in route!'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1006:in
> >>>> `route_eval'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in
> >>>> `block (2 levels) in route!'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1035:in
> >>>> `block in process_route'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in
> >>>> `catch'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in
> >>>> `process_route'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:985:in
> >>>> `block in route!'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in
> >>>> `each'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in
> >>>> `route!'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1098:in
> >>>> `block in dispatch!'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >>>> `block in invoke'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >>>> `catch'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >>>> `invoke'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1095:in
> >>>> `dispatch!'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in
> >>>> `block in call!'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >>>> `block in invoke'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >>>> `catch'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >>>> `invoke'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in
> >>>> `call!'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:908:in
> >>>> `call'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/xss_header.rb:18:in
> >>>> `call'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/path_traversal.rb:16:in
> >>>> `call'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/json_csrf.rb:26:in
> >>>> `call'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in
> >>>> `call'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in
> >>>> `call'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/frame_options.rb:31:in
> >>>> `call'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/null_logger.rb:11:in
> >>>> `call'
> >>>> App 81688 output:
> >>>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/head.rb:12:in
> >>>> `call'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/method_override.rb:24:in
> >>>> `call'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/show_exceptions.rb:22:in
> >>>> `call'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:194:in
> >>>> `call'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1951:in
> >>>> `call'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in
> >>>> `block in call'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1730:in
> >>>> `synchronize'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in
> >>>> `call'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/deflater.rb:44:in
> >>>> `call'
> >>>> App 81688 output:
> >>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:223:in `call'
> >>>> App 81688 output:
> >>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:48:in `call'
> >>>> App 81688 output:
> >>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:200:in `call'
> >>>> App 81688 output:
> >>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:254:in `call'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in
> >>>> `process_request'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:157:in
> >>>> `accept_and_process_next_request'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:110:in
> >>>> `main_loop'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler.rb:415:in
> >>>> `block (3 levels) in start_threads'
> >>>> App 81688 output:
> >>>>
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/utils.rb:113:in
> >>>> `block in create_thread_and_abort_on_exception'
> >>>>
> >>>>
> >>>>> On May 13, 2020, at 3:32 PM, Sam Ruby <ru...@intertwingly.net>
> wrote:
> >>>>>
> >>>>> On Wed, May 13, 2020 at 5:58 PM Craig Russell <ap...@gmail.com>
> >>>> wrote:
> >>>>>
> >>>>>> I cannot implode rvm.
> >>>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% rvm implode
> >>>>>> Required ruby-2.4.1 is not installed.
> >>>>>> To install do: 'rvm install "ruby-2.4.1"'
> >>>>>>
> >>>>>
> >>>>> At a minimum, remove rvm from your .bash_profile or equivalent.
> >>>>>
> >>>>> But I try to brew install ruby. It would only get me 2.7.1 but it
> >> doesn't
> >>>>>> work either.
> >>>>>>
> >>>>>
> >>>>> Bummer.  Can you try rbenv?  I see you are running Mojave, so:
> >>>>>
> >>>>> https://gorails.com/setup/osx/10.14-mojave#ruby
> >>>>>
> >>>>> I do have docker installed so i can give that a try if I cannot get a
> >> 2.4
> >>>>>> version of ruby.
> >>>>>>
> >>>>>
> >>>>> I would recommend VirtualBox, but Sebb seemed to have some success
> with
> >>>>> Docker.
> >>>>>
> >>>>>
> >>>>>> Craig
> >>>>>>
> >>>>>
> >>>>> - Sam Ruby
> >>>>>
> >>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% brew upgrade ruby
> >>>>>> ==> Upgrading 1 outdated package:
> >>>>>> ruby 2.3.1 -> 2.7.1_2
> >>>>>> ==> Upgrading ruby 2.3.1 -> 2.7.1_2
> >>>>>> ==> Installing dependencies for ruby: libyaml
> >>>>>> ==> Installing ruby dependency: libyaml
> >>>>>> ==> Downloading
> >>>>>>
> >> https://homebrew.bintray.com/bottles/libyaml-0.2.4.mojave.bottle.tar.gz
> >>>>>>
> >> ########################################################################
> >>>>>> 100.0%
> >>>>>> ==> Pouring libyaml-0.2.4.mojave.bottle.tar.gz
> >>>>>> 🍺  /usr/local/Cellar/libyaml/0.2.4: 10 files, 300.6KB
> >>>>>> ==> Installing ruby
> >>>>>> ==> Downloading
> >>>>>>
> >> https://homebrew.bintray.com/bottles/ruby-2.7.1_2.mojave.bottle.tar.gz
> >>>>>> ==> Downloading from
> >>>>>>
> >>>>
> >>
> https://akamai.bintray.com/d5/d597bee751f9419ea7b40d8125e4f58b2c1eb675b929fe85d8463a6e008b2250?__gda__=exp=1589407606~hmac=7e2c9a4deb10bf88d31f39c705e
> >>>>>>
> >> ########################################################################
> >>>>>> 100.0%
> >>>>>> ==> Pouring ruby-2.7.1_2.mojave.bottle.tar.gz
> >>>>>> Error: The `brew link` step did not complete successfully
> >>>>>> The formula built, but is not symlinked into /usr/local
> >>>>>> Could not symlink bin/bundle
> >>>>>> Target /usr/local/bin/bundle
> >>>>>> already exists. You may want to remove it:
> >>>>>> rm '/usr/local/bin/bundle'
> >>>>>>
> >>>>>> To force the link and overwrite all conflicting files:
> >>>>>> brew link --overwrite ruby
> >>>>>>
> >>>>>> To list all files that would be deleted:
> >>>>>> brew link --overwrite --dry-run ruby
> >>>>>>
> >>>>>> Possible conflicting files are:
> >>>>>> /usr/local/bin/bundle
> >>>>>> /usr/local/bin/bundler
> >>>>>> /usr/local/bin/rake
> >>>>>> ==> Caveats
> >>>>>> By default, binaries installed by gem will be placed into:
> >>>>>> /usr/local/lib/ruby/gems/2.7.0/bin
> >>>>>>
> >>>>>> You may want to add this to your PATH.
> >>>>>>
> >>>>>> ruby is keg-only, which means it was not symlinked into /usr/local,
> >>>>>> because macOS already provides this software and installing another
> >>>>>> version in
> >>>>>> parallel can cause all kinds of trouble.
> >>>>>>
> >>>>>> If you need to have ruby first in your PATH run:
> >>>>>> echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
> >>>>>>
> >>>>>> For compilers to find ruby you may need to set:
> >>>>>> setenv LDFLAGS -L/usr/local/opt/ruby/lib;
> >>>>>> setenv CPPFLAGS -I/usr/local/opt/ruby/include;
> >>>>>>
> >>>>>> For pkg-config to find ruby you may need to set:
> >>>>>> setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
> >>>>>>
> >>>>>> ==> Summary
> >>>>>> 🍺  /usr/local/Cellar/ruby/2.7.1_2: 20,142 files, 31.9MB
> >>>>>> Removing: /usr/local/Cellar/ruby/2.3.1... (1,260 files, 19.0MB)
> >>>>>> ==> Checking for dependents of upgraded formulae...
> >>>>>> ==> No dependents found!
> >>>>>> ==> Caveats
> >>>>>> ==> ruby
> >>>>>> By default, binaries installed by gem will be placed into:
> >>>>>> /usr/local/lib/ruby/gems/2.7.0/bin
> >>>>>>
> >>>>>> You may want to add this to your PATH.
> >>>>>>
> >>>>>> ruby is keg-only, which means it was not symlinked into /usr/local,
> >>>>>> because macOS already provides this software and installing another
> >>>>>> version in
> >>>>>> parallel can cause all kinds of trouble.
> >>>>>>
> >>>>>> If you need to have ruby first in your PATH run:
> >>>>>> echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
> >>>>>>
> >>>>>> For compilers to find ruby you may need to set:
> >>>>>> setenv LDFLAGS -L/usr/local/opt/ruby/lib;
> >>>>>> setenv CPPFLAGS -I/usr/local/opt/ruby/include;
> >>>>>>
> >>>>>> For pkg-config to find ruby you may need to set:
> >>>>>> setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
> >>>>>>
> >>>>>>
> >>>>>>> On May 13, 2020, at 2:48 PM, Sam Ruby <ru...@intertwingly.net>
> >> wrote:
> >>>>>>>
> >>>>>>> On Wed, May 13, 2020 at 5:38 PM Craig Russell <
> apache.clr@gmail.com>
> >>>>>> wrote:
> >>>>>>>
> >>>>>>>> I think I'm in a loop:
> >>>>>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% ~/.rvm/scripts/rvm
> install
> >>>>>>>> "ruby-2.4.1"
> >>>>>>>> Required ruby-2.4.1 is not installed.
> >>>>>>>> To install do: 'rvm install "ruby-2.4.1"'
> >>>>>>>>
> >>>>>>>
> >>>>>>> Recommendation:
> >>>>>>>
> >>>>>>> rvm implode
> >>>>>>> brew install ruby
> >>>>>>>
> >>>>>>> Explanation:
> >>>>>>>
> >>>>>>> rvm solves the problem of "I want to run multiple versions of
> Ruby".
> >>>>>>>
> >>>>>>> brew solves the problem of "I want to run a recent version of Ruby"
> >>>>>>>
> >>>>>>> I think brew is a better match to your needs.
> >>>>>>>
> >>>>>>> If you do want to run multiple versions of Ruby, try rbenv instead:
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>
> >>
> https://github.com/apache/whimsy/blob/master/MACOSX.md#upgrade-ruby-if-needed
> >>>>>>>
> >>>>>>> - Sam Ruby
> >>>>>>
> >>>>>> Craig L Russell
> >>>>>> clr@apache.org
> >>>>>>
> >>>>>>
> >>>>
> >>>> Craig L Russell
> >>>> clr@apache.org
> >>>>
> >>>>
> >>
> >> Craig L Russell
> >> clr@apache.org
> >>
> >>
>
> Craig L Russell
> clr@apache.org
>
>

Re: Roster emeritus function now with code to review and a local failure

Posted by Craig Russell <ap...@gmail.com>.
[MacBook-Pro-10:~] clr% cat /etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1	localhost
255.255.255.255	broadcasthost
::1             whimsy.local 
# Added by Docker Desktop
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section

I think my wunderbar is out of date.
App 26532 output: /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18: warning: $SAFE will become a normal global variable in Ruby 3.0
[ W 2020-05-14 16:17:42.8530 27475/T1 age/Wat/WatchdogMain.cpp:538 ]: Some Phusion Passenger agent processes did not exit in time, forcefully shutting down all.
Remind me how to update my wunderbar?

Thanks,
Craig

> On May 14, 2020, at 8:41 AM, Sam Ruby <ru...@intertwingly.net> wrote:
> 
> On Thu, May 14, 2020 at 10:27 AM Craig Russell <ap...@gmail.com> wrote:
> 
>> I've updated the local svn repos. The server now starts via rake auth
>> server but nothing is returned from the browser https://whimsy.local:3000
>> whimsy.local
>> whimsy.local:3000
>> When I try http://0.0.0.0:3000/
>> Safari can't connect to the server "0.0.0.0"
>> 
> 
> Reproduced on my machine.  Workarounds:
> 
> 1) Try http://localhost:3000/, or even http://127.0.0.1:3000/
> 
> 2) Try FIrefox or Chrome.  They work with 0.0.0.0.  Heck, even curl does.
> 
> - Sam Ruby
> 
> P.S.
> 
> 1) I'm curious as to how you have whimsy.local set up in your /etc/hosts
> file.  If it is not there, that would explain it.  Normally I ask people to
> set up whimsy.local when the run the full server (via setupmymac or the
> instructions in MACOSX.md), and it points to an Apache httpd web server.
> You are running just this tool standalone.
> 
> 2) Below I still see "Unexpected name 'Chukwa' in report section".  That
> would indicated that you still have a stale copy of committee-info.txt
> being picked up.
> 
> 
>> [MacBook-Pro-10:whimsy/www/roster] clr% rake auth server
>> Enter password for clr:
>> bundle exec passenger start
>> =============== Phusion Passenger Standalone web server started
>> ===============
>> PID file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.pid
>> Log file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.log
>> Environment: development
>> Accessible via: http://0.0.0.0:3000/
>> 
>> You can stop Phusion Passenger Standalone by pressing Ctrl-C.
>> Problems? Check
>> https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/
>> 
>> ===============================================================================
>> [ N 2020-05-14 07:20:45.7033 10132/T5 age/Cor/SecurityUpdateChecker.h:519
>> ]: Security update check: no update found (next check in 24 hours)
>> App 10179 output: _WARN Unexpected name 'Chukwa' in report section; ignored
>> App 10179 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18:
>> warning: $SAFE will become a normal global variable in Ruby 3.0
>> ^CStopping web server...rake aborted!
>> Interrupt:
>> /Users/clr/apache/git/whimsy/www/roster/Rakefile:5:in `block in <top
>> (required)>'
>> Tasks: TOP => server
>> (See full trace by running task with --trace)
>> done
>> 
>> 
>>> On May 14, 2020, at 4:28 AM, Sam Ruby <ru...@intertwingly.net> wrote:
>>> 
>>> On Thu, May 14, 2020 at 1:14 AM Craig Russell <ap...@gmail.com>
>> wrote:
>>> 
>>>> So close... Maybe something to install with git infrastructure-puppet???
>>>> 
>>> 
>>> It also looks like you don't have a recent checkout of
>> committee-info.txt.
>>> 
>>> In the whimsy directory, run:
>>> 
>>> rake git:pull svn:update
>>> 
>>> - Sam Ruby
>>> 
>>> 
>>>> [MacBook-Pro-10:whimsy/www/roster] clr% rake server
>>>> bundle exec passenger start
>>>> =============== Phusion Passenger Standalone web server started
>>>> ===============
>>>> PID file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.pid
>>>> Log file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.log
>>>> Environment: development
>>>> Accessible via: http://0.0.0.0:3000/
>>>> 
>>>> You can stop Phusion Passenger Standalone by pressing Ctrl-C.
>>>> Problems? Check
>>>> 
>> https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/
>>>> 
>>>> 
>> ===============================================================================
>>>> [ N 2020-05-13 16:37:59.4373 81640/T5
>> age/Cor/SecurityUpdateChecker.h:519
>>>> ]: Security update check: no update found (next check in 24 hours)
>>>> App 81688 output: _WARN Unexpected name 'Chukwa' in report section;
>> ignored
>>>> App 81688 output: 2020-05-13 16:38:07 - Exception - Cannot find Git:
>>>> infrastructure-puppet:
>>>> App 81688 output:
>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/auth.rb:31:in `initialize'
>>>> App 81688 output:
>>>> /Users/clr/apache/git/whimsy/www/roster/models/group.rb:16:in `new'
>>>> App 81688 output:
>>>> /Users/clr/apache/git/whimsy/www/roster/models/group.rb:16:in `list'
>>>> App 81688 output:
>>>> /Users/clr/apache/git/whimsy/www/roster/main.rb:46:in `block in <top
>>>> (required)>'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in
>>>> `call'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in
>>>> `block in compile!'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in
>>>> `block (3 levels) in route!'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1006:in
>>>> `route_eval'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in
>>>> `block (2 levels) in route!'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1035:in
>>>> `block in process_route'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in
>>>> `catch'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in
>>>> `process_route'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:985:in
>>>> `block in route!'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in
>>>> `each'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in
>>>> `route!'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1098:in
>>>> `block in dispatch!'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>> `block in invoke'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>> `catch'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>> `invoke'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1095:in
>>>> `dispatch!'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in
>>>> `block in call!'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>> `block in invoke'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>> `catch'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>>>> `invoke'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in
>>>> `call!'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:908:in
>>>> `call'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/xss_header.rb:18:in
>>>> `call'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/path_traversal.rb:16:in
>>>> `call'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/json_csrf.rb:26:in
>>>> `call'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in
>>>> `call'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in
>>>> `call'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/frame_options.rb:31:in
>>>> `call'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/null_logger.rb:11:in
>>>> `call'
>>>> App 81688 output:
>>>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/head.rb:12:in
>>>> `call'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/method_override.rb:24:in
>>>> `call'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/show_exceptions.rb:22:in
>>>> `call'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:194:in
>>>> `call'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1951:in
>>>> `call'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in
>>>> `block in call'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1730:in
>>>> `synchronize'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in
>>>> `call'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/deflater.rb:44:in
>>>> `call'
>>>> App 81688 output:
>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:223:in `call'
>>>> App 81688 output:
>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:48:in `call'
>>>> App 81688 output:
>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:200:in `call'
>>>> App 81688 output:
>>>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:254:in `call'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in
>>>> `process_request'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:157:in
>>>> `accept_and_process_next_request'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:110:in
>>>> `main_loop'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler.rb:415:in
>>>> `block (3 levels) in start_threads'
>>>> App 81688 output:
>>>> 
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/utils.rb:113:in
>>>> `block in create_thread_and_abort_on_exception'
>>>> 
>>>> 
>>>>> On May 13, 2020, at 3:32 PM, Sam Ruby <ru...@intertwingly.net> wrote:
>>>>> 
>>>>> On Wed, May 13, 2020 at 5:58 PM Craig Russell <ap...@gmail.com>
>>>> wrote:
>>>>> 
>>>>>> I cannot implode rvm.
>>>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% rvm implode
>>>>>> Required ruby-2.4.1 is not installed.
>>>>>> To install do: 'rvm install "ruby-2.4.1"'
>>>>>> 
>>>>> 
>>>>> At a minimum, remove rvm from your .bash_profile or equivalent.
>>>>> 
>>>>> But I try to brew install ruby. It would only get me 2.7.1 but it
>> doesn't
>>>>>> work either.
>>>>>> 
>>>>> 
>>>>> Bummer.  Can you try rbenv?  I see you are running Mojave, so:
>>>>> 
>>>>> https://gorails.com/setup/osx/10.14-mojave#ruby
>>>>> 
>>>>> I do have docker installed so i can give that a try if I cannot get a
>> 2.4
>>>>>> version of ruby.
>>>>>> 
>>>>> 
>>>>> I would recommend VirtualBox, but Sebb seemed to have some success with
>>>>> Docker.
>>>>> 
>>>>> 
>>>>>> Craig
>>>>>> 
>>>>> 
>>>>> - Sam Ruby
>>>>> 
>>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% brew upgrade ruby
>>>>>> ==> Upgrading 1 outdated package:
>>>>>> ruby 2.3.1 -> 2.7.1_2
>>>>>> ==> Upgrading ruby 2.3.1 -> 2.7.1_2
>>>>>> ==> Installing dependencies for ruby: libyaml
>>>>>> ==> Installing ruby dependency: libyaml
>>>>>> ==> Downloading
>>>>>> 
>> https://homebrew.bintray.com/bottles/libyaml-0.2.4.mojave.bottle.tar.gz
>>>>>> 
>> ########################################################################
>>>>>> 100.0%
>>>>>> ==> Pouring libyaml-0.2.4.mojave.bottle.tar.gz
>>>>>> 🍺  /usr/local/Cellar/libyaml/0.2.4: 10 files, 300.6KB
>>>>>> ==> Installing ruby
>>>>>> ==> Downloading
>>>>>> 
>> https://homebrew.bintray.com/bottles/ruby-2.7.1_2.mojave.bottle.tar.gz
>>>>>> ==> Downloading from
>>>>>> 
>>>> 
>> https://akamai.bintray.com/d5/d597bee751f9419ea7b40d8125e4f58b2c1eb675b929fe85d8463a6e008b2250?__gda__=exp=1589407606~hmac=7e2c9a4deb10bf88d31f39c705e
>>>>>> 
>> ########################################################################
>>>>>> 100.0%
>>>>>> ==> Pouring ruby-2.7.1_2.mojave.bottle.tar.gz
>>>>>> Error: The `brew link` step did not complete successfully
>>>>>> The formula built, but is not symlinked into /usr/local
>>>>>> Could not symlink bin/bundle
>>>>>> Target /usr/local/bin/bundle
>>>>>> already exists. You may want to remove it:
>>>>>> rm '/usr/local/bin/bundle'
>>>>>> 
>>>>>> To force the link and overwrite all conflicting files:
>>>>>> brew link --overwrite ruby
>>>>>> 
>>>>>> To list all files that would be deleted:
>>>>>> brew link --overwrite --dry-run ruby
>>>>>> 
>>>>>> Possible conflicting files are:
>>>>>> /usr/local/bin/bundle
>>>>>> /usr/local/bin/bundler
>>>>>> /usr/local/bin/rake
>>>>>> ==> Caveats
>>>>>> By default, binaries installed by gem will be placed into:
>>>>>> /usr/local/lib/ruby/gems/2.7.0/bin
>>>>>> 
>>>>>> You may want to add this to your PATH.
>>>>>> 
>>>>>> ruby is keg-only, which means it was not symlinked into /usr/local,
>>>>>> because macOS already provides this software and installing another
>>>>>> version in
>>>>>> parallel can cause all kinds of trouble.
>>>>>> 
>>>>>> If you need to have ruby first in your PATH run:
>>>>>> echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
>>>>>> 
>>>>>> For compilers to find ruby you may need to set:
>>>>>> setenv LDFLAGS -L/usr/local/opt/ruby/lib;
>>>>>> setenv CPPFLAGS -I/usr/local/opt/ruby/include;
>>>>>> 
>>>>>> For pkg-config to find ruby you may need to set:
>>>>>> setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
>>>>>> 
>>>>>> ==> Summary
>>>>>> 🍺  /usr/local/Cellar/ruby/2.7.1_2: 20,142 files, 31.9MB
>>>>>> Removing: /usr/local/Cellar/ruby/2.3.1... (1,260 files, 19.0MB)
>>>>>> ==> Checking for dependents of upgraded formulae...
>>>>>> ==> No dependents found!
>>>>>> ==> Caveats
>>>>>> ==> ruby
>>>>>> By default, binaries installed by gem will be placed into:
>>>>>> /usr/local/lib/ruby/gems/2.7.0/bin
>>>>>> 
>>>>>> You may want to add this to your PATH.
>>>>>> 
>>>>>> ruby is keg-only, which means it was not symlinked into /usr/local,
>>>>>> because macOS already provides this software and installing another
>>>>>> version in
>>>>>> parallel can cause all kinds of trouble.
>>>>>> 
>>>>>> If you need to have ruby first in your PATH run:
>>>>>> echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
>>>>>> 
>>>>>> For compilers to find ruby you may need to set:
>>>>>> setenv LDFLAGS -L/usr/local/opt/ruby/lib;
>>>>>> setenv CPPFLAGS -I/usr/local/opt/ruby/include;
>>>>>> 
>>>>>> For pkg-config to find ruby you may need to set:
>>>>>> setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
>>>>>> 
>>>>>> 
>>>>>>> On May 13, 2020, at 2:48 PM, Sam Ruby <ru...@intertwingly.net>
>> wrote:
>>>>>>> 
>>>>>>> On Wed, May 13, 2020 at 5:38 PM Craig Russell <ap...@gmail.com>
>>>>>> wrote:
>>>>>>> 
>>>>>>>> I think I'm in a loop:
>>>>>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% ~/.rvm/scripts/rvm install
>>>>>>>> "ruby-2.4.1"
>>>>>>>> Required ruby-2.4.1 is not installed.
>>>>>>>> To install do: 'rvm install "ruby-2.4.1"'
>>>>>>>> 
>>>>>>> 
>>>>>>> Recommendation:
>>>>>>> 
>>>>>>> rvm implode
>>>>>>> brew install ruby
>>>>>>> 
>>>>>>> Explanation:
>>>>>>> 
>>>>>>> rvm solves the problem of "I want to run multiple versions of Ruby".
>>>>>>> 
>>>>>>> brew solves the problem of "I want to run a recent version of Ruby"
>>>>>>> 
>>>>>>> I think brew is a better match to your needs.
>>>>>>> 
>>>>>>> If you do want to run multiple versions of Ruby, try rbenv instead:
>>>>>>> 
>>>>>>> 
>>>>>> 
>>>> 
>> https://github.com/apache/whimsy/blob/master/MACOSX.md#upgrade-ruby-if-needed
>>>>>>> 
>>>>>>> - Sam Ruby
>>>>>> 
>>>>>> Craig L Russell
>>>>>> clr@apache.org
>>>>>> 
>>>>>> 
>>>> 
>>>> Craig L Russell
>>>> clr@apache.org
>>>> 
>>>> 
>> 
>> Craig L Russell
>> clr@apache.org
>> 
>> 

Craig L Russell
clr@apache.org


Re: Roster emeritus function now with code to review and a local failure

Posted by Sam Ruby <ru...@intertwingly.net>.
On Thu, May 14, 2020 at 10:27 AM Craig Russell <ap...@gmail.com> wrote:

> I've updated the local svn repos. The server now starts via rake auth
> server but nothing is returned from the browser https://whimsy.local:3000
> whimsy.local
> whimsy.local:3000
> When I try http://0.0.0.0:3000/
> Safari can't connect to the server "0.0.0.0"
>

Reproduced on my machine.  Workarounds:

1) Try http://localhost:3000/, or even http://127.0.0.1:3000/

2) Try FIrefox or Chrome.  They work with 0.0.0.0.  Heck, even curl does.

- Sam Ruby

P.S.

1) I'm curious as to how you have whimsy.local set up in your /etc/hosts
file.  If it is not there, that would explain it.  Normally I ask people to
set up whimsy.local when the run the full server (via setupmymac or the
instructions in MACOSX.md), and it points to an Apache httpd web server.
You are running just this tool standalone.

2) Below I still see "Unexpected name 'Chukwa' in report section".  That
would indicated that you still have a stale copy of committee-info.txt
being picked up.


> [MacBook-Pro-10:whimsy/www/roster] clr% rake auth server
> Enter password for clr:
> bundle exec passenger start
> =============== Phusion Passenger Standalone web server started
> ===============
> PID file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.pid
> Log file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.log
> Environment: development
> Accessible via: http://0.0.0.0:3000/
>
> You can stop Phusion Passenger Standalone by pressing Ctrl-C.
> Problems? Check
> https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/
>
> ===============================================================================
> [ N 2020-05-14 07:20:45.7033 10132/T5 age/Cor/SecurityUpdateChecker.h:519
> ]: Security update check: no update found (next check in 24 hours)
> App 10179 output: _WARN Unexpected name 'Chukwa' in report section; ignored
> App 10179 output:
> /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18:
> warning: $SAFE will become a normal global variable in Ruby 3.0
> ^CStopping web server...rake aborted!
> Interrupt:
> /Users/clr/apache/git/whimsy/www/roster/Rakefile:5:in `block in <top
> (required)>'
> Tasks: TOP => server
> (See full trace by running task with --trace)
>  done
>
>
> > On May 14, 2020, at 4:28 AM, Sam Ruby <ru...@intertwingly.net> wrote:
> >
> > On Thu, May 14, 2020 at 1:14 AM Craig Russell <ap...@gmail.com>
> wrote:
> >
> >> So close... Maybe something to install with git infrastructure-puppet???
> >>
> >
> > It also looks like you don't have a recent checkout of
> committee-info.txt.
> >
> > In the whimsy directory, run:
> >
> >  rake git:pull svn:update
> >
> > - Sam Ruby
> >
> >
> >> [MacBook-Pro-10:whimsy/www/roster] clr% rake server
> >> bundle exec passenger start
> >> =============== Phusion Passenger Standalone web server started
> >> ===============
> >> PID file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.pid
> >> Log file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.log
> >> Environment: development
> >> Accessible via: http://0.0.0.0:3000/
> >>
> >> You can stop Phusion Passenger Standalone by pressing Ctrl-C.
> >> Problems? Check
> >>
> https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/
> >>
> >>
> ===============================================================================
> >> [ N 2020-05-13 16:37:59.4373 81640/T5
> age/Cor/SecurityUpdateChecker.h:519
> >> ]: Security update check: no update found (next check in 24 hours)
> >> App 81688 output: _WARN Unexpected name 'Chukwa' in report section;
> ignored
> >> App 81688 output: 2020-05-13 16:38:07 - Exception - Cannot find Git:
> >> infrastructure-puppet:
> >> App 81688 output:
> >> /Users/clr/apache/git/whimsy/lib/whimsy/asf/auth.rb:31:in `initialize'
> >> App 81688 output:
> >> /Users/clr/apache/git/whimsy/www/roster/models/group.rb:16:in `new'
> >> App 81688 output:
> >> /Users/clr/apache/git/whimsy/www/roster/models/group.rb:16:in `list'
> >> App 81688 output:
> >> /Users/clr/apache/git/whimsy/www/roster/main.rb:46:in `block in <top
> >> (required)>'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in
> >> `call'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in
> >> `block in compile!'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in
> >> `block (3 levels) in route!'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1006:in
> >> `route_eval'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in
> >> `block (2 levels) in route!'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1035:in
> >> `block in process_route'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in
> >> `catch'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in
> >> `process_route'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:985:in
> >> `block in route!'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in
> >> `each'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in
> >> `route!'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1098:in
> >> `block in dispatch!'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >> `block in invoke'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >> `catch'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >> `invoke'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1095:in
> >> `dispatch!'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in
> >> `block in call!'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >> `block in invoke'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >> `catch'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> >> `invoke'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in
> >> `call!'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:908:in
> >> `call'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/xss_header.rb:18:in
> >> `call'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/path_traversal.rb:16:in
> >> `call'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/json_csrf.rb:26:in
> >> `call'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in
> >> `call'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in
> >> `call'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/frame_options.rb:31:in
> >> `call'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/null_logger.rb:11:in
> >> `call'
> >> App 81688 output:
> >> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/head.rb:12:in
> >> `call'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/method_override.rb:24:in
> >> `call'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/show_exceptions.rb:22:in
> >> `call'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:194:in
> >> `call'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1951:in
> >> `call'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in
> >> `block in call'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1730:in
> >> `synchronize'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in
> >> `call'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/deflater.rb:44:in
> >> `call'
> >> App 81688 output:
> >> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:223:in `call'
> >> App 81688 output:
> >> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:48:in `call'
> >> App 81688 output:
> >> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:200:in `call'
> >> App 81688 output:
> >> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:254:in `call'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in
> >> `process_request'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:157:in
> >> `accept_and_process_next_request'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:110:in
> >> `main_loop'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler.rb:415:in
> >> `block (3 levels) in start_threads'
> >> App 81688 output:
> >>
> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/utils.rb:113:in
> >> `block in create_thread_and_abort_on_exception'
> >>
> >>
> >>> On May 13, 2020, at 3:32 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> >>>
> >>> On Wed, May 13, 2020 at 5:58 PM Craig Russell <ap...@gmail.com>
> >> wrote:
> >>>
> >>>> I cannot implode rvm.
> >>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% rvm implode
> >>>> Required ruby-2.4.1 is not installed.
> >>>> To install do: 'rvm install "ruby-2.4.1"'
> >>>>
> >>>
> >>> At a minimum, remove rvm from your .bash_profile or equivalent.
> >>>
> >>> But I try to brew install ruby. It would only get me 2.7.1 but it
> doesn't
> >>>> work either.
> >>>>
> >>>
> >>> Bummer.  Can you try rbenv?  I see you are running Mojave, so:
> >>>
> >>> https://gorails.com/setup/osx/10.14-mojave#ruby
> >>>
> >>> I do have docker installed so i can give that a try if I cannot get a
> 2.4
> >>>> version of ruby.
> >>>>
> >>>
> >>> I would recommend VirtualBox, but Sebb seemed to have some success with
> >>> Docker.
> >>>
> >>>
> >>>> Craig
> >>>>
> >>>
> >>> - Sam Ruby
> >>>
> >>> [MacBook-Pro-10:~/apache/git/whimsy] clr% brew upgrade ruby
> >>>> ==> Upgrading 1 outdated package:
> >>>> ruby 2.3.1 -> 2.7.1_2
> >>>> ==> Upgrading ruby 2.3.1 -> 2.7.1_2
> >>>> ==> Installing dependencies for ruby: libyaml
> >>>> ==> Installing ruby dependency: libyaml
> >>>> ==> Downloading
> >>>>
> https://homebrew.bintray.com/bottles/libyaml-0.2.4.mojave.bottle.tar.gz
> >>>>
> ########################################################################
> >>>> 100.0%
> >>>> ==> Pouring libyaml-0.2.4.mojave.bottle.tar.gz
> >>>> 🍺  /usr/local/Cellar/libyaml/0.2.4: 10 files, 300.6KB
> >>>> ==> Installing ruby
> >>>> ==> Downloading
> >>>>
> https://homebrew.bintray.com/bottles/ruby-2.7.1_2.mojave.bottle.tar.gz
> >>>> ==> Downloading from
> >>>>
> >>
> https://akamai.bintray.com/d5/d597bee751f9419ea7b40d8125e4f58b2c1eb675b929fe85d8463a6e008b2250?__gda__=exp=1589407606~hmac=7e2c9a4deb10bf88d31f39c705e
> >>>>
> ########################################################################
> >>>> 100.0%
> >>>> ==> Pouring ruby-2.7.1_2.mojave.bottle.tar.gz
> >>>> Error: The `brew link` step did not complete successfully
> >>>> The formula built, but is not symlinked into /usr/local
> >>>> Could not symlink bin/bundle
> >>>> Target /usr/local/bin/bundle
> >>>> already exists. You may want to remove it:
> >>>> rm '/usr/local/bin/bundle'
> >>>>
> >>>> To force the link and overwrite all conflicting files:
> >>>> brew link --overwrite ruby
> >>>>
> >>>> To list all files that would be deleted:
> >>>> brew link --overwrite --dry-run ruby
> >>>>
> >>>> Possible conflicting files are:
> >>>> /usr/local/bin/bundle
> >>>> /usr/local/bin/bundler
> >>>> /usr/local/bin/rake
> >>>> ==> Caveats
> >>>> By default, binaries installed by gem will be placed into:
> >>>> /usr/local/lib/ruby/gems/2.7.0/bin
> >>>>
> >>>> You may want to add this to your PATH.
> >>>>
> >>>> ruby is keg-only, which means it was not symlinked into /usr/local,
> >>>> because macOS already provides this software and installing another
> >>>> version in
> >>>> parallel can cause all kinds of trouble.
> >>>>
> >>>> If you need to have ruby first in your PATH run:
> >>>> echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
> >>>>
> >>>> For compilers to find ruby you may need to set:
> >>>> setenv LDFLAGS -L/usr/local/opt/ruby/lib;
> >>>> setenv CPPFLAGS -I/usr/local/opt/ruby/include;
> >>>>
> >>>> For pkg-config to find ruby you may need to set:
> >>>> setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
> >>>>
> >>>> ==> Summary
> >>>> 🍺  /usr/local/Cellar/ruby/2.7.1_2: 20,142 files, 31.9MB
> >>>> Removing: /usr/local/Cellar/ruby/2.3.1... (1,260 files, 19.0MB)
> >>>> ==> Checking for dependents of upgraded formulae...
> >>>> ==> No dependents found!
> >>>> ==> Caveats
> >>>> ==> ruby
> >>>> By default, binaries installed by gem will be placed into:
> >>>> /usr/local/lib/ruby/gems/2.7.0/bin
> >>>>
> >>>> You may want to add this to your PATH.
> >>>>
> >>>> ruby is keg-only, which means it was not symlinked into /usr/local,
> >>>> because macOS already provides this software and installing another
> >>>> version in
> >>>> parallel can cause all kinds of trouble.
> >>>>
> >>>> If you need to have ruby first in your PATH run:
> >>>> echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
> >>>>
> >>>> For compilers to find ruby you may need to set:
> >>>> setenv LDFLAGS -L/usr/local/opt/ruby/lib;
> >>>> setenv CPPFLAGS -I/usr/local/opt/ruby/include;
> >>>>
> >>>> For pkg-config to find ruby you may need to set:
> >>>> setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
> >>>>
> >>>>
> >>>>> On May 13, 2020, at 2:48 PM, Sam Ruby <ru...@intertwingly.net>
> wrote:
> >>>>>
> >>>>> On Wed, May 13, 2020 at 5:38 PM Craig Russell <ap...@gmail.com>
> >>>> wrote:
> >>>>>
> >>>>>> I think I'm in a loop:
> >>>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% ~/.rvm/scripts/rvm install
> >>>>>> "ruby-2.4.1"
> >>>>>> Required ruby-2.4.1 is not installed.
> >>>>>> To install do: 'rvm install "ruby-2.4.1"'
> >>>>>>
> >>>>>
> >>>>> Recommendation:
> >>>>>
> >>>>> rvm implode
> >>>>> brew install ruby
> >>>>>
> >>>>> Explanation:
> >>>>>
> >>>>> rvm solves the problem of "I want to run multiple versions of Ruby".
> >>>>>
> >>>>> brew solves the problem of "I want to run a recent version of Ruby"
> >>>>>
> >>>>> I think brew is a better match to your needs.
> >>>>>
> >>>>> If you do want to run multiple versions of Ruby, try rbenv instead:
> >>>>>
> >>>>>
> >>>>
> >>
> https://github.com/apache/whimsy/blob/master/MACOSX.md#upgrade-ruby-if-needed
> >>>>>
> >>>>> - Sam Ruby
> >>>>
> >>>> Craig L Russell
> >>>> clr@apache.org
> >>>>
> >>>>
> >>
> >> Craig L Russell
> >> clr@apache.org
> >>
> >>
>
> Craig L Russell
> clr@apache.org
>
>

Re: Roster emeritus function now with code to review and a local failure

Posted by Craig Russell <ap...@gmail.com>.
I've updated the local svn repos. The server now starts via rake auth server but nothing is returned from the browser https://whimsy.local:3000
whimsy.local
whimsy.local:3000
When I try http://0.0.0.0:3000/ 
Safari can't connect to the server "0.0.0.0"

[MacBook-Pro-10:whimsy/www/roster] clr% rake auth server
Enter password for clr: 
bundle exec passenger start
=============== Phusion Passenger Standalone web server started ===============
PID file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.pid
Log file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.log
Environment: development
Accessible via: http://0.0.0.0:3000/

You can stop Phusion Passenger Standalone by pressing Ctrl-C.
Problems? Check https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/
===============================================================================
[ N 2020-05-14 07:20:45.7033 10132/T5 age/Cor/SecurityUpdateChecker.h:519 ]: Security update check: no update found (next check in 24 hours)
App 10179 output: _WARN Unexpected name 'Chukwa' in report section; ignored
App 10179 output: /usr/local/lib/ruby/gems/2.7.0/gems/wunderbar-1.3.3/lib/wunderbar/environment.rb:18: warning: $SAFE will become a normal global variable in Ruby 3.0
^CStopping web server...rake aborted!
Interrupt: 
/Users/clr/apache/git/whimsy/www/roster/Rakefile:5:in `block in <top (required)>'
Tasks: TOP => server
(See full trace by running task with --trace)
 done


> On May 14, 2020, at 4:28 AM, Sam Ruby <ru...@intertwingly.net> wrote:
> 
> On Thu, May 14, 2020 at 1:14 AM Craig Russell <ap...@gmail.com> wrote:
> 
>> So close... Maybe something to install with git infrastructure-puppet???
>> 
> 
> It also looks like you don't have a recent checkout of committee-info.txt.
> 
> In the whimsy directory, run:
> 
>  rake git:pull svn:update
> 
> - Sam Ruby
> 
> 
>> [MacBook-Pro-10:whimsy/www/roster] clr% rake server
>> bundle exec passenger start
>> =============== Phusion Passenger Standalone web server started
>> ===============
>> PID file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.pid
>> Log file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.log
>> Environment: development
>> Accessible via: http://0.0.0.0:3000/
>> 
>> You can stop Phusion Passenger Standalone by pressing Ctrl-C.
>> Problems? Check
>> https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/
>> 
>> ===============================================================================
>> [ N 2020-05-13 16:37:59.4373 81640/T5 age/Cor/SecurityUpdateChecker.h:519
>> ]: Security update check: no update found (next check in 24 hours)
>> App 81688 output: _WARN Unexpected name 'Chukwa' in report section; ignored
>> App 81688 output: 2020-05-13 16:38:07 - Exception - Cannot find Git:
>> infrastructure-puppet:
>> App 81688 output:
>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/auth.rb:31:in `initialize'
>> App 81688 output:
>> /Users/clr/apache/git/whimsy/www/roster/models/group.rb:16:in `new'
>> App 81688 output:
>> /Users/clr/apache/git/whimsy/www/roster/models/group.rb:16:in `list'
>> App 81688 output:
>> /Users/clr/apache/git/whimsy/www/roster/main.rb:46:in `block in <top
>> (required)>'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in
>> `call'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in
>> `block in compile!'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in
>> `block (3 levels) in route!'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1006:in
>> `route_eval'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in
>> `block (2 levels) in route!'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1035:in
>> `block in process_route'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in
>> `catch'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in
>> `process_route'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:985:in
>> `block in route!'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in
>> `each'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in
>> `route!'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1098:in
>> `block in dispatch!'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>> `block in invoke'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>> `catch'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>> `invoke'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1095:in
>> `dispatch!'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in
>> `block in call!'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>> `block in invoke'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>> `catch'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
>> `invoke'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in
>> `call!'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:908:in
>> `call'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/xss_header.rb:18:in
>> `call'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/path_traversal.rb:16:in
>> `call'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/json_csrf.rb:26:in
>> `call'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in
>> `call'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in
>> `call'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/frame_options.rb:31:in
>> `call'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/null_logger.rb:11:in
>> `call'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/head.rb:12:in
>> `call'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/method_override.rb:24:in
>> `call'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/show_exceptions.rb:22:in
>> `call'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:194:in
>> `call'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1951:in
>> `call'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in
>> `block in call'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1730:in
>> `synchronize'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in
>> `call'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/deflater.rb:44:in
>> `call'
>> App 81688 output:
>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:223:in `call'
>> App 81688 output:
>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:48:in `call'
>> App 81688 output:
>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:200:in `call'
>> App 81688 output:
>> /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:254:in `call'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in
>> `process_request'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:157:in
>> `accept_and_process_next_request'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:110:in
>> `main_loop'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler.rb:415:in
>> `block (3 levels) in start_threads'
>> App 81688 output:
>> /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/utils.rb:113:in
>> `block in create_thread_and_abort_on_exception'
>> 
>> 
>>> On May 13, 2020, at 3:32 PM, Sam Ruby <ru...@intertwingly.net> wrote:
>>> 
>>> On Wed, May 13, 2020 at 5:58 PM Craig Russell <ap...@gmail.com>
>> wrote:
>>> 
>>>> I cannot implode rvm.
>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% rvm implode
>>>> Required ruby-2.4.1 is not installed.
>>>> To install do: 'rvm install "ruby-2.4.1"'
>>>> 
>>> 
>>> At a minimum, remove rvm from your .bash_profile or equivalent.
>>> 
>>> But I try to brew install ruby. It would only get me 2.7.1 but it doesn't
>>>> work either.
>>>> 
>>> 
>>> Bummer.  Can you try rbenv?  I see you are running Mojave, so:
>>> 
>>> https://gorails.com/setup/osx/10.14-mojave#ruby
>>> 
>>> I do have docker installed so i can give that a try if I cannot get a 2.4
>>>> version of ruby.
>>>> 
>>> 
>>> I would recommend VirtualBox, but Sebb seemed to have some success with
>>> Docker.
>>> 
>>> 
>>>> Craig
>>>> 
>>> 
>>> - Sam Ruby
>>> 
>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% brew upgrade ruby
>>>> ==> Upgrading 1 outdated package:
>>>> ruby 2.3.1 -> 2.7.1_2
>>>> ==> Upgrading ruby 2.3.1 -> 2.7.1_2
>>>> ==> Installing dependencies for ruby: libyaml
>>>> ==> Installing ruby dependency: libyaml
>>>> ==> Downloading
>>>> https://homebrew.bintray.com/bottles/libyaml-0.2.4.mojave.bottle.tar.gz
>>>> ########################################################################
>>>> 100.0%
>>>> ==> Pouring libyaml-0.2.4.mojave.bottle.tar.gz
>>>> 🍺  /usr/local/Cellar/libyaml/0.2.4: 10 files, 300.6KB
>>>> ==> Installing ruby
>>>> ==> Downloading
>>>> https://homebrew.bintray.com/bottles/ruby-2.7.1_2.mojave.bottle.tar.gz
>>>> ==> Downloading from
>>>> 
>> https://akamai.bintray.com/d5/d597bee751f9419ea7b40d8125e4f58b2c1eb675b929fe85d8463a6e008b2250?__gda__=exp=1589407606~hmac=7e2c9a4deb10bf88d31f39c705e
>>>> ########################################################################
>>>> 100.0%
>>>> ==> Pouring ruby-2.7.1_2.mojave.bottle.tar.gz
>>>> Error: The `brew link` step did not complete successfully
>>>> The formula built, but is not symlinked into /usr/local
>>>> Could not symlink bin/bundle
>>>> Target /usr/local/bin/bundle
>>>> already exists. You may want to remove it:
>>>> rm '/usr/local/bin/bundle'
>>>> 
>>>> To force the link and overwrite all conflicting files:
>>>> brew link --overwrite ruby
>>>> 
>>>> To list all files that would be deleted:
>>>> brew link --overwrite --dry-run ruby
>>>> 
>>>> Possible conflicting files are:
>>>> /usr/local/bin/bundle
>>>> /usr/local/bin/bundler
>>>> /usr/local/bin/rake
>>>> ==> Caveats
>>>> By default, binaries installed by gem will be placed into:
>>>> /usr/local/lib/ruby/gems/2.7.0/bin
>>>> 
>>>> You may want to add this to your PATH.
>>>> 
>>>> ruby is keg-only, which means it was not symlinked into /usr/local,
>>>> because macOS already provides this software and installing another
>>>> version in
>>>> parallel can cause all kinds of trouble.
>>>> 
>>>> If you need to have ruby first in your PATH run:
>>>> echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
>>>> 
>>>> For compilers to find ruby you may need to set:
>>>> setenv LDFLAGS -L/usr/local/opt/ruby/lib;
>>>> setenv CPPFLAGS -I/usr/local/opt/ruby/include;
>>>> 
>>>> For pkg-config to find ruby you may need to set:
>>>> setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
>>>> 
>>>> ==> Summary
>>>> 🍺  /usr/local/Cellar/ruby/2.7.1_2: 20,142 files, 31.9MB
>>>> Removing: /usr/local/Cellar/ruby/2.3.1... (1,260 files, 19.0MB)
>>>> ==> Checking for dependents of upgraded formulae...
>>>> ==> No dependents found!
>>>> ==> Caveats
>>>> ==> ruby
>>>> By default, binaries installed by gem will be placed into:
>>>> /usr/local/lib/ruby/gems/2.7.0/bin
>>>> 
>>>> You may want to add this to your PATH.
>>>> 
>>>> ruby is keg-only, which means it was not symlinked into /usr/local,
>>>> because macOS already provides this software and installing another
>>>> version in
>>>> parallel can cause all kinds of trouble.
>>>> 
>>>> If you need to have ruby first in your PATH run:
>>>> echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
>>>> 
>>>> For compilers to find ruby you may need to set:
>>>> setenv LDFLAGS -L/usr/local/opt/ruby/lib;
>>>> setenv CPPFLAGS -I/usr/local/opt/ruby/include;
>>>> 
>>>> For pkg-config to find ruby you may need to set:
>>>> setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
>>>> 
>>>> 
>>>>> On May 13, 2020, at 2:48 PM, Sam Ruby <ru...@intertwingly.net> wrote:
>>>>> 
>>>>> On Wed, May 13, 2020 at 5:38 PM Craig Russell <ap...@gmail.com>
>>>> wrote:
>>>>> 
>>>>>> I think I'm in a loop:
>>>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% ~/.rvm/scripts/rvm install
>>>>>> "ruby-2.4.1"
>>>>>> Required ruby-2.4.1 is not installed.
>>>>>> To install do: 'rvm install "ruby-2.4.1"'
>>>>>> 
>>>>> 
>>>>> Recommendation:
>>>>> 
>>>>> rvm implode
>>>>> brew install ruby
>>>>> 
>>>>> Explanation:
>>>>> 
>>>>> rvm solves the problem of "I want to run multiple versions of Ruby".
>>>>> 
>>>>> brew solves the problem of "I want to run a recent version of Ruby"
>>>>> 
>>>>> I think brew is a better match to your needs.
>>>>> 
>>>>> If you do want to run multiple versions of Ruby, try rbenv instead:
>>>>> 
>>>>> 
>>>> 
>> https://github.com/apache/whimsy/blob/master/MACOSX.md#upgrade-ruby-if-needed
>>>>> 
>>>>> - Sam Ruby
>>>> 
>>>> Craig L Russell
>>>> clr@apache.org
>>>> 
>>>> 
>> 
>> Craig L Russell
>> clr@apache.org
>> 
>> 

Craig L Russell
clr@apache.org


Re: Roster emeritus function now with code to review and a local failure

Posted by Sam Ruby <ru...@intertwingly.net>.
On Thu, May 14, 2020 at 1:14 AM Craig Russell <ap...@gmail.com> wrote:

> So close... Maybe something to install with git infrastructure-puppet???
>

It also looks like you don't have a recent checkout of committee-info.txt.

In the whimsy directory, run:

  rake git:pull svn:update

- Sam Ruby


> [MacBook-Pro-10:whimsy/www/roster] clr% rake server
> bundle exec passenger start
> =============== Phusion Passenger Standalone web server started
> ===============
> PID file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.pid
> Log file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.log
> Environment: development
> Accessible via: http://0.0.0.0:3000/
>
> You can stop Phusion Passenger Standalone by pressing Ctrl-C.
> Problems? Check
> https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/
>
> ===============================================================================
> [ N 2020-05-13 16:37:59.4373 81640/T5 age/Cor/SecurityUpdateChecker.h:519
> ]: Security update check: no update found (next check in 24 hours)
> App 81688 output: _WARN Unexpected name 'Chukwa' in report section; ignored
> App 81688 output: 2020-05-13 16:38:07 - Exception - Cannot find Git:
> infrastructure-puppet:
> App 81688 output:
>  /Users/clr/apache/git/whimsy/lib/whimsy/asf/auth.rb:31:in `initialize'
> App 81688 output:
>  /Users/clr/apache/git/whimsy/www/roster/models/group.rb:16:in `new'
> App 81688 output:
>  /Users/clr/apache/git/whimsy/www/roster/models/group.rb:16:in `list'
> App 81688 output:
>  /Users/clr/apache/git/whimsy/www/roster/main.rb:46:in `block in <top
> (required)>'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in
> `call'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in
> `block in compile!'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in
> `block (3 levels) in route!'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1006:in
> `route_eval'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in
> `block (2 levels) in route!'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1035:in
> `block in process_route'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in
> `catch'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in
> `process_route'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:985:in
> `block in route!'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in
> `each'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in
> `route!'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1098:in
> `block in dispatch!'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> `block in invoke'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> `catch'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> `invoke'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1095:in
> `dispatch!'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in
> `block in call!'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> `block in invoke'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> `catch'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in
> `invoke'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in
> `call!'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:908:in
> `call'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/xss_header.rb:18:in
> `call'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/path_traversal.rb:16:in
> `call'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/json_csrf.rb:26:in
> `call'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in
> `call'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in
> `call'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/frame_options.rb:31:in
> `call'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/null_logger.rb:11:in
> `call'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/head.rb:12:in
> `call'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/method_override.rb:24:in
> `call'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/show_exceptions.rb:22:in
> `call'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:194:in
> `call'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1951:in
> `call'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in
> `block in call'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1730:in
> `synchronize'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in
> `call'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/deflater.rb:44:in
> `call'
> App 81688 output:
>  /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:223:in `call'
> App 81688 output:
>  /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:48:in `call'
> App 81688 output:
>  /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:200:in `call'
> App 81688 output:
>  /Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:254:in `call'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in
> `process_request'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:157:in
> `accept_and_process_next_request'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:110:in
> `main_loop'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler.rb:415:in
> `block (3 levels) in start_threads'
> App 81688 output:
>  /usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/utils.rb:113:in
> `block in create_thread_and_abort_on_exception'
>
>
> > On May 13, 2020, at 3:32 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> >
> > On Wed, May 13, 2020 at 5:58 PM Craig Russell <ap...@gmail.com>
> wrote:
> >
> >> I cannot implode rvm.
> >> [MacBook-Pro-10:~/apache/git/whimsy] clr% rvm implode
> >> Required ruby-2.4.1 is not installed.
> >> To install do: 'rvm install "ruby-2.4.1"'
> >>
> >
> > At a minimum, remove rvm from your .bash_profile or equivalent.
> >
> > But I try to brew install ruby. It would only get me 2.7.1 but it doesn't
> >> work either.
> >>
> >
> > Bummer.  Can you try rbenv?  I see you are running Mojave, so:
> >
> > https://gorails.com/setup/osx/10.14-mojave#ruby
> >
> > I do have docker installed so i can give that a try if I cannot get a 2.4
> >> version of ruby.
> >>
> >
> > I would recommend VirtualBox, but Sebb seemed to have some success with
> > Docker.
> >
> >
> >> Craig
> >>
> >
> > - Sam Ruby
> >
> > [MacBook-Pro-10:~/apache/git/whimsy] clr% brew upgrade ruby
> >> ==> Upgrading 1 outdated package:
> >> ruby 2.3.1 -> 2.7.1_2
> >> ==> Upgrading ruby 2.3.1 -> 2.7.1_2
> >> ==> Installing dependencies for ruby: libyaml
> >> ==> Installing ruby dependency: libyaml
> >> ==> Downloading
> >> https://homebrew.bintray.com/bottles/libyaml-0.2.4.mojave.bottle.tar.gz
> >> ########################################################################
> >> 100.0%
> >> ==> Pouring libyaml-0.2.4.mojave.bottle.tar.gz
> >> 🍺  /usr/local/Cellar/libyaml/0.2.4: 10 files, 300.6KB
> >> ==> Installing ruby
> >> ==> Downloading
> >> https://homebrew.bintray.com/bottles/ruby-2.7.1_2.mojave.bottle.tar.gz
> >> ==> Downloading from
> >>
> https://akamai.bintray.com/d5/d597bee751f9419ea7b40d8125e4f58b2c1eb675b929fe85d8463a6e008b2250?__gda__=exp=1589407606~hmac=7e2c9a4deb10bf88d31f39c705e
> >> ########################################################################
> >> 100.0%
> >> ==> Pouring ruby-2.7.1_2.mojave.bottle.tar.gz
> >> Error: The `brew link` step did not complete successfully
> >> The formula built, but is not symlinked into /usr/local
> >> Could not symlink bin/bundle
> >> Target /usr/local/bin/bundle
> >> already exists. You may want to remove it:
> >>  rm '/usr/local/bin/bundle'
> >>
> >> To force the link and overwrite all conflicting files:
> >>  brew link --overwrite ruby
> >>
> >> To list all files that would be deleted:
> >>  brew link --overwrite --dry-run ruby
> >>
> >> Possible conflicting files are:
> >> /usr/local/bin/bundle
> >> /usr/local/bin/bundler
> >> /usr/local/bin/rake
> >> ==> Caveats
> >> By default, binaries installed by gem will be placed into:
> >>  /usr/local/lib/ruby/gems/2.7.0/bin
> >>
> >> You may want to add this to your PATH.
> >>
> >> ruby is keg-only, which means it was not symlinked into /usr/local,
> >> because macOS already provides this software and installing another
> >> version in
> >> parallel can cause all kinds of trouble.
> >>
> >> If you need to have ruby first in your PATH run:
> >>  echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
> >>
> >> For compilers to find ruby you may need to set:
> >>  setenv LDFLAGS -L/usr/local/opt/ruby/lib;
> >>  setenv CPPFLAGS -I/usr/local/opt/ruby/include;
> >>
> >> For pkg-config to find ruby you may need to set:
> >>  setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
> >>
> >> ==> Summary
> >> 🍺  /usr/local/Cellar/ruby/2.7.1_2: 20,142 files, 31.9MB
> >> Removing: /usr/local/Cellar/ruby/2.3.1... (1,260 files, 19.0MB)
> >> ==> Checking for dependents of upgraded formulae...
> >> ==> No dependents found!
> >> ==> Caveats
> >> ==> ruby
> >> By default, binaries installed by gem will be placed into:
> >>  /usr/local/lib/ruby/gems/2.7.0/bin
> >>
> >> You may want to add this to your PATH.
> >>
> >> ruby is keg-only, which means it was not symlinked into /usr/local,
> >> because macOS already provides this software and installing another
> >> version in
> >> parallel can cause all kinds of trouble.
> >>
> >> If you need to have ruby first in your PATH run:
> >>  echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
> >>
> >> For compilers to find ruby you may need to set:
> >>  setenv LDFLAGS -L/usr/local/opt/ruby/lib;
> >>  setenv CPPFLAGS -I/usr/local/opt/ruby/include;
> >>
> >> For pkg-config to find ruby you may need to set:
> >>  setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
> >>
> >>
> >>> On May 13, 2020, at 2:48 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> >>>
> >>> On Wed, May 13, 2020 at 5:38 PM Craig Russell <ap...@gmail.com>
> >> wrote:
> >>>
> >>>> I think I'm in a loop:
> >>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% ~/.rvm/scripts/rvm install
> >>>> "ruby-2.4.1"
> >>>> Required ruby-2.4.1 is not installed.
> >>>> To install do: 'rvm install "ruby-2.4.1"'
> >>>>
> >>>
> >>> Recommendation:
> >>>
> >>> rvm implode
> >>> brew install ruby
> >>>
> >>> Explanation:
> >>>
> >>> rvm solves the problem of "I want to run multiple versions of Ruby".
> >>>
> >>> brew solves the problem of "I want to run a recent version of Ruby"
> >>>
> >>> I think brew is a better match to your needs.
> >>>
> >>> If you do want to run multiple versions of Ruby, try rbenv instead:
> >>>
> >>>
> >>
> https://github.com/apache/whimsy/blob/master/MACOSX.md#upgrade-ruby-if-needed
> >>>
> >>> - Sam Ruby
> >>
> >> Craig L Russell
> >> clr@apache.org
> >>
> >>
>
> Craig L Russell
> clr@apache.org
>
>

Re: Roster emeritus function now with code to review and a local failure

Posted by Craig Russell <ap...@gmail.com>.
So close... Maybe something to install with git infrastructure-puppet???

[MacBook-Pro-10:whimsy/www/roster] clr% rake server
bundle exec passenger start
=============== Phusion Passenger Standalone web server started ===============
PID file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.pid
Log file: /Users/clr/apache/git/whimsy/www/roster/passenger.3000.log
Environment: development
Accessible via: http://0.0.0.0:3000/

You can stop Phusion Passenger Standalone by pressing Ctrl-C.
Problems? Check https://www.phusionpassenger.com/library/admin/standalone/troubleshooting/
===============================================================================
[ N 2020-05-13 16:37:59.4373 81640/T5 age/Cor/SecurityUpdateChecker.h:519 ]: Security update check: no update found (next check in 24 hours)
App 81688 output: _WARN Unexpected name 'Chukwa' in report section; ignored
App 81688 output: 2020-05-13 16:38:07 - Exception - Cannot find Git: infrastructure-puppet:
App 81688 output: 	/Users/clr/apache/git/whimsy/lib/whimsy/asf/auth.rb:31:in `initialize'
App 81688 output: 	/Users/clr/apache/git/whimsy/www/roster/models/group.rb:16:in `new'
App 81688 output: 	/Users/clr/apache/git/whimsy/www/roster/models/group.rb:16:in `list'
App 81688 output: 	/Users/clr/apache/git/whimsy/www/roster/main.rb:46:in `block in <top (required)>'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in `call'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1636:in `block in compile!'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in `block (3 levels) in route!'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1006:in `route_eval'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:987:in `block (2 levels) in route!'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1035:in `block in process_route'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in `catch'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1033:in `process_route'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:985:in `block in route!'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in `each'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:984:in `route!'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1098:in `block in dispatch!'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in `block in invoke'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in `catch'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in `invoke'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1095:in `dispatch!'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in `block in call!'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in `block in invoke'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in `catch'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1072:in `invoke'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:919:in `call!'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:908:in `call'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/xss_header.rb:18:in `call'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/path_traversal.rb:16:in `call'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/json_csrf.rb:26:in `call'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in `call'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/base.rb:50:in `call'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/rack-protection-2.0.8.1/lib/rack/protection/frame_options.rb:31:in `call'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/null_logger.rb:11:in `call'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/head.rb:12:in `call'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/method_override.rb:24:in `call'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/show_exceptions.rb:22:in `call'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:194:in `call'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1951:in `call'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in `block in call'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1730:in `synchronize'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1503:in `call'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/rack-2.2.2/lib/rack/deflater.rb:44:in `call'
App 81688 output: 	/Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:223:in `call'
App 81688 output: 	/Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:48:in `call'
App 81688 output: 	/Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:200:in `call'
App 81688 output: 	/Users/clr/apache/git/whimsy/lib/whimsy/asf/rack.rb:254:in `call'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:157:in `accept_and_process_next_request'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb:110:in `main_loop'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/request_handler.rb:415:in `block (3 levels) in start_threads'
App 81688 output: 	/usr/local/lib/ruby/gems/2.7.0/gems/passenger-6.0.4/src/ruby_supportlib/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'


> On May 13, 2020, at 3:32 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> 
> On Wed, May 13, 2020 at 5:58 PM Craig Russell <ap...@gmail.com> wrote:
> 
>> I cannot implode rvm.
>> [MacBook-Pro-10:~/apache/git/whimsy] clr% rvm implode
>> Required ruby-2.4.1 is not installed.
>> To install do: 'rvm install "ruby-2.4.1"'
>> 
> 
> At a minimum, remove rvm from your .bash_profile or equivalent.
> 
> But I try to brew install ruby. It would only get me 2.7.1 but it doesn't
>> work either.
>> 
> 
> Bummer.  Can you try rbenv?  I see you are running Mojave, so:
> 
> https://gorails.com/setup/osx/10.14-mojave#ruby
> 
> I do have docker installed so i can give that a try if I cannot get a 2.4
>> version of ruby.
>> 
> 
> I would recommend VirtualBox, but Sebb seemed to have some success with
> Docker.
> 
> 
>> Craig
>> 
> 
> - Sam Ruby
> 
> [MacBook-Pro-10:~/apache/git/whimsy] clr% brew upgrade ruby
>> ==> Upgrading 1 outdated package:
>> ruby 2.3.1 -> 2.7.1_2
>> ==> Upgrading ruby 2.3.1 -> 2.7.1_2
>> ==> Installing dependencies for ruby: libyaml
>> ==> Installing ruby dependency: libyaml
>> ==> Downloading
>> https://homebrew.bintray.com/bottles/libyaml-0.2.4.mojave.bottle.tar.gz
>> ########################################################################
>> 100.0%
>> ==> Pouring libyaml-0.2.4.mojave.bottle.tar.gz
>> 🍺  /usr/local/Cellar/libyaml/0.2.4: 10 files, 300.6KB
>> ==> Installing ruby
>> ==> Downloading
>> https://homebrew.bintray.com/bottles/ruby-2.7.1_2.mojave.bottle.tar.gz
>> ==> Downloading from
>> https://akamai.bintray.com/d5/d597bee751f9419ea7b40d8125e4f58b2c1eb675b929fe85d8463a6e008b2250?__gda__=exp=1589407606~hmac=7e2c9a4deb10bf88d31f39c705e
>> ########################################################################
>> 100.0%
>> ==> Pouring ruby-2.7.1_2.mojave.bottle.tar.gz
>> Error: The `brew link` step did not complete successfully
>> The formula built, but is not symlinked into /usr/local
>> Could not symlink bin/bundle
>> Target /usr/local/bin/bundle
>> already exists. You may want to remove it:
>>  rm '/usr/local/bin/bundle'
>> 
>> To force the link and overwrite all conflicting files:
>>  brew link --overwrite ruby
>> 
>> To list all files that would be deleted:
>>  brew link --overwrite --dry-run ruby
>> 
>> Possible conflicting files are:
>> /usr/local/bin/bundle
>> /usr/local/bin/bundler
>> /usr/local/bin/rake
>> ==> Caveats
>> By default, binaries installed by gem will be placed into:
>>  /usr/local/lib/ruby/gems/2.7.0/bin
>> 
>> You may want to add this to your PATH.
>> 
>> ruby is keg-only, which means it was not symlinked into /usr/local,
>> because macOS already provides this software and installing another
>> version in
>> parallel can cause all kinds of trouble.
>> 
>> If you need to have ruby first in your PATH run:
>>  echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
>> 
>> For compilers to find ruby you may need to set:
>>  setenv LDFLAGS -L/usr/local/opt/ruby/lib;
>>  setenv CPPFLAGS -I/usr/local/opt/ruby/include;
>> 
>> For pkg-config to find ruby you may need to set:
>>  setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
>> 
>> ==> Summary
>> 🍺  /usr/local/Cellar/ruby/2.7.1_2: 20,142 files, 31.9MB
>> Removing: /usr/local/Cellar/ruby/2.3.1... (1,260 files, 19.0MB)
>> ==> Checking for dependents of upgraded formulae...
>> ==> No dependents found!
>> ==> Caveats
>> ==> ruby
>> By default, binaries installed by gem will be placed into:
>>  /usr/local/lib/ruby/gems/2.7.0/bin
>> 
>> You may want to add this to your PATH.
>> 
>> ruby is keg-only, which means it was not symlinked into /usr/local,
>> because macOS already provides this software and installing another
>> version in
>> parallel can cause all kinds of trouble.
>> 
>> If you need to have ruby first in your PATH run:
>>  echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
>> 
>> For compilers to find ruby you may need to set:
>>  setenv LDFLAGS -L/usr/local/opt/ruby/lib;
>>  setenv CPPFLAGS -I/usr/local/opt/ruby/include;
>> 
>> For pkg-config to find ruby you may need to set:
>>  setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
>> 
>> 
>>> On May 13, 2020, at 2:48 PM, Sam Ruby <ru...@intertwingly.net> wrote:
>>> 
>>> On Wed, May 13, 2020 at 5:38 PM Craig Russell <ap...@gmail.com>
>> wrote:
>>> 
>>>> I think I'm in a loop:
>>>> [MacBook-Pro-10:~/apache/git/whimsy] clr% ~/.rvm/scripts/rvm install
>>>> "ruby-2.4.1"
>>>> Required ruby-2.4.1 is not installed.
>>>> To install do: 'rvm install "ruby-2.4.1"'
>>>> 
>>> 
>>> Recommendation:
>>> 
>>> rvm implode
>>> brew install ruby
>>> 
>>> Explanation:
>>> 
>>> rvm solves the problem of "I want to run multiple versions of Ruby".
>>> 
>>> brew solves the problem of "I want to run a recent version of Ruby"
>>> 
>>> I think brew is a better match to your needs.
>>> 
>>> If you do want to run multiple versions of Ruby, try rbenv instead:
>>> 
>>> 
>> https://github.com/apache/whimsy/blob/master/MACOSX.md#upgrade-ruby-if-needed
>>> 
>>> - Sam Ruby
>> 
>> Craig L Russell
>> clr@apache.org
>> 
>> 

Craig L Russell
clr@apache.org


Re: Roster emeritus function now with code to review and a local failure

Posted by Sam Ruby <ru...@intertwingly.net>.
On Wed, May 13, 2020 at 5:58 PM Craig Russell <ap...@gmail.com> wrote:

> I cannot implode rvm.
> [MacBook-Pro-10:~/apache/git/whimsy] clr% rvm implode
> Required ruby-2.4.1 is not installed.
> To install do: 'rvm install "ruby-2.4.1"'
>

At a minimum, remove rvm from your .bash_profile or equivalent.

But I try to brew install ruby. It would only get me 2.7.1 but it doesn't
> work either.
>

Bummer.  Can you try rbenv?  I see you are running Mojave, so:

https://gorails.com/setup/osx/10.14-mojave#ruby

I do have docker installed so i can give that a try if I cannot get a 2.4
> version of ruby.
>

I would recommend VirtualBox, but Sebb seemed to have some success with
Docker.


> Craig
>

- Sam Ruby

[MacBook-Pro-10:~/apache/git/whimsy] clr% brew upgrade ruby
> ==> Upgrading 1 outdated package:
> ruby 2.3.1 -> 2.7.1_2
> ==> Upgrading ruby 2.3.1 -> 2.7.1_2
> ==> Installing dependencies for ruby: libyaml
> ==> Installing ruby dependency: libyaml
> ==> Downloading
> https://homebrew.bintray.com/bottles/libyaml-0.2.4.mojave.bottle.tar.gz
> ########################################################################
> 100.0%
> ==> Pouring libyaml-0.2.4.mojave.bottle.tar.gz
> 🍺  /usr/local/Cellar/libyaml/0.2.4: 10 files, 300.6KB
> ==> Installing ruby
> ==> Downloading
> https://homebrew.bintray.com/bottles/ruby-2.7.1_2.mojave.bottle.tar.gz
> ==> Downloading from
> https://akamai.bintray.com/d5/d597bee751f9419ea7b40d8125e4f58b2c1eb675b929fe85d8463a6e008b2250?__gda__=exp=1589407606~hmac=7e2c9a4deb10bf88d31f39c705e
> ########################################################################
> 100.0%
> ==> Pouring ruby-2.7.1_2.mojave.bottle.tar.gz
> Error: The `brew link` step did not complete successfully
> The formula built, but is not symlinked into /usr/local
> Could not symlink bin/bundle
> Target /usr/local/bin/bundle
> already exists. You may want to remove it:
>   rm '/usr/local/bin/bundle'
>
> To force the link and overwrite all conflicting files:
>   brew link --overwrite ruby
>
> To list all files that would be deleted:
>   brew link --overwrite --dry-run ruby
>
> Possible conflicting files are:
> /usr/local/bin/bundle
> /usr/local/bin/bundler
> /usr/local/bin/rake
> ==> Caveats
> By default, binaries installed by gem will be placed into:
>   /usr/local/lib/ruby/gems/2.7.0/bin
>
> You may want to add this to your PATH.
>
> ruby is keg-only, which means it was not symlinked into /usr/local,
> because macOS already provides this software and installing another
> version in
> parallel can cause all kinds of trouble.
>
> If you need to have ruby first in your PATH run:
>   echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
>
> For compilers to find ruby you may need to set:
>   setenv LDFLAGS -L/usr/local/opt/ruby/lib;
>   setenv CPPFLAGS -I/usr/local/opt/ruby/include;
>
> For pkg-config to find ruby you may need to set:
>   setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
>
> ==> Summary
> 🍺  /usr/local/Cellar/ruby/2.7.1_2: 20,142 files, 31.9MB
> Removing: /usr/local/Cellar/ruby/2.3.1... (1,260 files, 19.0MB)
> ==> Checking for dependents of upgraded formulae...
> ==> No dependents found!
> ==> Caveats
> ==> ruby
> By default, binaries installed by gem will be placed into:
>   /usr/local/lib/ruby/gems/2.7.0/bin
>
> You may want to add this to your PATH.
>
> ruby is keg-only, which means it was not symlinked into /usr/local,
> because macOS already provides this software and installing another
> version in
> parallel can cause all kinds of trouble.
>
> If you need to have ruby first in your PATH run:
>   echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc
>
> For compilers to find ruby you may need to set:
>   setenv LDFLAGS -L/usr/local/opt/ruby/lib;
>   setenv CPPFLAGS -I/usr/local/opt/ruby/include;
>
> For pkg-config to find ruby you may need to set:
>   setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;
>
>
> > On May 13, 2020, at 2:48 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> >
> > On Wed, May 13, 2020 at 5:38 PM Craig Russell <ap...@gmail.com>
> wrote:
> >
> >> I think I'm in a loop:
> >> [MacBook-Pro-10:~/apache/git/whimsy] clr% ~/.rvm/scripts/rvm install
> >> "ruby-2.4.1"
> >> Required ruby-2.4.1 is not installed.
> >> To install do: 'rvm install "ruby-2.4.1"'
> >>
> >
> > Recommendation:
> >
> > rvm implode
> > brew install ruby
> >
> > Explanation:
> >
> > rvm solves the problem of "I want to run multiple versions of Ruby".
> >
> > brew solves the problem of "I want to run a recent version of Ruby"
> >
> > I think brew is a better match to your needs.
> >
> > If you do want to run multiple versions of Ruby, try rbenv instead:
> >
> >
> https://github.com/apache/whimsy/blob/master/MACOSX.md#upgrade-ruby-if-needed
> >
> > - Sam Ruby
>
> Craig L Russell
> clr@apache.org
>
>

Re: Roster emeritus function now with code to review and a local failure

Posted by Craig Russell <ap...@gmail.com>.
I cannot implode rvm.
[MacBook-Pro-10:~/apache/git/whimsy] clr% rvm implode
Required ruby-2.4.1 is not installed.
To install do: 'rvm install "ruby-2.4.1"'

But I try to brew install ruby. It would only get me 2.7.1 but it doesn't work either.

I do have docker installed so i can give that a try if I cannot get a 2.4 version of ruby.

Craig

[MacBook-Pro-10:~/apache/git/whimsy] clr% brew upgrade ruby
==> Upgrading 1 outdated package:
ruby 2.3.1 -> 2.7.1_2
==> Upgrading ruby 2.3.1 -> 2.7.1_2 
==> Installing dependencies for ruby: libyaml
==> Installing ruby dependency: libyaml
==> Downloading https://homebrew.bintray.com/bottles/libyaml-0.2.4.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libyaml-0.2.4.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/libyaml/0.2.4: 10 files, 300.6KB
==> Installing ruby
==> Downloading https://homebrew.bintray.com/bottles/ruby-2.7.1_2.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/d5/d597bee751f9419ea7b40d8125e4f58b2c1eb675b929fe85d8463a6e008b2250?__gda__=exp=1589407606~hmac=7e2c9a4deb10bf88d31f39c705e
######################################################################## 100.0%
==> Pouring ruby-2.7.1_2.mojave.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/bundle
Target /usr/local/bin/bundle
already exists. You may want to remove it:
  rm '/usr/local/bin/bundle'

To force the link and overwrite all conflicting files:
  brew link --overwrite ruby

To list all files that would be deleted:
  brew link --overwrite --dry-run ruby

Possible conflicting files are:
/usr/local/bin/bundle
/usr/local/bin/bundler
/usr/local/bin/rake
==> Caveats
By default, binaries installed by gem will be placed into:
  /usr/local/lib/ruby/gems/2.7.0/bin

You may want to add this to your PATH.

ruby is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have ruby first in your PATH run:
  echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc

For compilers to find ruby you may need to set:
  setenv LDFLAGS -L/usr/local/opt/ruby/lib;
  setenv CPPFLAGS -I/usr/local/opt/ruby/include;

For pkg-config to find ruby you may need to set:
  setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;

==> Summary
🍺  /usr/local/Cellar/ruby/2.7.1_2: 20,142 files, 31.9MB
Removing: /usr/local/Cellar/ruby/2.3.1... (1,260 files, 19.0MB)
==> Checking for dependents of upgraded formulae...
==> No dependents found!
==> Caveats
==> ruby
By default, binaries installed by gem will be placed into:
  /usr/local/lib/ruby/gems/2.7.0/bin

You may want to add this to your PATH.

ruby is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have ruby first in your PATH run:
  echo 'setenv PATH /usr/local/opt/ruby/bin:$PATH' >> ~/.tcshrc

For compilers to find ruby you may need to set:
  setenv LDFLAGS -L/usr/local/opt/ruby/lib;
  setenv CPPFLAGS -I/usr/local/opt/ruby/include;

For pkg-config to find ruby you may need to set:
  setenv PKG_CONFIG_PATH /usr/local/opt/ruby/lib/pkgconfig;


> On May 13, 2020, at 2:48 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> 
> On Wed, May 13, 2020 at 5:38 PM Craig Russell <ap...@gmail.com> wrote:
> 
>> I think I'm in a loop:
>> [MacBook-Pro-10:~/apache/git/whimsy] clr% ~/.rvm/scripts/rvm install
>> "ruby-2.4.1"
>> Required ruby-2.4.1 is not installed.
>> To install do: 'rvm install "ruby-2.4.1"'
>> 
> 
> Recommendation:
> 
> rvm implode
> brew install ruby
> 
> Explanation:
> 
> rvm solves the problem of "I want to run multiple versions of Ruby".
> 
> brew solves the problem of "I want to run a recent version of Ruby"
> 
> I think brew is a better match to your needs.
> 
> If you do want to run multiple versions of Ruby, try rbenv instead:
> 
> https://github.com/apache/whimsy/blob/master/MACOSX.md#upgrade-ruby-if-needed
> 
> - Sam Ruby

Craig L Russell
clr@apache.org


Re: Roster emeritus function now with code to review and a local failure

Posted by Sam Ruby <ru...@intertwingly.net>.
On Wed, May 13, 2020 at 5:38 PM Craig Russell <ap...@gmail.com> wrote:

> I think I'm in a loop:
> [MacBook-Pro-10:~/apache/git/whimsy] clr% ~/.rvm/scripts/rvm install
> "ruby-2.4.1"
> Required ruby-2.4.1 is not installed.
> To install do: 'rvm install "ruby-2.4.1"'
>

Recommendation:

rvm implode
brew install ruby

Explanation:

rvm solves the problem of "I want to run multiple versions of Ruby".

brew solves the problem of "I want to run a recent version of Ruby"

I think brew is a better match to your needs.

If you do want to run multiple versions of Ruby, try rbenv instead:

https://github.com/apache/whimsy/blob/master/MACOSX.md#upgrade-ruby-if-needed

- Sam Ruby

Re: Roster emeritus function now with code to review and a local failure

Posted by Craig Russell <ap...@gmail.com>.
I think I'm in a loop:
[MacBook-Pro-10:~/apache/git/whimsy] clr% ~/.rvm/scripts/rvm install "ruby-2.4.1"
Required ruby-2.4.1 is not installed.
To install do: 'rvm install "ruby-2.4.1"'

So I found a description of how to install the latest rvm but it fails too.
[MacBook-Pro-10:~/apache/git/whimsy] clr% \curl -sSL https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer | bash -s stable
Downloading https://github.com/rvm/rvm/archive/1.29.10.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.29.10/1.29.10.tar.gz.asc
gpg: Signature made Wed Mar 25 14:58:42 2020 PDT
gpg:                using RSA key 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
gpg: Good signature from "Piotr Kuczynski <pi...@gmail.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 7D2B AF1C F37B 13E2 069D  6956 105B D0E7 3949 9BDB
GPG verified '/Users/clr/.rvm/archives/rvm-1.29.10.tgz'
Upgrading the RVM installation in /Users/clr/.rvm/
    RVM PATH line found in /Users/clr/.bashrc /Users/clr/.zshrc.
    RVM sourcing line found in /Users/clr/.bash_profile /Users/clr/.zprofile.
    Installing rvm gem in 1 gemsetsError running 'command gem install /Users/clr/.rvm/gem-cache/rvm-1.11.3.9.gem --local --no-ri --no-rdoc',
please read /Users/clr/.rvm/log/1589398851_ruby-2.0.0-p195/gem.install.rvm->=1.11.3.9.log
.
    Installing gem-wrappers gem in 1 gemsetsError running 'command gem install /Users/clr/.rvm/gem-cache/gem-wrappers-1.4.0.gem --local --no-ri --no-rdoc',
please read /Users/clr/.rvm/log/1589398851_ruby-2.0.0-p195/gem.install.gem-wrappers->=1.4.0.log
.
    Regenerating gem wrappers in 1 rubiesERROR:  While executing gem ... (Gem::CommandLineError)
    Unknown command wrappers
ERROR:  While executing gem ... (Gem::CommandLineError)
    Unknown command wrappers
.
Upgrade of RVM in /Users/clr/.rvm/ is complete.
/Users/clr/.bash_profile:1:export PATH=~/android-sdk-mac_86/tools

  * WARNING: Above files contains PATH= with no $PATH inside, this can break RVM,
    for details check https://github.com/rvm/rvm/issues/1351#issuecomment-10939525
    to avoid this warning prepend $PATH


Thanks for installing RVM 🙏


> On May 13, 2020, at 10:46 AM, Sam Ruby <ru...@intertwingly.net> wrote:
> 
> On Wed, May 13, 2020 at 1:03 PM Craig Russell <apache.clr@gmail.com <ma...@gmail.com>> wrote:
>> 
>> Thanks for the suggestion. I think I did it right. Could you please take a look?
> 
> LGTM.
> 
>> Also, how do I test this on my own machine?
> 
> I would suggest either:
> 
>  1) Using https://github.com/apache/whimsy/blob/master/SETUPMYMAC.md <https://github.com/apache/whimsy/blob/master/SETUPMYMAC.md>,
> and visiting http://whimsy.local/roster/ <http://whimsy.local/roster/>
> 
>  2) Creating a virtual machine using VirtualBox, loading Ubuntu on
> it, and running
>      https://github.com/apache/whimsy/blob/master/UBUNTU.md <https://github.com/apache/whimsy/blob/master/UBUNTU.md>
> 
>> [MacBook-Pro-10:~/apache/git/whimsy] clr% cd www/roster/
>> [MacBook-Pro-10:whimsy/www/roster] clr% rake server
>> bundle update
>> /usr/local/Cellar/ruby/2.3.1/lib/ruby/2.3.0/digest.rb:16:in `const_missing': library not found for class Digest::MD5 -- digest/md5 (LoadError)
> 
> It looks like that library was introduced in Ruby version 2.4:
> 
> https://ruby-doc.org/stdlib-2.4.0/libdoc/digest/rdoc/Digest/MD5.html <https://ruby-doc.org/stdlib-2.4.0/libdoc/digest/rdoc/Digest/MD5.html>
> 
> whimsy-vm4.apache.org <http://whimsy-vm4.apache.org/> runs Ruby 2.4.1.  That version or later would be fine.
> 
> If you do want to run this tool standalone, it will currently fail
> with an error in "NSCFConstantString initialize" on Mac machines.  A
> workaround would be to set
> 
> export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
> 
>>        from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/source/rubygems/remote.rb:26:in `cache_slug'
>>        from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/fetcher/compact_index.rb:107:in `cache_path'
>>        from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/fetcher/compact_index.rb:83:in `compact_index_client'
>>        from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/cli.rb:643:in `warn_on_outdated_bundler'
>>        from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/cli.rb:24:in `block in dispatch'
>>        from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/vendor/thor/lib/thor.rb:384:in `dispatch'
>>        from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/cli.rb:22:in `dispatch'
>>        from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
>>        from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/cli.rb:13:in `start'
>>        from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/exe/bundle:30:in `block in <top (required)>'
>>        from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
>>        from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/exe/bundle:22:in `<top (required)>'
>>        from /usr/local/bin/bundle:23:in `load'
>>        from /usr/local/bin/bundle:23:in `<main>'
>> rake aborted!
>> Command failed with status (1): [bundle update...]
>> /Users/clr/apache/git/whimsy/www/roster/Rakefile:9:in `block in <top (required)>'
>> /usr/local/lib/ruby/gems/2.3.0/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
>> Tasks: TOP => server => bundle => Gemfile.lock
>> (See full trace by running task with --trace)
> 
> - Sam Ruby
> 
>>> On May 12, 2020, at 5:57 PM, Sam Ruby <ru...@intertwingly.net> wrote:
>>> 
>>> On Tue, May 12, 2020 at 7:36 PM Craig Russell <ap...@gmail.com> wrote:
>>>> 
>>>> https://github.com/apache/whimsy/pull/93
>>>> 
>>>> I'm starting this project with a simple(r) task: allowing the roster committer page to display any files related to the member's emeritus status: files in documents/emeritus and documents/emeritus-requests-received.
>>>> 
>>>> I added a find method to the EmeritusRequestFiles and EmeritusFiles classes. There should be a way to *not* copy and paste the details of these methods, like a generic or static method.
>>> 
>>> Looks like a job for inheritance.  Example:
>>> 
>>> class Base
>>> def self.find(name)
>>>   self.value[name]
>>> end
>>> end
>>> 
>>> class First < Base
>>> def self.value
>>>   {text: 'first class'}
>>> end
>>> end
>>> 
>>> class Second < Base
>>> def self.value
>>>   {text: 'second class'}
>>> end
>>> end
>>> 
>>> puts First.find(:text)
>>> puts Second.find(:text)
>>> 
>>>> Suggestions/comments are appreciated.
>>>> 
>>>> Thanks,
>>>> Craig
>>> 
>>> - Sam Ruby
>>> 
>>>>> On May 6, 2020, at 1:01 PM, Sam Ruby <ru...@intertwingly.net> wrote:
>>>>> 
>>>>> On Wed, May 6, 2020 at 3:48 PM Craig Russell <ap...@gmail.com> wrote:
>>>>>> 
>>>>>> I've been looking for where the roster post actions are handled. I have the model for committer and the html in the browser.
>>>>>> 
>>>>>> But where are post action:emeritus and action:active handled?
>>>>> 
>>>>> All of the routes are defined here:
>>>>> 
>>>>> https://github.com/apache/whimsy/blob/master/www/roster/main.rb
>>>>> 
>>>>> Unless you have unusual needs, you can take advantage of the generic
>>>>> route defined here:
>>>>> 
>>>>> https://github.com/apache/whimsy/blob/1316a898d5e8c91e8a33d89565d12efc4842dd56/www/roster/main.rb#L343
>>>>> 
>>>>> If you use that route, then /actions/emeritus will invoke a script by
>>>>> that name in the whimsy/www/roster/views/actions directory, and will
>>>>> take value returned by the last line, convert it to JSON and sent the
>>>>> results back to the client.
>>>>> 
>>>>>> Thanks,
>>>>>> Craig
>>>>> 
>>>>> - Sam Ruby
>>>>> 
>>>>>> Craig L Russell
>>>>>> clr@apache.org
>>>>>> 
>>>> 
>>>> Craig L Russell
>>>> clr@apache.org
>>>> 
>> 
>> Craig L Russell
>> clr@apache.org

Craig L Russell
clr@apache.org


Re: Roster emeritus function now with code to review and a local failure

Posted by Sam Ruby <ru...@intertwingly.net>.
On Wed, May 13, 2020 at 1:03 PM Craig Russell <ap...@gmail.com> wrote:
>
> Thanks for the suggestion. I think I did it right. Could you please take a look?

LGTM.

> Also, how do I test this on my own machine?

I would suggest either:

  1) Using https://github.com/apache/whimsy/blob/master/SETUPMYMAC.md,
and visiting http://whimsy.local/roster/

  2) Creating a virtual machine using VirtualBox, loading Ubuntu on
it, and running
      https://github.com/apache/whimsy/blob/master/UBUNTU.md

> [MacBook-Pro-10:~/apache/git/whimsy] clr% cd www/roster/
> [MacBook-Pro-10:whimsy/www/roster] clr% rake server
> bundle update
> /usr/local/Cellar/ruby/2.3.1/lib/ruby/2.3.0/digest.rb:16:in `const_missing': library not found for class Digest::MD5 -- digest/md5 (LoadError)

It looks like that library was introduced in Ruby version 2.4:

https://ruby-doc.org/stdlib-2.4.0/libdoc/digest/rdoc/Digest/MD5.html

whimsy-vm4.apache.org runs Ruby 2.4.1.  That version or later would be fine.

If you do want to run this tool standalone, it will currently fail
with an error in "NSCFConstantString initialize" on Mac machines.  A
workaround would be to set

export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

>         from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/source/rubygems/remote.rb:26:in `cache_slug'
>         from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/fetcher/compact_index.rb:107:in `cache_path'
>         from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/fetcher/compact_index.rb:83:in `compact_index_client'
>         from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/cli.rb:643:in `warn_on_outdated_bundler'
>         from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/cli.rb:24:in `block in dispatch'
>         from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/vendor/thor/lib/thor.rb:384:in `dispatch'
>         from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/cli.rb:22:in `dispatch'
>         from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
>         from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/cli.rb:13:in `start'
>         from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/exe/bundle:30:in `block in <top (required)>'
>         from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
>         from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/exe/bundle:22:in `<top (required)>'
>         from /usr/local/bin/bundle:23:in `load'
>         from /usr/local/bin/bundle:23:in `<main>'
> rake aborted!
> Command failed with status (1): [bundle update...]
> /Users/clr/apache/git/whimsy/www/roster/Rakefile:9:in `block in <top (required)>'
> /usr/local/lib/ruby/gems/2.3.0/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
> Tasks: TOP => server => bundle => Gemfile.lock
> (See full trace by running task with --trace)

- Sam Ruby

> > On May 12, 2020, at 5:57 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> >
> > On Tue, May 12, 2020 at 7:36 PM Craig Russell <ap...@gmail.com> wrote:
> >>
> >> https://github.com/apache/whimsy/pull/93
> >>
> >> I'm starting this project with a simple(r) task: allowing the roster committer page to display any files related to the member's emeritus status: files in documents/emeritus and documents/emeritus-requests-received.
> >>
> >> I added a find method to the EmeritusRequestFiles and EmeritusFiles classes. There should be a way to *not* copy and paste the details of these methods, like a generic or static method.
> >
> > Looks like a job for inheritance.  Example:
> >
> > class Base
> >  def self.find(name)
> >    self.value[name]
> >  end
> > end
> >
> > class First < Base
> >  def self.value
> >    {text: 'first class'}
> >  end
> > end
> >
> > class Second < Base
> >  def self.value
> >    {text: 'second class'}
> >  end
> > end
> >
> > puts First.find(:text)
> > puts Second.find(:text)
> >
> >> Suggestions/comments are appreciated.
> >>
> >> Thanks,
> >> Craig
> >
> > - Sam Ruby
> >
> >>> On May 6, 2020, at 1:01 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> >>>
> >>> On Wed, May 6, 2020 at 3:48 PM Craig Russell <ap...@gmail.com> wrote:
> >>>>
> >>>> I've been looking for where the roster post actions are handled. I have the model for committer and the html in the browser.
> >>>>
> >>>> But where are post action:emeritus and action:active handled?
> >>>
> >>> All of the routes are defined here:
> >>>
> >>> https://github.com/apache/whimsy/blob/master/www/roster/main.rb
> >>>
> >>> Unless you have unusual needs, you can take advantage of the generic
> >>> route defined here:
> >>>
> >>> https://github.com/apache/whimsy/blob/1316a898d5e8c91e8a33d89565d12efc4842dd56/www/roster/main.rb#L343
> >>>
> >>> If you use that route, then /actions/emeritus will invoke a script by
> >>> that name in the whimsy/www/roster/views/actions directory, and will
> >>> take value returned by the last line, convert it to JSON and sent the
> >>> results back to the client.
> >>>
> >>>> Thanks,
> >>>> Craig
> >>>
> >>> - Sam Ruby
> >>>
> >>>> Craig L Russell
> >>>> clr@apache.org
> >>>>
> >>
> >> Craig L Russell
> >> clr@apache.org
> >>
>
> Craig L Russell
> clr@apache.org
>

Re: Roster emeritus function now with code to review and a local failure

Posted by Craig Russell <ap...@gmail.com>.
Thanks for the suggestion. I think I did it right. Could you please take a look?

Also, how do I test this on my own machine? 

[MacBook-Pro-10:~/apache/git/whimsy] clr% cd www/roster/
[MacBook-Pro-10:whimsy/www/roster] clr% rake server
bundle update
/usr/local/Cellar/ruby/2.3.1/lib/ruby/2.3.0/digest.rb:16:in `const_missing': library not found for class Digest::MD5 -- digest/md5 (LoadError)
	from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/source/rubygems/remote.rb:26:in `cache_slug'
	from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/fetcher/compact_index.rb:107:in `cache_path'
	from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/fetcher/compact_index.rb:83:in `compact_index_client'
	from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/cli.rb:643:in `warn_on_outdated_bundler'
	from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/cli.rb:24:in `block in dispatch'
	from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/vendor/thor/lib/thor.rb:384:in `dispatch'
	from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/cli.rb:22:in `dispatch'
	from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
	from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/cli.rb:13:in `start'
	from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/exe/bundle:30:in `block in <top (required)>'
	from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
	from /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.15.4/exe/bundle:22:in `<top (required)>'
	from /usr/local/bin/bundle:23:in `load'
	from /usr/local/bin/bundle:23:in `<main>'
rake aborted!
Command failed with status (1): [bundle update...]
/Users/clr/apache/git/whimsy/www/roster/Rakefile:9:in `block in <top (required)>'
/usr/local/lib/ruby/gems/2.3.0/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => server => bundle => Gemfile.lock
(See full trace by running task with --trace)


> On May 12, 2020, at 5:57 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> 
> On Tue, May 12, 2020 at 7:36 PM Craig Russell <ap...@gmail.com> wrote:
>> 
>> https://github.com/apache/whimsy/pull/93
>> 
>> I'm starting this project with a simple(r) task: allowing the roster committer page to display any files related to the member's emeritus status: files in documents/emeritus and documents/emeritus-requests-received.
>> 
>> I added a find method to the EmeritusRequestFiles and EmeritusFiles classes. There should be a way to *not* copy and paste the details of these methods, like a generic or static method.
> 
> Looks like a job for inheritance.  Example:
> 
> class Base
>  def self.find(name)
>    self.value[name]
>  end
> end
> 
> class First < Base
>  def self.value
>    {text: 'first class'}
>  end
> end
> 
> class Second < Base
>  def self.value
>    {text: 'second class'}
>  end
> end
> 
> puts First.find(:text)
> puts Second.find(:text)
> 
>> Suggestions/comments are appreciated.
>> 
>> Thanks,
>> Craig
> 
> - Sam Ruby
> 
>>> On May 6, 2020, at 1:01 PM, Sam Ruby <ru...@intertwingly.net> wrote:
>>> 
>>> On Wed, May 6, 2020 at 3:48 PM Craig Russell <ap...@gmail.com> wrote:
>>>> 
>>>> I've been looking for where the roster post actions are handled. I have the model for committer and the html in the browser.
>>>> 
>>>> But where are post action:emeritus and action:active handled?
>>> 
>>> All of the routes are defined here:
>>> 
>>> https://github.com/apache/whimsy/blob/master/www/roster/main.rb
>>> 
>>> Unless you have unusual needs, you can take advantage of the generic
>>> route defined here:
>>> 
>>> https://github.com/apache/whimsy/blob/1316a898d5e8c91e8a33d89565d12efc4842dd56/www/roster/main.rb#L343
>>> 
>>> If you use that route, then /actions/emeritus will invoke a script by
>>> that name in the whimsy/www/roster/views/actions directory, and will
>>> take value returned by the last line, convert it to JSON and sent the
>>> results back to the client.
>>> 
>>>> Thanks,
>>>> Craig
>>> 
>>> - Sam Ruby
>>> 
>>>> Craig L Russell
>>>> clr@apache.org
>>>> 
>> 
>> Craig L Russell
>> clr@apache.org
>> 

Craig L Russell
clr@apache.org


Re: Roster emeritus function now with code to review

Posted by Sam Ruby <ru...@intertwingly.net>.
On Tue, May 12, 2020 at 7:36 PM Craig Russell <ap...@gmail.com> wrote:
>
> https://github.com/apache/whimsy/pull/93
>
> I'm starting this project with a simple(r) task: allowing the roster committer page to display any files related to the member's emeritus status: files in documents/emeritus and documents/emeritus-requests-received.
>
> I added a find method to the EmeritusRequestFiles and EmeritusFiles classes. There should be a way to *not* copy and paste the details of these methods, like a generic or static method.

Looks like a job for inheritance.  Example:

class Base
  def self.find(name)
    self.value[name]
  end
end

class First < Base
  def self.value
    {text: 'first class'}
  end
end

class Second < Base
  def self.value
    {text: 'second class'}
  end
end

puts First.find(:text)
puts Second.find(:text)

> Suggestions/comments are appreciated.
>
> Thanks,
> Craig

- Sam Ruby

> > On May 6, 2020, at 1:01 PM, Sam Ruby <ru...@intertwingly.net> wrote:
> >
> > On Wed, May 6, 2020 at 3:48 PM Craig Russell <ap...@gmail.com> wrote:
> >>
> >> I've been looking for where the roster post actions are handled. I have the model for committer and the html in the browser.
> >>
> >> But where are post action:emeritus and action:active handled?
> >
> > All of the routes are defined here:
> >
> > https://github.com/apache/whimsy/blob/master/www/roster/main.rb
> >
> > Unless you have unusual needs, you can take advantage of the generic
> > route defined here:
> >
> > https://github.com/apache/whimsy/blob/1316a898d5e8c91e8a33d89565d12efc4842dd56/www/roster/main.rb#L343
> >
> > If you use that route, then /actions/emeritus will invoke a script by
> > that name in the whimsy/www/roster/views/actions directory, and will
> > take value returned by the last line, convert it to JSON and sent the
> > results back to the client.
> >
> >> Thanks,
> >> Craig
> >
> > - Sam Ruby
> >
> >> Craig L Russell
> >> clr@apache.org
> >>
>
> Craig L Russell
> clr@apache.org
>