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

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

Open
dcs2020 opened this issue Nov 28, 2019 · 5 comments
Open

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

dcs2020 opened this issue Nov 28, 2019 · 5 comments

Comments

@dcs2020
Copy link

dcs2020 commented Nov 28, 2019

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

@JustinCappos
Copy link
Contributor

JustinCappos commented Nov 28, 2019 via email

@dcs2020
Copy link
Author

dcs2020 commented Nov 29, 2019

Hi Justin,

Thank you for the respone.

Are you actually able to connect between the systems yourself with netcat or similar?
Yes, I am able to ping from one system to another through ssh and ping commands but connection is not happening between server and primary.

Do you have a host firewall on a system or anything else that may block communication?
No, I dont have any firewall I am using open access network system.

Thank you,
Deepthi

@JustinCappos
Copy link
Contributor

JustinCappos commented Nov 29, 2019 via email

@dcs2020
Copy link
Author

dcs2020 commented Dec 2, 2019

Hi Justin,

I tried to connect it through nc command but it is not able to connect.

Thank you,
Deepthi

@JustinCappos
Copy link
Contributor

JustinCappos commented Dec 2, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants