view · edit · sidebar · attach · print · history

< Niklaus.20170426-virbac-importer | Index | Niklaus.20170424-drugshortage-unable-to-parse >>

20170425-virbac-importer

Summary

Commits

Index

Fix virbac importer

Running virbac importer using sudo -u bbmb /usr/local/bin/ruby231 bin/update_abschluss_artikel_artikel_fr_kunden config=/var/www/virbac.bbmb.ch/etc/config.yml in /var/www/virbac.bbmb.ch on fastpower resulted in an error

Errno::EACCES
Permission denied @ rb_sysopen - /var/www/virbac.bbmb.ch/var/ftp/ABSCHLUSS.CSV
/usr/local/lib/ruby/2.3.0/fileutils.rb:1392:in `initialize'
/usr/local/lib/ruby/2.3.0/fileutils.rb:1392:in `open'
/usr/local/lib/ruby/2.3.0/fileutils.rb:1392:in `copy_file'
/usr/local/lib/ruby/2.3.0/fileutils.rb:486:in `copy_file'
/usr/local/lib/ruby/2.3.0/fileutils.rb:403:in `block in cp'
/usr/local/lib/ruby/2.3.0/fileutils.rb:1571:in `block in fu_each_src_dest'
/usr/local/lib/ruby/2.3.0/fileutils.rb:1585:in `fu_each_src_dest0'
/usr/local/lib/ruby/2.3.0/fileutils.rb:1569:in `fu_each_src_dest'
/usr/local/lib/ruby/2.3.0/fileutils.rb:402:in `cp'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:39:in `poll_path'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:26:in `block in poll'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:25:in `each'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:25:in `poll'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:139:in `block in poll_sources'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:132:in `block in load_sources'
/usr/local/lib/ruby/2.3.0/psych/deprecated.rb:32:in `each'
/usr/local/lib/ruby/2.3.0/psych/deprecated.rb:32:in `load_documents'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:131:in `load_sources'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:138:in `poll_sources'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/updater.rb:11:in `run'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/server.rb:161:in `update'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/server.rb:128:in `block (2 levels) in run_updater'
/usr/local/lib/ruby/2.3.0/delegate.rb:85:in `loop'
/usr/local/lib/ruby/2.3.0/delegate.rb:85:in `call'
/usr/local/lib/ruby/2.3.0/delegate.rb:85:in `method_missing'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/server.rb:116:in `block in run_updater'	

-rw------- 1 virbac virbac 705634 Apr 24 20:53 /var/www/virbac.bbmb.ch/var/ftp/ABSCHLUSS.CSV is not writeable by the user bbmb which started the job.

But why does the directory /var/www/virbac.bbmb.ch/var/ftp belong to the user virbac? Did not find a cron job belonging to the user virbac.

Trying to fix in screen virbac_importer with

ngiger@fastpower /var/www/virbac.bbmb.ch $ sudo chown -R bbmb:bbmb var/ftp/
ngiger@fastpower /var/www/virbac.bbmb.ch $ ls -lrt var/ftp/A*
total 1316
-rw------- 1 bbmb bbmb 705634 Apr 24 20:53 ABSCHLUSS.CSV

This resulted in 4 error e-mails. The first one citing

NoMethodError
undefined method `quota' for #<BBMB::Model::Quota:0x007f6c5502ece8>
/var/www/virbac.bbmb.ch/lib/bbmb/util/csv_importer.rb:271:in `import_record'
/var/www/virbac.bbmb.ch/lib/bbmb/util/csv_importer.rb:38:in `block in import'
/usr/local/lib/ruby/2.3.0/csv.rb:1748:in `each'
/var/www/virbac.bbmb.ch/lib/bbmb/util/csv_importer.rb:31:in `each_with_index'
/var/www/virbac.bbmb.ch/lib/bbmb/util/csv_importer.rb:31:in `import'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/updater.rb:20:in `import'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/updater.rb:14:in `block in run'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:31:in `block in poll_path'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:30:in `open'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:30:in `poll_path'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:26:in `block in poll'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:25:in `each'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:25:in `poll'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:139:in `block in poll_sources'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:132:in `block in load_sources'
/usr/local/lib/ruby/2.3.0/psych/deprecated.rb:32:in `each'
/usr/local/lib/ruby/2.3.0/psych/deprecated.rb:32:in `load_documents'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:131:in `load_sources'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:138:in `poll_sources'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/updater.rb:11:in `run'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/server.rb:161:in `update'
bin/update_abschluss_artikel_artikel_fr_kunden:42:in `<module:BBMB>'
bin/update_abschluss_artikel_artikel_fr_kunden:13:in `<main>'

