looker / lookerbot

Lookerbot lets you access all your Looker data from Slack! Super fun!
https://looker.com/lookerbot
MIT License
169 stars 141 forks source link

Manual Deployment is Failing #196

Open sree-cgit opened 3 years ago

sree-cgit commented 3 years ago

Hi, I am following this document https://github.com/looker/lookerbot#lookerbot to deploy Lookerbot manually for integrating with Slack. But the deployment is failing with the below error.

[root@fca88f42fe5c lookerbot]# yarn install yarn install v1.19.1 [1/5] Validating package.json... [2/5] Resolving packages... [3/5] Fetching packages... warning Pattern ["request@https://github.com/request/request/archive/392db7d127536ff296fb06492db9430790a32d6c.tar.gz","request@^2.86.0","request@^2.88.0","request@^2.88.0","request@^2.88.0","request@^2.65.0","request@^2.81.0","request@^2.88.2"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v6/npm-request-2.88.1-c2f5e28c595dae4825d2399408c3297d0027ff4e/node_modules/request" as pattern ["request@https://github.com/request/request/archive/392db7d127536ff296fb06492db9430790a32d6c.tar.gz","request@^2.88.0"]. This could result in non-deterministic behavior, skipping. info fsevents@2.1.2: The platform "linux" is incompatible with this module. info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation. [4/5] Linking dependencies... warning " > sinon-chai@3.5.0" has incorrect peer dependency "chai@^4.0.0". [5/5] Building fresh packages... [1/3] ⠄ botbuilder [-/3] ⡀ waiting... error /lookerbot/node_modules/re2: Command failed. Exit code: 1 Command: install-from-cache --artifact build/Release/re2.node --host-var RE2_DOWNLOAD_MIRROR Arguments: Directory: /lookerbot/node_modules/re2 Output: Trying https://github.com/uhop/node-re2/releases/download/1.15.4/linux-x64-88.br ... Trying https://github.com/uhop/node-re2/releases/download/1.15.4/linux-x64-88.gz ... Building locally ... npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1613390393903-0.7797471497824475/node but npm is using /home/y/libexec64/node itself. Use the--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

re2@1.15.4 rebuild /lookerbot/node_modules/re2 node-gyp rebuild

