On 7/28/20 10:51 PM, joseverde@gmail.com wrote:
Okay, I *think* I killed the processes. When I run
ps -fwwA|egrep 'master|runner'
I just get
root 7595 1 0 Jul26 ? 00:00:04 /usr/lib/postfix/sbin/master -w mailer 21851 21001 0 22:45 pts/1 00:00:00 grep -E --color=auto master|runner
Yes, there are no mailman processes running.
As far as the permissions, you asked does your systemd script set the user to the Mailman user? I don't know how to check that, but I saw many files in /var/lib/mailman3 were owned by a user named list. Last time I tried to run mailman status, it threw a permission error on mailman.cfg, which was owned by root. I changed owner to list, and it produced a different error. So I'm guessing we are on the right path? There was no mention of a user named mailman in the system before, but maybe I need to check something.
You are apparently using the Debian/Ubuntu packages. In those, the
Mailman user is list. There is no mailman user.
As far as what user the systemd script sets, just look at the script, but if it was installed by the Debian/Ubuntu package, it's probably OK. The script is named xxx.service where 'xxx' is the name you might use in systemctl commands (probably 'mailman3'). It should be at /etc/systemd/service/ or one of the subdirectories.
Lastly, I deleted everything in /var/lib/mailman3/locks.
However, running mailman status now throws this permission error
File "/usr/bin/mailman", line 11, in <module> load_entry_point('mailman==3.1.1', 'console_scripts', 'mailman')() File "/usr/lib/python3/dist-packages/mailman/bin/mailman.py", line 94, in main initialize(config_path) File "/usr/lib/python3/dist-packages/mailman/core/initialize.py", line 188, in initialize initialize_1(config_path) File "/usr/lib/python3/dist-packages/mailman/core/initialize.py", line 123, in initialize_1 mailman.config.config.load(config_path) File "/usr/lib/python3/dist-packages/mailman/config/config.py", line 107, in load self.push(filename, user_config.read()) File "/usr/lib/python3/dist-packages/mailman/config/config.py", line 113, in push self._post_process() File "/usr/lib/python3/dist-packages/mailman/config/config.py", line 125, in _post_process self.ensure_directories_exist() File "/usr/lib/python3/dist-packages/mailman/config/config.py", line 227, in ensure_directories_exist with Lock(lock_file): File "/usr/lib/python3/dist-packages/flufl/lock/_lockfile.py", line 334, in __enter__ self.lock() File "/usr/lib/python3/dist-packages/flufl/lock/_lockfile.py", line 203, in lock self._write() File "/usr/lib/python3/dist-packages/flufl/lock/_lockfile.py", line 417, in _write with open(self._claimfile, 'w') as fp: PermissionError: [Errno 13] Permission denied: '/var/lib/mailman3/locks/mailman-cfg.lck|[redacted server name]|21787|3720843219351355903'
That file was removed when you told me to clear the locks folder (I save a copy, however). So I'm stuck again. Sorry for all the questions and thanks very much for the help.
Does the list user own /var/lib/mailman3/ and
/var/lib/mailman3/locks/? Are you running mailman commands as user list?
Also see <https://wiki.list.org/x/12812344>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan