Setting up Actor-Server from source code

Posted in General by Mangudai GB Tue Jun 28 2016 21:57:34 GMT+0000 (UTC)·1·Viewed 158 times

I am trying to setup the actor-server on IntelliJ, and configure the actor-bootstrap/app-web to run with my local server. I am not using SSL currently. I have placed my server.conf in acotr-platform/actor-server/conf folder and specified my activation provider as "im.actor.server.activation.internal.InternalCodeProvider". The server starts up smoothly. I have changed the end point in app-web to point to ws://127.0.0.1:9080(Not using wss) But, when I open the web page, the connection resets automatically at the frontend. The following is the MTProto log which I am able to capture(dunno how much help it will be): MQTT {cmd: "reserved", retain: false, qos: 0, more...} BINARY true true 3:0:6.941 18953 48 B MQTT {cmd: "connack", retain: true, qos: 1, more...} BINARY false true 3:0:6.942 18953 186 B MQTT {cmd: "reserved", retain: false, qos: 0, more...} BINARY true true 3:0:6.958 18953 17 B MQTT {cmd: "reserved", retain: false, qos: 0, more...} BINARY false true 3:0:6.959 18953 39 B MQTT {cmd: "reserved", retain: false, qos: 0, more...} BINARY false true 3:0:6.960 18953 17 B MQTT {cmd: "reserved", retain: false, qos: 0, more...} BINARY true true 3:0:6.961 18953 17 B MQTT {cmd: "reserved", retain: false, qos: 0, more...} BINARY false true 3:0:6.962 18953 0 B CLOSE true true 3:0:6.962 18953 2 B รจ CLOSE false true 3:0:6.963 18954 Connected to:ws://127.0.0.1:9080/ 18953 Disconnectedcode: 1000 18954 52 B Disconnected code: 1000 On the server side, I see that there are two prepared statements that are being executed: 1. select auth_id, body from master_keys 2. select "id", "user_id", "public_key_hash" from "auth_ids" Both the result set for the queries are empty, and this keeps repeating(corresponding to each call from the app-web to the server). How do I fix it? Any help will be appreciated. Thanks!
Mangudai GB
July 1, 2016
Well I fixed it, I had to run "actor-cli key -c -o <your path>" and add the path in server.conf. Thanks.
  
Markdown is allowed