Code Monkey home page Code Monkey logo

Comments (4)

schkovich avatar schkovich commented on June 1, 2024

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.

schkovich avatar schkovich commented on June 1, 2024

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.

brianlmoon avatar brianlmoon commented on June 1, 2024

Can you try the current code to see if it is working for you now?

from gearmanmanager.

brianlmoon avatar brianlmoon commented on June 1, 2024

Works for me. No feedback from the user.

from gearmanmanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.