On Thu, May 14, 2020 at 7:24 PM Craig Russell <apache....@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....@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....@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....@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....@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 > >>>>>> c...@apache.org > >>>>>> > >>>>>> > >>>> > >>>> Craig L Russell > >>>> c...@apache.org > >>>> > >>>> > >> > >> Craig L Russell > >> c...@apache.org > >> > >> > > Craig L Russell > c...@apache.org > >