New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird systemctl status phpX.Y-fpm output on Ubuntu 22.04 #10204
Comments
can reproduce on 22.04 indeed not on 22.10. |
I just had a look to https://packages.ubuntu.com/jammy/amd64/php8.1-fpm and the php-fpm.service in it looks like
So this is completely custom unit file in no way related to what we supply as sort of template in https://github.com/php/php-src/blob/master/sapi/fpm/php-fpm.service.in . So this should be really reported to https://github.com/oerdnj/deb.sury.org as there's nothing we can do about this upstream. |
@bukka I fail to see what the unit file has to do with it. Especially since the files are exactly the same on the other Ubuntu releases where the issue does not occur. It seems to me that there might be something wrong with how the process titles are reported to systemd. But that's just a guess. In any event, I downloaded the PHP source (master branch), compiled it myself, and started a service using the unit file generated by the build process. The result: the quotation marks also occur. |
Ok I was just thinking that it might be related to the unit file somehow as the issue dissappeared in 22.10 but it might be more likely something related to systemd (maybe some bug that got fixed later) and potentially the process title. Anyway it needs some investigation so re-opening. |
Is this issue simply cosmetic? The quotations caused quite a bit of head scratching when we updated to 22.04. |
I found that it also happens with redis-server on Ubuntu 22.04. So it might not be PHP's fault, but a systemd issue. No idea if it's purely cosmetic or if there is something more to it. I still think someone should have a look at this. As far as I can tell, the issue is provoked somewhere in |
After some further investigation I am now relatively convinced that this is a cosmetic issue. If you inspect
I wonder what happens if the process title is longer than the original argv string, tho... 🤔 |
I think there were potentially some changes in kernel cmdline implementation that got later changed back. It seems to me like that happened a bit earlier though but something likely changed back - one of the related commits is maybe torvalds/linux@3d71254 but I haven't looked too deeply into this. In any case it seems that the issue is no longer present in the later versions. I think that 22.04 got also updated so it would be great if someone could verify if it's still present? If so, could you please provide your kernel version? I tested on Fedora 39 (kernel-6.7.11) as well as Ubuntu 20.04 (kernel 5.15.0) and not able to recreate it. As noted this won't be PHP specific and don't think it's worth of my time to look into it more if it's temporary kernel thing. |
Still present 7.4.
Gonna try removing them and install clean version and check if does the trick. P.S. Reinstalling didn't solve it still seeing quotes in php7.4-fpm status. |
Description
On Ubuntu 22.04,
systemctl status phpX.Y-fpm.service
shows the following weird output:I am not really sure what this is, but I don't think it's supposed to print all these quotation marks. It didn't happen on earlier LTS versions of Ubuntu. Maybe it is related to the systemd version that ships with Ubuntu 22.04 (which is 249.11). The same thing happens with packages from Ondřej Surýs PPA.
Steps to reproduce:
sudo apt install php8.1-fpm
systemctl status php8.1-fpm.service
PHP Version
8.* and 7.4
Operating System
Ubuntu 22.04
The text was updated successfully, but these errors were encountered: