I cant setup a cluster on product machine ; there is no error in log, but the cluster cant do leader election;
Neo4j.conf:
dbms.mode=CORE
causal_clustering.minimum_core_cluster_size_at_formation=3
causal_clustering.minimum_core_cluster_size_at_runtime=3
causal_clustering.initial_discovery_members=localhost:5000,localhost:5001,localhost:5002
causal_clustering.discovery_listen_address=:5000
causal_clustering.transaction_listen_address=:6000
causal_clustering.raft_listen_address=:7000
netstat -tunlp
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:7001 0.0.0.0:* LISTEN 8742/java
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:7002 0.0.0.0:* LISTEN 8866/java
tcp 0 0 127.0.0.1:5000 0.0.0.0:* LISTEN 8619/java
tcp 0 0 127.0.0.1:5001 0.0.0.0:* LISTEN 8742/java
tcp 0 0 127.0.0.1:5002 0.0.0.0:* LISTEN 8866/java
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:7000 0.0.0.0:* LISTEN 8619/java
Debug_log: the log stoped on this step, and no more
2022-08-18 02:32:11.613+0000 INFO [o.n.c.d.SecureHazelcastCoreTopologyService] Discovering other core members in initial members set: [localhost:5002, localhost:5001, localhost:5000]
2022-08-18 02:32:11.658+0000 INFO [o.n.c.c.c.l.s.SegmentedRaftLog] log started with recovered state State{prevIndex=-1, prevTerm=-1, appendIndex=-1}
2022-08-18 02:32:11.659+0000 INFO [o.n.c.c.c.m.RaftMembershipManager] Membership state before recovery: RaftMembershipState{committed=null, appended=null, ordinal=-1}
2022-08-18 02:32:11.659+0000 INFO [o.n.c.c.c.m.RaftMembershipManager] Recovering from: -1 to: -1
2022-08-18 02:32:11.660+0000 INFO [o.n.c.c.c.m.RaftMembershipManager] Membership state after recovery: RaftMembershipState{committed=null, appended=null, ordinal=-1}
2022-08-18 02:32:11.660+0000 INFO [o.n.c.c.c.m.RaftMembershipManager] Target membership: []
2022-08-18 02:32:12.039+0000 INFO [o.n.c.n.Server] raft-server: bound to 127.0.0.1:7000
2022-08-18 02:32:21.235+0000 INFO [o.n.c.d.SecureHazelcastCoreTopologyService] Cluster discovery service started
2022-08-18 02:32:21.406+0000 INFO [o.n.c.d.CoreMonitor] Bound to cluster with id 095f1809-5bd9-47c4-85e7-4aac2db1f866
2022-08-18 02:32:21.413+0000 INFO [o.n.c.d.SecureHazelcastCoreTopologyService] Core topology changed {added=[{memberId=MemberId{84056e50}, info=CoreServerInfo{raftServer=localhost:7001, catchupServer=localhost:6001, clientConnectorAddresses=bolt://localhost:7688,http://localhost:7475,https://localhost:6475, groups=[], database=default, refuseToBeLeader=false}}], removed=[]}
2022-08-18 02:32:21.413+0000 INFO [o.n.c.c.c.m.RaftMembershipManager] Target membership: [MemberId{84056e50}]
2022-08-18 02:32:21.465+0000 INFO [o.n.c.d.CoreMonitor] Discovered core member at localhost:5001
2022-08-18 02:32:28.388+0000 INFO [o.n.c.d.CoreMonitor] Discovered core member at localhost:5002
2022-08-18 02:32:28.393+0000 INFO [o.n.c.d.SecureHazelcastCoreTopologyService] Core topology changed {added=[{memberId=MemberId{960e78d6}, info=CoreServerInfo{raftServer=localhost:7002, catchupServer=localhost:6002, clientConnectorAddresses=bolt://localhost:7689,http://localhost:7476,https://localhost:6476, groups=[], database=default, refuseToBeLeader=false}}], removed=[]}
2022-08-18 02:32:28.393+0000 INFO [o.n.c.c.c.m.RaftMembershipManager] Target membership: [MemberId{960e78d6}, MemberId{84056e50}]
2022-08-18 02:34:05.925+0000 INFO [o.n.c.p.h.HandshakeServerInitializer] Installing handshake server local /127.0.0.1:7000 remote /127.0.0.1:57072
Related
I am trying to connect to Oracle through SQL Developer in a remote computer.
The listener is up, as I verified using the command:
lsnrctl status
LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 12-JUL-2018 13:59:38
Copyright (c) 1991, 2014, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 12.1.0.2.0 - Production
Start Date 12-JUL-2018 13:40:56
Uptime 0 days 0 hr. 18 min. 42 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/sicm/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "cfmisiro.cross.dc.uel.br" has 1 instance(s).
Instance "fmisiro", status READY, has 1 handler(s) for this service...
Service "fmisiro.cross.dc.uel.br" has 1 instance(s).
Instance "fmisiro", status READY, has 1 handler(s) for this service...
Service "fmisiroXDB.cross.dc.uel.br" has 1 instance(s).
Instance "fmisiro", status READY, has 1 handler(s) for this service...
The command completed successfully
I configured the iptable with the command:
iptables -A INPUT -p tcp -s 0.0.0.0 --dport 1521 -j ACCEPT
The port is being listened:
netstat -an | grep "LISTEN "
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:1521 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:61544 0.0.0.0:* LISTEN
tcp6 0 0 :::111 :::* LISTEN
tcp6 0 0 :::80 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 ::1:631 :::* LISTEN
tcp6 0 0 :::23064 :::* LISTEN
tcp6 0 0 ::1:6010 :::* LISTEN
tcp6 0 0 :::443 :::* LISTEN
tcp6 0 0 127.0.0.1:8005 :::* LISTEN
tcp6 0 0 :::22312 :::* LISTEN
tcp6 0 0 :::8009 :::* LISTEN
However when I try to connect from a remote computer, it fails.
Trying to connect through telnet:
telnet host 1521
I get the error:
telnet: Unable to connect to remote host: Connection timed out
When I try to connect through SQL Developer, I get the error:
Status : Erro de ES: The Network Adapter could not establish the connection
What am I missing?
I have another database that connects to the SQL Developer.
This one:
lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 12-JUL-2018 14:34:18
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 29-JUN-2018 14:30:41
Uptime 13 days 0 hr. 3 min. 37 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
Services Summary...
Service "fmisir.cross.dc.uel.br" has 1 instance(s).
Instance "fmisir", status READY, has 1 handler(s) for this service...
Service "fmisirXDB.cross.dc.uel.br" has 1 instance(s).
Instance "fmisir", status READY, has 1 handler(s) for this service...
The command completed successfully
I have provisioned an Azure VM based on Puppet Enterprise image, but I can't access to the console from https://.cloudapp.net as per this guide. I notice that my VM dns is https://.eastasia.cloudapp.net.
I'm guessing I will need to update the host file, but I'm not really familiar the right settings for Linux VM. Appreciate if someone can shed some light.
I have provisioned an Azure VM based on Puppet Enterprise image, but I
can't access to the console from https://.cloudapp.net as per this
guide.
When we deploy puppet use puppet Enterprise 3.7.2, deploy it to the classic mode or ARM module, I can't access the console same as you.
When we login this VM, we can not find puppet was running, here is the output:
jason#jasonpup1:~$ netstat -ant
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 10.0.0.4:16001 0.0.0.0:* LISTEN
tcp 0 256 10.0.0.4:22 167.220.255.6:62887 ESTABLISHED
tcp 0 0 10.0.0.4:42321 168.63.129.16:80 TIME_WAIT
tcp 0 0 10.0.0.4:42322 168.63.129.16:80 TIME_WAIT
tcp6 0 0 :::22 :::* LISTEN
jason#jasonpup1:~$
I guess there are something wrong with that template.
As a workaround, we can choose Puppet Enterprise 2016.1 Template to deploy puppet, we can find the guide here. After deployment completed, we can SSH to this VM, then we can find the puppet service is running:
root#puppetmaster:~# netstat -ant
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 10.0.0.4:16001 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
tcp 0 0 10.0.0.4:33096 168.63.129.16:80 TIME_WAIT
tcp 0 0 127.0.0.1:47946 127.0.0.1:61613 ESTABLISHED
tcp 0 0 127.0.0.1:34232 127.0.0.1:8140 TIME_WAIT
tcp 0 0 127.0.0.1:5432 127.0.0.1:58812 ESTABLISHED
tcp 0 0 10.0.0.4:43480 52.239.152.132:443 TIME_WAIT
tcp 0 0 10.0.0.4:43484 52.239.152.132:443 TIME_WAIT
tcp 0 0 10.0.0.4:43483 52.239.152.132:443 TIME_WAIT
tcp 0 0 10.0.0.4:43481 52.239.152.132:443 TIME_WAIT
tcp 0 0 127.0.0.1:58137 127.0.0.1:8142 ESTABLISHED
tcp 0 0 10.0.0.4:33099 168.63.129.16:80 TIME_WAIT
tcp 0 52 10.0.0.4:22 167.220.255.6:61149 ESTABLISHED
tcp6 0 0 :::56516 :::* LISTEN
tcp6 0 0 :::8140 :::* LISTEN
tcp6 0 0 :::61613 :::* LISTEN
tcp6 0 0 :::8142 :::* LISTEN
tcp6 0 0 :::61616 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 :::5432 :::* LISTEN
tcp6 0 0 127.0.0.1:8142 127.0.0.1:58137 ESTABLISHED
tcp6 0 0 127.0.0.1:58812 127.0.0.1:5432 ESTABLISHED
tcp6 0 0 127.0.0.1:61613 127.0.0.1:47946 ESTABLISHED
We can use this template to deploy Puppet in Azure, that works fine.
For a few months all has been ok, but now I have a lot of:
mix phoenix.server
[error] Postgrex.Protocol (#PID<0.302.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect (localhost:5432): connection refused - :econnrefused
[error] Postgrex.Protocol (#PID<0.303.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect (localhost:5432): connection refused - :econnrefused
on localhost.
But:
Postgresql is running
Its config is the same
The config of my phoenix/elixir application is the same too.
systemctl status postgresql shows everything is ok
nothing bad in the log
I can connect to Pg via Pg GUI tool
What's the matter?
$ netstat -tulnp
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp6 0 0 ::1:5432 :::* LISTEN -
udp 0 0 192.168.1.37:68 0.0.0.0:* -
udp 0 0 0.0.0.0:5353 0.0.0.0:* 25117/libpepflashpl
udp6 0 0 :::5353 :::* 25117/libpepflashpl
Apache 2.4.7,
Ubuntu Server 14.04.
Shinken with WebUI
Name Server : dev03
I'm on an Ubuntu Server 14, I've installed Shinken to make monitoring. Shinken is working good and discover hosts on my network.
Then I want to "link" graphite on Shinken to have some graphics. All the install works fine and I can see the Graphite UI on my server. I follow this tutorial to make install of Graphite : https://www.digitalocean.com/community/tutorials/how-to-install-and-use-graphite-on-an-ubuntu-14-04-server
But I've some problems :
My Graphite doesn't display data when I make something like :
echo "test.count 4 date +%s" | nc -q0 127.0.0.1 2003
Nothing appears on Graphite...
When I go to Shinken, the windows of graph display no data. Certainly due to the first problem.
And when I click on Show more button he sends me on the page of Graphite, but with nothing else behind uri. (like http://dev03) Is it normal ?
I've trying this also :
https://askubuntu.com/questions/509629/sending-data-to-port-does-not-seem-to-be-working-on-ubuntu-linux
But it seems my port 2003 is not listening / open
netstat -tuplen
Connexions Internet actives (seulement serveurs)
Proto Recv-Q Send-Q Adresse locale Adresse distante Etat User Inode PID/Program name
tcp 0 0 0.0.0.0:7767 0.0.0.0:* LISTEN 1001 544010 1816/python
tcp 0 0 0.0.0.0:7768 0.0.0.0:* LISTEN 1001 542859 1194/python
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 107 9068 931/postgres
tcp 0 0 0.0.0.0:7769 0.0.0.0:* LISTEN 1001 543251 1432/python
tcp 0 0 0.0.0.0:7771 0.0.0.0:* LISTEN 1001 543079 1317/python
tcp 0 0 0.0.0.0:7772 0.0.0.0:* LISTEN 1001 543634 1579/python
tcp 0 0 0.0.0.0:7773 0.0.0.0:* LISTEN 1001 543810 1694/python
tcp 0 0 127.0.0.1:44255 0.0.0.0:* LISTEN 1001 543623 1582/python
tcp 0 0 127.0.0.1:43007 0.0.0.0:* LISTEN 1001 542845 1201/python
tcp 0 0 127.0.0.1:38856 0.0.0.0:* LISTEN 1001 543911 1793/python
tcp 0 0 127.0.0.1:57546 0.0.0.0:* LISTEN 1001 543808 1695/python
tcp 0 0 127.0.0.1:46282 0.0.0.0:* LISTEN 1001 543238 1439/python
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 102 9099 855/mysqld
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 0 8098 548/rpcbind
tcp 0 0 127.0.0.1:34293 0.0.0.0:* LISTEN 1001 543071 1326/python
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 8930 792/sshd
tcp6 0 0 ::1:5432 :::* LISTEN 107 9067 931/postgres
tcp6 0 0 ::1:7770 :::* LISTEN 1001 543920 1792/python
tcp6 0 0 :::111 :::* LISTEN 0 8101 548/rpcbind
tcp6 0 0 :::80 :::* LISTEN 0 541053 708/apache2
tcp6 0 0 :::22 :::* LISTEN 0 8932 792/sshd
udp 0 0 0.0.0.0:703 0.0.0.0:* 0 8097 548/rpcbind
udp 0 0 0.0.0.0:111 0.0.0.0:* 0 8092 548/rpcbind
udp6 0 0 :::703 :::* 0 8100 548/rpcbind
udp6 0 0 :::111 :::* 0 8099 548/rpcbind
If someone can help me... because I've see many forums and other website, but I can't find a solution...
Ok,
I allow myself to answer my own question, because I noticed that there was not a lot of answers / aids on Graphite / Shinken. And personally I struggled to find a solution.
So, when I launch this command, on my Ubuntu server :
service carbon-cache start
It seems that carbon-cache doesn't start... or not as expected. I found another way to start this service and be sure it works :
carbon-cache --config /etc/carbon/carbon.conf start # For normal mode
carbon-cache --config /etc/carbon/carbon.conf --debug start # For debug mode
That's only way for me to start this daemon correctly. In fact my port 2003 was listening as attempt. After that, Shinken and Graphite works fine.
(It seems on Debian, there is no this problem. I encounter this only on Ubuntu Server)
I have magically been able to break port 80 / Apache server when following a guide to install PHPMyAdmin (http://www.krizna.com/centos/installing-apache2-mysql-server-php-centos-6-lamp/#apache)
Prior to me to starting the guide, Apache 2 was working for me (was able to view pages and see the default blue one)
I followed the guide down to Step 4 under "PHP installation" and went to check the page and I was getting the following error (note: I skipped Mysql installation since I have it already installed and "Testing your page" in the Apache section since I had it working prior).
ERROR
The requested URL could not be retrieved
The following error was encountered while trying to retrieve the URL: http://`192.168.141.22`/
Read Error
The system returned: (104) Connection reset by peer
An error condition occurred while reading data from the network. Please retry your request.
Your cache administrator is webmaster.
Generated Wed, 03 Jul 2013 19:04:56 GMT by tx22rrpep4da (hpm/3.0.55)
I tried to uninstall (yum erase) httpd and php and re-install and no success.
I did an nmap and it shows 80/tcp filtered http.
I even disabled/stopped IP tables incase that was the issue, no luck. I have other things like TS3 running on other ports fine.
Restarted the dedicated server.
netstat -tulpn
te PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 25896/httpd
tcp 0 0 0.0.0.0:30033 0.0.0.0:* LISTEN 2967/./ts3server_li
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 2736/named
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2798/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2873/master
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 2736/named
tcp 0 0 0.0.0.0:10011 0.0.0.0:* LISTEN 2967/./ts3server_li
tcp 0 0 ::1:53 :::* LISTEN 2736/named
tcp 0 0 :::22 :::* LISTEN 2798/sshd
tcp 0 0 ::1:953 :::* LISTEN 2736/named
udp 0 0 0.0.0.0:9987 0.0.0.0:* 2967/./ts3server_li
udp 0 0 127.0.0.1:53 0.0.0.0:* 2736/named
udp 0 0 ::1:53 :::* 2736/named
I had a few other people test the IP in case it was just my connection but they all got the same as well (IP: 192.168.141.22 )
Really hoping I can get this fixed with out doing something over the top like wiping and re-installing centos 6.
The netstat command is showing that Apache is in-deed listening on the following IP & port:
0 0.0.0.0:80
If you want reach Apache in 192... ip, then you need to edit one of the .conf files that has the "Listen" directive(normally in /etc/httpd/conf.d/ports.conf or the main .conf file) and either put in the ip or remove all ips so Apache can listen on all interfaces available in the machine.