Failed to connect because: Authentication failed.
See original GitHub issueWorking off older commit because of build issue. Will try look into the build issue as described here, tonight.
However now I am facing a new error I have not noticed before. My local faucet.yaml is not being loaded into Poseidon after ./helpers/run
.
2018-06-27T14:16:35+00:00 172.17.0.1 plugin[1539]: 2018-06-27 13:16:35,386 - INFO - EndpointWrapper:140 - ====START
2018-06-27T14:16:35+00:00 172.17.0.1 plugin[1539]: 2018-06-27 13:16:35,386 - INFO - EndpointWrapper:103 - *******KNOWN*********
2018-06-27T14:16:35+00:00 172.17.0.1 plugin[1539]: 2018-06-27 13:16:35,386 - INFO - EndpointWrapper:135 - None
2018-06-27T14:16:35+00:00 172.17.0.1 plugin[1539]: 2018-06-27 13:16:35,386 - INFO - EndpointWrapper:103 - *******UNKNOWN*********
2018-06-27T14:16:35+00:00 172.17.0.1 plugin[1539]: 2018-06-27 13:16:35,386 - INFO - EndpointWrapper:131 - U:ee8d4ad8499c7f6a3b230b2237af0a22e12ed515:UNKNOWN->MIRRORING:{'mac': '00:00:00:00:00:02', 'ip': '10.0.0.2', 's': '1', 'p': '2', 'v': 'VLAN100'}
2018-06-27T14:16:35+00:00 172.17.0.1 plugin[1539]: 2018-06-27 13:16:35,399 - INFO - EndpointWrapper:103 - *******MIRRORING*********
2018-06-27T14:16:35+00:00 172.17.0.1 plugin[1539]: 2018-06-27 13:16:35,399 - INFO - EndpointWrapper:131 - M:6cd09124a66ef1bbc72c1aff4e333766d3533f81:MIRRORING->NONE:{'mac': '00:00:00:00:00:01', 'ip': '10.0.0.1', 's': '1', 'p': '1', 'v': 'VLAN100'}
2018-06-27T14:16:35+00:00 172.17.0.1 plugin[1539]: 2018-06-27 13:16:35,408 - INFO - EndpointWrapper:103 - *******SHUTDOWN*********
2018-06-27T14:16:35+00:00 172.17.0.1 plugin[1539]: 2018-06-27 13:16:35,408 - INFO - EndpointWrapper:135 - None
2018-06-27T14:16:35+00:00 172.17.0.1 plugin[1539]: 2018-06-27 13:16:35,408 - INFO - EndpointWrapper:103 - *******REINVESTIGATING*********
2018-06-27T14:16:35+00:00 172.17.0.1 plugin[1539]: 2018-06-27 13:16:35,408 - INFO - EndpointWrapper:135 - None
2018-06-27T14:16:35+00:00 172.17.0.1 plugin[1539]: 2018-06-27 13:16:35,409 - INFO - EndpointWrapper:144 - ****************
2018-06-27T14:16:35+00:00 172.17.0.1 plugin[1539]: 2018-06-27 13:16:35,409 - INFO - EndpointWrapper:145 - ====STOP
2018-06-27T14:16:36+00:00 172.17.0.1 plugin[1539]: 2018-06-27 13:16:36,378 - ERROR - connection:76 - failed to connect because: [Errno -2] Name does not resolve
2018-06-27T14:16:36+00:00 172.17.0.1 plugin[1539]: 2018-06-27 13:16:36,379 - ERROR - parser:54 - failed to load config
2018-06-27T14:16:36+00:00 172.17.0.1 plugin[1539]: 2018-06-27 13:16:36,379 - ERROR - parser:55 - [Errno 2] No such file or directory: '/etc/faucet/faucet.yaml'
Right enough, inside poseidon master container, /etc/faucet/
dir was empty. I added the faucet.yaml file in and then got the following errors…
EndpointWrapper:140 - ====START
2018-06-27T12:20:37+00:00 172.17.0.1 plugin[1539]: 2018-06-27 11:20:37,604 - INFO - EndpointWrapper:103 - *******KNOWN*********
2018-06-27T12:20:37+00:00 172.17.0.1 plugin[1539]: 2018-06-27 11:20:37,604 - INFO - EndpointWrapper:135 - None
2018-06-27T12:20:37+00:00 172.17.0.1 plugin[1539]: 2018-06-27 11:20:37,605 - INFO - EndpointWrapper:103 - *******UNKNOWN*********
2018-06-27T12:20:37+00:00 172.17.0.1 plugin[1539]: 2018-06-27 11:20:37,605 - INFO - EndpointWrapper:131 - U:b755976c5f1f44ac2487aebd5ccfbc61d2605d88:UNKNOWN->MIRRORING:{'mac': '00:00:00:00:00:09', 'ip': '10.0.0.9', 's': '1', 'p': '9', 'v': 'VLAN100'}
2018-06-27T12:20:37+00:00 172.17.0.1 plugin[1539]: 2018-06-27 11:20:37,610 - INFO - EndpointWrapper:103 - *******MIRRORING*********
2018-06-27T12:20:37+00:00 172.17.0.1 plugin[1539]: 2018-06-27 11:20:37,610 - INFO - EndpointWrapper:131 - M:690e86f8a4ca2b0e491a20525e12f6755c8c5df3:MIRRORING->NONE:{'mac': '00:00:00:00:00:03', 'ip': '10.0.0.3', 's': '1', 'p': '3', 'v': 'VLAN100'}
2018-06-27T12:20:37+00:00 172.17.0.1 plugin[1539]: 2018-06-27 11:20:37,615 - INFO - EndpointWrapper:131 - M:ee8d4ad8499c7f6a3b230b2237af0a22e12ed515:MIRRORING->NONE:{'mac': '00:00:00:00:00:02', 'ip': '10.0.0.2', 's': '1', 'p': '2', 'v': 'VLAN100'}
2018-06-27T12:20:37+00:00 172.17.0.1 plugin[1539]: 2018-06-27 11:20:37,620 - INFO - EndpointWrapper:131 - M:d4b9e238829451543fd53063b66f4447259023c1:MIRRORING->NONE:{'mac': '00:00:00:00:00:07', 'ip': '10.0.0.7', 's': '1', 'p': '7', 'v': 'VLAN100'}
2018-06-27T12:20:37+00:00 172.17.0.1 plugin[1539]: 2018-06-27 11:20:37,625 - INFO - EndpointWrapper:131 - M:b8785da56e2ce5c24e459cc81dee6548734e5a0c:MIRRORING->NONE:{'mac': '00:00:00:00:00:05', 'ip': '10.0.0.5', 's': '1', 'p': '5', 'v': 'VLAN100'}
2018-06-27T12:20:37+00:00 172.17.0.1 plugin[1539]: 2018-06-27 11:20:37,629 - INFO - EndpointWrapper:131 - M:6cd09124a66ef1bbc72c1aff4e333766d3533f81:MIRRORING->NONE:{'mac': '00:00:00:00:00:01', 'ip': '10.0.0.1', 's': '1', 'p': '1', 'v': 'VLAN100'}
2018-06-27T12:20:37+00:00 172.17.0.1 plugin[1539]: 2018-06-27 11:20:37,634 - INFO - EndpointWrapper:131 - M:593d14c4f37ed120fb08fb786ccd8c1c3eed0ce6:MIRRORING->NONE:{'mac': '00:00:00:00:00:04', 'ip': '10.0.0.4', 's': '1', 'p': '4', 'v': 'VLAN100'}
2018-06-27T12:20:37+00:00 172.17.0.1 plugin[1539]: 2018-06-27 11:20:37,639 - INFO - EndpointWrapper:131 - M:e426693da5f27e5ab27f76bf2db13832d06e9f56:MIRRORING->NONE:{'mac': '00:00:00:00:00:06', 'ip': '10.0.0.6', 's': '1', 'p': '6', 'v': 'VLAN100'}
2018-06-27T12:20:37+00:00 172.17.0.1 plugin[1539]: 2018-06-27 11:20:37,644 - INFO - EndpointWrapper:131 - M:7087dd12a9a314f05f7d0732da6af8f39d1696a4:MIRRORING->NONE:{'mac': '00:00:00:00:00:08', 'ip': '10.0.0.8', 's': '1', 'p': '8', 'v': 'VLAN100'}
2018-06-27T12:20:37+00:00 172.17.0.1 plugin[1539]: 2018-06-27 11:20:37,649 - INFO - EndpointWrapper:103 - *******SHUTDOWN*********
2018-06-27T12:20:37+00:00 172.17.0.1 plugin[1539]: 2018-06-27 11:20:37,649 - INFO - EndpointWrapper:135 - None
2018-06-27T12:20:37+00:00 172.17.0.1 plugin[1539]: 2018-06-27 11:20:37,649 - INFO - EndpointWrapper:103 - *******REINVESTIGATING*********
2018-06-27T12:20:37+00:00 172.17.0.1 plugin[1539]: 2018-06-27 11:20:37,649 - INFO - EndpointWrapper:135 - None
2018-06-27T12:20:37+00:00 172.17.0.1 plugin[1539]: 2018-06-27 11:20:37,649 - INFO - EndpointWrapper:144 - ****************
2018-06-27T12:20:37+00:00 172.17.0.1 plugin[1539]: 2018-06-27 11:20:37,649 - INFO - EndpointWrapper:145 - ====STOP
2018-06-27T12:20:40+00:00 172.17.0.1 plugin[1539]: 2018-06-27 11:20:40,609 - ERROR - connection:76 - failed to connect because: Authentication failed.
2018-06-27T12:20:42+00:00 172.17.0.1 plugin[1539]: 2018-06-27 11:20:42,335 - ERROR - connection:76 - failed to connect because: Authentication failed.
I have also checked the permissions on the faucet.yaml natively…
$ ls -ls /etc/faucet/faucet.yaml
4 -rw-rw-rw- 1 root sub-admins 1684 Jun 25 11:14 /etc/faucet/faucet.yaml
I am running Poseidon by docker stop
and docker rm
all containers, exporting the following…
export controller_uri=143.117.69.165
export controller_type=faucet
export controller_log_file=/var/log/faucet/faucet.log
export controller_config_file=/etc/faucet/faucet.yaml
export controller_mirror_ports='{"sw1":10}' # dp and switch port to mirror to
export collector_nic=s1-eth10 # set the NIC of the machine that traffic will be mirrored to
export max_concurrent_reinvestigations=1 # if running FAUCET, this should be set to 1, if BCF, it can be a larger number
export logger_level=INFO
and then running ./helpers/run
.
How exactly does Poseidon update the original, local copy of faucet.yaml? I do not have full administrative privileges on the machine I am running and am wondering if that is causing this authentication issue?
Issue Analytics
- State:
- Created 5 years ago
- Comments:17 (17 by maintainers)
The log level is sectional - also, exporting
logging_level
won’t actually do anything, since it’s not being picked up as a variable in./helpers/run
. You’ll need to setlogging_level = DEBUG
in each section you want it to be at the DEBUG level, rather than the default INFO. Notice there’s aconfig = True
in each section ofconfig/poseidon.config
, the same would go forlogging_level
.I’m still working on reproducing and tracking down the original issue - will update when I make some progress there.
Will try this tomorrow morning or tonight if I can squeeze it in. Thanks so much for your patience!