i am create ipsec between two openwrt,but i get follow erroes:
parsed IKE_AUTH response 1 [ N(AUTH_FAILED) ]
received AUTHENTICATION_FAILED notify error
establishing connection 'site_to_site' failed
the follows is server`s config,client is the same format
what the problem is,how can i solve the problem?
Related
I attempted to connect neo4j aura database using Python but failed as "Unable to retrieve routing information".
from neo4j import GraphDatabase
from neo4j.debug import watch
uri = "neo4j+s://<id>.databases.neo4j.io"
driver = GraphDatabase.driver(uri, auth=("neo4j", "<password>"))
def workload(tx):
return tx.run("RETURN 1 as n").data()
with watch("neo4j"): # enable logging
with driver.session() as session:
session.write_transaction(workload)
driver.close()
Running above python scripts returned the following log:
Attempting to update routing table from IPv4Address(('<id>.databases.neo4j.io', 7687))
[#0000] C: <RESOLVE> <id>.databases.neo4j.io:7687
[#0000] C: <OPEN> xx.xxx.xxx.xxx:7687
[#C000] C: <SECURE> <id>.databases.neo4j.io
[#0000] C: <CONNECTION FAILED> BoltSecurityError: [SSLCertVerificationError] Connection Failed. Please ensure that your database is listening on the correct host and port and that you have enabled encryption if required. Note that the default encryption setting has changed in Neo4j 4.0. See the docs for more information. Failed to establish encrypted connection. (code 1: Operation not permitted)
Failed to fetch routing info 35.xxx.xxx.xxx:7687
[#0000] C: <ROUTING> Deactivating address IPv4Address(('<id>.databases.neo4j.io', 7687))
[#0000] C: <ROUTING> table={None: RoutingTable(database=None routers={}, readers={}, writers={}, last_updated_time=0.235748575, ttl=0)}
Attempting to update routing table from
Unable to retrieve routing information
Transaction failed and will be retried in 1.1281720312998946s (Unable to retrieve routing information)
I looked into neo4j documentation and searched other places but none of the possible resolutions can be found.
Version:
Python 3.7.4
neo4j 4.4.2
I very much appreciate your input if you have ever experienced the same issues and found any way to resolve the issue.
I'm using HyperLedger Fabric(v1.4.1) on 3 host machines(server1:client, server2:peer nodes server3:orderer nodes).
And I want to put my raft nodes on multiple hosts.(like server1:orderer1,orderer2, server2:orderer3)
I edited docker-compose-cli.yaml below
extra hosts: (in client and peer)
- orderer1.example.com:${SERVER1}
- orderer2.example.com:${SERVER1}
- orderer3.example.com:${SERVER2}
extra hosts: (in orderer1,2)
- orderer3.example.com:${SERVER2}
extra hosts: (in orderer3)
- orderer1.example.com:${SERVER1}
- orderer2.example.com:${SERVER1}
in this case,I got that messages like this from orderer3 logs...
**
'Failed to send StepRequest to 2, because: rpc error: code = Unavailable desc = all SubConns are TransientFailure , latest
connection error: connection error: desc = "transport: authentication
handshake failed: x509: certificate is valid for orderer1.example.com,
orderer1, not orderer2.example.com" '
**
What should I do except docker-compose-cli.yaml configurations?
Thank you very mutch for all of your help.
you should also make change on configtx.yaml.
I have a problem like this. I am very new to hyper ledger fabric. I attach a shell to a running peer container in visual studio code and hit peer node start command in that terminal it gives me an error saying that,
2018-09-13 09:08:04.621 UTC [nodeCmd] status -> INFO 040 Error trying to get status from local peer: rpc error: code = Unknown desc
= access denied
status:UNKNOWN
Error: Error trying to connect to local peer: rpc error: code = Unknown desc = access denied
Can Someone help me to solve this problem? I search a lot but I was unable to find a solution to my problem. Thank You?
edit: the problem is you are using an old card with a new setup. when you create the app and then restarted the environment, it leads to the regeneration of the certificates.
I guess the problem is the FABRIC_VERSION. When you set it to hlfv1 and get bash into peer container (docker exec -it peer0.org1.example.com bash), the peer commands are working properly but when you set it to hlfv12 there are some peer commands are not working. I guess there is something wrong with the startup scripts. There is no "creds" folder exists under hlfv12/composer like hlfv1/composer by the way..
The peer node status command must be called by an administrator of the peer (someone who holds a private key matching one of the public keys in the MSP admincerts folder).
You need to run peer commands on a properly configured (by correct authentication materials) client. In my case it was CLI node.
Peer node logs:
root#bba2c96e744e:/# peer node status
2019-04-04 13:26:18.407 UTC [nodeCmd] status -> INFO 001 Error trying to get status from local peer: rpc error: code = Unknown desc = access denied
status:UNKNOWN
Error: Error trying to connect to local peer: rpc error: code = Unknown desc = access denied
root#bba2c96e744e:/# peer chaincode list --installed
Error: Bad response: 500 - access denied for [getinstalledchaincodes]: Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin]
root#bba2c96e744e:/# peer logging getlevel system
Error: rpc error: code = Unknown desc = access denied
CLI node logs:
root#4079f33980f3:/# peer node status
status:STARTED
root#4079f33980f3:/# peer chaincode list --installed
Get installed chaincodes on peer:
Name: ccc, Version: 1.0, Path: chaincode/ccc, Id: e75e5770a29401d840b46a775854a1bb8576c6d83cf2832dce650d2a984ab29a
root#4079f33980f3:/# peer logging getlevel system
2019-04-04 13:26:02.287 UTC [cli/logging] getLevel -> INFO 001 Current log level for peer module 'system': INFO
the pjsua project is configured in linux(centos),the follows are my codes.Please help me,I have checked more about this problem ,but nothing useful about pjsua testing in linux.
[root#hy bin]# ls pjsua-x86_64-unknown-linux-gnu PJSYSTEST.TXT
pjsystest-x86_64-unknown-linux-gnu reg.cfg samples [root#hy bin]#
./pjsua-x86_64-unknown-linux-gnu --config-file reg.cfg
after this,the error is coming:
02:43:37.421 sip_resolve.c ...Failed to resolve 'xxxxxxx(sip
address)'. Err=70018 (gethostbyname() has returned error
(PJ_ERESOLVE))
02:43:37.421 tsx0x2342998 ...Failed to send Request msg
REGISTER/cseq=9911 (tdta0x2340930)! err=70018 (gethostbyname() has
returned error (PJ_ERESOLVE))
02:43:37.421 pjsua_acc.c .....SIP registration failed, status=502
(gethostbyname() has returned error (PJ_ERESOLVE))
looking forward your help.
Obviously this is a name resolution problem. The REGISTER URI can not be resolved by your system. Make sure you are pointing to a valid, reachable DNS server or the hostname is configured in your /etc/hosts.
I am using OpenHab 1.7
I am trying to publish messages throw MQTT,
I want to publish my EnOcean Rocker switch updates but when I change my switch state nothing is published, Here is my item configuration:
Switch MyRocker () {enocean="{id=00:25:7F:9A, eep=F6:02:01, channel=B, parameter=I}", mqtt=">[eclipsemqttbroker:myRockerState:command:ON:1],>[eclipsemqttbroker:myRockerState:command:OFF:0]"}
In the debug mode I got the following messages
13:54:25.404 [DEBUG] [.io.transport.mqtt.MqttService:123 ] - Starting MQTT Service...
13:54:26.471 [INFO ] [.io.transport.mqtt.MqttService:108 ] - MQTT Service initialization completed.
13:54:26.480 [INFO ] [o.i.t.m.i.MqttBrokerConnection:114 ] - Starting MQTT broker connection 'eclipsemqttbroker'
13:54:26.537 [DEBUG] [o.i.t.m.i.MqttBrokerConnection:294 ] - Creating new client for 'tcp://m2m.eclipse.org:1883' using id 'openHabEnOcean' and file store '/tmp/eclipsemqttbroker'
13:34:11.850 [DEBUG] [b.mqtt.internal.MqttItemConfig:71 ] - Loaded MQTT config for item 'MyRocker' : 0 subscribers, 2 publishers
13:34:11.904 [DEBUG] [m.internal.MqttEventBusBinding:61 ] - MQTT: Activating event bus binding.
Any ideas why no message has not been published?
Note : I only use the mqtt transport bundle I did not use the persistance bundle.
Thanks in advance for your help!
This configuration works:
Switch MyRocker () {enocean="{id=00:25:7F:9A, eep=F6:02:01, channel=B, parameter=I}", mqtt=">[eclipsemqttbroker:myRockerState:state:ON:default],>[eclipsemqttbroker:myRockerState:state:OFF:default]"}