This repository has been archived by the owner on Mar 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Not able to run server and primary on different systems #200
Comments
Are you actually able to connect between the systems yourself with netcat
or similar? Do you have a host firewall on a system or anything else that
may block communication?
…On Thu, Nov 28, 2019 at 7:28 AM dcs2020 ***@***.***> wrote:
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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#200>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGROD7S537UYTLO4CSNK3LQV62NFANCNFSM4JST2KOA>
.
|
Hi Justin, Thank you for the respone. Are you actually able to connect between the systems yourself with netcat or similar? Do you have a host firewall on a system or anything else that may block communication? Thank you, |
The Uptane repository is just a web server. Can you connect to it that way
to test?
…On Fri, Nov 29, 2019 at 1:18 AM dcs2020 ***@***.***> wrote:
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
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#200>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGROD5E7BKFSVCNYFBPWPTQWCX4BANCNFSM4JST2KOA>
.
|
Hi Justin, I tried to connect it through nc command but it is not able to connect. Thank you, |
Okay, if you can't connect through nc, then it is a problem with your
network setup, not a problem with the Uptane code. You likely have some
iptables rules, firewall rules, etc. in place that are blocking HTTP
traffic.
I'm not sure what to tell you except you'll need to fix this before being
able to get Uptane to run. I'd recommend just getting a basic HTTP server
/ client setup working first and then running the Uptane code.
…On Mon, Dec 2, 2019 at 8:54 AM dcs2020 ***@***.***> wrote:
Hi Justin,
I tried to connect it through nc command but it is not able to connect.
Thank you,
Deepthi
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#200>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGROD7TJI2Q7SK3M5XQAETQWUHSBANCNFSM4JST2KOA>
.
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:
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
The text was updated successfully, but these errors were encountered: