view · edit · sidebar · attach · print · history

20130617-PIKapitel

<< | Index | >>


Summary

  • Funtoo Basebox & Vagrant update
  • Bei einigen PIs fehlt die Rubrik. „Wann wird … angewendet?“

Commits

Index


Funtoo Basebox & Vagrant update

Work done in private but nice to have for vagrant-oddb

  • Moved ~.ssh/id_dsa* to ~/.ydpm/ to be able to build baseboxes with veewee
  • Created and pushed a new Funtoo-Basebox to ngiger/downloads
  • Fixed vagrant to correctly set IP address of a network interface see pull request
  • When starting with the funtoo-oddb box from April I get now on each vagrant up the warning, that I should run sudo emerge --oneshot portage
  • Using Attach:funtoo-oddb.txt I created new funtoo-oddb-20130617.box and uploaded it to ngiger
  • Updated Gemfile, shell/main.sh and Vagrantfile to use the new funtoo-oddb-20130617.box commit
  • Now the virtual machine is reachable from my host by the IP specified in the Vagrantfile (defaults to 192.168.50.44)
  • As Attach:up_log.txt there is still an error setting the default user-name for the git user
  • Fixed git config, first commit and daily commit for etc-keeper with commit commit
  • Using Vagrant 1.2 allows to remove cruft
    • Can specify a default IP
    • Specify hiera-config for puppet
    • Specify puppet working-dir
    • Update /vagrant/runpuppet
  • Now looking at http://oddb.niklaus.org:55080/ worked. Using the right nginx /etc/nginx/sites-enabled$ sudo ln -s ../sites-available/oddb.niklaus.org.nginx corrected the problem and http://oddb.niklaus.org shows fine
  • Did run watir tests using 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)

Cannot reset password

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

Errors when loading dump

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
  • Seems as if the german and french ispell dictionary are not loaded.
    • Which dictionaries muss be loaded? aspell-de or myspell-de?
    • Do we need more stuff to configure postgresql?

Die Rubrik. „Wann wird … angewendet?“ fehlt

Had no time today. Moved to next day.

  • Problem: my funtoo setup has a problem as "http://oddb.niklaus.org" gets always redirected to "http://oddb.niklaus.org/resources/errors/appdown.html".
    • Reason: /var/www/oddb.org/bin/oddbd is always restarted. Running sudo -u apache /var/www/oddb.org/bin/oddbd shows error /var/www/oddb.org/test/testenvironment1.rb: disabling UPDATER
    • YUS not running. I get the following error when calling
 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


Migel is running

On my freshly brought up VM migel is running. =======


Migel is running

  • On my freshly brought up VM migel is running.
  • Added a simple watir test
  • Committed see commit

See .

view · edit · sidebar · attach · print · history
Page last modified on June 18, 2013, at 08:27 AM