error on attempting t start mailman
Hi,
I ran out of disk space so I added 400gb to /var/lib/mailman2 and moved the archives with,
cd /var/lib/mailman ; tar cf - . |(cd /var/lib/mailman2 tar xf -)
So permissions should have stayed OK....then I did,
unmount ~mailman2 and mounted it as ~mailman, permissions look right but I seem to be getting this error now,
"Starting mailman: Site list is missing: mailman"
doh?
any ideas?
regards
On 6/1/11 10:23 PM, Steven Jones wrote:
"Starting mailman: Site list is missing: mailman"
mailmanctl can't find the file /var/lib/mailman/lists/mailman/config.pck.
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California Better use your sense - B. Dylan
So the file is there.....how to I get it to "find it" again....?
Also I suspect its the same with all the lists.....
regards
From: Mark Sapiro [mark@msapiro.net] Sent: Friday, 3 June 2011 2:34 a.m. To: Steven Jones Cc: mailman-users@python.org Subject: Re: [Mailman-Users] error on attempting t start mailman
On 6/1/11 10:23 PM, Steven Jones wrote:
"Starting mailman: Site list is missing: mailman"
mailmanctl can't find the file /var/lib/mailman/lists/mailman/config.pck.
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California Better use your sense - B. Dylan
On 6/2/2011 12:55 PM, Steven Jones wrote:
So the file is there.....how to I get it to "find it" again....?
Also I suspect its the same with all the lists.....
Probably it is all lists.
The first thing mailmanctl does is set its user and group to those of Mailman. So there are two possibilities. Either 'mailman' doesn't have sufficient access to even 'see' /var/lib/mailman/lists/*/config.pck.
The permissions and ownership on /var/lib/mailman should be
drwxrwsr-x mailman mailman
check that, and if that doesn't solve your issue, run Mailman's bin/check_perms -f as root.
If that still doesn't solve it, look at Mailman/Defaults.py for the definition of PREFIX and VAR_PREFIX to ensure they are what you think they are.
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Fixed the first one.....tried restarting, same message.....did the second with -f which fixed ownerships (I have a case into Red Hat on this... but it still wont start.
PREFIX = /usr/lib/mailman
VAR_PREFIX = /var/lib/mailman
I think these are correct....
regards
From: Mark Sapiro [mark@msapiro.net] Sent: Friday, 3 June 2011 8:54 a.m. To: Steven Jones Cc: mailman-users@python.org Subject: Re: [Mailman-Users] error on attempting t start mailman
On 6/2/2011 12:55 PM, Steven Jones wrote:
So the file is there.....how to I get it to "find it" again....?
Also I suspect its the same with all the lists.....
Probably it is all lists.
The first thing mailmanctl does is set its user and group to those of Mailman. So there are two possibilities. Either 'mailman' doesn't have sufficient access to even 'see' /var/lib/mailman/lists/*/config.pck.
The permissions and ownership on /var/lib/mailman should be
drwxrwsr-x mailman mailman
check that, and if that doesn't solve your issue, run Mailman's bin/check_perms -f as root.
If that still doesn't solve it, look at Mailman/Defaults.py for the definition of PREFIX and VAR_PREFIX to ensure they are what you think they are.
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
To add mailman will not start, still.
regards
From: mailman-users-bounces+steven.jones=vuw.ac.nz@python.org [mailman-users-bounces+steven.jones=vuw.ac.nz@python.org] on behalf of Steven Jones [Steven.Jones@vuw.ac.nz] Sent: Friday, 3 June 2011 10:58 a.m. To: Mark Sapiro Cc: mailman-users@python.org Subject: Re: [Mailman-Users] error on attempting t start mailman
Fixed the first one.....tried restarting, same message.....did the second with -f which fixed ownerships (I have a case into Red Hat on this... but it still wont start.
PREFIX = /usr/lib/mailman
VAR_PREFIX = /var/lib/mailman
I think these are correct....
regards
From: Mark Sapiro [mark@msapiro.net] Sent: Friday, 3 June 2011 8:54 a.m. To: Steven Jones Cc: mailman-users@python.org Subject: Re: [Mailman-Users] error on attempting t start mailman
On 6/2/2011 12:55 PM, Steven Jones wrote:
So the file is there.....how to I get it to "find it" again....?
Also I suspect its the same with all the lists.....
Probably it is all lists.
The first thing mailmanctl does is set its user and group to those of Mailman. So there are two possibilities. Either 'mailman' doesn't have sufficient access to even 'see' /var/lib/mailman/lists/*/config.pck.
The permissions and ownership on /var/lib/mailman should be
drwxrwsr-x mailman mailman
check that, and if that doesn't solve your issue, run Mailman's bin/check_perms -f as root.
If that still doesn't solve it, look at Mailman/Defaults.py for the definition of PREFIX and VAR_PREFIX to ensure they are what you think they are.
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/steven.jones%40vuw.ac.n...
On 6/2/2011 3:58 PM, Steven Jones wrote:
Fixed the first one.....tried restarting, same message.....did the second with -f which fixed ownerships (I have a case into Red Hat on this... but it still wont start.
PREFIX = /usr/lib/mailman
VAR_PREFIX = /var/lib/mailman
I think these are correct....
What does
sudo -u mailman ls -l /var/lib/mailman/lists/mailman/config.pck
do?
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
-rw-rw----. 1 mailman mailman 3902 Jun 2 12:00 /var/lib/mailman/lists/mailman/config.pck
From: Mark Sapiro [mark@msapiro.net] Sent: Friday, 3 June 2011 11:12 a.m. To: Steven Jones Cc: mailman-users@python.org Subject: Re: [Mailman-Users] error on attempting t start mailman
On 6/2/2011 3:58 PM, Steven Jones wrote:
Fixed the first one.....tried restarting, same message.....did the second with -f which fixed ownerships (I have a case into Red Hat on this... but it still wont start.
PREFIX = /usr/lib/mailman
VAR_PREFIX = /var/lib/mailman
I think these are correct....
What does
sudo -u mailman ls -l /var/lib/mailman/lists/mailman/config.pck
do?
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 6/2/2011 4:54 PM, Steven Jones wrote:
-rw-rw----. 1 mailman mailman 3902 Jun 2 12:00 /var/lib/mailman/lists/mailman/config.pck
So it looks like the 'mailman' user can access the config.pck.
So, how are you starting Mailman. Are you running
/var/lib/mailman/bin/mailmanctl start
Or something like
service mailman start
If the latter, what does the /etc/init.d/mailman script do?
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi,
Service mailman restart
Here is the startup script,
=========================
#!/bin/sh
#
# mailman This shell script starts and stops GNU Mailman.
#
# Copyright (C) 2001-2003 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# Copy this file to /etc/init.d/ (or /etc/rc.d/init.d/ depending on
# your system) and activate it as such:
#
# On Debian, type "update-rc.d mailman defaults"
# On RedHat, and derivatives, install with "chkconfig --add mailman"
#
# chkconfig: - 98 12
# description: Mailman is the GNU Mailing List Manager, a program that
# manages electronic mail discussion groups. For more
# on GNU Mailman see http://www.list.org
# processname: mailmanctl
# config: /usr/lib/mailman/Mailman/mm_cfg.py
# pidfile: /var/run/mailman/master-qrunner.pid
### BEGIN INIT INFO
# Provides: mailman
# Required-Start: $local_fs $remote_fs $network $named
# Should-Start: httpd
# Required-Stop: $local_fs $remote_fs $network
# Default-Stop: 0 1 3 4 5 6
# Short-Description: start and stop Mailman
# Description: Mailman is the GNU mailing list manager.
### END INIT INFO
MAILMANHOME=/usr/lib/mailman MAILMANCTL=$MAILMANHOME/bin/mailmanctl
# We used to install the mailman cron jobs when the mailman rpm was # installed, irrespective of whether mailman was actually being # run. Although the cron jobs didn't create any problems if someone # wasn't running mailman some users complained about the cron log file # filling up, resource usage, and power consumption since systems # wouldn't really idle. It really only makes sense to run the mailman # cron jobs if the mailman service is turned on and not just merely # having the rpm installed. This init.d script is an obvious place to # install or remove the cron jobs based on the service being enabled # or not.
SRC_CRON_SCRIPT=$MAILMANHOME/cron/crontab.in DST_CRON_SCRIPT=/etc/cron.d/mailman
function InstallCron() { install -m644 -o root -g root $SRC_CRON_SCRIPT $DST_CRON_SCRIPT }
function RemoveCron()
{
cat > $DST_CRON_SCRIPT < # Source function library.
. /etc/rc.d/init.d/functions RETVAL=0
prog="mailman" function start()
{
echo -n $"Starting $prog: "
mailman-update-cfg
daemon $MAILMANCTL -s -q start
RETVAL=$?
if [ $RETVAL -eq 0 ]
then
touch /var/lock/subsys/$prog
InstallCron
else
RETVAL=6
fi
echo
return $RETVAL
} function stop()
{
if [ -f /var/lock/subsys/$prog ]
then
echo -n $"Shutting down $prog: "
mailman-update-cfg
daemon $MAILMANCTL -q stop
RETVAL=$?
if [ $RETVAL -eq 0 ]
then
rm -f /var/lock/subsys/$prog
RemoveCron
fi
echo
else
echo $"$prog already stopped."
RETVAL=0
fi
return $RETVAL
} function restart()
{
stop
start
RETVAL=$?
return $RETVAL
} case "$1" in
'start')
start
RETVAL=$?
;; 'stop')
stop
RETVAL=$?
;; 'restart'|'force-reload')
restart
RETVAL=$?
;; 'condrestart'|'try-restart')
$MAILMANCTL -q -u status
retval=$?
if [ $retval -eq 0 ]
then
restart
RETVAL=$?
fi
;; 'status')
output=$($MAILMANCTL -u status)
RETVAL=$?
if [ $RETVAL -eq 3 -a -f /var/lock/subsys/$prog ]
then
echo $"$prog dead but subsys locked"
RETVAL=2
else
echo $output
fi
;; *)
echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status}"
RETVAL=2
;; regards From: Mark Sapiro [mark@msapiro.net]
Sent: Friday, 3 June 2011 12:03 p.m.
To: Steven Jones
Cc: mailman-users@python.org
Subject: Re: [Mailman-Users] error on attempting t start mailman On 6/2/2011 4:54 PM, Steven Jones wrote: -rw-rw----. 1 mailman mailman 3902 Jun 2 12:00 /var/lib/mailman/lists/mailman/config.pck So it looks like the 'mailman' user can access the config.pck. So, how are you starting Mailman. Are you running /var/lib/mailman/bin/mailmanctl start Or something like service mailman start If the latter, what does the /etc/init.d/mailman script do? --
Mark Sapiro mark@msapiro.net The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylanesac
exit $RETVAL
On 6/2/2011 6:03 PM, Steven Jones wrote:
Here is the startup script,
[...]
MAILMANHOME=/usr/lib/mailman MAILMANCTL=$MAILMANHOME/bin/mailmanctl
ASo your script is starting /usr/lib/mailman/bin/mailmanctl rather than /var/lib/mailman/bin/mailmanctl.
Presumably the insatllation in /usr/lib/mailman has no lists.
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Yes, the lists themselves are under /var.....the mailman binaries are under /usr
regards
From: Mark Sapiro [mark@msapiro.net] Sent: Friday, 3 June 2011 1:08 p.m. To: Steven Jones Cc: mailman-users@python.org Subject: Re: [Mailman-Users] error on attempting t start mailman
On 6/2/2011 6:03 PM, Steven Jones wrote:
Here is the startup script,
[...]
MAILMANHOME=/usr/lib/mailman MAILMANCTL=$MAILMANHOME/bin/mailmanctl
ASo your script is starting /usr/lib/mailman/bin/mailmanctl rather than /var/lib/mailman/bin/mailmanctl.
Presumably the insatllation in /usr/lib/mailman has no lists.
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 6/2/11 6:44 PM, Steven Jones wrote:
Yes, the lists themselves are under /var.....the mailman binaries are under /usr
OK. What does
/usr/lib/mailman/bin/dumpdb /var/lib/mailman/lists/mailman/config.pck
return. Does it dump a bunch of data that looks like the attributes of a list or something else?
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California Better use your sense - B. Dylan
true and false things, 0's 1's etc....
send_welcome_msg : True,
etc
so yes its looks like attributes.
regards
From: Mark Sapiro [mark@msapiro.net] Sent: Friday, 3 June 2011 2:54 p.m. To: Steven Jones Cc: mailman-users@python.org Subject: Re: [Mailman-Users] error on attempting t start mailman
On 6/2/11 6:44 PM, Steven Jones wrote:
Yes, the lists themselves are under /var.....the mailman binaries are under /usr
OK. What does
/usr/lib/mailman/bin/dumpdb /var/lib/mailman/lists/mailman/config.pck
return. Does it dump a bunch of data that looks like the attributes of a list or something else?
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California Better use your sense - B. Dylan
I have a nasty feeling about selinux....
will check
regards
From: Mark Sapiro [mark@msapiro.net] Sent: Friday, 3 June 2011 2:54 p.m. To: Steven Jones Cc: mailman-users@python.org Subject: Re: [Mailman-Users] error on attempting t start mailman
On 6/2/11 6:44 PM, Steven Jones wrote:
Yes, the lists themselves are under /var.....the mailman binaries are under /usr
OK. What does
/usr/lib/mailman/bin/dumpdb /var/lib/mailman/lists/mailman/config.pck
return. Does it dump a bunch of data that looks like the attributes of a list or something else?
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California Better use your sense - B. Dylan
Looks like it was selinux....i set it to permissive, rebooted and mailman appears to be up...
:/
regards
From: mailman-users-bounces+steven.jones=vuw.ac.nz@python.org [mailman-users-bounces+steven.jones=vuw.ac.nz@python.org] on behalf of Steven Jones [Steven.Jones@vuw.ac.nz] Sent: Friday, 3 June 2011 3:04 p.m. To: Mark Sapiro Cc: mailman-users@python.org Subject: Re: [Mailman-Users] error on attempting t start mailman
I have a nasty feeling about selinux....
will check
regards
From: Mark Sapiro [mark@msapiro.net] Sent: Friday, 3 June 2011 2:54 p.m. To: Steven Jones Cc: mailman-users@python.org Subject: Re: [Mailman-Users] error on attempting t start mailman
On 6/2/11 6:44 PM, Steven Jones wrote:
Yes, the lists themselves are under /var.....the mailman binaries are under /usr
OK. What does
/usr/lib/mailman/bin/dumpdb /var/lib/mailman/lists/mailman/config.pck
return. Does it dump a bunch of data that looks like the attributes of a list or something else?
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California Better use your sense - B. Dylan
Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/steven.jones%40vuw.ac.n...
participants (2)
-
Mark Sapiro
-
Steven Jones