Bug #77016 [NEW]: Pool fails if user login name changes
From: hello at digitalnature dot eu
Operating system: Ubuntu 18 (server)
PHP version: Irrelevant
Package: FPM related
Bug Type: Bug
Bug description:Pool fails if user login name changes
Description:
------------
My setup:
PHP 5.6 and 7.2
Ubuntu Server 18.04.1
Nginx 1.14
When I create a new user, and set up the necessary .conf files,
everything works fine.
But if I want to change the user login name (with usermod --login ...),
I get an error telling me that the user is used by another process.
Obviously php-fpm.
Makes sense. But if I stop the php-fpm services, then rename the user
login name, then restart the services, then php-fpm gives me an error
telling me that it cannot get the gid for the new user login.
ERROR: [pool sample6] cannot get uid for user 'sample6'
So basically I have no way of renaming the user login without breaking
PHP.
Is there a workaround around this?
Is php-fpm storing guid somewhere? Why php-fpm cannot get the guid of an
existing user at runtime instead?
--
Edit bug report at https://bugs.php.net/bug.php?id=77016&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77016&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77016&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77016&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77016&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77016&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77016&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77016&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77016&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77016&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77016&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77016&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77016&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77016&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77016&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77016&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77016&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77016&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77016&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77016&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77016&r=mysqlcfg
Thread (4 messages)
- hello at digitalnature dot eu