view · edit · sidebar · attach · print · history




  • Migrate on fastpower to Ruby 2.3.1
  • Test polling e-mails and handling them for vetoquinol
  • Keep in Mind



Migrate on fastpower to Ruby 2.3.1 and on fastpower should run on Ruby 2.3.1

Tested locally that changing /service/ to Ruby 2.3.1 works. The run script calls now sudo -u bbmb /usr/local/bin/ruby231 /usr/local/bin/yusd config=/var/www/ Migrated using sudo -u bbmb /usr/local/bin/ruby231 ./yus_migrate_to_utf_8 config=/var/www/

Was able to log in to and without a problem.

Removed doc and lib directories from /var/www/ and /var/www/ and did a git checkout there.

Pushed a commit that lay around here for a few days Renamed flavor sandoz -> bbmb

Preparing to install sandoz(.xmlconv) on fastpower

  • sudo /usr/local/bin/gem231 install xmlconv

Prepared the following sevice/run scripts:

  • /service/
  • /service/
  • /service/
  • cd /var/www/ && git remote add
  • cd /var/www/ && git pull
  • cd /var/www/ && git remote add
  • cd /var/www/ && git pull
  • activate new service/run
  • sudo svc -d /service/sandoz*
  • cd /usr/local/share/src/yus && git pull
  • cd /usr/local/share/src/yus && sudo -u bbmb /usr/local/bin/ruby231 ./yus_migrate_to_utf_8 config=/var/www/
  • sudo -u bbmb /usr/local/bin/ruby231 /var/www/ config=/var/www/
  • sudo -u bbmb /usr/local/bin/ruby231 /usr/local/bin/migrate_xmlconv_to_utf_8 /var/www/
  • Remove no longer use RubyAddPath from /etc/apache2/vhosts.d/

Now we see the login for sandoz and sandoz.xml but cannot log in.

Also we find in the /var/www/ entries like

[Wed Jul 13 14:13:09 2016] [error] uninitialized constant #<Module:0x7f33396e3f48>::XmlConv
[Wed Jul 13 14:13:09 2016] [error] /var/www/\n/usr/local/bin/ruby186/lib/ruby/1.8/apache/ruby-debug.rb:54:in `load'\n/usr/local/bin/ruby186/lib/ruby/1.8/apache/ruby-debug.rb:54:in `handler'
[Wed Jul 13 14:15:02 2016] [notice] Received Request POST
[Wed Jul 13 14:15:02 2016] [notice] from
[Wed Jul 13 14:15:02 2016] [notice] content-length: 2080
[Wed Jul 13 14:15:02 2016] [error] NameError
[Wed Jul 13 14:15:02 2016] [error] uninitialized constant #<Module:0x7f3339410938>::XmlConv

On oddb-ci2 I have the following line ins /etc/apache2/vhosts.d/

  RubyAddPath /usr/local/bin/ruby186/lib/ruby/gems/1.8/gems/xmlconv-1.0.7/lib
  RubyRequire 'xmlconv/util/destination'
  RubyRequire 'xmlconv/util/transaction'

Installing xmlconv für Ruby 1.8.6 on fastpower fails

sudo /usr/local/bin/ruby186/bin/gem install xmlconv
Fetching: ydbi-0.5.3.gem (100%)
Fetching: pg-0.17.0.gem (100%)
ERROR:  Error installing xmlconv:
        pg requires Ruby version >= 1.8.7.

Specicified the local installation /usr/local/share/src/xmlconv in the RubyAddPath directive.

Used the HttpFox of firefox to compare the login steps of on fastpower and oddb-ci2. The rows look similar

00:00:02.106	0.092	410	(2345)	GET	(Cache)	text/html
00:00:02.188	0.012	532	(4861)	GET	304	text/css
00:00:02.204	4.307	517	(13111)	GET	(Aborted)	image/png (NS_BINDING_ABORTED)
00:00:06.511	0.395	598	(11513)	POST	(Cache)	text/html
00:00:06.896	0.014	380	(4732)	GET	(Cache)	text/css
00:00:06.910	19.619	365	(12982)	GET	(Aborted)	image/png (NS_BINDING_ABORTED)
00:00:26.530	0.142	348	(2282)	GET	(Cache)	text/html
00:00:26.650	1.364	477	(4861)	GET	304	text/css
00:00:26.675	6.233	462	(13111)	GET	(Aborted)	image/png (NS_BINDING_ABORTED)
00:00:32.909	0.105	575	(2297)	POST	(Cache)	text/html
00:00:32.994	0.025	366	(4732)	GET	(Cache)	text/css
00:00:33.020	*	351/351	*	GET	*	*

The two POST statement contain the same Header, Cookies, QueryString, Post Daten (ignoring session ID and URL related fields). But on fastpower the Content returns the same Login HTML, whereas on oddb-ci2 the new page (with the list of the customer) is returned.

Putting some $stderr.puts statements into /var/www/ produced output in /var/log/apache2/error_log that showed, that calling["DRB_SERVER"]).process returned nil. I get the same return value when I add the same debug statement on oddb-ci2, where the login succeeds. Why?

Test polling e-mails and handling them for vetoquinol

This is similar to the poll problem of sandoz.xmlconv. First must make the unit tests pass.

Pushed commit Fixed CSV-Importer and running non selenium tests

Looking on thinpower at the file /var/www/ This could be adapted to test the connection. But how can I see an old email-invoice?

view · edit · sidebar · attach · print · history
Page last modified on July 13, 2016, at 04:44 PM