Skip to content

Instantly share code, notes, and snippets.

View tsabat's full-sized avatar

Tim Sabat tsabat

View GitHub Profile
(doula)vagrant@vagrant-oneiric:~/doula/src/bambino$ bt 19197
u'{"status": "ok", "payload": {"applications": [], "errors": [{"path": "/tmp/webapp/webapp1", "exception": "text: \'module\' object has no attribute \'poll\', traceback: [(\'/home/vagrant/doula/src/bambino/bambino/appenv.py\', 22, \'repo_data\', \'repos.append(repo.to_dict)\'), (\'/home/vagrant/doula/src/gitpython/git/util.py\', 352, \'__getattr__\', \'return object.__getattribute__(self, attr)\'), (\'/home/vagrant/doula/src/bambino/bambino/appenv.py\', 110, \'to_dict\', \\"out = dict(self.repo_app.to_dict(\'app\').items() + self.repo_config.to_dict(\'config\').items())\\"), (\'/home/vagrant/doula/src/bambino/bambino/appenv.py\', 75, \'to_dict\', \\"out[\'is_dirty_%s\' % postfix] = self.is_dirty\\"), (\'/home/vagrant/doula/src/bambino/bambino/appenv.py\', 61, \'is_dirty\', \'return self.repo.is_dirty()\'), (\'/home/vagrant/doula/src/gitpython/git/db/cmd/base.py\', 652, \'is_dirty\', \\"len(self.git.diff(\'HEAD\', \'--cached\', *default_args)):\\"),
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote [email protected]:CodePen/CPOR.git master"
command finished in 2246ms
* executing "if [ -d /opt/webapp/codepen/shared/cached-copy ]; then cd /opt/webapp/codepen/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard e377c76300a03a48fce4fc74b6cef9eb621bc989 && git clean -q -d -x -f; else git clone -q [email protected]:CodePen/CPOR.git /opt/webapp/codepen/shared/cached-copy && cd /opt/webapp/codepen/shared/cached-copy && git checkout -q -b deploy e377c76300a03a48fce4fc74b6cef9eb621bc989; fi"
servers: ["33.33.33.10"]
[33.33.33.10] executing command

#Problem

Can't make pyramid_ldap connect. We've tried several combinations of LDAP queries, and settled on this. It still yields

Invalid Credentials

Can you look over the auth in this project and tell me if you see anything glaringly wrong?

The traceback

@tsabat
tsabat / gist:2654762
Created May 10, 2012 17:58
invalid_creds
2012-05-08 20:25:32,387 ERROR [waitress][Dummy-2] Exception when serving /login
Traceback (most recent call last):
File "/home/vagrant/doula/local/lib/python2.7/site-packages/waitress/channel.py", line 329, in service
task.service()
File "/home/vagrant/doula/local/lib/python2.7/site-packages/waitress/task.py", line 173, in service
self.execute()
File "/home/vagrant/doula/local/lib/python2.7/site-packages/waitress/task.py", line 380, in execute
app_iter = self.channel.server.application(env, start_response)
File "/home/vagrant/doula/local/lib/python2.7/site-packages/pyramid/router.py", line 187, in __call__
response = self.handle_request(request)
@tsabat
tsabat / Fullpage.html
Created May 11, 2012 18:07
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CodePen &middot; A Pen by tsabat</title>
</head>
@tsabat
tsabat / Fullpage.html
Created May 11, 2012 18:07
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CodePen &middot; A Pen by tsabat</title>
</head>
@tsabat
tsabat / Fullpage.html
Created May 11, 2012 18:07
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CodePen &middot; A Pen by tsabat</title>
</head>
@tsabat
tsabat / Fullpage.html
Created May 11, 2012 18:07
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CodePen &middot; A Pen by tsabat</title>
</head>
Traceback (most recent call last):
File "/Users/timsabat/Sites/thewall/bin/retools-worker", line 8, in <module>
load_entry_point('retools==0.2', 'console_scripts', 'retools-worker')()
File "/Users/timsabat/Sites/thewall/lib/python2.7/site-packages/retools/queue.py", line 530, in run_worker
worker.work(interval=options.interval, blocking=options.blocking)
File "/Users/timsabat/Sites/thewall/lib/python2.7/site-packages/retools/queue.py", line 359, in work
self.startup()
File "/Users/timsabat/Sites/thewall/lib/python2.7/site-packages/retools/queue.py", line 445, in startup
self.register_worker()
File "/Users/timsabat/Sites/thewall/lib/python2.7/site-packages/retools/queue.py", line 430, in register_worker

The problem was that ec2 requires dsa keys and we were using rsa keys. Also, I needed to put your keys in the authorized_keys file.

###Steps:

Create your DSA keys:

ssh-keygen -b 1024 -t dsa

Copy your dsa pub key