Update has still something wrong configuration on server.
Errno::EACCES Permission denied @ rb_sysopen - /var/www/sandoz.bbmb.ch/chroot-jail/home/sandoz/data/Artikel.txt /usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.1/lib/bbmb/util/polling_manager.rb:30:in `initialize' /usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.1/lib/bbmb/util/polling_manager.rb:30:in `open' /usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.1/lib/bbmb/util/polling_manager.rb:30:in `poll_path' /usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.1/lib/bbmb/util/polling_manager.rb:26:in `block in poll' /usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.1/lib/bbmb/util/polling_manager.rb:25:in `each' /usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.1/lib/bbmb/util/polling_manager.rb:25:in `poll' /usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.1/lib/bbmb/util/polling_manager.rb:139:in `block in poll_sources' /usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.1/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.1/lib/bbmb/util/polling_manager.rb:131:in `load_sources' /usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.1/lib/bbmb/util/polling_manager.rb:138:in `poll_sources' /usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.1/lib/bbmb/util/updater.rb:11:in `run' /usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.1/lib/bbmb/util/server.rb:162:in `update' /usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.1/lib/bbmb/util/server.rb:129: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.1/lib/bbmb/util/server.rb:117:in `block in run_updater'
Problem was FILE
permission uploaded via FTP.
# These files are not readable without sandoz user. $ ls -la chroot-jail/home/sandoz/data/ total 328 drwxrwxrwx 2 sandoz sandoz 16 Sep 5 11:31 . drwxr-xr-x 5 sandoz sandoz 24 Jun 12 2013 .. -rw------- 1 sandoz sandoz 107802 Sep 5 11:31 Artikel.txt -rw------- 1 sandoz sandoz 223287 Sep 5 11:31 Kunden.txt
If I change these files as 755
or 775
.
Updater works fine.
/usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.1/bin/bbmbd:33: warning: already initialized constant BBMB::VERSION /usr/local/lib/ruby/gems/2.3.0/gems/bbmb-2.1.1/lib/bbmb/version.rb:2: warning: previous definition of VERSION was here D, [2016-09-05T21:40:56.423691 #3747] DEBUG -- updater: run_updater run_only_once_at_startup? true D, [2016-09-05T21:40:56.423776 #3747] DEBUG -- : run_invoicer starting D, [2016-09-05T21:40:56.424003 #3747] DEBUG -- updater: sleeping 4743.58 seconds. run_only_once_at_startup true Skipped sleeping 4743.576093898 D, [2016-09-05T21:40:56.424130 #3747] DEBUG -- invoicer: sleeping 2168343.58 seconds D, [2016-09-05T21:40:56.424160 #3747] DEBUG -- : update starting I, [2016-09-05T21:40:56.425370 #3747] INFO -- start: starting bbmb-server on druby://localhost:12004 D, [2016-09-05T21:40:56.494461 #3747] DEBUG -- updater: 0 imported 0 entities D, [2016-09-05T21:40:56.631396 #3747] DEBUG -- updater: 0 imported 0 entities D, [2016-09-05T21:40:56.632125 #3747] DEBUG -- : update finished ...
I applied my local patch (this patch reverts my previouse commit to support non-flavored url in sandoz.bbmb.ch).
I've already done same thing on xmlconv.
It must be supported in sbsm.
Commits:
Commits: