Code Monkey home page Code Monkey logo

gitlab-webhook-branch-deployer's People

Contributors

vinodc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gitlab-webhook-branch-deployer's Issues

TypeError: execv() argument 1 must be encoded string without NULL bytes, not str

I'm not sure if anyone is still watching this, but I've run into an issue and I'm still not very good with Python.

python /opt/hookhandler/gitlab-webhook.py --port 8000 git@<removed> /media/gitrepo/
April 16 21:28:29 INFO Starting HTTP Server at 0.0.0.0:8000.
April 16 21:28:48 INFO Received POST request.
<removed> - - [16/Apr/2014 21:28:48] "POST / HTTP/1.1" 200 -
April 16 21:28:48 DEBUG Running command: git clone --depth 1 -o origin -b master git@<removed>/test.git master
----------------------------------------
Exception happened during processing of request from ('<removed>', 58697)
Traceback (most recent call last):
  File "/usr/lib64/python2.6/SocketServer.py", line 293, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib64/python2.6/SocketServer.py", line 319, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib64/python2.6/SocketServer.py", line 332, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib64/python2.6/SocketServer.py", line 627, in __init__
    self.handle()
  File "/usr/lib64/python2.6/BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "/usr/lib64/python2.6/BaseHTTPServer.py", line 323, in handle_one_request
    method()
  File "/opt/hookhandler/gitlab-webhook.py", line 62, in do_POST
    self.update_branch(branch_to_update)
  File "/opt/hookhandler/gitlab-webhook.py", line 84, in update_branch
    return self.add_branch(branch)
  File "/opt/hookhandler/gitlab-webhook.py", line 77, in add_branch
    (branch, repository, branch))
  File "/opt/hookhandler/gitlab-webhook.py", line 118, in run_command
    stderr=subprocess.STDOUT)
  File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.6/subprocess.py", line 1234, in _execute_child
    raise child_exception
TypeError: execv() argument 1 must be encoded string without NULL bytes, not str
----------------------------------------

Any help you might be able to provide would be great.

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.