Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy event watcher for FPS.sol (rinkeby) #51

Closed
ashwinphatak opened this issue May 10, 2021 · 3 comments
Closed

Deploy event watcher for FPS.sol (rinkeby) #51

ashwinphatak opened this issue May 10, 2021 · 3 comments
Assignees

Comments

@ashwinphatak
Copy link
Collaborator

ashwinphatak commented May 10, 2021

Link to instructions https://hackmd.io/bXheQ2ItRumIlWSBzahoIw
Link to FPS.sol https://github.com/nandit123/eth-watcher-runner/blob/master/contracts/FPS.sol

@srwadleigh
Copy link
Collaborator

srwadleigh commented May 14, 2021

Watcher is up and running now after some local fixes where applied by @ramilexe see #56

I currently have the watcher's postgraphile endpoint exposed here https://rinkeby-watcher.vdb.to/graphiql
There is also an HTTP port the watcher binds, we can adjust these endpoints based on whatever needs to be exposed, please provide some feedback and I can make changes to the current setup. @AFDudley @ashwinphatak

A few error messages from the watcher's log while starting

(node:62146) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency                                                                                                                                                                                                       
(Use `node --trace-warnings ...` to show where the warning was created)                                                                                                                                                                                                                                                       
(node:62146) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency  

This is interesting, i assume this is referring to the watcher's db in which case the user is already the db owner

Failed to setup watch fixtures in Postgres database
This is likely because the PostgreSQL user in the connection string does not have sufficient privileges; you can solve this by passing the 'owner' connection string via '--owner-connection' / 'ownerConnectionString'. If the fixtures already exist, the watch functionality may still work.                               
Enable DEBUG='graphile-build-pg' to see the error

@ashwinphatak
Copy link
Collaborator Author

graphile/migrate#69

@srwadleigh
Copy link
Collaborator

the watcher crash

<--- Last few GCs --->

[62146:0x62155d0] 176635675 ms: Scavenge 7854.5 (8228.5) -> 7848.7 (8229.5) MB, 25.8 / 0.0 ms  (average mu = 0.989, current mu = 0.507) task
[62146:0x62155d0] 176635897 ms: Scavenge 7854.6 (8229.5) -> 7849.2 (8229.5) MB, 22.9 / 0.0 ms  (average mu = 0.989, current mu = 0.507) task
[62146:0x62155d0] 176636265 ms: Scavenge 7855.5 (8229.5) -> 7849.5 (8245.5) MB, 23.4 / 0.0 ms  (average mu = 0.989, current mu = 0.507) task


<--- JS stacktrace --->

FATAL ERROR: MarkCompactCollector: young object promotion failed Allocation failed - JavaScript heap out of memory
 1: 0xa89e60 node::Abort() [node]
 2: 0x9ade29 node::FatalError(char const*, char const*) [node]
 3: 0xc7583e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
 4: 0xc75bb7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
 5: 0xe3f6d5  [node]
 6: 0xe6ec63 v8::internal::EvacuateNewSpaceVisitor::Visit(v8::internal::HeapObject, int) [node]
 7: 0xe7b816 v8::internal::FullEvacuator::RawEvacuatePage(v8::internal::MemoryChunk*, long*) [node]
 8: 0xe6793f v8::internal::Evacuator::EvacuatePage(v8::internal::MemoryChunk*) [node]
 9: 0xe67bb8 v8::internal::PageEvacuationTask::RunInParallel(v8::internal::ItemParallelJob::Task::Runner) [node]
10: 0xe599d9 v8::internal::ItemParallelJob::Run() [node]
11: 0xe7d7a0 void v8::internal::MarkCompactCollectorBase::CreateAndExecuteEvacuationTasks<v8::internal::FullEvacuator, v8::internal::MarkCompactCollector>(v8::internal::MarkCompactCollector*, v8::internal::ItemParallelJob*, v8::internal::MigrationObserver*, long) [node]                                                
12: 0xe7dfe3 v8::internal::MarkCompactCollector::EvacuatePagesInParallel() [node]
13: 0xe7e3a5 v8::internal::MarkCompactCollector::Evacuate() [node]
14: 0xe90b11 v8::internal::MarkCompactCollector::CollectGarbage() [node]
15: 0xe4c9d8 v8::internal::Heap::MarkCompact() [node]
16: 0xe4e368 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
17: 0xe5190c v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]                                                                                                                                              
18: 0xe18e8e v8::internal::Factory::NewMap(v8::internal::InstanceType, int, v8::internal::ElementsKind, int) [node]
19: 0x10278eb v8::internal::Map::RawCopy(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Map>, int, int) [node]
20: 0x102800b v8::internal::Map::CopyDropDescriptors(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Map>) [node]
21: 0xffcb47 v8::internal::JSObject::MigrateSlowToFast(v8::internal::Handle<v8::internal::JSObject>, int, char const*) [node]
22: 0x1001cdb v8::internal::JSObject::OptimizeAsPrototype(v8::internal::Handle<v8::internal::JSObject>, bool) [node]
23: 0x1001fa1 v8::internal::JSObject::MakePrototypesFast(v8::internal::Handle<v8::internal::Object>, v8::internal::WhereToStart, v8::internal::Isolate*) [node]                                                                                                                                                               
24: 0xedbb8a v8::internal::LoadIC::Load(v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Name>, bool) [node]
25: 0xee1e5a v8::internal::Runtime_LoadIC_Miss(int, unsigned long*, v8::internal::Isolate*) [node]
26: 0x15045f9  [node]
[1]    62124 abort (core dumped)  npm run dev

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

No branches or pull requests

3 participants