w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
syslog: does it remove the old logs if there would be less space on the storage
It completely depends how much stuff gets logged, but if you only have ~100MB, I would imagine that it's certainly likely that your storage will fill up before 30 years! You didn't say which syslog server you're using. If you're on an embedded device you might be using the BusyBox syslogd, or you may be using the regular syslogd, or you may be using rsyslog. But in general, no syslog server rotates log files all by itself. They all depend on external scripts run from cron to do it. So you should make sure you have such scripts installed. In non-embedded systems the log rotation functionality is often provided by a software package called logrotate, which is quite elaborate and has configuration files to say how and when which log files should be rotated. In embedded systems there is no s

Categories : Linux

Send C# Application Logs to Linux Syslog Server
try using log4net, it offers a RemoteSyslogAppender https://logging.apache.org/log4net/release/framework-support.html below an example of configuration <appender name="RemoteSyslogAppender" type="log4net.Appender.RemoteSyslogAppender"> <facility value="Local6" /> <identity value="MyApp[%level][%property{log4net:HostName}]" /> <layout type="log4net.Layout.PatternLayout" value="%-5level %logger [%ndc] - %message" /> <remoteAddress value="yourAddressHere" /> </appender>

Categories : C#

Connection Refused when wrapping JMS Connection in ThreadLocal
It's hard to say exactly why this is happening, but JMS clients are usually multi-threaded beasts, so I can see that this strategy might not be totally kosher. JMS Connections are intended to be thread-safe, you you might want to just wrap your connection in a singleton or something. (JMS Sessions and below are not thread-safe and should not be shared by threads, so you might consider putting the session in a thread local if you're committed to this approach).

Categories : Java

SSH -L connection successful, but localhost port forwarding not working "channel 3: open failed: connect failed: Connection refused"
ssh -v -L 8783:localhost:8783 myacct@server.com ... channel 3: open failed: connect failed: Connection refused When you connect to port 8783 on your local system, that connection is tunneled through your ssh link to the ssh server on server.com. From there, the ssh server makes TCP connection to localhost port 8783 and relays data between the tunneled connection and the connection to target of the tunnel. The "connection refused" error is coming from the ssh server on server.com when it tries to make the TCP connection to the target of the tunnel. "Connection refused" means that a connection attempt was rejected. The simplest explanation for the rejection is that, on server.com, there's nothing listening for connections on localhost port 8783. In other words, the server software that yo

Categories : Osx

Connection error - connection refused
Use 10.0.2.2 instead of 127.0.0.1 10.0.2.2 Special alias to your host loopback interface (i.e., 127.0.0.1 on your development machine) Reference: Emulator Networking

Categories : Android

Syslog: What is the Configuration for Log errors using syslog in my PHP Application
// open syslog, include the process ID and also send // the log to standard error, and use a user defined // logging mechanism openlog("myScriptLog", LOG_PID | LOG_PERROR, LOG_LOCAL0); // some code if (authorized_client()) { // do something } else { // unauthorized client! // log the attempt $access = date("Y/m/d H:i:s"); syslog(LOG_WARNING, "Unauthorized client: $access {$_SERVER['REMOTE_ADDR']} ({$_SERVER['HTTP_USER_AGENT']})"); } closelog(); for more check this http://php.net/manual/en/function.syslog.php

Categories : PHP

How to send a message to a remote syslog by using syslog.h
To my knowledge using openlog and syslog as you describe will log to the server configured in syslog.conf, thus you cannot specify a server the way you want. You could set up remote server in syslog.conf and that should work. If you do not wish to do that, you either need to use a library that supports syslog as a sink, or you need to implement your own - which is not very hard.

Categories : C++

java equivalent of python syslog.syslog()
The closest I can think of, would be using Log4J and configuring the SyslogAppender so it writes to syslog. Sorry, that's not as easy as in Python!

Categories : Java

SFTP connection refused
Did you try logging in again after restarting sshd with the new configuration, to verify that the configuration really works? It looks like ChrootDirectory requires that the chrooted-to directory be owned by root. sshd is probably checking that and refusing to allow the login, else it cause a security problem. This article is from debian, but it should be relevant regardless: http://www.debian-administration.org/articles/590

Categories : Ubuntu

Netcat connection refused
Fixed...turns out the problem was with the netcat listener. By default, the -l command listens for TCP packets. I was sending UDP packets (the -u command). The "connection refused" message stemmed from the fact that the netcat sender did not have anything listening to it on the other machine. Not sure why this is the case, but from my experiments netcat will give you a "connection refused" message if you don't have a netcat listener that receives the packets from your netcat sender. Anyways, the command on the receiving machine that worked was: nc -4ul 10000

Categories : Linux

Eclipse git saying Connection Refused
2 problems I see: you are likely using the wrong port number, standard SSH is 22 and unless you have ssh listening on port 80 it will not work. Also, you path is odd, /git is not the same as /home/sajat/git. Try using the long path.

Categories : Eclipse

EC2 w/Elastic IP Connection Refused
Ok, I found that answer to this. I was under the impression that in /etc/mysql/my.cnf, I simply had to comment skip-networking (which does not appear in MySQL my.cnf past a certain version). Turns out you also have to comment out #bind-address = 127.0.0.1 . nc threw me off, I thought the problem was at the firewall. I'll still be happy to accept as a correct answer anyone who can shed light on what bind-address achieves. Thanks.

Categories : Amazon

Connection refused - not consistent
"Connection refused" means that no application is accepting connections on the port and host that you try to connect to. It can be caused by The application is actually running on a different host or a different port The application crashed and hasn't been restarted The application is buggy: it closes the listening server socket from time to time, so that it is not listening for connection attempts all the time Firewall is configured to respond to new connections with a "connection refused" even if the application was able to accept a connection

Categories : Http

Persistent connection or connection pooling in PHP54+ Nginx + PHPFPM + MongoDB
In the 1.4 version all connections are persistent, unless you close them yourself - which you should never do. You will see a connection per IP/username/password/database combination from each PHP processing unit. In your case, per each PHPFPM process. In order to reduce the number of connections, you need to have less username/password/database combinations. However, with 8 boxes, and 50 FPM processes and 3 nodes in your replicaset you're already at 1200 connections - without even taken into account database/username/password differences. There is not much that you can do about that, but it shouldn't have a big influence in performance. You are much more likely to hit RAM/slow disk limitations.

Categories : PHP

Zxing connection refused on production
Ok, so i finally got it to work, i put the code on boot.rb, just before the gems are loaded require 'rubygems' # Set up gems listed in the Gemfile. ENV['PORT_NUMBER'] = "4333" ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])

Categories : Ruby On Rails

Getting mysql "connection refused" when trying to connect using PHP
[ERROR] mysqld: Can't find file: './performance_schema/rwlock_instances.frm' (errno: 13) Check the file owners and access permissions. Error 13 is usually "permission denied."

Categories : PHP

LuaSocket smtp connection refused
You may need to specify the ip/port in your smtp.send function smtp.send{ from = from, rcpt = address, source = smtp.message(theMessage), server = 127.0.0.1, port = 25 }

Categories : Lua

connection refused from mail server
Try connecting to port 25 via telnet from the box that is giving you problems Check firewall and iptable settings on the mail server View the related logs on the mail server

Categories : Java

haystack elasticsearch connection refused
It looks like you've forgotten to start ElasticSearch when you've returned to the project because the local connection is refused. If you installed from the .deb file, then it should be wired into Ubuntu's service command so you can start it with $ sudo service elasticsearch start If you used the tarball, make sure you start it with something like: $ bin/elasticsearch More information in Installation docs http://www.elasticsearch.org/guide/reference/setup/installation/

Categories : Django

Getting java.net.ConnectException : Connection refused
I suggest you set up a tcpdump session to see where the connection refused is coming from. In particular, see what the source IP and destination IP addresses are, for both the successful connections and the unsuccessful ones. There are two possibilities the above is designed to test for: You say you're not using proxy servers, but Java actually has a separate proxy configuration from the rest of the system, so it may be that your Java is configured to use a non-functional proxy server. Your Java system could be sending requests using a different source IP address to the one that your curl is using.