make: Entering directory /lookerbot/node_modules/re2/build' CXX(target) Release/obj.target/re2/lib/addon.o In file included from /root/.cache/node-gyp/15.8.0/include/node/node.h:63:0, from ../../nan/nan.h:56, from ../lib/./wrapped_re2.h:4, from ../lib/addon.cc:1: /root/.cache/node-gyp/15.8.0/include/node/v8.h: In member function 'void v8::TracedReferenceBase<T>::SetSlotThreadSafe(T*)': /root/.cache/node-gyp/15.8.0/include/node/v8.h:912:22: error: expected type-specifier reinterpret_cast<std::atomic<T*>*>(&val_)->store(new_val, ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:912:22: error: expected '>' /root/.cache/node-gyp/15.8.0/include/node/v8.h:912:22: error: expected '(' /root/.cache/node-gyp/15.8.0/include/node/v8.h:912:22: error: 'atomic' is not a member of 'std' /root/.cache/node-gyp/15.8.0/include/node/v8.h:912:35: error: expected primary-expression before '*' token reinterpret_cast<std::atomic<T*>*>(&val_)->store(new_val, ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:912:36: error: expected primary-expression before '>' token reinterpret_cast<std::atomic<T*>*>(&val_)->store(new_val, ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:912:38: error: expected primary-expression before '>' token reinterpret_cast<std::atomic<T*>*>(&val_)->store(new_val, ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:913:54: error: 'memory_order_relaxed' is not a member of 'std' std::memory_order_relaxed); ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:913:80: error: expected ')' before ';' token std::memory_order_relaxed); ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h: In member function 'const T* v8::TracedReferenceBase<T>::GetSlotThreadSafe() const': /root/.cache/node-gyp/15.8.0/include/node/v8.h:920:29: error: expected type-specifier return reinterpret_cast<std::atomic<const T*> const*>(&val_)->load( ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:920:29: error: expected '>' /root/.cache/node-gyp/15.8.0/include/node/v8.h:920:29: error: expected '(' /root/.cache/node-gyp/15.8.0/include/node/v8.h:920:29: error: 'atomic' is not a member of 'std' /root/.cache/node-gyp/15.8.0/include/node/v8.h:920:41: error: expected primary-expression before 'const' return reinterpret_cast<std::atomic<const T*> const*>(&val_)->load( ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:920:41: error: expected ')' before 'const' /root/.cache/node-gyp/15.8.0/include/node/v8.h:920:41: error: expected ';' before 'const' /root/.cache/node-gyp/15.8.0/include/node/v8.h:920:49: error: expected unqualified-id before '>' token return reinterpret_cast<std::atomic<const T*> const*>(&val_)->load( ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:920:49: error: expected initializer before '>' token /root/.cache/node-gyp/15.8.0/include/node/v8.h: At global scope: /root/.cache/node-gyp/15.8.0/include/node/v8.h:1631:58: warning: 'deprecated' attribute directive ignored [-Wattributes] Local<Value> export_value); ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:3405:23: warning: 'deprecated' attribute directive ignored [-Wattributes] Local<Value> Name() const { return Description(); } ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:5223:76: warning: 'deprecated' attribute directive ignored [-Wattributes] ArrayBufferCreationMode mode = ArrayBufferCreationMode::kExternalized); ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:5270:21: warning: 'deprecated' attribute directive ignored [-Wattributes] bool IsExternal() const; ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:5297:24: warning: 'deprecated' attribute directive ignored [-Wattributes] Contents Externalize(); ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:5307:70: warning: 'deprecated' attribute directive ignored [-Wattributes] void Externalize(const std::shared_ptr<BackingStore>& backing_store); ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:5318:24: warning: 'deprecated' attribute directive ignored [-Wattributes] Contents GetContents(); ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:5706:76: warning: 'deprecated' attribute directive ignored [-Wattributes] ArrayBufferCreationMode mode = ArrayBufferCreationMode::kExternalized); ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:5755:76: warning: 'deprecated' attribute directive ignored [-Wattributes] ArrayBufferCreationMode mode = ArrayBufferCreationMode::kExternalized); ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:5764:21: warning: 'deprecated' attribute directive ignored [-Wattributes] bool IsExternal() const; ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:5780:24: warning: 'deprecated' attribute directive ignored [-Wattributes] Contents Externalize(); ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:5790:70: warning: 'deprecated' attribute directive ignored [-Wattributes] void Externalize(const std::shared_ptr<BackingStore>& backing_store); ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:5805:24: warning: 'deprecated' attribute directive ignored [-Wattributes] Contents GetContents(); ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:7150:28: warning: 'deprecated' attribute directive ignored [-Wattributes] size_t code_range_size() const { return code_range_size_ / kMB; } ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:7152:46: warning: 'deprecated' attribute directive ignored [-Wattributes] void set_code_range_size(size_t limit_in_mb) { ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:7156:38: warning: 'deprecated' attribute directive ignored [-Wattributes] size_t max_semi_space_size_in_kb() const; ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:7158:56: warning: 'deprecated' attribute directive ignored [-Wattributes] void set_max_semi_space_size_in_kb(size_t limit_in_kb); ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:7160:31: warning: 'deprecated' attribute directive ignored [-Wattributes] size_t max_old_space_size() const { return max_old_generation_size_ / kMB; } ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:7162:49: warning: 'deprecated' attribute directive ignored [-Wattributes] void set_max_old_space_size(size_t limit_in_mb) { ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:7166:31: warning: 'deprecated' attribute directive ignored [-Wattributes] size_t max_zone_pool_size() const { return max_zone_pool_size_; } ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:7168:43: warning: 'deprecated' attribute directive ignored [-Wattributes] void set_max_zone_pool_size(size_t bytes) { max_zone_pool_size_ = bytes; } ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:8758:59: warning: 'deprecated' attribute directive ignored [-Wattributes] MeasureMemoryMode mode); ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:8821:36: warning: 'deprecated' attribute directive ignored [-Wattributes] Local<Context> GetEnteredContext(); ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:9105:22: warning: 'deprecated' attribute directive ignored [-Wattributes] void RunMicrotasks() { PerformMicrotaskCheckpoint(); } ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:9149:75: warning: 'deprecated' attribute directive ignored [-Wattributes] void AddMicrotasksCompletedCallback(MicrotasksCompletedCallback callback); ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:9157:78: warning: 'deprecated' attribute directive ignored [-Wattributes] void RemoveMicrotasksCompletedCallback(MicrotasksCompletedCallback callback); ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:9341:30: warning: 'deprecated' attribute directive ignored [-Wattributes] UnwindState GetUnwindState(); ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:9404:54: warning: 'deprecated' attribute directive ignored [-Wattributes] AllowCodeGenerationFromStringsCallback callback); ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:9764:75: warning: 'deprecated' attribute directive ignored [-Wattributes] static bool TryHandleSignal(int signal_number, void* info, void* context); ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:10723:55: warning: 'deprecated' attribute directive ignored [-Wattributes] const void* stack_base); ^ /root/.cache/node-gyp/15.8.0/include/node/v8.h:10749:65: warning: 'deprecated' attribute directive ignored [-Wattributes] static bool PCIsInV8(const UnwindState& unwind_state, void* pc); ^ In file included from ../../nan/nan.h:56:0, from ../lib/./wrapped_re2.h:4, from ../lib/addon.cc:1: /root/.cache/node-gyp/15.8.0/include/node/node.h: In lambda function: /root/.cache/node-gyp/15.8.0/include/node/node.h:613:43: error: parameter packs not expanded with '...': std::forward<EnvironmentArgs>(env_args)...); ^ /root/.cache/node-gyp/15.8.0/include/node/node.h:613:43: note: 'env_args' At global scope: cc1plus: warning: unrecognized command line option "-Wno-cast-function-type" [enabled by default] make: *** [Release/obj.target/re2/lib/addon.o] Error 1 make: Leaving directory/lookerbot/node_modules/re2/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/y/share/node/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (node:events:378:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) gyp ERR! System Linux 3.10.0-1062.12.1.el7.YAHOO.20200205.52.x86_64 gyp ERR! command "/home/y/libexec64/node" "/home/y/share/node/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /lookerbot/node_modules/re2 gyp ERR! node -v v15.8.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! re2@1.15.4 rebuild: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the re2@1.15.4 rebuild script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-02-15T11_59_57_437Z-debug.log node:internal/process/promises:227 triggerUncaughtException(err, true / fromPromise /); ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "1".] { code: 'ERR_UNHANDLED_REJECTION'`

[root@fca88f42fe5c lookerbot]# yarn --version 1.19.1 [root@fca88f42fe5c lookerbot]# node -v v15.8.0 [root@fca88f42fe5c lookerbot]#