Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

run Gratipay 190 #477

Closed
rohitpaulk opened this issue Jan 21, 2016 · 212 comments
Closed

run Gratipay 190 #477

rohitpaulk opened this issue Jan 21, 2016 · 212 comments

Comments

@rohitpaulk
Copy link
Contributor

189

@rohitpaulk
Copy link
Contributor Author

Reviewing users...

@rohitpaulk
Copy link
Contributor Author

@whit537 - I see a suspicious user, and I don't have access to the violations repo...

@rohitpaulk
Copy link
Contributor Author

Migrating tips..

@rohitpaulk
Copy link
Contributor Author

Migrated 0 tip(s) for 'shields'
Migrated 0 tip(s) for 'detexify'
'sudomesh' already migrated.
Migrated 0 tip(s) for 'juice-shop'
'byebug' already migrated.
'konlpy' already migrated.
Migrated 0 tip(s) for 'hamper'
Migrated 0 tip(s) for 'searx'
'md-for-bootstrap' already migrated.
Migrated 0 tip(s) for 'orionjs'
'torque3d' already migrated.
Migrated 0 tip(s) for 'piloting-postdevelopment'
'nim' already migrated.
'tabula' already migrated.
'exercism' already migrated.
Migrated 0 tip(s) for 'meteor-active-route'
'aegirproject' already migrated.
Migrated 0 tip(s) for 'openlp'
'catapultpgh' already migrated.
'svg-js' already migrated.
Migrated 0 tip(s) for 'rtail'
Migrated 0 tip(s) for 'sean-js'
'trakt-for-plex' already migrated.
Migrated 0 tip(s) for 'bootswatch'
'flexget' already migrated.
'the-perl-review' already migrated.
'rubocop' already migrated.
'pylonsproject' already migrated.
Migrated 0 tip(s) for 'tyf'
Migrated 0 tip(s) for 'hypatia-software-organization'
'nanoc' already migrated.
Migrated 0 tip(s) for 'tech-store-club'
'ucoin' already migrated.
'image-optim' already migrated.
'rhombus-tech' already migrated.
'pageres' already migrated.
'davorg' already migrated.
'fabric-js' already migrated.
'cpan-book' already migrated.
'dreditor' already migrated.
Migrated 0 tip(s) for 'libravatar'
'northern-plains-athletics' already migrated.
'gammu' already migrated.
'the-charis-project' already migrated.
Migrated 0 tip(s) for 'kriasoft'
'webtorrent' already migrated.
'josd' already migrated.
Migrated 0 tip(s) for 'projectcloudly'
Migrated 0 tip(s) for 'junest'
Migrated 0 tip(s) for 'musical-artifacts'
Migrated 0 tip(s) for 'simple-icons'
Migrated 0 tip(s) for 'slap'
Migrated 0 tip(s) for 'flexible-grid-system'
Migrated 0 tip(s) for 'weblog-sh'
'sailor' already migrated.
'drupal-search-api' already migrated.
Migrated 0 tip(s) for 'liboctavo'
'mojolicious' already migrated.
'teampopong' already migrated.
'debian-lts-by-freexian' already migrated.
'cpan-io' already migrated.
'doit' already migrated.
'cuberite' already migrated.
'encommuns' already migrated.
'perlweekly' already migrated.
'json-resume' already migrated.
'devdocs' already migrated.
'org-mode' already migrated.
'weblate' already migrated.
'perl-maven' already migrated.
'the-mountain-spirit' already migrated.
Migrated 0 tip(s) for 'hunter'
Migrated 0 tip(s) for 'ng-file-upload'
Migrated 0 tip(s) for 'code-for-seoul'
'act' already migrated.
'knopproject' already migrated.
'grip' already migrated.
Migrated 0 tip(s) for 'kivy'
Migrated 0 tip(s) for 'vegeta'
Migrated 0 tip(s) for 'coala'
'magit' already migrated.
'zed' already migrated.
'introtopython' already migrated.
Migrated 0 tip(s) for 'concrete-clouds'
Migrated 0 tip(s) for 'funcool'
'fsnotify' already migrated.
'citizens-network' already migrated.
'cider' already migrated.
Migrated 0 tip(s) for 'matlab-schemer'
Migrated 0 tip(s) for 'toolitup'
Migrated 0 tip(s) for 'vanilla-music'
Migrated 0 tip(s) for 'yawttk'
Migrated 0 tip(s) for 'cdnjs'
Migrated 0 tip(s) for 'wallabag'
'sublimelinter' already migrated.
'esdiscuss' already migrated.
Migrated 0 tip(s) for 'share-term'
'civicrm-lts' already migrated.
'webpack' already migrated.
'contribkanban-com' already migrated.
Migrated 0 tip(s) for 'botwiki-org'
'totalism-hackbase' already migrated.
Migrated 0 tip(s) for 'tipsy'
Migrated 0 tip(s) for 'brainfock'
Migrated 0 tip(s) for 'chameleon'
Migrated 0 tip(s) for 'gryd'
'dokku' already migrated.
Migrated 0 tip(s) for 'retrospring'
'grimoire' already migrated.
Migrated 0 tip(s) for 'itcase'
Migrated 0 tip(s) for 'sharex'
Migrated 0 tip(s) for 'drupal-media-youtube-upload'
Migrated 0 tip(s) for 'coinvest'
Migrated 0 tip(s) for 'os-js'
'pjf' already migrated.
'bevry' already migrated.
Migrated 0 tip(s) for 'radiant-player'
Migrated 0 tip(s) for 'macdown'
Migrated 0 tip(s) for 'phanbook'
'cappuccino' already migrated.
Migrated 0 tip(s) for 'jeto'
'sudo-room' already migrated.
Migrated 0 tip(s) for 'poll'
Migrated 0 tip(s) for 'youtransfer-io'
Migrated 0 tip(s) for 'flamecore'
'jshttp' already migrated.
'minotar' already migrated.
Migrated 0 tip(s) for 'jsfile'
Migrated 0 tip(s) for 'inventaire-io'
'duo' already migrated.
Migrated 0 tip(s) for 'flif'
'simplytest-me' already migrated.
'pariskiwi' already migrated.
Migrated 0 tip(s) for 'decent-im'
Migrated 1 tip(s) for 'amokjs'
Migrated 0 tip(s) for 'swissdb'
'endless-parentheses' already migrated.
'reddit-enhancement-suite' already migrated.
Migrated 0 tip(s) for 'neocities'
'cyberpipe' already migrated.
Migrated 0 tip(s) for 'asciinema'
'gkz-open-source' already migrated.
'chocolatey' already migrated.
Migrated 0 tip(s) for 'pomodoro-cc'
Migrated 0 tip(s) for 'opensnp'
'wdrl' already migrated.
'pillow' already migrated.
Migrated 0 tip(s) for 'ruboto'
Migrated 0 tip(s) for 'horizon-launcher'
'nuvola-player' already migrated.
'sqlalchemy' already migrated.
'jsbin' already migrated.
'Gratipay' already migrated.
'opencv' already migrated.
Done.

