[Buildbot-devel] Trouble running sendchange from a CGI

Ben Gamble umeshiso at gmail.com
Fri Mar 16 03:05:44 UTC 2012


The short explanation is that I want to provide a simple service
through a web form, have my users fill in a few fields and submit.
The action script will do a little validation, then trigger a build
which will email them (and me) when it's done.

The script works great up until here:

cmd = [
    '/usr/bin/buildbot', 'sendchange',
    '-W', email,
    '-m', 'my.host.name:9989',
    '-a', 'myname:mypass',
]
print ' '.join(cmd), '<p>'
sys.stdout.flush()
subprocess.call(cmd)

I'm printing it out there so I can copy and paste the command text
from the results page into a shell, where it works like a champ,
including run as "sudo apache <paste>", which is the user apache is
running as.  subprocess.call(), however, yields this:

change NOT sent - something went wrong: [Failure instance: Traceback
(failure with no frames): : An error occurred while connecting: 13:
Permission denied. ]

Thinking it was permission to run the buildbot executable itself, I tried:

subprocess.call(['/usr/bin/buildbot', 'sendchange', '--help'])

which gives me the usage just fine.  Though now that I'm thinking
about it, Unix "permission denied" is 2.  13 is Python "permission
denied".  Anyway, I'm up to trying to figure out what I'm missing
permission *for*.  I am desperately grateful for any help you can
provide.

buildbot: 0.8.5
twisted: 8.2.0
python: 2.6.6
Apache: 2.2.15
CentOS: 6.2

-- 
Ben




More information about the devel mailing list