Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cannot run upapi or cpapi2 commands as reseller

Discussion in 'cPanel Developers' started by BlueSteam, May 12, 2016.

  1. BlueSteam

    BlueSteam Well-Known Member

    Joined:
    Feb 21, 2013
    Messages:
    53
    Likes Received:
    2
    Trophy Points:
    8
    cPanel Access Level:
    Reseller Owner
    Hello,

    Every time I run any command from the shell command line as a reseller I get the following error:

    I'm not sure what is wrong or what I am doing wrong. Any help would be appreciated.

    Thanks
    Brett
     
  2. cPTerrance

    cPTerrance *nix Technical Analyst II / Migrations Specialist
    Staff Member

    Joined:
    Jul 9, 2015
    Messages:
    74
    Likes Received:
    9
    Trophy Points:
    83
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    These commands are only meant to be ran as root. If you need to use the API as a reseller, you will need to generate a accesskey and call it manually.

    Edit to better clarify:

    You can run cpapi2/uapi2 as a user however, you can only specify --user= as root.
     
    #2 cPTerrance, May 13, 2016
    Last edited: May 13, 2016
    FCTW likes this.
  3. BlueSteam

    BlueSteam Well-Known Member

    Joined:
    Feb 21, 2013
    Messages:
    53
    Likes Received:
    2
    Trophy Points:
    8
    cPanel Access Level:
    Reseller Owner
    Thanks Terrance. I appreciate the reply. I thought i read somewhere that the api was able t be run by root and resellers. but if this is the way then I'll do that. :)
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you let us know the specific command you are using?

    Thank you.
     
Loading...

Share This Page