powered by simpleCommunicator - 2.0.49     © 2025 Programmizd 02
Форумы / Firebird, InterBase [игнор отключен] [закрыт для гостей] / Heroku, загрузка и запуск телеграм-бота
8 сообщений из 8, страница 1 из 1
Heroku, загрузка и запуск телеграм-бота
    #40030091
akrush
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Всем привет.
Написал простого бота с использованием БД 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
...
Рейтинг: 0 / 0
Heroku, загрузка и запуск телеграм-бота
    #40030098
akrush
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
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.
      
Activity Feed  Build LogID 2dd00329-96e8-4be2-b199-630621d92d14
-----> 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
       npm ERR! Invalid Version: git+ssh://git@github.com/xdenser/node-firebird-libfbclient.git#e24d7da389b7805093c7062843fa7777ca5e19b0
       
       npm ERR! A complete log of this run can be found in:
       npm ERR!     /tmp/npmcache.vOv25/_logs/2020-12-21T23_30_15_002Z-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

...
Рейтинг: 0 / 0
Heroku, загрузка и запуск телеграм-бота
    #40030109
hvlad
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
akrush,

искать описание ошибки пробовал ?
...
Рейтинг: 0 / 0
Heroku, загрузка и запуск телеграм-бота
    #40030293
akrush
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
hvlad,

Влад, пробовал, решить не удалось
При установки ругается на firebird что там где-то "ему" не нравится присвоение null
В данный момент не могу показать протокол, но как только появится возможность - покажу полный протокол deployment
...
Рейтинг: 0 / 0
Heroku, загрузка и запуск телеграм-бота
    #40030320
akrush
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
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

...
Рейтинг: 0 / 0
Heroku, загрузка и запуск телеграм-бота
    #40030323
hvlad
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
akrush
/usr/bin/ld: cannot find -lfbclient
collect2: error: ld returned 1 exit status
Клиента найти не смогло. Сам Firebird к этому моменту уже установлен ?
...
Рейтинг: 0 / 0
Heroku, загрузка и запуск телеграм-бота
    #40030393
akrush
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
hvlad,

Увы, пока не знаю. То полный протокол. Сейчас установлю командную строку хероку и попробую сам все проверить
...
Рейтинг: 0 / 0
Heroku, загрузка и запуск телеграм-бота
    #40030443
akrush
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
akrush,

Пока удалось сделать deployment.
Что сделал:
1. скопировал ручками весь пакет firebird и в проекте прописал использовать его из другой папки.
2. Скопированную папку добавил для выгрузки на гит
3. Удалил из установленных пакетов firebird

После синхронизации с гит - deployment прошел успешно.
Понимаю что это "костыль", но пока надо для работы
...
Рейтинг: 0 / 0
8 сообщений из 8, страница 1 из 1
Форумы / Firebird, InterBase [игнор отключен] [закрыт для гостей] / Heroku, загрузка и запуск телеграм-бота
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]