@rohitpaulk
Copy link
Contributor Author

1 tip migrated! 💃

@rohitpaulk
Copy link
Contributor Author

I'm not downloading a backup, but I am triggering one on Heroku.

@chadwhitacre
Copy link
Contributor

1 tip migrated! 💃

💃

I'm not downloading a backup, but I am triggering one on Heroku.

wfm

@rohitpaulk
Copy link
Contributor Author

TIL that we allow spaces in usernames

@chadwhitacre
Copy link
Contributor

And we allow the empty string as a username. ;-)

@rohitpaulk
Copy link
Contributor Author

We have ourselves an error...

@chadwhitacre
Copy link
Contributor

!

@rohitpaulk
Copy link
Contributor Author

pid-1507 thread-140735195557888 (MainThread) Updating balances.
pid-1507 thread-140735195557888 (MainThread) Traceback (most recent call last):
pid-1507 thread-140735195557888 (MainThread)   File "/Users/lp-eng-ggn-096/experiments/gratipay/gratipay.com/gratipay/cli.py", line 24, in payday
pid-1507 thread-140735195557888 (MainThread)     Payday.start().run()
pid-1507 thread-140735195557888 (MainThread)   File "/Users/lp-eng-ggn-096/experiments/gratipay/gratipay.com/gratipay/billing/payday.py", line 132, in run
pid-1507 thread-140735195557888 (MainThread)     self.payin()
pid-1507 thread-140735195557888 (MainThread)   File "/Users/lp-eng-ggn-096/experiments/gratipay/gratipay.com/gratipay/billing/payday.py", line 170, in payin
pid-1507 thread-140735195557888 (MainThread)     raise
pid-1507 thread-140735195557888 (MainThread)   File "/Users/lp-eng-ggn-096/experiments/gratipay/gratipay.com/env/lib/python2.7/site-packages/postgres/context_managers.py", line 46, in __exit__
pid-1507 thread-140735195557888 (MainThread)     self.conn.rollback()
pid-1507 thread-140735195557888 (MainThread) OperationalError: SSL SYSCALL error: EOF detected
pid-1507 thread-140735195557888 (MainThread)

@rohitpaulk
Copy link
Contributor Author

Happened after Updating balances, so we're aaalmost done.

@chadwhitacre
Copy link
Contributor

Huh ... looks like a network error?

@rohitpaulk
Copy link
Contributor Author

Yep, looks like it. We should try running this on a droplet next time :)

@rohitpaulk
Copy link
Contributor Author

Restart, I guess?

@chadwhitacre
Copy link
Contributor

http://stackoverflow.com/questions/24130305/postgres-ssl-syscall-error-eof-detected-with-python-and-psycopg suggests it could have something to do with mis-escaping? What ended up happening with the email pkid work in that regard?

@chadwhitacre
Copy link
Contributor

We should try running this on a droplet next time :)

