Before porting ydim-html to passenger, I will try
For point 2 and 3: Kompiling and installing Ruby 2.1.9 as ruby219 into /usr/local.
1) Testing using
In this case I must replace load File.expand_path('../../etc/config.rb', __FILE__)
by load '/var/www/ydim.ywesee.com/etc/config.rb'
to avoid the error /var/www/ydim.ywesee.com/doc/index.rbx:8: Insecure operation - expand_path
Now I am getting errors loading rclconf, even that rclconf is installed as gem. This can be fixed by:
Still having the following problems:
2) Test using Ruby 2.1.9 and mod_ruby compiled against ruby 2.1.9 (which should give less friction)
This creates the followin problem
niklaus@oddb-ci2 ~/g/ydim> /usr/local/bin/bundle install error: kann .git/FETCH_HEAD nicht öffnen: Keine Berechtigung
Remove /usr/local/bin/gem, /usr/local/bin/ruby and /usr/local/lib64/ruby/2.3.0 to force using a specific version of ruby. Running bundle exec rake gem && sudo /usr/local/bin/gem219 install pkg/ydim-1.0.1.gem
under a git checkout of ngiger/ydim.
Now running sudo -u apache /usr/local/bin/ruby219 /home/niklaus/git/ydim/bin/ydimd
leads to the following error
sudo -u apache /usr/local/bin/ruby219 /home/niklaus/git/ydim/bin/ydimd /usr/local/lib/ruby/gems/2.1.0/gems/needle-1.3.0/lib/needle/definition-context.rb:36: warning: undefining `initialize' may cause serious problems /usr/local/lib/ruby/gems/2.1.0/gems/needle-1.3.0/lib/needle/definition-context.rb:36: warning: undefining `object_id' may cause serious problems /usr/local/lib/ruby/gems/2.1.0/gems/needle-1.3.0/lib/needle/definition-context.rb:36: warning: undefining `__send__' may cause serious problems FEHLER: Relation �object� existiert bereits FEHLER: Relation �prefetchable_index� existiert bereits FEHLER: Relation �extent_index� existiert bereits FEHLER: Relation �object_connection� existiert bereits FEHLER: Relation �target_id_index� existiert bereits FEHLER: Relation �collection� existiert bereits /usr/local/lib/ruby/2.1.0/delegate.rb:392:in `__getobj__': not delegated (ArgumentError) from /usr/local/lib/ruby/2.1.0/delegate.rb:341:in `block in delegating_block' from /usr/local/lib/ruby/gems/2.1.0/gems/dbi-0.4.5/lib/dbi/handles/statement.rb:214:in `fetch' from /usr/local/lib/ruby/gems/2.1.0/gems/dbi-0.4.5/lib/dbi/handles/statement.rb:240:in `each' from /usr/local/lib/ruby/gems/2.1.0/gems/dbi-0.4.5/lib/dbi/handles/database.rb:130:in `block in select_all' from /usr/local/lib/ruby/gems/2.1.0/gems/dbi-0.4.5/lib/dbi/handles/database.rb:88:in `execute' from /usr/local/lib/ruby/gems/2.1.0/gems/dbi-0.4.5/lib/dbi/handles/database.rb:128:in `select_all' from /usr/local/lib/ruby/gems/2.1.0/gems/dbd-pg-0.3.9/lib/dbd/pg/database.rb:173:in `columns' from /usr/local/lib/ruby/gems/2.1.0/gems/dbi-0.4.5/lib/dbi/handles/database.rb:161:in `columns' from /usr/local/lib/ruby/gems/2.1.0/gems/odba-1.1.0/lib/odba/connection_pool.rb:39:in `block in method_missing' from /usr/local/lib/ruby/gems/2.1.0/gems/odba-1.1.0/lib/odba/connection_pool.rb:29:in `next_connection' from /usr/local/lib/ruby/gems/2.1.0/gems/odba-1.1.0/lib/odba/connection_pool.rb:38:in `method_missing' from /usr/local/lib/ruby/gems/2.1.0/gems/odba-1.1.0/lib/odba/storage.rb:526:in `setup' from /usr/local/lib/ruby/gems/2.1.0/gems/odba-1.1.0/lib/odba/cache.rb:473:in `setup' from /home/niklaus/git/ydim/bin/ydimd:22:in `<main>'
3) Starting ydim/ydim-html with Ruby 2.3.0. Mod_ruby compiled against 2.1.9.
ydim and ydim-html start without problem. Starting apache2 fails now with the error /usr/lib64/apache2/modules/mod_ruby219.so: undefined symbol: ruby_dln_librefs
. Is the consequence of having removed completely the ruby 2.1.9 (without the suffix 219)? Recompiling Ruby 2.1.9 again without a suffix. This did not help.
When checking my changes it sbsm since version 1.2.3, I found that I removed rockit, which is used to parse the URL. Rockit is available as version 0.7.1 or 0.7.2 via rubygems. We have on thinpower a very old version of rockit 0.3.8 under ruby 1.8.6.
But it looks as if Masa replaced rockit for oddb.org. Will analyse how to to same stuff for sbsm.rb.
Must correct implementation and test for sbsm/index.rb. Also updating some matchers to newer minitest version. Pushed commits
Now working on htmlgrid for ruby 2.3.0. Done in branch ruby2.x. Pushed commits
Updating yydim-html to use this newer version. Checking unit tests for ydim-html. All of them are selenium test. Therefore adding a new spec directory where I want to rewrite all the test using watir, as the selenium tests are way too old.
Must find tomorrow the proper way on howto start a HTTP-server (Hannes used webrick) and connect it to ydim (flexmock) server.
As the whole interface of oddb.org/ydim to the HTTP server passes via sbsm, I start porting sbsm to passenger and trying to create a watir test, where we start the built in passenger web server to run the browser again.
Must replace the the CGI via the Rack library.