Using pry (after calling sudo /usr/local/bin/gem231 install pry-byebug) to debug the problem I see, that we can import many quotas (e.g. 306302, 306303), but that it fails for art_id 306700.

Finally I was able to find an empty order via pry

[41] pry(#<BBMB::Util::QuotaImporter>)> custmr.quotas[9].order_id
=> "3289-"
[42] pry(#<BBMB::Util::QuotaImporter>)> custmr.quotas[9].filename
NoMethodError: undefined method `strftime' for nil:NilClass
from /usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/model/order.rb:115:in `filename'
[43] pry(#<BBMB::Util::QuotaImporter>)> custmr.quotas[9].empty?
=> true

Problem was that for 306700 we did not have a Quota member but an an array of two nil elements.

Found that for the line "3219", "BACHMANN", "Schlieren", "300392", "Feligen CRP 10er Packung", "01.01.2017", "31.12.2017", "700", "0", "700", "4.00" no custmr.quota was defined.

Copied the database backup of yesterday to oddb-ci2. Running the importer I get the following info with pry when importing above mentioned line

[10] pry(#<BBMB::Util::QuotaImporter>)> Model::Customer.find_by_customer_id(customer_id).class
=> BBMB::Model::Quota

This an inconstency in the database! But is this the result, that on oddb-ci2 I am unable to import the KUNDEN.CSV as I get an error DRb::DRbServerNotFound.

There is a problem with customer 3219, as accessing http://virbac.bbmb.ch/de/bbmb/customer/customer_id/3219 says

NoMethodError
undefined method `customer_id' for #<BBMB::Model::Quota:0x007f9de129eec0>

Debugging the situation via bin/admin

bbmb> ODBA.cache.extent(BBMB::Model::Customer).find_all {|x| x.email.eql?('max-bachmann@gmx.ch')}
-> []
bbmb> ODBA.cache.extent(BBMB::Model::Quota).size
-> 0
bbmb> ODBA.cache.extent(BBMB::Model::Product).size
-> 175

Improved the csv_importer to emit the following lines

csv_importer.rb: UTF-8 importing /var/www/virbac.bbmb.ch/var/ftp/ABSCHLUSS.CSV 6490 lines
.......... 1000
customer_id 3219: Invalid class #<BBMB::Model::Quota:0x00000002dde120> odba_id 268997 for record ["3219", "BACHMANN", "Schlieren", "300392", "Feligen CRP 10er Packung", "01.01.2017", "31.12.2017", "700", "0", "700", "4.00"]
customer_id 3219: Invalid class #<BBMB::Model::Quota:0x00000002dde120> odba_id 268997 for record ["3219", "BACHMANN", "Schlieren", "300394", "Feligen CRP 50er Packung", "01.01.2017", "31.12.2017", "700", "0", "700", "4.00"]
customer_id 3219: Invalid class #<BBMB::Model::Quota:0x00000002dde120> odba_id 268997 for record ["3219", "BACHMANN", "Schlieren", "301268", "Leucogen 10er Packung", "01.01.2017", "31.12.2017", "300", "0", "300", "13.40"]
customer_id 3219: Invalid class #<BBMB::Model::Quota:0x00000002dde120> odba_id 268997 for record ["3219", "BACHMANN", "Schlieren", "302378", "Leucogen 50er Packung", "01.01.2017", "31.12.2017", "300", "0", "300", "13.40"]
customer_id 3219: Invalid class #<BBMB::Model::Quota:0x00000002dde120> odba_id 268997 for record ["3219", "BACHMANN", "Schlieren", "306302", "Leucofeligen FeLV/CRP 10er P.", "01.01.2017", "31.12.2017", "300", "0", "300", "16.90"]
customer_id 3219: Invalid class #<BBMB::Model::Quota:0x00000002dde120> odba_id 268997 for record ["3219", "BACHMANN", "Schlieren", "306303", "Leucofeligen FeLV/CRP 50er P.", "01.01.2017", "31.12.2017", "300", "0", "300", "16.90"]
.......... 2000
.......... 3000
.......... 4000
.......... 5000
.......... 6000
....csv_importer.rb: finished. /var/www/virbac.bbmb.ch/var/ftp/ABSCHLUSS.CSV. count is 6490

Trying to delete the problematic odba-element via bin/dmin by calling ODBA.storage.delete_persistable(268997). Did not see a difference on oddb-ci2, as we cannot import the customers.

Trying with the database dump of 6 days ago. But I still cannot find the customer with ID 3219.

After importing my patch Add workaround for missing customer 3219 I get the following output on fastpower

/tmp/update_abschluss_artikel_artikel_fr_kunden.log
#<Logger:0x007f2e87d25b88 @progname=nil, @level=0, @default_formatter=#<Logger::Formatter:0x007f2e87d25b60 @datetime_format=nil>, @formatter=nil, @logdev=#<Logger::LogDevice:0x007f2e87d25b10 @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<File:/tmp/update_abschluss_artikel_artikel_fr_kunden.log>, @mon_owner=nil, @mon_count=0, @mon_mutex=#<Thread::Mutex:0x007f2e87d25a98>>>
2017-04-25 12:57:39 +0200: Calling update
csv_importer.rb: UTF-8 importing /var/www/virbac.bbmb.ch/var/ftp/ABSCHLUSS.CSV 6615 lines
...Unexpected class for article_id 306700 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306700 odba_id 162686 BBMB::Model::Order in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306700 odba_id 162686 Array in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306700 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306700 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306700 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306712 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306712 odba_id 162686 BBMB::Model::Order in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306712 odba_id 162686 Array in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306712 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306712 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306712 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306713 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306713 odba_id 162686 BBMB::Model::Order in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306713 odba_id 162686 Array in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306713 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306713 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306713 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306714 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306714 odba_id 162686 BBMB::Model::Order in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306714 odba_id 162686 Array in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306714 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306714 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306714 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306715 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306715 odba_id 162686 BBMB::Model::Order in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306715 odba_id 162686 Array in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306715 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306715 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306715 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306716 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306716 odba_id 162686 BBMB::Model::Order in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306716 odba_id 162686 Array in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306716 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306716 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 306716 odba_id 162686 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e855a0338>
Unexpected class for article_id 302378 odba_id 322 BBMB::Model::Order::Position in #<BBMB::Model::Customer:0x007f2e87a13d50>
....... 1000
Could not find a customer_id 3219, it is a BBMB::Model::Quota with odba_id 268997. Skipping
   ["3219", "BACHMANN", "Schlieren", "300392", "Feligen CRP 10er Packung", "01.01.2017", "31.12.2017", "700", "0", "700", "4.00"]
Could not find a customer_id 3219, it is a BBMB::Model::Quota with odba_id 268997. Skipping
   ["3219", "BACHMANN", "Schlieren", "300394", "Feligen CRP 50er Packung", "01.01.2017", "31.12.2017", "700", "50", "650", "4.00"]
Could not find a customer_id 3219, it is a BBMB::Model::Quota with odba_id 268997. Skipping
   ["3219", "BACHMANN", "Schlieren", "301268", "Leucogen 10er Packung", "01.01.2017", "31.12.2017", "300", "0", "300", "13.40"]
Could not find a customer_id 3219, it is a BBMB::Model::Quota with odba_id 268997. Skipping
   ["3219", "BACHMANN", "Schlieren", "302378", "Leucogen 50er Packung", "01.01.2017", "31.12.2017", "300", "0", "300", "13.40"]
Could not find a customer_id 3219, it is a BBMB::Model::Quota with odba_id 268997. Skipping
   ["3219", "BACHMANN", "Schlieren", "306302", "Leucofeligen FeLV/CRP 10er P.", "01.01.2017", "31.12.2017", "300", "0", "300", "16.90"]
Could not find a customer_id 3219, it is a BBMB::Model::Quota with odba_id 268997. Skipping
   ["3219", "BACHMANN", "Schlieren", "306303", "Leucofeligen FeLV/CRP 50er P.", "01.01.2017", "31.12.2017", "300", "50", "250", "16.90"]
.......... 2000
.......... 3000
.........Unexpected class for article_id 305613 odba_id 230906 BBMB::Model::Order in #<BBMB::Model::Customer:0x007f2e880ddaa0>
. 4000
........Unexpected class for article_id 300350 odba_id 253748 Hash in #<BBMB::Model::Customer:0x007f2e87acf3c0>
.. 5000
..Unexpected class for article_id 305613 odba_id 253063 Array in #<BBMB::Model::Customer:0x007f2e88062418>
.Unexpected class for article_id 307398 odba_id 256432 Array in #<BBMB::Model::Customer:0x007f2e87bd7c90>
Unexpected class for article_id 307398 odba_id 256432 BBMB::Model::Customer in #<BBMB::Model::Customer:0x007f2e87bd7c90>
Unexpected class for article_id 307399 odba_id 256432 Array in #<BBMB::Model::Customer:0x007f2e87bd7c90>
Unexpected class for article_id 307399 odba_id 256432 BBMB::Model::Customer in #<BBMB::Model::Customer:0x007f2e87bd7c90>
....... 6000
..Unexpected class for article_id 300350 odba_id 229281 BBMB::Model::Order in #<BBMB::Model::Customer:0x007f2e87abdd28>
....csv_importer.rb: finished. /var/www/virbac.bbmb.ch/var/ftp/ABSCHLUSS.CSV. count is 6615
csv_importer.rb: UTF-8 importing /var/www/virbac.bbmb.ch/var/ftp/ARTIKEL.CSV 348 lines
<..>
 DRb::DRbServerNotFound

Okay. Must find the root problemm for DRb::DRbServerNotFound as it appears on oddb-ci2 AND fastpower.

Added a workaround to see the errors when changing a Customer. Changing the e-mail address does not work. Also adding a new customer does not work.

Okay. It looks for me that localhost IP-adress in the config.yml is resolved to a IPV6 address on oddb-ci2. Verified this via shell

sudo netstat -ntlpu  | grep 12003
tcp6       0      0 ::1:12003               :::*                    LISTEN      28106/ruby-240      

Why is it impossible to use the DRb AutoSession? After changing localhost:12003 to 127.0.0.1:12003 I get the error #<DRb::DRbConnError: druby://127.0.01:12003 - #<Errno::ECONNREFUSED: Connection refused - connect(2) for "127.0.01" port 12003>>.

Or do we have even more inconsistencies in the database, e.g both for Tinguely and Butty we find an old ID an new ID > 70000. The new ID has no email in both cases.

After installing the patch Add workaround for missing/wrong e-mail addresses on fastpower, I reran the import and got the following error message

NoMethodError
undefined method `backorder=' for #<BBMB::Model::ProductInfo:0x007f1d73363c28>
Did you mean?  backorder
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/model/order.rb:34:in `method_missing'
/var/www/virbac.bbmb.ch/lib/bbmb/util/csv_importer.rb:217:in `block in import_record'
/var/www/virbac.bbmb.ch/lib/bbmb/util/csv_importer.rb:204:in `each'
/var/www/virbac.bbmb.ch/lib/bbmb/util/csv_importer.rb:204:in `import_record'
/var/www/virbac.bbmb.ch/lib/bbmb/util/csv_importer.rb:56:in `block in import'
/usr/local/lib/ruby/2.3.0/csv.rb:1748:in `each'
/var/www/virbac.bbmb.ch/lib/bbmb/util/csv_importer.rb:49:in `each_with_index'
/var/www/virbac.bbmb.ch/lib/bbmb/util/csv_importer.rb:49:in `import'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/updater.rb:20:in `import'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/updater.rb:14:in `block in run'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:31:in `block in poll_path'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:30:in `open'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:30:in `poll_path'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:26:in `block in poll'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:25:in `each'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:25:in `poll'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:139:in `block in poll_sources'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:132:in `block in load_sources'
/usr/local/lib/ruby/2.3.0/psych/deprecated.rb:32:in `each'
/usr/local/lib/ruby/2.3.0/psych/deprecated.rb:32:in `load_documents'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:131:in `load_sources'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/polling_manager.rb:138:in `poll_sources'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/updater.rb:11:in `run'
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.3/lib/bbmb/util/server.rb:161:in `update'
bin/update_abschluss_artikel_artikel_fr_kunden:42:in `<module:BBMB>'
bin/update_abschluss_artikel_artikel_fr_kunden:13:in `<main>'

Pushed another commit Add workaround for missing/wrong backorder

As I fixed the unit tests for the CSV-importer I pushed Test only ruby 2.3.1 and 2.4.0 on travis-ci to get it green, there. Unit-tests don't cover however the cases treated today.

Now at least the import finished, albeit without correcting quite a few things. See Attach:update_abschluss_artikel_artikel_fr_kunden_log.txt Δ

Just found out that just calling bin/admin virbac.bbmb.ch uses the wrong config when called like bin/admin

niklaus@oddb-ci2 /v/w/virbac.bbmb.ch> bin/admin
ch.bbmb> BBMB.config.auth_domain
-> ch.bbmb.vetoquinol

correct call is bin/admin config=/var/www/virbac.bbmb.ch/etc/config.yml

niklaus@oddb-ci2 /v/w/virbac.bbmb.ch> bin/admin config=/var/www/virbac.bbmb.ch/etc/config.yml
ch.bbmb.virbac> BBMB.config.auth_domain
-> ch.bbmb.virbac

Must add tomorrow a correctly working bin/virbac_admin.

view · edit · sidebar · attach · print · history
Page last modified on April 25, 2017, at 08:32 PM