PDXostc / rvi_backend

Database and Web Backend for RVI
Mozilla Public License 2.0
6 stars 14 forks source link

Installation under Ubuntu 15. 04. #37

Open josemic opened 8 years ago

josemic commented 8 years ago

Under Ubuntu 15. 04 I also had to install:

sudo apt-get install python-dev libffi-dev

However installation of python-kafka failed, likely it was mean instead:

sudo pip install kafka-python
josemic commented 8 years ago

Finally the installation fails with: INFO RVIServer: Saving messages to HBase enabled.

No handlers could be found for logger "kafka.conn"
ERROR RVI Server: Cannot start HBase Server: All servers failed to process request
rstreif commented 8 years ago

Yes, it's kafka-python. We will fix it.

On Sun, Aug 9, 2015 at 4:02 AM, josemic notifications@github.com wrote:

Under Ubuntu 15. 04 I also had to install:

sudo apt-get install python-dev libffi-dev

However installation of python-kafka failed, likely you meant: $ sudo pip install kafka-python

— Reply to this email directly or view it on GitHub https://github.com/PDXostc/rvi_backend/issues/37.

Rudolf J Streif System Architect - Open Source Initiative Open Source Technology Centre

M: +1.619.631.5383 Email: rstreif@jaguarlandrover.com

UK: G/26/2 G02 Building 523, Engineering Centre, Gaydon, Warwick, CV35 ORR US: 1419 NW 14th Ave, Portland, OR 97209

jjaguar.com | landrover.com

Business Details: Jaguar Land Rover Limited Registered Office: Abbey Road, Whitley, Coventry CV3 4LF Registered in England No: 1672070

This e-mail and any attachments contain confidential information for a specific individual and purpose. The information is private and privileged and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, please e-mail us immediately. We apologise for any inconvenience caused but you are hereby notified that any disclosure, copying or distribution or the taking of any action in reliance on the information contained herein is strictly prohibited.

This e-mail does not constitute an order for goods or services unless accompanied by an official purchase order.

rstreif commented 8 years ago

Just disable HBase in the settings.py file. It's not necessary for typical use of the rvi_backend.

On Sun, Aug 9, 2015 at 4:52 AM, josemic notifications@github.com wrote:

Finally the installation fails with: INFO RVIServer: Saving messages to HBase enabled.

No handlers could be found for logger "kafka.conn" ERROR RVI Server: Cannot start HBase Server: All servers failed to process request

— Reply to this email directly or view it on GitHub https://github.com/PDXostc/rvi_backend/issues/37#issuecomment-129170702.

Rudolf J Streif System Architect - Open Source Initiative Open Source Technology Centre

M: +1.619.631.5383 Email: rstreif@jaguarlandrover.com

UK: G/26/2 G02 Building 523, Engineering Centre, Gaydon, Warwick, CV35 ORR US: 1419 NW 14th Ave, Portland, OR 97209

jjaguar.com | landrover.com

Business Details: Jaguar Land Rover Limited Registered Office: Abbey Road, Whitley, Coventry CV3 4LF Registered in England No: 1672070

This e-mail and any attachments contain confidential information for a specific individual and purpose. The information is private and privileged and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, please e-mail us immediately. We apologise for any inconvenience caused but you are hereby notified that any disclosure, copying or distribution or the taking of any action in reliance on the information contained herein is strictly prohibited.

This e-mail does not constitute an order for goods or services unless accompanied by an official purchase order.

josemic commented 8 years ago

It should be:

cd rvibackend/server
python rviserver.py foreground

instead of:

python rviserver.py foreground
josemic commented 8 years ago

Thank you. I only get:

python rviserver.py foreground
INFO RVI Server: Starting...
INFO RVI Server: General Configuration: RVI_SERVICE_EDGE_URL: http://127.0.0.1:8801, MEDIA_ROOT: /home/michael/Programming/Erlang/PDXostc/rvibackend/files
INFO RVI Server: Setting up outbound connection to RVI Service Edge at http://127.0.0.1:8801
INFO RVI Server: Tracking not enabled
INFO RVI Server: Publishing to Kafka Message Queue: master:6667 , with topic: rvi
INFO RVIServer: Publishing to message queue enabled.
INFO Tracking Service Registration: Report service name: jlr.com/backend/logging/report
INFO RVI Server: Message Queue Server started.
INFO RVI Server: HBase server storage not enabled

while I do not see heartbeats and the backend crashes when the backend is started:

