My old mailing list is not working after installation on a new distro.
![](https://secure.gravatar.com/avatar/e7b78111bb5055e8ff9d0edf37aa3040.jpg?s=120&d=mm&r=g)
I'm having a problem with mailman 2.04 running with exim and apache on a mandrake distro. Fortunately, it is no longer the standard hard link problem. :) I read the FAQ and the README.LINUX and ran the secure_linux fix. One thing that took me a bit to figure out is that you have to run that script with a -f. If you don't, it outputs some information, but it doesn't actually output a usage line telling you it didn't run properly. When it didn't fix my problem, I went looking in the file and discovered the -f requirement. :) Anyway.. my problem is that I used to have mailman running on a redhat 6.2 distro and I copied the entire home directory over to the mandrake side. I downloaded the latest mailman and installed it over that. After a few tweaks and such, I've got newly created lists to work fine, but my old list cannot be administered. It hangs if you go to .../admin/listname . The listinfo/listname page comes up, but if you try to add your name to the list, the results page comes up with the message stating that the subscription was deferred for approval, then the "We hit a bug" message appears. The log file reports that a "No such file or directory error" occured. Here is the traceback: Apr 27 16:27:10 2001 admin(18607): @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ admin(18607): [----- Mailman Version: 2.0.4 -----] admin(18607): [----- Traceback ------] admin(18607): Traceback (innermost last): admin(18607): File "/home/mail/scripts/driver", line 96, in run_main admin(18607): main() admin(18607): File "/home/mail/Mailman/Cgi/subscribe.py", line 55, in main admin(18607): mlist.Save() admin(18607): File "/home/mail/Mailman/MailList.py", line 860, in Save admin(18607): self.CheckHTMLArchiveDir() admin(18607): File "/home/mail/Mailman/Archiver/Archiver.py", line 256, in Che ckHTMLArchiveDir admin(18607): makelink(privdir, pubdir) admin(18607): File "/home/mail/Mailman/Archiver/Archiver.py", line 42, in make link admin(18607): os.symlink(old, new) admin(18607): OSError: [Errno 2] No such file or directory admin(18607): [----- Python Information -----] One other piece of information, if you go to the mailman/admin page, it will list any new mailing lists I create, but it doesn't list the old one. Does anyone have any ideas on where I should check?
![](https://secure.gravatar.com/avatar/e7b78111bb5055e8ff9d0edf37aa3040.jpg?s=120&d=mm&r=g)
I think I found the problem. I didn't make a mailman user in my new installation, used my existing user "mail" and set up a /home/mail/ directory. Unfortunately, when doing a grep for "/home/mailman/", I see the the mailing list's config.db is still pointing to the old directory structure. Could anyone tell me how to update that? On Fri, 27 Apr 2001 16:32:51 -0400, Daniel Einspanjer wrote: I'm having a problem with mailman 2.04 running with exim and apache on a mandrake distro. Fortunately, it is no longer the standard hard link problem. :) I read the FAQ and the README.LINUX and ran the secure_linux fix. One thing that took me a bit to figure out is that you have to run that script with a -f. If you don't, it outputs some information, but it doesn't actually output a usage line telling you it didn't run properly. When it didn't fix my problem, I went looking in the file and discovered the -f requirement. :) Anyway.. my problem is that I used to have mailman running on a redhat 6.2 distro and I copied the entire home directory over to the mandrake side. I downloaded the latest mailman and installed it over that. After a few tweaks and such, I've got newly created lists to work fine, but my old list cannot be administered. It hangs if you go to .../admin/listname . The listinfo/listname page comes up, but if you try to add your name to the list, the results page comes up with the message stating that the subscription was deferred for approval, then the "We hit a bug" message appears. The log file reports that a "No such file or directory error" occured. Here is the traceback: Apr 27 16:27:10 2001 admin(18607): @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ admin(18607): [----- Mailman Version: 2.0.4 -----] admin(18607): [----- Traceback ------] admin(18607): Traceback (innermost last): admin(18607): File "/home/mail/scripts/driver", line 96, in run_main admin(18607): main() admin(18607): File "/home/mail/Mailman/Cgi/subscribe.py", line 55, in main admin(18607): mlist.Save() admin(18607): File "/home/mail/Mailman/MailList.py", line 860, in Save admin(18607): self.CheckHTMLArchiveDir() admin(18607): File "/home/mail/Mailman/Archiver/Archiver.py", line 256, in Che ckHTMLArchiveDir admin(18607): makelink(privdir, pubdir) admin(18607): File "/home/mail/Mailman/Archiver/Archiver.py", line 42, in make link admin(18607): os.symlink(old, new) admin(18607): OSError: [Errno 2] No such file or directory admin(18607): [----- Python Information -----] One other piece of information, if you go to the mailman/admin page, it will list any new mailing lists I create, but it doesn't list the old one. Does anyone have any ideas on where I should check? ------------------------------------------------------ Mailman-Users maillist - Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users
![](https://secure.gravatar.com/avatar/3744bbfcb703bf1b3e473fd93e0c013c.jpg?s=120&d=mm&r=g)
Daniel Einspanjer wrote:
I think I found the problem. I didn't make a mailman user in my new installation, used my existing user "mail" and set up a /home/mail/ directory. Unfortunately, when doing a grep for "/home/mailman/", I see the the mailing list's config.db is still pointing to the old directory structure. Could anyone tell me how to update that?
bin/move_list
AMK4
-- W | | I haven't lost my mind; it's backed up on tape somewhere. |____________________________________________________________________
Ashley M. Kirchner <mailto:ashley@pcraft.com> . 303.442.6410 x130
SysAdmin / Websmith . 800.441.3873 x130
Photo Craft Laboratories, Inc. . eFax 248.671.0909
http://www.pcraft.com . 3550 Arapahoe Ave #6
.................. . . . . Boulder, CO 80303, USA
![](https://secure.gravatar.com/avatar/e7b78111bb5055e8ff9d0edf37aa3040.jpg?s=120&d=mm&r=g)
I tried that, but the move_list program hangs as well. I can only assume it is reading that bad directory and failing?
I'm going to try to create a symlinked structure and see if it can run then. Any further ideas would be greatly appreciated.
Daniel
On Fri, 27 Apr 2001 15:13:22 -0600, Ashley M. Kirchner wrote: Daniel Einspanjer wrote:
I think I found the problem. I didn't make a mailman user in my new installation, used my existing user "mail" and set up a /home/mail/ directory. Unfortunately, when doing a grep for "/home/mailman/", I see the the mailing list's config.db is still pointing to the old directory structure. Could anyone tell me how to update that?
bin/move_list
AMK4
-- W | | I haven't lost my mind; it's backed up on tape somewhere. |____________________________________________________________________ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Ashley M. Kirchner <mailto:ashley@pcraft.com> . 303.442.6410 x130 SysAdmin / Websmith . 800.441.3873 x130 Photo Craft Laboratories, Inc. . eFax 248.671.0909 http://www.pcraft.com . 3550 Arapahoe Ave #6 .................. . . . . Boulder, CO 80303, USA
![](https://secure.gravatar.com/avatar/3744bbfcb703bf1b3e473fd93e0c013c.jpg?s=120&d=mm&r=g)
Daniel Einspanjer wrote:
I tried that, but the move_list program hangs as well. I can only assume it is reading that bad directory and failing? I'm going to try to create a symlinked structure and see if it can run then. Any further ideas would be greatly appreciated.
Synlinks have nothing to do with it as it does not try to read the old (bad) directory. If your lists are large, it will sit there for a while. Check your lists first, make sure they're okay:
bin/check_db <list>
then run the move
bin/move_list <list>
AMK4
-- W | | I haven't lost my mind; it's backed up on tape somewhere. |____________________________________________________________________
Ashley M. Kirchner <mailto:ashley@pcraft.com> . 303.442.6410 x130
SysAdmin / Websmith . 800.441.3873 x130
Photo Craft Laboratories, Inc. . eFax 248.671.0909
http://www.pcraft.com . 3550 Arapahoe Ave #6
.................. . . . . Boulder, CO 80303, USA
![](https://secure.gravatar.com/avatar/e7b78111bb5055e8ff9d0edf37aa3040.jpg?s=120&d=mm&r=g)
move_list did in fact fix my problem.
Some notes to anyone in the future running into problems with move_list, make sure you clear out any stale lock files before you run it. It will just sit and wait for the locks to clear if you don't.
Daniel
On Fri, 27 Apr 2001 15:13:22 -0600, Ashley M. Kirchner wrote: Daniel Einspanjer wrote:
I think I found the problem. I didn't make a mailman user in my new installation, used my existing user "mail" and set up a /home/mail/ directory. Unfortunately, when doing a grep for "/home/mailman/", I see the the mailing list's config.db is still pointing to the old directory structure. Could anyone tell me how to update that?
bin/move_list
AMK4
-- W | | I haven't lost my mind; it's backed up on tape somewhere. |____________________________________________________________________ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Ashley M. Kirchner <mailto:ashley@pcraft.com> . 303.442.6410 x130 SysAdmin / Websmith . 800.441.3873 x130 Photo Craft Laboratories, Inc. . eFax 248.671.0909 http://www.pcraft.com . 3550 Arapahoe Ave #6 .................. . . . . Boulder, CO 80303, USA
![](https://secure.gravatar.com/avatar/2f8c4ab510f5ffd1a03a6d85d6083503.jpg?s=120&d=mm&r=g)
On Fri, Apr 27, 2001 at 05:09:45PM -0400, Daniel Einspanjer wrote:
Didn't you get this?
chef:/var/local/mailman/bin$ ./securelinux_fix.py Fixes for running Mailman under the `secure-linux' patch.
(...)
If you have to run check_perms -f, make sure to also run securelinux_fix.py -f, which applies the necessary permission fixes.
Is it the word wrap in the wrong place that caused you to miss it?
As for move_list hanging, yes, since you used mailman without the securelinux_fix a few times, it failed to completely create symlinks and ended up failing in the middle, leaving a half made link behind it.
Marc
Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | Finger marc_f@merlins.org for PGP key
![](https://secure.gravatar.com/avatar/e7b78111bb5055e8ff9d0edf37aa3040.jpg?s=120&d=mm&r=g)
I think I found the problem. I didn't make a mailman user in my new installation, used my existing user "mail" and set up a /home/mail/ directory. Unfortunately, when doing a grep for "/home/mailman/", I see the the mailing list's config.db is still pointing to the old directory structure. Could anyone tell me how to update that? On Fri, 27 Apr 2001 16:32:51 -0400, Daniel Einspanjer wrote: I'm having a problem with mailman 2.04 running with exim and apache on a mandrake distro. Fortunately, it is no longer the standard hard link problem. :) I read the FAQ and the README.LINUX and ran the secure_linux fix. One thing that took me a bit to figure out is that you have to run that script with a -f. If you don't, it outputs some information, but it doesn't actually output a usage line telling you it didn't run properly. When it didn't fix my problem, I went looking in the file and discovered the -f requirement. :) Anyway.. my problem is that I used to have mailman running on a redhat 6.2 distro and I copied the entire home directory over to the mandrake side. I downloaded the latest mailman and installed it over that. After a few tweaks and such, I've got newly created lists to work fine, but my old list cannot be administered. It hangs if you go to .../admin/listname . The listinfo/listname page comes up, but if you try to add your name to the list, the results page comes up with the message stating that the subscription was deferred for approval, then the "We hit a bug" message appears. The log file reports that a "No such file or directory error" occured. Here is the traceback: Apr 27 16:27:10 2001 admin(18607): @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ admin(18607): [----- Mailman Version: 2.0.4 -----] admin(18607): [----- Traceback ------] admin(18607): Traceback (innermost last): admin(18607): File "/home/mail/scripts/driver", line 96, in run_main admin(18607): main() admin(18607): File "/home/mail/Mailman/Cgi/subscribe.py", line 55, in main admin(18607): mlist.Save() admin(18607): File "/home/mail/Mailman/MailList.py", line 860, in Save admin(18607): self.CheckHTMLArchiveDir() admin(18607): File "/home/mail/Mailman/Archiver/Archiver.py", line 256, in Che ckHTMLArchiveDir admin(18607): makelink(privdir, pubdir) admin(18607): File "/home/mail/Mailman/Archiver/Archiver.py", line 42, in make link admin(18607): os.symlink(old, new) admin(18607): OSError: [Errno 2] No such file or directory admin(18607): [----- Python Information -----] One other piece of information, if you go to the mailman/admin page, it will list any new mailing lists I create, but it doesn't list the old one. Does anyone have any ideas on where I should check? ------------------------------------------------------ Mailman-Users maillist - Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users
![](https://secure.gravatar.com/avatar/3744bbfcb703bf1b3e473fd93e0c013c.jpg?s=120&d=mm&r=g)
Daniel Einspanjer wrote:
I think I found the problem. I didn't make a mailman user in my new installation, used my existing user "mail" and set up a /home/mail/ directory. Unfortunately, when doing a grep for "/home/mailman/", I see the the mailing list's config.db is still pointing to the old directory structure. Could anyone tell me how to update that?
bin/move_list
AMK4
-- W | | I haven't lost my mind; it's backed up on tape somewhere. |____________________________________________________________________
Ashley M. Kirchner <mailto:ashley@pcraft.com> . 303.442.6410 x130
SysAdmin / Websmith . 800.441.3873 x130
Photo Craft Laboratories, Inc. . eFax 248.671.0909
http://www.pcraft.com . 3550 Arapahoe Ave #6
.................. . . . . Boulder, CO 80303, USA
![](https://secure.gravatar.com/avatar/e7b78111bb5055e8ff9d0edf37aa3040.jpg?s=120&d=mm&r=g)
I tried that, but the move_list program hangs as well. I can only assume it is reading that bad directory and failing?
I'm going to try to create a symlinked structure and see if it can run then. Any further ideas would be greatly appreciated.
Daniel
On Fri, 27 Apr 2001 15:13:22 -0600, Ashley M. Kirchner wrote: Daniel Einspanjer wrote:
I think I found the problem. I didn't make a mailman user in my new installation, used my existing user "mail" and set up a /home/mail/ directory. Unfortunately, when doing a grep for "/home/mailman/", I see the the mailing list's config.db is still pointing to the old directory structure. Could anyone tell me how to update that?
bin/move_list
AMK4
-- W | | I haven't lost my mind; it's backed up on tape somewhere. |____________________________________________________________________ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Ashley M. Kirchner <mailto:ashley@pcraft.com> . 303.442.6410 x130 SysAdmin / Websmith . 800.441.3873 x130 Photo Craft Laboratories, Inc. . eFax 248.671.0909 http://www.pcraft.com . 3550 Arapahoe Ave #6 .................. . . . . Boulder, CO 80303, USA
![](https://secure.gravatar.com/avatar/3744bbfcb703bf1b3e473fd93e0c013c.jpg?s=120&d=mm&r=g)
Daniel Einspanjer wrote:
I tried that, but the move_list program hangs as well. I can only assume it is reading that bad directory and failing? I'm going to try to create a symlinked structure and see if it can run then. Any further ideas would be greatly appreciated.
Synlinks have nothing to do with it as it does not try to read the old (bad) directory. If your lists are large, it will sit there for a while. Check your lists first, make sure they're okay:
bin/check_db <list>
then run the move
bin/move_list <list>
AMK4
-- W | | I haven't lost my mind; it's backed up on tape somewhere. |____________________________________________________________________
Ashley M. Kirchner <mailto:ashley@pcraft.com> . 303.442.6410 x130
SysAdmin / Websmith . 800.441.3873 x130
Photo Craft Laboratories, Inc. . eFax 248.671.0909
http://www.pcraft.com . 3550 Arapahoe Ave #6
.................. . . . . Boulder, CO 80303, USA
![](https://secure.gravatar.com/avatar/e7b78111bb5055e8ff9d0edf37aa3040.jpg?s=120&d=mm&r=g)
move_list did in fact fix my problem.
Some notes to anyone in the future running into problems with move_list, make sure you clear out any stale lock files before you run it. It will just sit and wait for the locks to clear if you don't.
Daniel
On Fri, 27 Apr 2001 15:13:22 -0600, Ashley M. Kirchner wrote: Daniel Einspanjer wrote:
I think I found the problem. I didn't make a mailman user in my new installation, used my existing user "mail" and set up a /home/mail/ directory. Unfortunately, when doing a grep for "/home/mailman/", I see the the mailing list's config.db is still pointing to the old directory structure. Could anyone tell me how to update that?
bin/move_list
AMK4
-- W | | I haven't lost my mind; it's backed up on tape somewhere. |____________________________________________________________________ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Ashley M. Kirchner <mailto:ashley@pcraft.com> . 303.442.6410 x130 SysAdmin / Websmith . 800.441.3873 x130 Photo Craft Laboratories, Inc. . eFax 248.671.0909 http://www.pcraft.com . 3550 Arapahoe Ave #6 .................. . . . . Boulder, CO 80303, USA
![](https://secure.gravatar.com/avatar/2f8c4ab510f5ffd1a03a6d85d6083503.jpg?s=120&d=mm&r=g)
On Fri, Apr 27, 2001 at 05:09:45PM -0400, Daniel Einspanjer wrote:
Didn't you get this?
chef:/var/local/mailman/bin$ ./securelinux_fix.py Fixes for running Mailman under the `secure-linux' patch.
(...)
If you have to run check_perms -f, make sure to also run securelinux_fix.py -f, which applies the necessary permission fixes.
Is it the word wrap in the wrong place that caused you to miss it?
As for move_list hanging, yes, since you used mailman without the securelinux_fix a few times, it failed to completely create symlinks and ended up failing in the middle, leaving a half made link behind it.
Marc
Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | Finger marc_f@merlins.org for PGP key
participants (3)
-
Ashley M. Kirchner
-
Daniel Einspanjer
-
Marc MERLIN