|
Heroku, загрузка и запуск телеграм-бота
|
|||
---|---|---|---|
#18+
Всем привет. Написал простого бота с использованием БД firebird 3 На ноуте бот работает, к БД доступ получает в общем все прекрасно. Решил выложить БОТ на хероку и при установки всех используемых апи хероку ругается на апи firebird УПодскажите что делать. Увы пропал свет и интернет не могу дать текст ошибки, но позже обязательно напишу -------------------------- Firebird 3.0.5.33220; IBExpert 2020.3.28.1; Windows 10 32/64-bit; 12Gb RAM; SSD 512Mb + HDD 1 Tb; Настройки по умолчанию Среда разработки: Delphi XE2 + FIBPlus 7.4 ... |
|||
:
Нравится:
Не нравится:
|
|||
22.12.2020, 12:37 |
|
Heroku, загрузка и запуск телеграм-бота
|
|||
---|---|---|---|
#18+
akrush, Протокол с хероку Код: sql 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38.
... |
|||
:
Нравится:
Не нравится:
|
|||
22.12.2020, 12:47 |
|
Heroku, загрузка и запуск телеграм-бота
|
|||
---|---|---|---|
#18+
... |
|||
:
Нравится:
Не нравится:
|
|||
22.12.2020, 13:21 |
|
Heroku, загрузка и запуск телеграм-бота
|
|||
---|---|---|---|
#18+
hvlad, Влад, пробовал, решить не удалось При установки ругается на firebird что там где-то "ему" не нравится присвоение null В данный момент не могу показать протокол, но как только появится возможность - покажу полный протокол deployment ... |
|||
:
Нравится:
Не нравится:
|
|||
22.12.2020, 18:31 |
|
Heroku, загрузка и запуск телеграм-бота
|
|||
---|---|---|---|
#18+
akrush, Вот протокол: ---> Node.js app detected -----> Creating runtime environment NPM_CONFIG_LOGLEVEL=error NODE_ENV=production NODE_MODULES_CACHE=true NODE_VERBOSE=false -----> Installing binaries engines.node (package.json): 12.x engines.npm (package.json): unspecified (use default) Resolving node version 12.x... Downloading and installing node 12.20.0... Using default npm version: 6.14.8 -----> Installing dependencies Installing node modules (package.json) > firebird@0.1.5-snapshot install /tmp/build_39103d59_/node_modules/firebird > node-gyp rebuild make: Entering directory '/tmp/build_39103d59_/node_modules/firebird/build' CXX(target) Release/obj.target/binding/src/fb-bindings.o CXX(target) Release/obj.target/binding/src/fb-bindings-blob.o CXX(target) Release/obj.target/binding/src/fb-bindings-fbresult.o ../src/fb-bindings-fbresult.cc: In member function ‘void FBResult::releaseStatement()’: ../src/fb-bindings-fbresult.cc:884:17: warning: converting to non-pointer type ‘isc_stmt_handle {aka unsigned int}’ from NULL [-Wconversion-null] else stmt = NULL; ^~~~ CXX(target) Release/obj.target/binding/src/fb-bindings-connection.o ../src/fb-bindings-connection.cc: In member function ‘bool Connection::Close()’: ../src/fb-bindings-connection.cc:113:12: warning: converting to non-pointer type ‘isc_db_handle {aka unsigned int}’ from NULL [-Wconversion-null] db = NULL; ^~~~ ../src/fb-bindings-connection.cc:116:10: warning: converting to non-pointer type ‘isc_db_handle {aka unsigned int}’ from NULL [-Wconversion-null] db = NULL; ^~~~ ../src/fb-bindings-connection.cc: In member function ‘void Connection::InstQuerySync(const Nan::FunctionCallbackInfo<v8::Value>&, Transaction*)’: ../src/fb-bindings-connection.cc:648:28: warning: converting to non-pointer type ‘isc_stmt_handle {aka unsigned int}’ from NULL [-Wconversion-null] isc_stmt_handle stmt = NULL; ^~~~ ../src/fb-bindings-connection.cc: In member function ‘void Connection::InstQuery(const Nan::FunctionCallbackInfo<v8::Value>&, Transaction*)’: ../src/fb-bindings-connection.cc:786:19: warning: converting to non-pointer type ‘isc_stmt_handle {aka unsigned int}’ from NULL [-Wconversion-null] q_req->stmt = NULL; ^~~~ ../src/fb-bindings-connection.cc: In member function ‘void Connection::InstPrepareSync(const Nan::FunctionCallbackInfo<v8::Value>&, Transaction*)’: ../src/fb-bindings-connection.cc:851:28: warning: converting to non-pointer type ‘isc_stmt_handle {aka unsigned int}’ from NULL [-Wconversion-null] isc_stmt_handle stmt = NULL; ^~~~ ../src/fb-bindings-connection.cc: In constructor ‘Connection::Connection()’: ../src/fb-bindings-connection.cc:895:10: warning: converting to non-pointer type ‘isc_db_handle {aka unsigned int}’ from NULL [-Wconversion-null] db = NULL; ^~~~ ../src/fb-bindings-connection.cc: In destructor ‘virtual Connection::~Connection()’: ../src/fb-bindings-connection.cc:904:9: warning: NULL used in arithmetic [-Wpointer-arith] if(db!=NULL) Close(); ^~~~ ../src/fb-bindings-connection.cc:909:5: warning: NULL used in arithmetic [-Wpointer-arith] assert(db == NULL); ^~~~~~ CXX(target) Release/obj.target/binding/src/fb-bindings-eventblock.o CXX(target) Release/obj.target/binding/src/fb-bindings-fbeventemitter.o CXX(target) Release/obj.target/binding/src/fb-bindings-statement.o CXX(target) Release/obj.target/binding/src/fb-bindings-transaction.o ../src/fb-bindings-transaction.cc: In constructor ‘Transaction::Transaction(Connection*)’: ../src/fb-bindings-transaction.cc:210:10: warning: converting to non-pointer type ‘isc_tr_handle {aka unsigned int}’ from NULL [-Wconversion-null] trans = NULL; ^~~~ SOLINK_MODULE(target) Release/obj.target/binding.node /usr/bin/ld: cannot find -lfbclient collect2: error: ld returned 1 exit status binding.target.mk:149: recipe for target 'Release/obj.target/binding.node' failed make: *** [Release/obj.target/binding.node] Error 1 make: Leaving directory '/tmp/build_39103d59_/node_modules/firebird/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/tmp/build_39103d59_/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:314:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12) gyp ERR! System Linux 4.4.0-1081-aws gyp ERR! command "/tmp/build_39103d59_/.heroku/node/bin/node" "/tmp/build_39103d59_/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /tmp/build_39103d59_/node_modules/firebird gyp ERR! node -v v12.20.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! firebird@0.1.5-snapshot install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the firebird@0.1.5-snapshot install 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! /tmp/npmcache.jZqUS/_logs/2020-12-21T23_29_34_298Z-debug.log -----> Build failed We're sorry this build is failing! You can troubleshoot common issues here: https://devcenter.heroku.com/articles/troubleshooting-node-deploys If you're stuck, please submit a ticket so we can help: https://help.heroku.com/ Love, Heroku ! Push rejected, failed to compile Node.js app. ! Push failed Build finished Blogs Careers Documentation Support Terms of Service Privacy Cookies © 2020 Salesforce.com ... |
|||
:
Нравится:
Не нравится:
|
|||
22.12.2020, 21:56 |
|
Heroku, загрузка и запуск телеграм-бота
|
|||
---|---|---|---|
#18+
akrush /usr/bin/ld: cannot find -lfbclient collect2: error: ld returned 1 exit status ... |
|||
:
Нравится:
Не нравится:
|
|||
22.12.2020, 22:10 |
|
Heroku, загрузка и запуск телеграм-бота
|
|||
---|---|---|---|
#18+
hvlad, Увы, пока не знаю. То полный протокол. Сейчас установлю командную строку хероку и попробую сам все проверить ... |
|||
:
Нравится:
Не нравится:
|
|||
23.12.2020, 11:34 |
|
Heroku, загрузка и запуск телеграм-бота
|
|||
---|---|---|---|
#18+
akrush, Пока удалось сделать deployment. Что сделал: 1. скопировал ручками весь пакет firebird и в проекте прописал использовать его из другой папки. 2. Скопированную папку добавил для выгрузки на гит 3. Удалил из установленных пакетов firebird После синхронизации с гит - deployment прошел успешно. Понимаю что это "костыль", но пока надо для работы ... |
|||
:
Нравится:
Не нравится:
|
|||
23.12.2020, 13:24 |
|
|
start [/forum/topic.php?fid=40&fpage=10&tid=1560169]: |
0ms |
get settings: |
11ms |
get forum list: |
15ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
57ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
82ms |
get tp. blocked users: |
2ms |
others: | 13ms |
total: | 204ms |
0 / 0 |