16:56:06.337 [notice] ---- Service Edge URL:          "http://192.168.178.26:8801"
16:56:06.337 [notice] ---- Node Service Prefix:       jlr.com/backend/
16:56:06.468 [notice] ---- RVI Node External Address: 192.168.178.26:8807
c_src/bt_linux_drv.c:1052: read_callback: 0:1
c_src/bt_linux_drv.c:1066: READ: 4 pbuf_len=4
c_src/bt_linux_drv.c:1070: READ: 4 packet len=10
c_src/bt_linux_drv.c:1052: read_callback: 0:1
c_src/bt_linux_drv.c:1087: READ: 10 packet bytes
c_src/bt_linux_drv.c:1089: PACKET: remain=0
ctx.list = {}
c_src/bt_linux_drv.c:678: CMD_RFCOMM_LISTEN cmdid=2
c_src/bt_linux_drv.c:710: Listening on device 00:02:72:DA:24:A5

c_src/bt_sub.c:70: retain_subscription: RFCOMM_LISTEN id=1,handle=0x4 ref=0
c_src/bt_linux_drv.c:1052: read_callback: 0:1
c_src/bt_linux_drv.c:1066: READ: 4 pbuf_len=4
c_src/bt_linux_drv.c:1070: READ: 4 packet len=13
c_src/bt_linux_drv.c:1052: read_callback: 0:1
c_src/bt_linux_drv.c:1087: READ: 13 packet bytes
c_src/bt_linux_drv.c:1089: PACKET: remain=0
ctx.list = { RFCOMM_LISTEN id=1,handle=0x4 ref=1,}
c_src/bt_linux_drv.c:755: CMD_RFCOMM_ACCEPT cmdid=3
c_src/bt_sub.c:189: find_subscription_link: RFCOMM id=2
c_src/bt_sub.c:189: find_subscription_link: RFCOMM_LISTEN id=1
c_src/bt_linux_drv.c:787: First acceptor for listen descriptor 1. Add to poll
c_src/bt_sub.c:70: retain_subscription: RFCOMM id=2,handle=(nil) ref=0
c_src/bt_sub.c:70: retain_subscription: RFCOMM id=2,handle=(nil) ref=1
Eshell V6.2  (abort with ^G)
1> 16:58:37.710 [error] gen_server service_discovery_rpc terminated with reason: no case clause matching {error,{not_found,dlink_bt_rpc}} in {rvi_common,notification,5,[{file,[115,114,99,47,114,118,105,95,99,111,109,109,111,110,46,101,114,108]},{line,220}]}
16:58:37.711 [error] CRASH REPORT Process service_discovery_rpc with 0 neighbours crashed with reason: no case clause matching {error,{not_found,dlink_bt_rpc}} in {rvi_common,notification,5,[{file,[115,114,99,47,114,118,105,95,99,111,109,109,111,110,46,101,114,108]},{line,220}]}
16:58:37.712 [error] Supervisor service_discovery_sup had child service_discovery_rpc started with service_discovery_rpc:start_link() at <0.76.0> exit with reason no case clause matching {error,{not_found,dlink_bt_rpc}} in {rvi_common,notification,5,[{file,[115,114,99,47,114,118,105,95,99,111,109,109,111,110,46,101,114,108]},{line,220}]} in context child_terminated

Note that I have not configured bt links in the almost untouched. Just changed the the IP address in "rvi_core/backend.config". '[115,114,99,47,114,118,105,95,99,111,109,109,111,110,46,101,114,108]' translates to "src/rvi_common.erl".

Not sure, whether this is a rvi_backend or rvi_core or an configuration issue.

josemic commented 8 years ago

And also:
sudo apt-get install libssl-dev before: sudo pip install cryptography

as well as: sudo apt-get install python-mysqldb

rstreif commented 8 years ago

Great, thanks. Fixed and merged.

:rjs

On Wed, Sep 2, 2015 at 4:44 AM, josemic notifications@github.com wrote:

And also:

sudo apt-get install libssl-dev before: sudo pip install cryptography

— Reply to this email directly or view it on GitHub https://github.com/PDXostc/rvi_backend/issues/37#issuecomment-137043885.

Rudolf J Streif System Architect - Open Source Initiative Open Source Technology Centre

M: +1.619.631.5383 Email: rstreif@jaguarlandrover.com

UK: G/26/2 G02 Building 523, Engineering Centre, Gaydon, Warwick, CV35 ORR US: 1419 NW 14th Ave, Portland, OR 97209

jjaguar.com | landrover.com

Business Details: Jaguar Land Rover Limited Registered Office: Abbey Road, Whitley, Coventry CV3 4LF Registered in England No: 1672070

This e-mail and any attachments contain confidential information for a specific individual and purpose. The information is private and privileged and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, please e-mail us immediately. We apologise for any inconvenience caused but you are hereby notified that any disclosure, copying or distribution or the taking of any action in reliance on the information contained herein is strictly prohibited.

This e-mail does not constitute an order for goods or services unless accompanied by an official purchase order.

josemic commented 8 years ago

Some very minor issues: It's libssl-dev not libssl-devel under Ubuntu. Also python-dev is needed, as cryptography includes python.h