Skip to content

Instantly share code, notes, and snippets.

View jcreed's full-sized avatar

Jeff Reed jcreed

  • Liaison International
  • Amherst NY
  • X @jcreed63
View GitHub Profile
@jcreed
jcreed / deploy summary
Created August 5, 2021 16:37
Staging PG9 - Rails 6 deploy locally
branch and override information here : https://github.com/Liaison-Intl/wa-devenv/compare/staging-db-changes?expand=1
wa-devenv % monster deploy --wa-tag=feature/NF-53877-rebased --cas-tag=team-platform-7-load --etl-tag=v2021.007.000 --wa-release-number=2021.007.000 --profile=regular-staging --zero-downtime --no-sleep --wa-env-override=kubernetes/override/wa-regular-staging-db-update
NOTICE: Executing monster with additionnal parameters from profile
'regular-staging'. Appending original parameters at
the ends except '--profile=*' one
irb(main):021:0> cpsj
=> #<ConfigPortal::Sync:0x000055b7cfa3a4a8 @cas_identifier_identifier="1888", @association_identifier=6721, @force_sync=false, @skip_cache=true, @silent_errors=true, @sync_log=nil>
irb(main):022:0> cpsj.start
ETHON: performed EASY effective_url=http://cas-config-ws-svc:8080/configurationservices/v1/wa/getapplicationformsbycasid/1888 response_code=200 return_code=ok total_time=0.015614
ETHON: performed EASY effective_url=http://cas-config-ws-svc:8080/configurationservices/v1/wa/getcasbyid/1888 response_code=200 return_code=ok total_time=0.01654
ETHON: performed EASY effective_url=http://cas-config-ws-svc:8080/configurationservices/v1/wa/highSchoolSubject/subjectUnits/6721 response_code=200 return_code=ok total_time=0.016031
ETHON: performed EASY effective_url=http://cas-config-ws-svc:8080/configurationservices/v1/wa/customquestions/6721 response_code=200 return_code=ok total_time=1.558948
ETHON: performed EASY effective_url=http://cas-config-ws-svc:8080/configurationservices/v1/wa/organiz
@jcreed
jcreed / PDF Manager Issue 11:49am
Created May 24, 2021 19:44
Airbrake Issue API PDF manager
MESSAGE {:error_class=>"PdfManager::Api::Pdf::RecvError", :error_message=>"#<Typhoeus::Response:0x00005572c756e688 @options={:httpauth_avail=>0, :total_time=>3.168441, :starttransfer_time=>0.219092, :appconnect_time=>0.0, :pretransfer_time=>0.012624, :connect_time=>0.012577, :namelookup_time=>0.01228, :redirect_time=>0.0, :effective_url=>\"http://pdf.liaisoncas.com:8091/utility-ws/pdfGeneration/getWebAdmitPDF/instances/6663/applicants/9706146361/association_orgs/21819?hash=fa7d75f4c73f5c160f2933097d93217eb9b27ae843e2e3f0dcf305b8d3e4382b&id=516420&timestamp=2021-05-24T11%3A48%3A55-04%3A00\", :primary_ip=>\"192.168.100.54\", :response_code=>200, :request_size=>559, :redirect_count=>0, :return_code=>:recv_error, :response_headers=>\"HTTP/1.1 100 Continue\\r\\ncontent-length: 0\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\npdf-u-coversheet-xml-gen-time: 102\\r\\ncache-control: must-revalidate, post-check=0, pre-check=0\\r\\npdf-p-applicantcasid: 9706146361\\r\\npdf-p-attachments-size: 0\\r\\ncontent-disposition: attachment; fi
@jcreed
jcreed / PDF Manager Issue 8:02am
Created May 24, 2021 19:38
Airbrake API PDF Manager Issue
{:error_class=>"PdfManager::Api::Pdf::RecvError", :error_message=>"#<Typhoeus::Response:0x0000565344945d70 @options={:httpauth_avail=>0, :total_time=>3.646004, :starttransfer_time=>0.7039059999999999, :appconnect_time=>0.0, :pretransfer_time=>0.002075, :connect_time=>0.002036, :namelookup_time=>0.000102, :redirect_time=>0.0, :effective_url=>\"http://pdf.liaisoncas.com:8091/utility-ws/pdfGeneration/getWebAdmitPDF/instances/6663/applicants/1101353105/association_orgs/21676?hash=73f70ddb8dddb1ee2bbba95c4dc150ec7c34fdbc9d082e89a2eb7a7ca2b28f3b&id=516243&timestamp=2021-05-24T08%3A01%3A53-04%3A00\", :primary_ip=>\"192.168.100.54\", :response_code=>200, :request_size=>559, :redirect_count=>0, :return_code=>:recv_error, :response_headers=>\"HTTP/1.1 100 Continue\\r\\ncontent-length: 0\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\npdf-u-coversheet-xml-gen-time: 85\\r\\ncache-control: must-revalidate, post-check=0, pre-check=0\\r\\npdf-p-applicantcasid: 1101353105\\r\\npdf-p-attachments-size: 0\\r\\ncontent-disposition: attachment;
@jcreed
jcreed / Airbrake receive error
Created May 24, 2021 15:11
PDF Manager API issue
5/24/21 about 8am
wa-resque-deferred-heavyweight-6dbbfc9b4b-zb7p5
ERROR MESSAGE {:error_class=>"PdfManager::Api::Pdf::RecvError", :error_message=>"#<Typhoeus::Response:0x0000565344945d70 @options={:httpauth_avail=>0, :total_time=>3.646004, :starttransfer_time=>0.7039059999999999, :appconnect_time=>0.0, :pretransfer_time=>0.002075, :connect_time=>0.002036, :namelookup_time=>0.000102, :redirect_time=>0.0, :effective_url=>\"http://pdf.liaisoncas.com:8091/utility-ws/pdfGeneration/getWebAdmitPDF/instances/6663/applicants/1101353105/association_orgs/21676?hash=73f70ddb8dddb1ee2bbba95c4dc150ec7c34fdbc9d082e89a2eb7a7ca2b28f3b&id=516243&timestamp=2021-05-24T08%3A01%3A53-04%3A00\", :primary_ip=>\"192.168.100.54\", :response_code=>200, :request_size=>559, :redirect_count=>0, :return_code=>:recv_error, :response_headers=>\"HTTP/1.1 100 Continue\\r\\ncontent-length: 0\\r\\n\\r\\nHTTP/1.1 200 OK\\r\\npdf-u-coversheet-xml-gen-time: 85\\r\\ncache-control: must-revalidate, post-check=0, pre-check=0\\r\\npdf-p-applicantcasid
@jcreed
jcreed / export ids
Created May 18, 2021 12:54
CA 2021 task export ids
[571346, 575940, 566365, 566370, 566373, 566361, 630470, 583469, 583465, 583468, 583493, 583496, 583510, 583489, 583488, 581247, 639652, 583014, 583016, 583017, 583459, 583461, 583462, 566800, 566799, 580272, 567712, 586022, 580282, 586034, 591083, 591077, 570615, 576947, 566055, 566056, 585540, 576326, 576376, 576268, 576336, 576281, 576241, 579053, 584918, 570735, 570379, 576661, 572107, 569539, 576911, 570723, 572134, 572120, 572163, 572184, 572177, 572173, 572175, 576080, 576097, 576107, 576062, 576116, 576104, 570020, 572144, 572167, 569990, 570005, 570015, 569967, 569941, 576680, 576684, 568131, 568304, 569522, 569503, 570344, 570419, 570520, 570454, 575930, 570428, 575942, 569027, 569030, 572022, 572073, 572099, 572060, 582383, 582388, 566075, 566072, 566077, 571221, 570621, 566071, 570559, 571190, 570543, 571259, 576181, 576480, 576409, 576424, 572006, 570600, 569657, 570628, 569643, 570798, 570847, 570785, 570777, 576044, 576058, 563813, 563814, 589163, 589165, 572121, 572127, 572113, 568186, 568191,
{
611=>[542, 220279, 89338, 21343, 95, 39935, 370, 2189982, 16762, 678, 207689, 52019, 91500, 1114588, 373, 114, 26920, 91459, 264, 791212, 37884, 1264970, 639, 91458, 21346, 522, 290, 278, 165980, 273, 31, 85327, 91492, 852, 605058, 564, 551273, 79, 7, 575089, 1102163, 284, 94166, 1114598, 263, 85328, 378, 652, 693870, 120, 428, 586739, 1454704, 30104, 73, 1454757, 108, 387, 37883, 207688, 634, 693871, 896, 91462, 218, 91472, 901, 27, 642, 89313, 229, 7080, 551, 374, 561, 59, 929, 402, 429, 855, 91495, 900, 7079, 275, 70, 91464, 91473, 472009, 94142, 859, 1102164, 213, 89327, 651, 111, 668, 115, 927, 426, 230, 5342, 472014, 39930, 401, 566, 116, 534, 91494, 1092978, 5, 923, 472016, 89336, 916, 50, 262, 1331654, 856, 101, 89331, 547, 385, 17414, 88091, 78, 649, 575086, 921, 1093001, 662, 91493, 88, 851, 760541, 655, 51, 122, 3168644, 88092, 89337, 586733, 220281, 89332, 551274, 294, 924, 1028718, 1092984, 1264971, 1092979, 21344, 860, 220284, 641, 676, 661, 667, 91457, 817, 89328, 1092992, 407, 62, 1102160, 9
@jcreed
jcreed / duplicate association fields
Created May 11, 2021 18:49
Prelaunch data 5/11/2021
{491=>[37581, 563, 1450641, 91465, 928, 569, 33235, 76220, 39932, 89342, 772, 1142780, 636, 91509, 693866, 548095, 472008, 97035, 14, 640, 60, 91467, 579259, 693868, 39931, 91504, 25236, 4240, 398, 220280, 89348, 902, 39933, 579237, 7081, 26, 1114591, 94184, 1093000, 586728, 91471, 39928, 1114595, 100763, 1443331, 52017, 579244, 89349, 54, 579256, 526, 701, 605057, 91503, 579264, 220278, 28, 207693, 1, 260, 1091774, 89346, 341, 579265, 693869, 89350, 91510, 749, 207691, 1092986, 91505, 355, 91490, 117, 289, 91482, 1114596, 548097, 1114593, 579255, 42909, 91488, 579248, 220277, 118, 1092981, 381535, 1443386, 643, 266, 579267, 89355, 637, 377, 753, 16, 100, 531, 287, 586743, 89360, 57, 516, 575085, 773, 29, 77, 39936, 356, 512, 693872, 546229, 586730, 1092982, 220283, 1102156, 37580, 110, 49, 1102155, 89, 354, 537, 91461, 72, 231, 30, 407, 1102160, 62, 376, 207687, 91483, 220282, 359, 849987, 91457, 817, 586725, 1443339, 1092992, 641, 1443385, 860, 546, 220284, 1092984, 89353, 89352, 381534, 1092979, 294, 10287
@jcreed
jcreed / migration failed
Created April 23, 2021 12:56
NF-53450 deploy error
== 20210202221403 CreateTableTestScoresApOfficial: migrated (0.1308s) =========
I, [2021-04-23T08:54:02.551929 #53] INFO -- : Migrating to AddUseListCriteriaToPdfManagerTemplate (20210305053550)
== 20210305053550 AddUseListCriteriaToPdfManagerTemplate: migrating ===========
-- add_column(:pdf_manager_templates, :use_list_criteria, :boolean)
-> 0.0060s
== 20210305053550 AddUseListCriteriaToPdfManagerTemplate: migrated (0.0060s) ==
I, [2021-04-23T08:54:02.562807 #53] INFO -- : Migrating to AddTuitionTypeToCollegeAttendeds (20210402152343)
== 20210402152343 AddTuitionTypeToCollegeAttendeds: migrating =================
-- add_column(:college_attendeds, :tuition_type_id, :integer)
-> 0.0057s
@jcreed
jcreed / sprint2
Created March 8, 2021 19:32
Sprint 2 deploy prior to Http issue
Mar 7 07:30:21 wa-etl-extractor-gpa-request-5f76c84d7f-8rzb8 wa-etl-extractor-gpa-request ERROR **Airbrake:
Mar 7 07:30:21 wa-etl-extractor-gpa-request-5f76c84d7f-8rzb8 wa-etl-extractor-gpa-request rake aborted!
Mar 7 07:30:21 wa-etl-extractor-gpa-request-5f76c84d7f-8rzb8 wa-etl-extractor-gpa-request ThreadError: can't be called from trap context
Mar 7 07:30:21 wa-etl-extractor-gpa-request-5f76c84d7f-8rzb8 wa-etl-extractor-gpa-request /home/app/bundle/ruby/2.4.0/gems/bunny-2.6.3/lib/bunny/session.rb:354:in `close'
Mar 7 07:30:21 wa-etl-extractor-gpa-request-5f76c84d7f-8rzb8 wa-etl-extractor-gpa-request /opt/app/lib/etl.rb:50:in `stop'
Mar 7 07:30:21 wa-etl-extractor-gpa-request-5f76c84d7f-8rzb8 wa-etl-extractor-gpa-request /opt/app/lib/etl/server.rb:26:in `block in register_interrupt_handlers'
Mar 7 07:30:21 wa-etl-extractor-gpa-request-5f76c84d7f-8rzb8 wa-etl-extractor-gpa-request /home/app/bundle/ruby/2.4.0/gems/bunny-2.6.3/lib/bunny/consumer_work_pool.rb:77:in `join'
Mar 7 07:30:21 wa-etl-extractor-gpa-r