Skip to content
This repository was archived by the owner on Mar 29, 2022. It is now read-only.

Not able to run server and primary on different systems #200

@dcs2020

Description

@dcs2020

Hi,
I am running Server on desktop and running Primary on another system, for the setup in demo/_init.py file I have modified LOCAL with ip address of server and in demo/pinned_primary_template.json file I am modifiying local host with IP address of server but primary is not able to connect to server i am getting error as below:

import demo.demo_primary as dp
dp.clean_slate()

Primary is now listening for messages from Secondaries.
Registering Primary ECU Serial and Key with Director.
Primary will now listen on port 30701
Traceback (most recent call last):
File "", line 1, in
File "/home/root/uptane/demo/demo_primary.py", line 155, in clean_slate
register_self_with_director()
File "/home/root/uptane/demo/demo_primary.py", line 385, in register_self_with_director
_vin, True)
File "/usr/lib/python3.5/xmlrpc/client.py", line 1092, in call
return self.__send(self.__name, args)
File "/usr/lib/python3.5/xmlrpc/client.py", line 1432, in __request
verbose=self.__verbose
File "/usr/lib/python3.5/xmlrpc/client.py", line 1134, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib/python3.5/xmlrpc/client.py", line 1146, in single_request
http_conn = self.send_request(host, handler, request_body, verbose)
File "/usr/lib/python3.5/xmlrpc/client.py", line 1259, in send_request
self.send_content(connection, request_body)
File "/usr/lib/python3.5/xmlrpc/client.py", line 1289, in send_content
connection.endheaders(request_body)
File "/usr/lib/python3.5/http/client.py", line 1103, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.5/http/client.py", line 934, in _send_output
self.send(msg)
File "/usr/lib/python3.5/http/client.py", line 877, in send
self.connect()
File "/usr/lib/python3.5/http/client.py", line 849, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.5/socket.py", line 712, in create_connection
raise err
File "/usr/lib/python3.5/socket.py", line 703, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

Please help me out to solve the issue.

Thank you,
Deepthi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions