This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Internal Server Error | |
Traceback: | |
Traceback (most recent call last): | |
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/sync.py", line 131, in handle_request | |
respiter = self.wsgi(environ, resp.start_response) | |
File "/usr/local/lib/python2.7/dist-packages/newrelic-2.18.1.15/newrelic/api/web_transaction.py", line 853, in __call__ | |
result = application(environ, _start_response) | |
File "/usr/local/lib/python2.7/dist-packages/newrelic-2.18.1.15/newrelic/api/function_trace.py", line 95, in literal_wrapper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rogaha@Robertos-MacBook-Pro:~/development/rogaha/docker-io$ curl -I blog.docker.com 12:53:12 ☁ master ☂ ✭ | |
HTTP/1.1 200 OK | |
Server: Apache | |
X-Pingback: http://blog.docker.com/xmlrpc.php | |
X-Frame-Options: SAMEORIGIN | |
X-XSS-Protection: 1; mode=block | |
X-Content-Type-Options: nosniff” | |
Vary: Accept-Encoding | |
Content-Type: text/html; charset=UTF-8 | |
X-Cacheable: YES:Forced |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
┌─<vagrant @ vagrant-ubuntu-raring-64 in ~> | |
└─<>──» dig go-stage.docker.com 0 < 20:31:44 | |
; <<>> DiG 9.9.2-P1 <<>> go-stage.docker.com | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 5119 | |
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1 | |
;; OPT PSEUDOSECTION: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in get_response | |
response = wrapped_callback(request, *callback_args, **callback_kwargs) | |
File "/usr/local/lib/python2.7/dist-packages/newrelic-2.18.1.15/newrelic/hooks/framework_django.py", line 492, in wrapper | |
return wrapped(*args, **kwargs) | |
File "/usr/local/lib/python2.7/dist-packages/annoying/decorators.py", line 74, in wrapper | |
output = function(request, *args, **kwargs) | |
File "/home/docker/docker_com/docker_com/pages/views.py", line 435, in team | |
docker_team = TeamMember.objects.docker_team() | |
File "/home/docker/docker_com/docker_com/pages/managers.py", line 122, in docker_team |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: | |
var _gaq = _gaq || []; | |
_gaq.push(['_setAccount', 'UA-6096819-11']); | |
_gaq.push(['_trackPageview']); | |
_gaq.push(['_setCustomVar', 1, 'user_id', '873', 2]); _gaq.push(['_trackPageLoadTime']); | |
(function() { | |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd docker_com && python manage.py test | |
/home/ubuntu/virtualenvs/venv-system/local/lib/python2.7/site-packages/dotenv.py:16: UserWarning: not reading .env - it doesn't exist. | |
warnings.warn("not reading %s - it doesn't exist." % dotenv) | |
[warning]: Unable to configure caching, defaulting to local memorycache | |
Creating test database for alias 'default'... | |
...Flushing all the things!! | |
Cache flushed. | |
...................application/json | |
. | |
---------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python docker_com/manage.py test --settings=docker_com.settings.test | |
Traceback (most recent call last): | |
File "docker_com/manage.py", line 8, in <module> | |
dotenv.read_dotenv('.env_test') | |
File "/home/ubuntu/virtualenvs/venv-system/local/lib/python2.7/site-packages/dotenv.py", line 18, in read_dotenv | |
for k, v in parse_dotenv(dotenv): | |
File "/home/ubuntu/virtualenvs/venv-system/local/lib/python2.7/site-packages/dotenv.py", line 22, in parse_dotenv | |
for line in open(dotenv): | |
IOError: [Errno 2] No such file or directory: '.env_test' python docker_com/manage.py test --settings=docker_com.settings.test returned exit code 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE metrics ( | |
id SERIAL NOT NULL, | |
created_at TIMESTAMP WITHOUT TIME ZONE NOT NULL, | |
name VARCHAR(256) NOT NULL, | |
value_s VARCHAR(256), | |
value_i INTEGER, | |
PRIMARY KEY (id) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CrunchedMetricModel(models.Model): | |
id = models.AutoField(primary_key=True) | |
created_at = models.DateField() | |
name = models.CharField(max_length=256) | |
value_s = models.CharField(max_length=256, blank=True) | |
value_i = models.IntegerField(max_length=11, blank=True) | |
class Meta: | |
app_label = 'api' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# URL FORMAT = 'postgresql+psycopg2://user:pass@localhost:port/db_name' | |
metrics_web_db_url = os.environ['METRICS_WEB_DB_URL'] | |
engine_metrics_web_db = create_engine(metrics_web_db_url, echo=True) | |
session_metrics_web_db = scoped_session(sessionmaker(bind=engine_metrics_db)) | |
Base = declarative_base() | |
Error = SQLAlchemyError | |
class Metric(Base): |