[Mailman-Developers] error while setting up mailman on ubuntu please reply
Xu Wang
xuwang at gmail.com
Thu Apr 4 23:54:19 CEST 2013
It depends on the version of zope on your system.
I'd update the zope.interface before mailman buildout.
Here is an example chef recipe for mm3:
nclude_recipe "python"
# Install base packages for mailman3
%w{
bzr
postfix
openssl-blacklist
ssl-cert
}.each do |pkg|
package pkg
end
python_pip "zope.interface" do
version "4.0.5"
action :install
end
bash "Download mailman" do
user "root"
code <<-EOH
cd "#{node['mm3']['install_dir']}"
bzr branch lp:mailman
EOH
creates node['mm3']['home']
end
bash "Install mailman3" do
user "root"
code <<-EOH
cd "#{node['mm3']['home']}"
python setup.py install
EOH
end
# Install mailman conf file
service "mailman" do
supports :restart => true, :start => true, :stop => true, :status => true
action :nothing
end
template "mailman" do
path "/etc/init.d/mailman"
source "mailman.d.erb"
owner "root"
group "root"
mode "0755"
notifies :enable, "service[mailman]"
notifies :reload, "service[mailman]"
end
template "#{node['mm3']['config_dir']}/mailman.cfg" do
mode 0440
owner node['mm3']['owner']
group node['mm3']['group']
variables(
'mm3_config' => node['mm3']
)
notifies :reload, "service[mailman]"
end
# Install Postfix hook for Mailman
service "postfix" do
supports :restart => true, :start => true, :stop => true, :reload => true
action :nothing
end
postfixHook = <<EOF
# Mailman hook
recipient_delimiter = +
unknown_local_recipient_reject_code = 550
owner_request_special = no
transport_maps = hash:#{node['mm3']['home']}/var/data/postfix_lmtp
local_recipient_maps = hash:#{node['mm3']['home']}/var/data/postfix_lmtp
relay_domains = hash:/#{node['mm3']['home']}/var/data/postfix_domains
EOF
ruby_block "Install Postfix hook for Mailman" do
block do
file = Chef::Util::FileEdit.new("/etc/postfix/main.cf")
file.insert_line_if_no_match(/# Mailman hook/, postfixHook)
file.write_file
end
notifies :reload, "service[postfix]", :immediately
end
hope this helps,
Xu Wang
On Thu, Apr 4, 2013 at 12:48 PM, Karl-Aksel Puulmann <macobo at ut.ee> wrote:
> Hello
>
> When I ran into similar problems, running bin/buildout with root
> premissions helped (sudo bin/buildout). This installed some missing
> packages (zope.interface). Hopefully this helps. :)
>
> All the best
> Karl-Aksel Puulmann
>
> 2013/4/1 Ashesh Vidyut <ashesh.vidyut at gmail.com>
>
> > i m following
> >
> >
> >
>
> http://wiki.list.org/display/DEV/A+5+minute+guide+to+get+the+Mailman+web+UI+running
> >
> > i had brached mailman
> >
> > after that i excecuted python bootstrap.py
> >
> > in bin/buildout
> >
> > i get
> >
> > An internal error occured due to a bug in either zc.buildout or in a
> > recipe being used:
> > Traceback (most recent call last):
> > File
> >
> >
>
> "/home/ashesh/mailmanc/eggs/zc.buildout-2.1.0-py2.7.egg/zc/buildout/buildout.py",
> > line 1923, in main
> > getattr(buildout, command)(args)
> > File
> >
> >
>
> "/home/ashesh/mailmanc/eggs/zc.buildout-2.1.0-py2.7.egg/zc/buildout/buildout.py",
> > line 466, in install
> > installed_develop_eggs = self._develop()
> > File
> >
> >
>
> "/home/ashesh/mailmanc/eggs/zc.buildout-2.1.0-py2.7.egg/zc/buildout/buildout.py",
> > line 707, in _develop
> > zc.buildout.easy_install.develop(setup, dest)
> > File
> >
> >
>
> "/home/ashesh/mailmanc/eggs/zc.buildout-2.1.0-py2.7.egg/zc/buildout/easy_install.py",
> > line 871, in develop
> > call_subprocess(args)
> > File
> >
> >
>
> "/home/ashesh/mailmanc/eggs/zc.buildout-2.1.0-py2.7.egg/zc/buildout/easy_install.py",
> > line 129, in call_subprocess
> > % repr(args)[1:-1])
> > Exception: Failed to run command:
> > '/usr/bin/python', '/tmp/tmpu69D_h', '-q', 'develop', '-mxN', '-d',
> > '/home/ashesh/mailmanc/develop-eggs/tmpNyd439build'
> > root at av:/home/ashesh/mailmanc#
> >
> >
> > how to solve this ?
> > please reply
> > _______________________________________________
> > Mailman-Developers mailing list
> > Mailman-Developers at python.org
> > http://mail.python.org/mailman/listinfo/mailman-developers
> > Mailman FAQ: http://wiki.list.org/x/AgA3
> > Searchable Archives:
> > http://www.mail-archive.com/mailman-developers%40python.org/
> > Unsubscribe:
> >
>
> http://mail.python.org/mailman/options/mailman-developers/flo.fuchs%40gmail.com
> >
> > Security Policy: http://wiki.list.org/x/QIA9
> _______________________________________________
> Mailman-Developers mailing list
> Mailman-Developers at python.org
> http://mail.python.org/mailman/listinfo/mailman-developers
> Mailman FAQ: http://wiki.list.org/x/AgA3
> Searchable Archives:
> http://www.mail-archive.com/mailman-developers%40python.org/
> Unsubscribe:
> http://mail.python.org/mailman/options/mailman-developers/xuwang%40gmail.com
>
> Security Policy: http://wiki.list.org/x/QIA9
>
More information about the Mailman-Developers
mailing list