view · edit · sidebar · attach · print · history

20131106-Error-Patents

<< | Index | >>


Summary

  • Fix error in import_swissmedic patents

Commits

Index

---

Fix error in import_swissmedic patents

We got the following error

Plugin: ODDB::SwissregPlugin
Error: Net::HTTPFatalError
Message: 500 "Internal Server Error"
Backtrace:
(druby://localhost:10007) /usr/local/lib/ruby/1.9.1/net/http.rb:2632:in `error!'
(druby://localhost:10007) /usr/local/lib/ruby/1.9.1/net/http.rb:2641:in `value'
(druby://localhost:10007) /var/www/oddb.org/ext/swissreg/src/session.rb:76:in `fetch'
(druby://localhost:10007) /var/www/oddb.org/ext/swissreg/src/session.rb:74:in `fetch'
(druby://localhost:10007) /var/www/oddb.org/ext/swissreg/src/session.rb:116:in `get_result_list'
(druby://localhost:10007) /var/www/oddb.org/ext/swissreg/src/swissreg.rb:12:in `search'
(druby://localhost:10007) /usr/local/lib/ruby/1.9.1/drb/drb.rb:1548:in `perform_without_block'
(druby://localhost:10007) /usr/local/lib/ruby/1.9.1/drb/drb.rb:1508:in `perform'
(druby://localhost:10007) /usr/local/lib/ruby/1.9.1/drb/drb.rb:1586:in `block (2 levels) in main_loop'
(druby://localhost:10007) /usr/local/lib/ruby/1.9.1/drb/drb.rb:1582:in `loop'
(druby://localhost:10007) /usr/local/lib/ruby/1.9.1/drb/drb.rb:1582:in `block in main_loop'
/var/www/oddb.org/src/plugin/swissreg.rb:58:in `update_registrations'
/var/www/oddb.org/src/plugin/swissreg.rb:52:in `block in update_news'
/var/www/oddb.org/src/plugin/swissreg.rb:49:in `each_key'
/var/www/oddb.org/src/plugin/swissreg.rb:49:in `update_news'
/var/www/oddb.org/src/util/updater.rb:501:in `update_immediate'
/var/www/oddb.org/src/util/updater.rb:414:in `update_swissreg_news'
/var/www/oddb.org/src/util/updater.rb:402:in `update_swissmedic_followers'
jobs/import_swissmedic:15:in `block in <module:Util>'
/var/www/oddb.org/src/util/job.rb:40:in `call'
/var/www/oddb.org/src/util/job.rb:40:in `run'
jobs/import_swissmedic:12:in `<module:Util>'
jobs/import_swissmedic:11:in `<module:ODDB>'
jobs/import_swissmedic:10:in `<main>'

Modified src/util/updater.rb and jobs/import_swissmedic to run directly update_swissreg_news. Running the import.

I get exactly the same error. Adding more debug output to see which URI we are fetching.

http://oddb-ci.dnyns.org always displays error appdown

Pushed a few commits with a better explanation on howto bring yus into a working shape. See: Updated Gemfile with all needed dependencies to run yus, Updated Guide.txt and Ignore pkg directory

Looking the nginx log files (on my server facing the internet) I find the following entries

84.73.49.252 - - [06/Nov/2013:09:05:08 +0100] "GET / HTTP/1.1" 302 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0 Iceweasel/24.0"
84.73.49.252 - - [06/Nov/2013:09:05:08 +0100] "GET /resources/errors/appdown.html HTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0 Iceweasel/24.0"

on my oddb-VM I don't find anything in the apache2.logs using @@tail -n2 /var/log/apache/*.log

10.0.2.2 - - [05/Nov/2013:20:39:55 +0100] "GET /favicon.ico HTTP/1.1" 404 271
10.0.2.2 - - [06/Nov/2013:08:44:32 +0100] "GET / HTTP/1.1" 304 -

==> /var/log/apache2/error_log <==
[Tue Nov 05 20:32:10 2013] [notice] Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.1e mod_ruby/1.3.0 configured -- resuming normal operations
[Tue Nov 05 20:39:55 2013] [error] [client 10.0.2.2] File does not exist: /var/www/localhost/htdocs/favicon.ico

==> /var/log/apache2/ssl_access_log <==

==> /var/log/apache2/ssl_error_log <==

==> /var/log/apache2/ssl_request_log <==

After playing around with the apache2 configuration files I got the following error in the apache2/error_log

[Wed Nov 06 09:51:29 2013] [notice] Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.1e mod_ruby/1.3.0 configured -- resuming normal operations
[Wed Nov 06 09:51:32 2013] [warn] Unable to load url configuration: No such file or directory - /var/www/localhost/etc/trans_handler.yml
[Wed Nov 06 09:51:32 2013] [notice] Hint: store configuration in a YAML-File at DOCUMENT_ROOT/../etc/trans_handler.yml

As root I had to use the system Ruby 1.9 to reinstall the yus gem without overriding the yus binaries under /usr/local/bin. I achived this running (as root) rvm use system; gem install --bindir /tmp/bin_gems_19 yus. Now yus_show ngiger@ywesee.com works without any problem.

Running sudo emerge --update --newuse --deep --with-bdeps=y @world, found following

* Broken symlink for a certificate at /etc/ssl/certs/9818ca0b.0
 * Broken symlink for a certificate at /etc/ssl/certs/b097d71d.0
 * Broken symlink for a certificate at /etc/ssl/certs/656b3e35.0
 * Broken symlink for a certificate at /etc/ssl/certs/4597689c.0
 * You MUST remove the above broken symlinks
 * Otherwise any SSL validation that use the directory may fail!
 * To batch-remove them, run:
 * find -L /etc/ssl/certs/ -type l -exec rm {} +
view · edit · sidebar · attach · print · history
Page last modified on November 06, 2013, at 12:25 PM