Categories : Java

Connection refused - connect(2) rails
Do you think it might have anything to do with the issue mentioned by Houen in http://railscasts.com/episodes/278-search-with-sunspot?view=comments ?

Categories : Solr

Jenkins SMTP connection refused. What am I missing?
Still looks to me like your firewall is blocking Jenkins' service from accessing those ports - especially as the connection times-out, which is typical for such cases. Suggest you try to disable the firewall completely and see if there is any change. Cheers

Categories : Email

new or updated google endpoint api connection refused
I found a number of very similar but not quite the same issue reports around the March and April time frame of this year (2013). Reviewing the release notes for GPE, I saw that most of these issues were resolved by Google by May. I compared my Eclipse GPE and SDK versions and found that they were from the March time frame. So I did the following. 1) a full update of all installed Eclipse plug-ins including the Google plug-ins 2) removed all generated Google Cloud Endpoint code from both the AppEngine project and the Android App project 3) updated the AppEngine project version number found in the appengine-web.xml 4) re-generated all of the Google Cloud Endpoint libraries 5) deployed the updated AppEngine 6) used the AppEngine Dashboard to set the new Default version to match the abov

Categories : Android

Java - cannot connect to server - connection refused
"Connection refused" means that the connection attempt from the client reached the server (or a server), but there was nothing accepting connections at the specified IP address and port. Since you are using port 8001 in both cases, the simplest explanation is that either your server or your client aren't using the correct IP address to communicate with the other end. You're using this line to create the server socket: InetSocketAddress iaddr = new InetSocketAddress(InetAddress.getLocalHost(), 8001); the simplest explanation is that InetAddress.getLocalHost() isn't returning the same IP address that the client is using.

Categories : Java

Connection refused (PGError) (postgresql and rails)
The error message is instrumental: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5433? port You may be trying to connect to the wrong port. Standard port is 5432. Check how (and whether at all) you started your postgres server: postgres@db:~$ ps -auxww | grep ^postgres ... <stripped more lines> postgres 1274 0.0 0.3 1437240 57308 ? S May27 5:01 /usr/lib/postgresql/9.1/bin/postgres -D /var/lib/postgresql/9.1/main -c config_file=/etc/postgresql/9.1/main/postgresql.conf The manual has related information here. In my example, settings from /etc/postgresql/9.1/main/postgresql.conf got used, which says (among many other settings): port = 5432 Or run netstat -nlp | grep po

Categories : Ruby On Rails

Http Connection Refused on Android Device
Is that IP address accessible to outside world? Just a guess: I think the IP address, you were using might have been reserved. It worked in emulator cause you were still in the network (probably in your office). As you came outside the network with your real device it didn't work.

Categories : Android

Socket Exception: Connection Actively refused
You are most likely binding to and listening on a loopback interface. Use IPAddress.Any instead of LocalHostIP to accept connections on any interface.

Categories : Vb.Net

Swiftmailer under Symfony2 Issue Connection Refused
This could be because you might not have a mail server in your local machine.By using transport: mail , swiftmailer attempts to use php mail function with its default configuration which assumes you have a mail server in your localhost. If you dont have a mailserver in your localhost you can try to use some other smtp mailservers that you have access to. For that you have to configure your parameters.yml like mailer_transport: smtp mailer_host: mymailserver.com mailer_user: mysmtpusername mailer_password: mysmtppassword

Categories : Email

HttpHostConnectException connection refused ConnectException ErrnoException
I lso faced the same problem with my device. URI with json response working fine in browser but in device it throws exception. I simply reboot-ed my device then it is working in mobile side. you try to restart your device.

Categories : Android

Can't deploy to Heroku because the server refused the connection
Include the following in your application.rb, above the Module Appname config.assets.initialize_on_precompile = false And read the Heroku Labs: user-env-compile Article

Categories : Ruby On Rails

hadoop connection refused on port 9000
Use absolute path for this and make sure the hadoop user has permissions to access this directory:- <property> <name>dfs.data.dir</name> <value>~/hacking/hd-data/dn</value> </property> also make sure you format this path like # hadoop namenode -format

