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

schleuder at nadir.org schleuder at nadir.org
Sat Jan 7 16:53:16 UTC 2017


Hi Philippe,

On 17-01-07 17:33:23, schleuder at nadir.org wrote:
> From: Philippe Le Brouster <plb at nebkha.net>
> 
> 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 for testing and your bug report -- highly appreciated! 
I'll have a look into this, expect a fixed version soon.

If you run into further problems, please let me know.

Have a nice evening,
Georg

-- 
To receive the public gpg key for this address send a
mail to schleuder2-sendkey at nadir.org.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20170107/05235eef/attachment.sig>


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