[DRE-maint] Bug#850545: log folder of a list is not created during the list creation process

Philippe Le Brouster plb at nebkha.net
Sat Jan 7 16:25:55 UTC 2017


Package: schleuder
Version: 3.0.0~beta14-1

When creating a list through schleuder-cli, the log folder of the list
is no created.

    sudo -u schleuder schleuder-cli lists new test at my.domain plb at my.domain /tmp/plb.asc

This produce an error when sending the first mail:

    No such file or directory @ rb_sysopen -
    /var/log/schleuder/my.domain/test/list.log
    /usr/lib/ruby/2.1.0/open-uri.rb:36:in `initialize'
    /usr/lib/ruby/2.1.0/open-uri.rb:36:in `open'
    /usr/lib/ruby/2.1.0/open-uri.rb:36:in `open'
    /usr/lib/ruby/2.1.0/logger.rb:600:in `create_logfile'
    /usr/lib/ruby/2.1.0/logger.rb:594:in `rescue in open_logfile'
    /usr/lib/ruby/2.1.0/logger.rb:591:in `open_logfile'
    /usr/lib/ruby/2.1.0/logger.rb:549:in `initialize'
    /usr/lib/ruby/2.1.0/logger.rb:318:in `new'
    /usr/lib/ruby/2.1.0/logger.rb:318:in `initialize'
    /usr/lib/ruby/vendor_ruby/schleuder/listlogger.rb:5:in `initialize'
    /usr/lib/ruby/vendor_ruby/schleuder/list.rb:81:in `new'
    /usr/lib/ruby/vendor_ruby/schleuder/list.rb:81:in `logger'
    /usr/lib/ruby/vendor_ruby/schleuder/runner.rb:81:in `logger'
    /usr/lib/ruby/vendor_ruby/schleuder/runner.rb:126:in `setup_list'
    /usr/lib/ruby/vendor_ruby/schleuder/runner.rb:4:in `run'
    /usr/lib/ruby/vendor_ruby/schleuder/cli.rb:35:in `work'
    /usr/lib/ruby/vendor_ruby/thor/command.rb:27:in `run'
    /usr/lib/ruby/vendor_ruby/thor/invocation.rb:126:in `invoke_command'
    /usr/lib/ruby/vendor_ruby/thor.rb:359:in `dispatch'
    /usr/lib/ruby/vendor_ruby/thor/base.rb:440:in `start'
    /usr/bin/schleuder:8:in `<main>'

The problem is fixed if I create the folder manually:

    sudo -u schleuder mkdir -p /var/log/schleuder/my.domain/test

Tested on Debian/Jessie.

Thanks !

Philippe.



More information about the Pkg-ruby-extras-maintainers mailing list