On 2021/05/07 08:34, Walddys Emmanuel Dorrejo Céspedes wrote:
Hello, from time to time i am having the next issue when restarting the services:
systemctl restart apache2.service php-fpm.service Failed to restart apache2.service: Unit var.mount is masked. Failed to restart php-fpm.service: Unit tmp.mount is masked.
now the status of masked services
systemctl status var.mount tmp.mount ● var.mount - /var Loaded: loaded (file is masked) Active: active (mounted) since Fri 2021-05-07 10:03:52 -05; 28min ago
May 07 10:03:52 localhost systemd[1]: Mounting /var... May 07 10:03:52 localhost systemd[1]: Mounted /var.
● tmp.mount - Temporary Directory (/tmp) Loaded: loaded (file is masked) Active: active (mounted) since Fri 2021-05-07 10:03:52 -05; 28min ago
this is the fstab: /dev/system/root / btrfs defaults 0 0 /dev/system/root /var btrfs subvol=/@/var 0 0
the only solution i found is restarting the whole server
--- Well, systemd is very much like Windows svchost, though I'd consider that a bug as well. I thought 'masked' simply meant that the service was under systemd's control. Even though systemd claims var+tmp are mounted, have you tried doing a restart on those services? What I'm wondering is if the squid service is trying something other than "systemctl" to restart var and tmp, since I've only seen the "masked" message when trying to restart some service via a SV5 script -- which usually means systemd has claimed responsibility for managing that service. What you might try looking in /usr/lib/systemd (?my systemd paths may not be current but...), I found the 'tmp.mount' service in there. Maybe try renaming that to tmp.mount- temporarily just to see if it makes a difference in the message. Oddly, systemd looks like it may regard services under some control other than systemd, as 'masked' as well, but that's not real clear. I take it you've reset both tmp.mount and var.mount manually and get no masked message? (if something I say about systemd sounds wrong, it probably is -- I'm not a systemd expert, to say the least). -linda