Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@harrywang
harrywang / gist:fc93b7f86bd9f9673af0
Created November 17, 2014 18:35
Model Loader Log
This file has been truncated, but you can view the full file.
roaming-217-62:OAE-model-loader harrywang$ node generate.js -b 1 -t tenant1 -u 100 to generate -g 200 to generate -c 1000 -d 100
Generating Batch 0
Generating users
Adding following
Generating groups
Adding group members
Generating content
Generating discussions
Generating folders
Warning: Not sufficient users available to fill folder membership (batch0-faust-ligaments-845 wanted 141 users)
WARN 13:27:28,521 Batch of prepared statements for [oae.ActivityStreams] is of size 3153741, exceeding specified threshold of 5120 by 3148621.
WARN 13:27:31,107 Batch of prepared statements for [oae.ActivityStreams] is of size 3071352, exceeding specified threshold of 5120 by 3066232.
WARN 13:27:33,548 Batch of prepared statements for [oae.ActivityStreams] is of size 3153729, exceeding specified threshold of 5120 by 3148609.
WARN 13:27:35,745 Batch of prepared statements for [oae.ActivityStreams] is of size 3182302, exceeding specified threshold of 5120 by 3177182.
WARN 13:27:43,558 Batch of prepared statements for [oae.ActivityStreams] is of size 3153467, exceeding specified threshold of 5120 by 3148347.
WARN 13:27:46,384 Batch of prepared statements for [oae.ActivityStreams] is of size 3071858, exceeding specified threshold of 5120 by 3066738.
WARN 13:27:48,568 Batch of prepared statements for [oae.ActivityStreams] is of size 3153591, exceeding specified threshold of 5120 by 3148471.
WARN 13:27:50,73
> [2014-11-17T18:35:52.816Z] WARN: oae-activity-buckets/1424 on roaming-217-62.host.udel.edu: Error collecting aggregate bucket (bucketNumber=0, type=activity)
> err: {
> "code": 500,
> "msg": "An error occurred executing a query"
> }
> [2014-11-17T18:35:52.816Z] ERROR: oae-activity-buckets/1424 on roaming-217-62.host.udel.edu: Error collecting buckets
> err: {
> "code": 500,
> "msg": "An error occurred executing a query"
> }
$ eb init
To get your AWS Access Key ID and Secret Access Key,
visit "https://aws-portal.amazon.com/gp/aws/securityCredentials".
Enter your AWS Access Key ID: xxx
Enter your AWS Secret Access Key: xxx
Select an AWS Elastic Beanstalk service region.
Available service regions are:
1) US East (Virginia)
2) US West (Oregon)
3) US West (North California)
@harrywang
harrywang / gist:7f78822ecd03453ddb3b
Created December 2, 2014 04:40
Hilary log for email service
[2014-12-02T04:30:42.043Z] INFO: oae/6501 on Harrys-MacBook-Pro.local: Starting OAE
[2014-12-02T04:30:42.125Z] INFO: oae-modules/6501 on Harrys-MacBook-Pro.local: Starting modules: oae-util, oae-logger, oae-telemetry, oae-tenants, oae-config, oae-authentication, oae-search, oae-discussions, oae-email, oae-folders, oae-following, oae-google-analytics, oae-library, oae-activity, oae-content, oae-messagebox, oae-preview-processor, oae-principals, oae-release-tools, oae-rest, oae-context, oae-tasklist, oae-authz, oae-doc, oae-tests, oae-tincanapi, oae-ui, oae-uservoice, oae-mediacore
[2014-12-02T04:30:42.255Z] WARN: signature/6501 on Harrys-MacBook-Pro.local:
You are using the default key to sign URLs, this is *NOT* secure and should be changed immediately.
The system will continue to function, but it is strongly recommended that you change your key.
[2014-12-02T04:30:42.255Z] INFO: oae-cleaner/6501 on Harrys-MacBook-Pro.local: Starting clean job. (interval=7200)
directory: /var/folders/5d/k8
@harrywang
harrywang / gist:1588e9e143f03a75deaf
Last active August 29, 2015 14:10
etherpad log
/etherpad-lite/bin/run.sh
Ensure that all dependencies are up to date... If this is the first time you have run Etherpad please be patient.
npm WARN package.json channels@0.0.4 No repository field.
npm WARN package.json async-stacktrace@0.0.2 No repository field.
npm WARN package.json tinycon@0.0.1 No repository field.
Ensure jQuery is downloaded and up to date...
Clear minfified cache...
Ensure custom css/js files are created...
Started Etherpad...
[2014-12-07 12:52:33.663] [INFO] console - Installed plugins: ep_oae, ep_headings, ep_etherpad-lite
from flask import Flask
from flask.ext.bootstrap import Bootstrap
from flask.ext.mail import Mail
from flask.ext.moment import Moment
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.login import LoginManager
from flask.ext.pagedown import PageDown
from flask.ext.celery import Celery
from flask.ext.redis import Redis
from config import config
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
SQLALCHEMY_COMMIT_ON_TEARDOWN = True
SQLALCHEMY_RECORD_QUERIES = True
MAIL_SERVER = os.environ.get('MAIL_SERVER')
MAIL_PORT = 587
import random
import time
from flask import current_app, render_template
from flask.ext.mail import Message
from . import mail, celery
@celery.task
def send_celery_email(msg):
"""Background task to send an email with Flask-Mail."""
from flask import request, render_template, session, flash, redirect, \
url_for, jsonify
from flask.ext.mail import Message
from . import tasks
from ..task import send_celery_email, long_task, add_together
from ..email import send_email
@tasks.route('/longtask', methods=['POST'])
def longtask():