Comments (4)
If I add -u someuser to init script
PARAMS="-c ${CONFIGDIR}/config.ini -u someuser"
then I am getting:
PHP Warning: posix_getpwnam() expects parameter 1 to be string, array given in /usr/local/share/gearman-manager/GearmanManager.php on line 425
ERROR:
User (Array) not found.
If I add var_dump($opts['u']); I am getting
array(2) {
[0]=>
string(7) "gearman"
[1]=>
string(8) "someuser"
}
and finally if I start GearmanManager with -u switch e.g. sudo service gearman-manager start -u someuser
var_dump returns string(7) "gearman"
from gearmanmanager.
Finally
if(isset($opts['u'])){
$this->user = $opts['u'];
} elseif(isset($this->config["user"])){
$this->user = $this->config["user"];
}
var_dump($opts['u'], $this->config['user'], $this->user);
if having user=someuser in config.ini and starting GearmanManager with no -u switch I am getting
string(7) "gearman"
string(8) "someuser"
string(7) "gearman"
from gearmanmanager.
Can you try the current code to see if it is working for you now?
from gearmanmanager.
Works for me. No feedback from the user.
from gearmanmanager.
Related Issues (20)
- Call to undefined method Net_Gearman_Worker::connection_status()
- worker Child xxx died unexpectedly with exit code 255 HOT 1
- gearmand will stuck when client add multi server to request background job? HOT 1
- Website is unavailable HOT 1
- Usage example
- Undefined variable: child
- Errors with "pcntl_fork()" with PHP 7 HOT 2
- How to restart when GearmanManager run in the background HOT 1
- Add/Remove functions in Workers dir without restart HOT 1
- Seems to be missing install script on version >= 2 HOT 3
- How GearmanManager distributed tasks? HOT 1
- Kill child process HOT 1
- programmcode is not updated after detection of filechange HOT 2
- Question about -vvv Logs information about workers and the work they are doing HOT 1
- Where is the v1 branch? HOT 1
- Odd solution to workers not wanting to stop with SIGTERM HOT 9
- Hacky code HOT 2
- Missing composer check for Gearman Extension HOT 3
- Helper child exited with non-zero exit code 65280 HOT 3
- timeout is milliseconds in gearmand 1.1.19 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gearmanmanager.