473,385 Members | 1,553 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

could not create socket for statistics collector: Protocol not supported

I'm a little confused about why I am getting this. I was reading a message
from Tom earlier that said it was because postgresql could not bind to
localhost, but the statistics collector is running and localhost does
resolve to 127.0.0.1. There is no dns server, only an /etc/hosts file. Is
it possible that it's still resolving fine, but either getaddrinfo() or
something else is returning an error because there is no dns server
available? I do see a lot of failed connection attempts to port 53 from
postgres. This is on freebsd 5.2.1/Posgresql beta1.

Chris
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 23 '05 #1
2 3451
"Chris" <ch***@paymentonline.com> writes:
I'm a little confused about why I am getting this. I was reading a message
from Tom earlier that said it was because postgresql could not bind to
localhost, but the statistics collector is running and localhost does
resolve to 127.0.0.1.
"Protocol not supported" suggests to me that getaddrinfo is returning an
IPv6 address for localhost when your kernel only supports IPv4 (or
possibly vice versa, but that seems much less likely). You didn't give
enough detail to help in explaining why that might happen...
I do see a lot of failed connection attempts to port 53 from
postgres.


If you are intending to run without DNS, then you need to create or
adjust your /etc/resolv.conf file to say so.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 23 '05 #2
In a moment of brain fade I wrote:
If you are intending to run without DNS, then you need to create or
adjust your /etc/resolv.conf file to say so.


Er, make that "/etc/nsswitch.conf" ...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ash | last post by:
i have tried this: socket_create(AF_UNIX, SOCK_STREAM, SOL_TCP); but it said: Warning: socket_create() Unable to create socket : Protocol not supported OK, then who can tell me what can i...
2
by: David Konerding | last post by:
Hello, I have written an app which opens a TCP connection to a server and uses a protocol to communicate with it. Specifically, I've written a python IMD client for the molecular dynamics...
4
by: Scott Robinson | last post by:
I have been having trouble with the garbage collector and sockets. Unfortunately, google keeps telling me that the problem is the garbage collector ignoring dead (closed?) sockets instead of...
0
by: Mounir Benzid | last post by:
waiting for postmaster to shut down...LOG: received smart shutdown request ..LOG: shutting down ...LOG: database system is shut down done postmaster successfully shut down LOG: could not...
2
by: Robert Creager | last post by:
I'm receiving the following error during startup: Aug 10 14:11:27 thunder postgres: LOG: failed to create socket: Address family not supported by protocol Aug 10 14:11:27 thunder postgres: ...
0
by: Mounir Benzid | last post by:
Hi I'm new to this list so say a quick "hello @all!" Ok my question: I did compile the official 7.4 sources for the solaris 8 platform and compilation went right. The problem occured after...
0
by: Vladimir Lushnikov | last post by:
Hi, I'm experimenting with the Seqpacket protocol, because the connectionless protocols aren't enough for my needs, and TCP/IP doesn't preserve message boundaries. This is what I've currently...
0
by: gaurav tyagi | last post by:
i am trying to downlosd frles from a local ftp server in my network . here i am able to connect to server but to get file list from server i send "PASV" command it retuns some value which is not...
4
by: SpreadTooThin | last post by:
client: import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(("192.168.1.101", 8080)) print 'Connected' s.send('ABCD') buffer = s.recv(4) print buffer s.send('exit')
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.