Yeah, that would be the workaround for network issues. :)

Restart, I guess?

If that SO link re: string escaping doesn't ring any bells, then yes ... but can we think through this first?

@chadwhitacre
Copy link
Contributor

We haven't had an error in a while ... where did we fail and is restarting going to be okay?

@chadwhitacre
Copy link
Contributor

Happened after Updating balances, so we're aaalmost done.

@chadwhitacre
Copy link
Contributor

It could've happened during the updating balances call. The log message is emitted just before the call.

@chadwhitacre
Copy link
Contributor

I guess we have to rerun because we've lost our cursor.

@rohitpaulk
Copy link
Contributor Author

I see "Updating balances..." but not "Updated balances of xx participants"

screen shot 2016-01-21 at 8 51 30 pm

@chadwhitacre
Copy link
Contributor

What's the expected behavior when rerunning? We loop over all participants again but their balances are enough to cover their payments, so we don't charge them a second time? Right?

@rohitpaulk
Copy link
Contributor Author

Yes, correct. I'm going to verify that with one user though, just to make sure

@chadwhitacre
Copy link
Contributor

Okay. !m @rohitpaulk

@rohitpaulk
Copy link
Contributor Author

I checked your account, looks like we're good.

@chadwhitacre
Copy link
Contributor

@chadwhitacre
Copy link
Contributor

We didn't reintroduce string interpolated SQL in gratipay/gratipay.com#3893 or related, did we?

@rohitpaulk
Copy link
Contributor Author

cd ../masspay and git commit the four new files.

That directory doesn't fall under a git repository... @whit537 - Do you have that folder linked to the logs git repo?

@chadwhitacre
Copy link
Contributor

@rohitpaulk Yeah, we can clean that up maybe. I have symlinks locally that put masspay/ in the expected place.

@chadwhitacre
Copy link
Contributor

As well as paydays/.

@rohitpaulk
Copy link
Contributor Author

Aha. I've copied them manually for now, but I'll end up doing the same later. We could make it a convention to have a Folder structure like

gratipay
    - logs (repo)
        - payday
        - masspay
    - gratipay.com
    - inside.gratipay.com

@rohitpaulk
Copy link
Contributor Author

Where do I get the gratipay API key from?

@chadwhitacre
Copy link
Contributor

We could make it a convention to have a Folder structure like

👍 Reticketed as gratipay/gratipay.com#3901.

@chadwhitacre
Copy link
Contributor

Where do I get the gratipay API key from?

https://gratipay.com/~rohitpaulk/settings/ :-)

@rohitpaulk
Copy link
Contributor Author

Oh, any admin's API key.. I thought we had a specific one for this :P

@chadwhitacre
Copy link
Contributor

@rohitpaulk Naw, we could maybe use ~Gratipay's, but I've been using my own so far.

@rohitpaulk
Copy link
Contributor Author

Nah, this makes sense... The sudden 'WHERE IS GRATIPAY'S API KEY' prompt got me confused

@rohitpaulk
Copy link
Contributor Author

MassPay done and POSTed back to Gratipay for 45 users.

@rohitpaulk
Copy link
Contributor Author

Shuffling escrow! How're we going to deal with permissions here, @whit537?

@chadwhitacre
Copy link
Contributor

@rohitpaulk I tried to give you access to add funds. You hitting a roadblock?

@chadwhitacre
Copy link
Contributor

Nah, this makes sense... The sudden 'WHERE IS GRATIPAY'S API KEY' prompt got me confused

Hopefully addressed in gratipay/gratipay.com@5521d9d?

@rohitpaulk
Copy link
Contributor Author

Our paypal balance is $8,914.16, and the MassPay amount was $1,197.84.

1197.84 * 5 is roughly $6k. So no shuffling required, I guess?

@rohitpaulk
Copy link
Contributor Author

You hitting a roadblock?

Ah, no - silly me I thought that we had to login to New Alliance to send money :P

@chadwhitacre
Copy link
Contributor

@rohitpaulk I guess not. We might want to review the X * 5 guideline, but given that we're so stable week to week right now it's probably fine.

@chadwhitacre
Copy link
Contributor

Ah, no - silly me I thought that we had to login to New Alliance to send money :P

:-)

@rohitpaulk
Copy link
Contributor Author

Alright then, I guess this ticket is ready to be closed.

@rohitpaulk
Copy link
Contributor Author

I was struggling to write a SELECT statement when I started hacking on Gratipay - This journey has been fun :)

@chadwhitacre
Copy link
Contributor

I was struggling to write a SELECT statement when I started hacking on Gratipay - This journey has been fun :)

You, sir, rock! 💃 🚀 🎸 🎲 ✈️ ✨ 💖

@rohitpaulk
Copy link
Contributor Author

!m @whit537

@chadwhitacre chadwhitacre mentioned this issue Jan 21, 2016
@Changaco
Copy link
Contributor

You, sir, rock!

I second that. :-)

@rohitpaulk
Copy link
Contributor Author

Nice to hear :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants