Re: [Mailman-Users] Permission Denied Error after List Migration
Mark, many thanks for your detailed explanation! After Stephen's hint to use check_perms, I performed the migration on a second list, and it went through fine. :-) Kind regards, Sascha. 2014-08-09 2:56 GMT+02:00 Mark Sapiro : > On 08/06/2014 01:39 PM, Sascha Rissel wrote: > > Thanks, in fact I didn't think of that! > > > > Meanwhile I created the list on the target server anew, using "newlist" > > command. > > Afterwards I exported members and config from the old server and imported > > it into the new server's list: > >> list_members -o regular.lst -r > >> list_members -o digest.lst -d > >> config_list -o config.cfg > > > >> add_members -r regular.lst > >> add_members -d digest.lst > >> config_list -i config.cfg > > > This works, but you lose any non-default member options and member > passwords. It is easier and more complete to just move the > lists/list_name/config.pck from the old server to the new. > > > > Lastly I imported the archive via > >> /var/lib/mailman/bin/arch > > > This is good. > > > > Am I right, that this is also a proper way to migrate a list? > > > It works subject to the losses mentioned above. > > -- > Mark Sapiro The highway is for gamblers, > San Francisco Bay Area, Californiabetter use your sense - B. Dylan > -- > Mailman-Users mailing list Mailman-Users@python.org > https://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: > https://mail.python.org/mailman/options/mailman-users/mailman%40rissel.it > -- Mailman-Users mailing list Mailman-Users@python.org https://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: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Permission Denied Error after List Migration
On 08/06/2014 01:39 PM, Sascha Rissel wrote: > Thanks, in fact I didn't think of that! > > Meanwhile I created the list on the target server anew, using "newlist" > command. > Afterwards I exported members and config from the old server and imported > it into the new server's list: >> list_members -o regular.lst -r >> list_members -o digest.lst -d >> config_list -o config.cfg > >> add_members -r regular.lst >> add_members -d digest.lst >> config_list -i config.cfg This works, but you lose any non-default member options and member passwords. It is easier and more complete to just move the lists/list_name/config.pck from the old server to the new. > Lastly I imported the archive via >> /var/lib/mailman/bin/arch This is good. > Am I right, that this is also a proper way to migrate a list? It works subject to the losses mentioned above. -- Mark Sapiro The highway is for gamblers, San Francisco Bay Area, Californiabetter use your sense - B. Dylan -- Mailman-Users mailing list Mailman-Users@python.org https://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: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Permission Denied Error after List Migration
Many thanks, Stephen! 2014-08-07 8:43 GMT+02:00 Stephen J. Turnbull : > Sascha Rissel writes: > > > Thanks, in fact I didn't think of that! > > > > Meanwhile I created the list on the target server anew, using "newlist" > > command. > > Afterwards I exported members and config from the old server and > imported > > it into the new server's list: > > > list_members -o regular.lst -r > > > list_members -o digest.lst -d > > > config_list -o config.cfg > > > > > add_members -r regular.lst > > > add_members -d digest.lst > > > config_list -i config.cfg > > > > Lastly I imported the archive via > > > /var/lib/mailman/bin/arch > > I believe this works correctly (I assume that when "importing the > archive" you copied the mbox file to the right place). > > If everything seems to be working without permissions problems then > you should be OK. > > This is really not something I'm terribly expert in. However, Mark > Sapiro is on vacation so I did my best. I think he'll be back in a > week or two and you can get more help from him (or perhaps others on > this list) if something still doesn't seem right. > > Regards, > > -- Mailman-Users mailing list Mailman-Users@python.org https://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: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Permission Denied Error after List Migration
Sascha Rissel writes: > Thanks, in fact I didn't think of that! > > Meanwhile I created the list on the target server anew, using "newlist" > command. > Afterwards I exported members and config from the old server and imported > it into the new server's list: > > list_members -o regular.lst -r > > list_members -o digest.lst -d > > config_list -o config.cfg > > > add_members -r regular.lst > > add_members -d digest.lst > > config_list -i config.cfg > > Lastly I imported the archive via > > /var/lib/mailman/bin/arch I believe this works correctly (I assume that when "importing the archive" you copied the mbox file to the right place). If everything seems to be working without permissions problems then you should be OK. This is really not something I'm terribly expert in. However, Mark Sapiro is on vacation so I did my best. I think he'll be back in a week or two and you can get more help from him (or perhaps others on this list) if something still doesn't seem right. Regards, -- Mailman-Users mailing list Mailman-Users@python.org https://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: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Permission Denied Error after List Migration
Thanks, in fact I didn't think of that! Meanwhile I created the list on the target server anew, using "newlist" command. Afterwards I exported members and config from the old server and imported it into the new server's list: > list_members -o regular.lst -r > list_members -o digest.lst -d > config_list -o config.cfg > add_members -r regular.lst > add_members -d digest.lst > config_list -i config.cfg Lastly I imported the archive via > /var/lib/mailman/bin/arch Am I right, that this is also a proper way to migrate a list? 2014-08-06 8:38 GMT+02:00 Stephen J. Turnbull : > Sascha Rissel writes: > > > (N.B: All file permissions are set according to my previous server's, > but I > > also tried: "chown -R list.list /var/lib/mailman/lists/"" > > Try running the bin/check_perms script (or maybe it's checkperms). > The wrapper scripts may have a different idea from you about file > owners etc. > > > > Can you help me? > > > > Regards, > > Sascha. > > > > > Aug 05 19:53:33 2014 (21848) Failed config.pck write, retaining old > state. > > > [Errno 13] Permission denied: > > > '/var/lib/mailman/lists/rcworms-ah/config.pck.tmp.euve51864.serverprofi24.de.21848' > > > Aug 05 19:53:33 2014 admin(21848): > > > > > admin(21848): [- Mailman Version: 2.1.15 -] > > > admin(21848): [- Traceback --] > > > admin(21848): Traceback (most recent call last): > > > admin(21848): File "/var/lib/mailman/scripts/driver", line 112, in > > run_main > > > admin(21848): main() > > > admin(21848): File "/var/lib/mailman/Mailman/Cgi/admin.py", line > 227, > > in main > > > admin(21848): mlist.Save() > > > admin(21848): File "/var/lib/mailman/Mailman/MailList.py", line > 573, in > > Save > > > admin(21848): self.__save(dict) > > > admin(21848): File "/var/lib/mailman/Mailman/MailList.py", line > 528, in > > __save > > > admin(21848): fp = open(fname_tmp, 'w') > > > admin(21848): IOError: [Errno 13] Permission denied: > > > '/var/lib/mailman/lists/rcworms-ah/config.pck.tmp.euve51864.serverprofi24.de.21848' > > > admin(21848): [- Python Information -] > > > admin(21848): sys.version = 2.7.3 (default, Mar 13 2014, > 11:03:55) > > > [GCC 4.7.2] > > > admin(21848): sys.executable = /usr/bin/python > > > admin(21848): sys.prefix = /usr > > > admin(21848): sys.exec_prefix = /usr > > > admin(21848): sys.path= ['/var/lib/mailman/pythonlib', > > '/var/lib/mailman', '/usr/lib/mailman/scripts', '/var/lib/mailman', > > '/usr/lib/python2.7/', '/usr/lib/python2.7/plat-linux2', > > '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', > > '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages'] > > > admin(21848): sys.platform= linux2 > > > admin(21848): [- Environment Variables -] > > > admin(21848): HTTP_COOKIE: > > > admin(21848): SERVER_SOFTWARE: Apache > > > admin(21848): SCRIPT_NAME: /mailman/admin > > > admin(21848): SERVER_SIGNATURE: Apache Server at > > lists.euve51864.serverprofi24.de Port 80 > > > admin(21848): > > > admin(21848): REQUEST_METHOD: GET > > > admin(21848): PATH_INFO: /rcworms-ah > > > admin(21848): SERVER_PROTOCOL: HTTP/1.1 > > > admin(21848): QUERY_STRING: adminpw=AH_MAILAdmin > > > admin(21848): HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.3; WOW64; > > rv:31.0) Gecko/20100101 Firefox/31.0 > > > admin(21848): HTTP_CONNECTION: keep-alive > > > admin(21848): SERVER_NAME: lists.euve51864.serverprofi24.de > > > admin(21848): REMOTE_ADDR: 95.88.111.84 > > > admin(21848): PATH_TRANSLATED: > > /var/www/vhosts/default/htdocs/rcworms-ah > > > admin(21848): SERVER_PORT: 80 > > > admin(21848): SERVER_ADDR: 62.75.175.182 > > > admin(21848): DOCUMENT_ROOT: /var/www/vhosts/default/htdocs > > > admin(21848): PYTHONPATH: /var/lib/mailman > > > admin(21848): SCRIPT_FILENAME: /usr/lib/cgi-bin/mailman/admin > > > admin(21848): SERVER_ADMIN: webmas...@rc-worms.de > > > admin(21848): HTTP_DNT: 1 > > > admin(21848): HTTP_HOST: lists.euve51864.serverprofi24.de > > > admin(21848): REQUEST_URI: > > /mailman/admin/rcworms-ah?adminpw=AH_MAILAdmin > > > admin(21848): HTTP_ACCEPT: > > text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 > > > admin(21848): GATEWAY_INTERFACE: CGI/1.1 > > > admin(21848): REMOTE_PORT: 50425 > > > admin(21848): HTTP_ACCEPT_LANGUAGE: > > de-de,de;q=0.8,en-us;q=0.5,en;q=0.3 > > > admin(21848): HTTP_ACCEPT_ENCODING: gzip, deflate > > -- > > Mailman-Users mailing list Mailman-Users@python.org > > https://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/ >
[Mailman-Users] Permission Denied Error after List Migration
Sascha Rissel writes: > (N.B: All file permissions are set according to my previous server's, but I > also tried: "chown -R list.list /var/lib/mailman/lists/"" Try running the bin/check_perms script (or maybe it's checkperms). The wrapper scripts may have a different idea from you about file owners etc. > > Can you help me? > > Regards, > Sascha. > > > Aug 05 19:53:33 2014 (21848) Failed config.pck write, retaining old state. > > [Errno 13] Permission denied: > '/var/lib/mailman/lists/rcworms-ah/config.pck.tmp.euve51864.serverprofi24.de.21848' > > Aug 05 19:53:33 2014 admin(21848): > > > admin(21848): [- Mailman Version: 2.1.15 -] > > admin(21848): [- Traceback --] > > admin(21848): Traceback (most recent call last): > > admin(21848): File "/var/lib/mailman/scripts/driver", line 112, in > run_main > > admin(21848): main() > > admin(21848): File "/var/lib/mailman/Mailman/Cgi/admin.py", line 227, > in main > > admin(21848): mlist.Save() > > admin(21848): File "/var/lib/mailman/Mailman/MailList.py", line 573, in > Save > > admin(21848): self.__save(dict) > > admin(21848): File "/var/lib/mailman/Mailman/MailList.py", line 528, in > __save > > admin(21848): fp = open(fname_tmp, 'w') > > admin(21848): IOError: [Errno 13] Permission denied: > '/var/lib/mailman/lists/rcworms-ah/config.pck.tmp.euve51864.serverprofi24.de.21848' > > admin(21848): [- Python Information -] > > admin(21848): sys.version = 2.7.3 (default, Mar 13 2014, 11:03:55) > > [GCC 4.7.2] > > admin(21848): sys.executable = /usr/bin/python > > admin(21848): sys.prefix = /usr > > admin(21848): sys.exec_prefix = /usr > > admin(21848): sys.path= ['/var/lib/mailman/pythonlib', > '/var/lib/mailman', '/usr/lib/mailman/scripts', '/var/lib/mailman', > '/usr/lib/python2.7/', '/usr/lib/python2.7/plat-linux2', > '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', > '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages'] > > admin(21848): sys.platform= linux2 > > admin(21848): [- Environment Variables -] > > admin(21848): HTTP_COOKIE: > > admin(21848): SERVER_SOFTWARE: Apache > > admin(21848): SCRIPT_NAME: /mailman/admin > > admin(21848): SERVER_SIGNATURE: Apache Server at > lists.euve51864.serverprofi24.de Port 80 > > admin(21848): > > admin(21848): REQUEST_METHOD: GET > > admin(21848): PATH_INFO: /rcworms-ah > > admin(21848): SERVER_PROTOCOL: HTTP/1.1 > > admin(21848): QUERY_STRING: adminpw=AH_MAILAdmin > > admin(21848): HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.3; WOW64; > rv:31.0) Gecko/20100101 Firefox/31.0 > > admin(21848): HTTP_CONNECTION: keep-alive > > admin(21848): SERVER_NAME: lists.euve51864.serverprofi24.de > > admin(21848): REMOTE_ADDR: 95.88.111.84 > > admin(21848): PATH_TRANSLATED: > /var/www/vhosts/default/htdocs/rcworms-ah > > admin(21848): SERVER_PORT: 80 > > admin(21848): SERVER_ADDR: 62.75.175.182 > > admin(21848): DOCUMENT_ROOT: /var/www/vhosts/default/htdocs > > admin(21848): PYTHONPATH: /var/lib/mailman > > admin(21848): SCRIPT_FILENAME: /usr/lib/cgi-bin/mailman/admin > > admin(21848): SERVER_ADMIN: webmas...@rc-worms.de > > admin(21848): HTTP_DNT: 1 > > admin(21848): HTTP_HOST: lists.euve51864.serverprofi24.de > > admin(21848): REQUEST_URI: > /mailman/admin/rcworms-ah?adminpw=AH_MAILAdmin > > admin(21848): HTTP_ACCEPT: > text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 > > admin(21848): GATEWAY_INTERFACE: CGI/1.1 > > admin(21848): REMOTE_PORT: 50425 > > admin(21848): HTTP_ACCEPT_LANGUAGE: > de-de,de;q=0.8,en-us;q=0.5,en;q=0.3 > > admin(21848): HTTP_ACCEPT_ENCODING: gzip, deflate > -- > Mailman-Users mailing list Mailman-Users@python.org > https://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: > https://mail.python.org/mailman/options/mailman-users/stephen%40xemacs.org -- Mailman-Users mailing list Mailman-Users@python.org https://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: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org
[Mailman-Users] Permission Denied Error after List Migration
Hello, I just tried migrating a list from an old to a new server. Basically I copied /var/lib/mailman/lists/ and copied the private archive as well. Afterwards I - regenerated the archives using "/var/lib/mailman/bin/arch [listname]" and - fixed the urls with ""withlist -l -r fix_url [listname]"" When trying to login into the admin panel, I get "Bug in Mailman version 2.1.15" and in the logs there are the log entries found below: (N.B: All file permissions are set according to my previous server's, but I also tried: "chown -R list.list /var/lib/mailman/lists/"" Can you help me? Regards, Sascha. > Aug 05 19:53:33 2014 (21848) Failed config.pck write, retaining old state. > [Errno 13] Permission denied: '/var/lib/mailman/lists/rcworms-ah/config.pck.tmp.euve51864.serverprofi24.de.21848' > Aug 05 19:53:33 2014 admin(21848): > admin(21848): [- Mailman Version: 2.1.15 -] > admin(21848): [- Traceback --] > admin(21848): Traceback (most recent call last): > admin(21848): File "/var/lib/mailman/scripts/driver", line 112, in run_main > admin(21848): main() > admin(21848): File "/var/lib/mailman/Mailman/Cgi/admin.py", line 227, in main > admin(21848): mlist.Save() > admin(21848): File "/var/lib/mailman/Mailman/MailList.py", line 573, in Save > admin(21848): self.__save(dict) > admin(21848): File "/var/lib/mailman/Mailman/MailList.py", line 528, in __save > admin(21848): fp = open(fname_tmp, 'w') > admin(21848): IOError: [Errno 13] Permission denied: '/var/lib/mailman/lists/rcworms-ah/config.pck.tmp.euve51864.serverprofi24.de.21848' > admin(21848): [- Python Information -] > admin(21848): sys.version = 2.7.3 (default, Mar 13 2014, 11:03:55) > [GCC 4.7.2] > admin(21848): sys.executable = /usr/bin/python > admin(21848): sys.prefix = /usr > admin(21848): sys.exec_prefix = /usr > admin(21848): sys.path= ['/var/lib/mailman/pythonlib', '/var/lib/mailman', '/usr/lib/mailman/scripts', '/var/lib/mailman', '/usr/lib/python2.7/', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages'] > admin(21848): sys.platform= linux2 > admin(21848): [- Environment Variables -] > admin(21848): HTTP_COOKIE: > admin(21848): SERVER_SOFTWARE: Apache > admin(21848): SCRIPT_NAME: /mailman/admin > admin(21848): SERVER_SIGNATURE: Apache Server at lists.euve51864.serverprofi24.de Port 80 > admin(21848): > admin(21848): REQUEST_METHOD: GET > admin(21848): PATH_INFO: /rcworms-ah > admin(21848): SERVER_PROTOCOL: HTTP/1.1 > admin(21848): QUERY_STRING: adminpw=AH_MAILAdmin > admin(21848): HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0 > admin(21848): HTTP_CONNECTION: keep-alive > admin(21848): SERVER_NAME: lists.euve51864.serverprofi24.de > admin(21848): REMOTE_ADDR: 95.88.111.84 > admin(21848): PATH_TRANSLATED: /var/www/vhosts/default/htdocs/rcworms-ah > admin(21848): SERVER_PORT: 80 > admin(21848): SERVER_ADDR: 62.75.175.182 > admin(21848): DOCUMENT_ROOT: /var/www/vhosts/default/htdocs > admin(21848): PYTHONPATH: /var/lib/mailman > admin(21848): SCRIPT_FILENAME: /usr/lib/cgi-bin/mailman/admin > admin(21848): SERVER_ADMIN: webmas...@rc-worms.de > admin(21848): HTTP_DNT: 1 > admin(21848): HTTP_HOST: lists.euve51864.serverprofi24.de > admin(21848): REQUEST_URI: /mailman/admin/rcworms-ah?adminpw=AH_MAILAdmin > admin(21848): HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 > admin(21848): GATEWAY_INTERFACE: CGI/1.1 > admin(21848): REMOTE_PORT: 50425 > admin(21848): HTTP_ACCEPT_LANGUAGE: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3 > admin(21848): HTTP_ACCEPT_ENCODING: gzip, deflate -- Mailman-Users mailing list Mailman-Users@python.org https://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: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org