Categories : Java

Connection refused for PHP curl() when starting PHP webserver via exec()
I think that you rush! You start the webserver in background using "&" Then you try to connect, but in that moment, your web server is not fully started, so it's not listening! <?php echo "Starting server... "; exec("php -S localhost:8000 -t /path/to/files > /dev/null & echo $!", $output); // sleep 1-5 seconds sleep (5); $ch = curl_init("http://localhost/"); curl_setopt($ch, CURLOPT_PORT, 8000); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_exec($ch); if(curl_errno($ch)) { echo 'Curl error: ' . curl_error($ch); } // Close handle curl_close($ch); echo "PID: ".$output[0]." "; exec('kill '.$output[0]);

Categories : PHP

No connection could be made because the target machine actively refused it why?
I'm assuming you have two different programs and one is listening while the other is sending. If you don't, separate them out. I'm thinking you have a networking issue but can't say precisely why it's blocked. You're using port 10, which generally is too low for arbitrary application uses even if it's not currently occupied. If you're building a custom protocol, try to listen on a port above approximately 1000 (more a rule of thumb). You can look here http://technet.microsoft.com/en-us/library/cc959828.aspx or google for "tcp well known ports" for more details and to ensure you don't have a collision. Try running your TCP listener, then open a command prompt and typing the following telnet localhost 10 or use the port number you change 10 to. I tried your code and was able to connect

Categories : C#

Exception Connection refused while connecting Android device to PC
You are trying to access http://localhost:8080/project-server/rest/?value=test, but localhost refers to the loopback address 127.0.0.1, so your request is sent to your Android device itself, not to your pc. Change localhost with the ip address of your pc.

Categories : Java

Connection refused on remote IP, but accepted on local IP (Solved)
ECONNREFUSED means that the connection was attempted and the remote host answered back that nobody's listening on that port. That could mean several things: Is that really your IP? What does ifconfig/ipconfig say (hint: not necessarily what whatismyip.com will say)? Does the Java server listen on all interfaces? the same port could be on localhost open and closed on other interfaces. Check your bind addess on the server. Try a telnet + tcpdump, does it show that packets go to the correct address? And these are just the start.

Categories : Java

"The connection was refused by the host" error only with mobile data
Well, since domains are cheap, I decided to go the easy way and bought a .info domain which costs 3$ per year. I had to open my web app on port 80, since the same error occurs if I have port number in the URI (http://domain.info:9999 for example throws same exception). I hope this helps someone in the future :)

Categories : Android

Spark Standalone Mode: Connection to 127.0.1.1: refused
I found out that the problem is related to this problem. However, for me setting SPARK_LOCAL_IP on the workers didn't fix the problem. I had to change /etc/hosts to: 127.0.0.1 localhost and now it runs smoothly.

Categories : Scala

Weblogic server throwing Connection refused error
There are a lot of issues causing "Connection refused" Are you starting wl on windows or .... Firewall? Did you start the admin console? Please open http://localhost:7001/console Please post the content of wl log

Categories : Misc

Connection Refused - Why does zookeeper tries to connect to localhost instead of a server ip
I finally found out why it was connecting to the localhost. I was having more than one configuration object to interact with 2 or more tables in HBase. Only for one of the conf object, i was setting the zookeeper quorum address. Didn't set it for the other objects. By setting the zookeeper quorum address for all the objects did the trick. Edit : Using only one conf object is more desirable(mapper or reducer). And by using it like public void setup(Configuration conf) { conf.set("hbase.zookeeper.quorum", "xxxxx"); } The above code is easier to follow than having multiple objects which reduces HBase access time.

Categories : Hadoop

curl: (7) Failed connect to 127.0.0.1:5984; Connection refused
It could be that you're hitting the open file limit in Ubuntu (1024 by default) and so TCP connections cannot be created. I'm far from an expert on Ubuntu but this has been reported as a previous cause of such errors. See askubuntu.com for instructions on how to increase this limit. There is also a Resource Limits section in the CouchDB Wiki which might helpful.

Categories : Ubuntu



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.