<< | Index | >>
Work done in private but nice to have for vagrant-oddb
vagrant up
the warning, that I should run sudo emerge --oneshot portage
/etc/nginx/sites-enabled$ sudo ln -s ../sites-available/oddb.niklaus.org.nginx
corrected the problem and http://oddb.niklaus.org shows fine
rake spec
. See commit. I have three failures with the following output
rspec ./spec/smoketest_spec.rb:59 # ch.oddb.org should find Aspirin rspec ./spec/smoketest_spec.rb:76 # ch.oddb.org should trigger the limitation after maximal 5 queries rspec ./spec/smoketest_spec.rb:94 # ch.oddb.org should have a link to the english language versions rake aborted! /home/niklaus/.rvm/rubies/ruby-1.9.3-p392/bin/ruby -S rspec ./spec/smoketest_spec.rb failed /home/niklaus/.rvm/gems/ruby-1.9.3-p392@oddb_org/gems/rspec-core-2.13.1/lib/rspec/core/rake_task.rb:156:in `run_task' /home/niklaus/.rvm/gems/ruby-1.9.3-p392@oddb_org/gems/rspec-core-2.13.1/lib/rspec/core/rake_task.rb:124:in `block (2 levels) in initialize' /home/niklaus/.rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.0.4/lib/rake/file_utils_ext.rb:58:in `verbose' /home/niklaus/.rvm/gems/ruby-1.9.3-p392@oddb_org/gems/rspec-core-2.13.1/lib/rspec/core/rake_task.rb:122:in `block in initialize' /home/niklaus/.rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.0.4/lib/rake/task.rb:246:in `call' /home/niklaus/.rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute' /home/niklaus/.rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.0.4/lib/rake/task.rb:241:in `each' /home/niklaus/.rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute' /home/niklaus/.rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain' /home/niklaus/.rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain' /home/niklaus/.rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke' /home/niklaus/.rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task' /home/niklaus/.rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.0.4/lib/rake/application.rb:101:in `block (2 levels) in top_level' /home/niklaus/.rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.0.4/lib/rake/application.rb:101:in `each' /home/niklaus/.rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.0.4/lib/rake/application.rb:101:in `block in top_level' /home/niklaus/.rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads' /home/niklaus/.rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level' /home/niklaus/.rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.0.4/lib/rake/application.rb:73:in `block in run' /home/niklaus/.rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling' /home/niklaus/.rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.0.4/lib/rake/application.rb:70:in `run' /home/niklaus/.rvm/gems/ruby-1.9.3-p392@oddb_org/bin/ruby_noexec_wrapper:14:in `eval' /home/niklaus/.rvm/gems/ruby-1.9.3-p392@oddb_org/bin/ruby_noexec_wrapper:14:in `<main>' Tasks: TOP => spec (See full trace by running task with --trace)
When I reset the password I get the following error in my bin/oddb output
error in SBSM::Session#process: /de/gcc TypeError can't convert String into Array /usr/local/lib64/ruby/gems/1.9.1/gems/odba-1.1.0/lib/odba/stub.rb:146:in `+' /usr/local/lib64/ruby/gems/1.9.1/gems/odba-1.1.0/lib/odba/stub.rb:146:in `+' /var/www/oddb.org/src/state/admin/password_lost.rb:41:in `notify_user' /var/www/oddb.org/src/state/admin/password_lost.rb:23:in `password_request' /usr/local/lib64/ruby/gems/1.9.1/gems/sbsm-1.2.3/lib/sbsm/state.rb:203:in `_trigger'
The code in password_lost.rb seems to expect an array. Fixed in this commit
I see the following errors when I try to load the dump
ERROR: function gin_extract_tsquery(pg_catalog.tsquery, internal, smallint) does not exist ERROR: operator class "gin_tsvector_ops" does not exist for access method "gin" ERROR: function gtsquery_consistent(bigint, internal, integer) does not exist ERROR: operator class "gist_tp_tsquery_ops" does not exist for access method "gist" ERROR: function gtsvector_consistent(pg_catalog.gtsvector, internal, integer) does not exist ERROR: operator class "gist_tsvector_ops" does not exist for access method "gist" <..> ERROR: could not open dictionary file "/usr/share/postgresql-8.4/tsearch_data/french_fulltext.dict": No such file or directory ERROR: text search dictionary "public.french_ispell" does not exist ERROR: could not open dictionary file "/usr/share/postgresql-8.4/tsearch_data/german_fulltext.dict": No such file or directory ERROR: text search dictionary "public.german_ispell" does not exist CREATE TEXT SEARCH CONFIGURATION ERROR: text search dictionary "french_ispell" does not exist ALTER TEXT SEARCH CONFIGURATION ERROR: text search dictionary "french_ispell" does not exist ALTER TEXT SEARCH CONFIGURATION ALTER TEXT SEARCH CONFIGURATION ALTER TEXT SEARCH CONFIGURATION ALTER TEXT SEARCH CONFIGURATION CREATE TEXT SEARCH CONFIGURATION ERROR: text search dictionary "german_ispell" does not exist ALTER TEXT SEARCH CONFIGURATION ALTER TEXT SEARCH CONFIGURATION ERROR: text search dictionary "german_ispell" does not exist ALTER TEXT SEARCH CONFIGURATION
Had no time today. Moved to next day.
sudo -u apache /var/www/oddb.org/bin/oddbd
shows error /var/www/oddb.org/test/testenvironment1.rb: disabling UPDATER
sudo -u root ruby18 /usr/local/bin/yusd /usr/local/lib64/ruby/gems/1.8/gems/yus-1.0.0/lib/yus/server.rb:9: warning: already initialized constant VERSION /usr/lib64/ruby/gems/1.8/gems/dbi-0.4.5/lib/dbi.rb:300:in `load_driver': Unable to load driver 'pg' (underlying error: wrong constant name pg) (DBI::InterfaceError) from /usr/lib64/ruby/1.8/monitor.rb:242:in `synchronize' from /usr/lib64/ruby/gems/1.8/gems/dbi-0.4.5/lib/dbi.rb:242:in `load_driver' from /usr/lib64/ruby/gems/1.8/gems/dbi-0.4.5/lib/dbi.rb:160:in `_get_full_driver' from /usr/lib64/ruby/gems/1.8/gems/dbi-0.4.5/lib/dbi.rb:145:in `connect' from /usr/local/lib64/ruby/gems/1.8/gems/odba-1.1.0/lib/odba/connection_pool.rb:63:in `_connect' from /usr/local/lib64/ruby/gems/1.8/gems/odba-1.1.0/lib/odba/connection_pool.rb:62:in `times' from /usr/local/lib64/ruby/gems/1.8/gems/odba-1.1.0/lib/odba/connection_pool.rb:62:in `_connect' from /usr/local/lib64/ruby/gems/1.8/gems/odba-1.1.0/lib/odba/connection_pool.rb:59:in `connect' from /usr/local/lib64/ruby/gems/1.8/gems/odba-1.1.0/lib/odba/connection_pool.rb:59:in `synchronize' from /usr/local/lib64/ruby/gems/1.8/gems/odba-1.1.0/lib/odba/connection_pool.rb:59:in `connect' from /usr/local/lib64/ruby/gems/1.8/gems/odba-1.1.0/lib/odba/connection_pool.rb:22:in `initialize' from /usr/local/lib64/ruby/gems/1.8/gems/yus-1.0.0/bin/yusd:50:in `new' from /usr/local/lib64/ruby/gems/1.8/gems/yus-1.0.0/bin/yusd:50 from /usr/local/bin/yusd:23:in `load' from /usr/local/bin/yusd:23
I manually change /DBI:pg/DBI:Pg/ in sudo vi /usr/local/lib64/ruby/gems/1.8/gems/yus-1.0.0/bin/yusd
. Now the yus daemon is working again. But I still get the same error about disabling UPDATER when starting oddbd via sudo -u apache /var/www/oddb.org/bin/oddbd
On a freshly brought up Vagrant yus is running. Trying to switch to the new Vagrant VM
On my freshly brought up VM migel is running. =======
See .