[Monetdb-developers] gethostbyname() problem
Hi All, I have a very strange problem running MapiClient on a RedHat system at the UVA which is not a bug I think. Problem is the gethostbyname() call within Mapi is not working. The Mserver started without problems but when I try to run Mapi: bash-3.1$ MapiClient -lx MAPI = monetdb@localhost:50000 ACTION= mapi_reconnect ERROR = gethostbyname failed /proc/version says: Linux version 2.6.20-1.2925.fc6 (brewbuilder@hs20-bc2-3.build.redhat.com) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)) #1 SMP Sat Mar 10 18:20:58 EST 2007 I have had a lot of other problems with this system like bootstrap complaining the filesys refcounts are not correct or the problem that after installation of MonetDB all file mask bits (rwx) of group-other (go) are ---, Anybody any idea what could cause the gethostbyname() problem here??? JanF.
Jan, I suppose your system is Fedora Core 6, right? (see `grep . /etc/redhat-release /etc/fedora-release`) What do the following do/say? grep localhost /etc/hosts host localhost host <your-fully-qualified-host-name> MapiClient -lx -h <your-fully-qualified-host-name> Stefan On Tue, Apr 17, 2007 at 02:35:06PM +0200, Jan Flokstra wrote:
Hi All,
I have a very strange problem running MapiClient on a RedHat system at the UVA which is not a bug I think. Problem is the gethostbyname() call within Mapi is not working. The Mserver started without problems but when I try to run Mapi:
bash-3.1$ MapiClient -lx MAPI = monetdb@localhost:50000 ACTION= mapi_reconnect ERROR = gethostbyname failed
/proc/version says: Linux version 2.6.20-1.2925.fc6 (brewbuilder@hs20-bc2-3.build.redhat.com) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)) #1 SMP Sat Mar 10 18:20:58 EST 2007
I have had a lot of other problems with this system like bootstrap complaining the filesys refcounts are not correct or the problem that after installation of MonetDB all file mask bits (rwx) of group-other (go) are ---,
Anybody any idea what could cause the gethostbyname() problem here???
JanF.
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |
On Tuesday 17 April 2007 14:48, you wrote:
Jan,
I suppose your system is Fedora Core 6, right? (see `grep . /etc/redhat-release /etc/fedora-release`)
-bash-3.1$ grep . /etc/redhat-release /etc/fedora-release /etc/redhat-release:Fedora Core release 6 (Zod) /etc/fedora-release:Fedora Core release 6 (Zod) -bash-3.1$
What do the following do/say?
grep localhost /etc/hosts
-bash-3.1$ grep localhost /etc/hosts ::1 localhost.localdomain localhost
host localhost
-bash-3.1$ host localhost Host localhost not found: 3(NXDOMAIN)
host <your-fully-qualified-host-name>
Host localhost not found: 3(NXDOMAIN) -bash-3.1$ host u007694.hum.uva.nl u007694.hum.uva.nl has address 146.50.78.129
MapiClient -lx -h <your-fully-qualified-host-name>
-bash-3.1$ MapiClient -h u007694.hum.uva.nl !ERROR mapi_reconnect: connect: Connection refused MAPI = monetdb@u007694.hum.uva.nl:50000 ACTION= mapi_reconnect ERROR = Setup connection failed -bash-3.1$ OK gethostbyname() now works. (It only fails now because I did not start the mapi listener accepting connection from other machines then localhost. How does this work, I use to do pfstart(true) but this now all automagically.) So it looks as if this system is just badly configured.! Jan.
Stefan
On Tue, Apr 17, 2007 at 02:35:06PM +0200, Jan Flokstra wrote:
Hi All,
I have a very strange problem running MapiClient on a RedHat system at the UVA which is not a bug I think. Problem is the gethostbyname() call within Mapi is not working. The Mserver started without problems but when I try to run Mapi:
bash-3.1$ MapiClient -lx MAPI = monetdb@localhost:50000 ACTION= mapi_reconnect ERROR = gethostbyname failed
/proc/version says: Linux version 2.6.20-1.2925.fc6 (brewbuilder@hs20-bc2-3.build.redhat.com) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)) #1 SMP Sat Mar 10 18:20:58 EST 2007
I have had a lot of other problems with this system like bootstrap complaining the filesys refcounts are not correct or the problem that after installation of MonetDB all file mask bits (rwx) of group-other (go) are ---,
Anybody any idea what could cause the gethostbyname() problem here???
JanF.
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
On Tue, Apr 17, 2007 at 04:00:19PM +0200, Jan Flokstra wrote:
On Tuesday 17 April 2007 14:48, you wrote:
Jan,
I suppose your system is Fedora Core 6, right? (see `grep . /etc/redhat-release /etc/fedora-release`)
It seems the machine only has ip-v6 setup, which we do not support. Niels
-bash-3.1$ grep . /etc/redhat-release /etc/fedora-release /etc/redhat-release:Fedora Core release 6 (Zod) /etc/fedora-release:Fedora Core release 6 (Zod) -bash-3.1$
What do the following do/say?
grep localhost /etc/hosts
-bash-3.1$ grep localhost /etc/hosts ::1 localhost.localdomain localhost
host localhost
-bash-3.1$ host localhost Host localhost not found: 3(NXDOMAIN)
host <your-fully-qualified-host-name>
Host localhost not found: 3(NXDOMAIN) -bash-3.1$ host u007694.hum.uva.nl u007694.hum.uva.nl has address 146.50.78.129
MapiClient -lx -h <your-fully-qualified-host-name>
-bash-3.1$ MapiClient -h u007694.hum.uva.nl !ERROR mapi_reconnect: connect: Connection refused MAPI = monetdb@u007694.hum.uva.nl:50000 ACTION= mapi_reconnect ERROR = Setup connection failed -bash-3.1$
OK gethostbyname() now works. (It only fails now because I did not start the mapi listener accepting connection from other machines then localhost. How does this work, I use to do pfstart(true) but this now all automagically.) So it looks as if this system is just badly configured.!
Jan.
Stefan
On Tue, Apr 17, 2007 at 02:35:06PM +0200, Jan Flokstra wrote:
Hi All,
I have a very strange problem running MapiClient on a RedHat system at the UVA which is not a bug I think. Problem is the gethostbyname() call within Mapi is not working. The Mserver started without problems but when I try to run Mapi:
bash-3.1$ MapiClient -lx MAPI = monetdb@localhost:50000 ACTION= mapi_reconnect ERROR = gethostbyname failed
/proc/version says: Linux version 2.6.20-1.2925.fc6 (brewbuilder@hs20-bc2-3.build.redhat.com) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)) #1 SMP Sat Mar 10 18:20:58 EST 2007
I have had a lot of other problems with this system like bootstrap complaining the filesys refcounts are not correct or the problem that after installation of MonetDB all file mask bits (rwx) of group-other (go) are ---,
Anybody any idea what could cause the gethostbyname() problem here???
JanF.
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
-- Niels Nes, Centre for Mathematics and Computer Science (CWI) Kruislaan 413, 1098 SJ Amsterdam, The Netherlands room C0.02, phone ++31 20 592-4098, fax ++31 20 592-4312 url: http://www.cwi.nl/~niels e-mail: Niels.Nes@cwi.nl
Jan Flokstra wrote:
On Tuesday 17 April 2007 14:48, you wrote:
Jan,
I suppose your system is Fedora Core 6, right? (see `grep . /etc/redhat-release /etc/fedora-release`)
-bash-3.1$ grep . /etc/redhat-release /etc/fedora-release /etc/redhat-release:Fedora Core release 6 (Zod) /etc/fedora-release:Fedora Core release 6 (Zod) -bash-3.1$
What do the following do/say?
grep localhost /etc/hosts
-bash-3.1$ grep localhost /etc/hosts ::1 localhost.localdomain localhost
host localhost
-bash-3.1$ host localhost Host localhost not found: 3(NXDOMAIN)
Here is the bug. The system is badly configured. localhost should be a valid host name, and it should resolve to 127.0.0.1 (or ::1 if using IPv6).
host <your-fully-qualified-host-name>
Host localhost not found: 3(NXDOMAIN) -bash-3.1$ host u007694.hum.uva.nl u007694.hum.uva.nl has address 146.50.78.129
MapiClient -lx -h <your-fully-qualified-host-name>
-bash-3.1$ MapiClient -h u007694.hum.uva.nl !ERROR mapi_reconnect: connect: Connection refused MAPI = monetdb@u007694.hum.uva.nl:50000 ACTION= mapi_reconnect ERROR = Setup connection failed -bash-3.1$
OK gethostbyname() now works. (It only fails now because I did not start the mapi listener accepting connection from other machines then localhost. How does this work, I use to do pfstart(true) but this now all automagically.) So it looks as if this system is just badly configured.!
Jan.
Stefan
On Tue, Apr 17, 2007 at 02:35:06PM +0200, Jan Flokstra wrote:
Hi All,
I have a very strange problem running MapiClient on a RedHat system at the UVA which is not a bug I think. Problem is the gethostbyname() call within Mapi is not working. The Mserver started without problems but when I try to run Mapi:
bash-3.1$ MapiClient -lx MAPI = monetdb@localhost:50000 ACTION= mapi_reconnect ERROR = gethostbyname failed
/proc/version says: Linux version 2.6.20-1.2925.fc6 (brewbuilder@hs20-bc2-3.build.redhat.com) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)) #1 SMP Sat Mar 10 18:20:58 EST 2007
I have had a lot of other problems with this system like bootstrap complaining the filesys refcounts are not correct or the problem that after installation of MonetDB all file mask bits (rwx) of group-other (go) are ---,
Anybody any idea what could cause the gethostbyname() problem here???
JanF.
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
-- Sjoerd Mullender
On Tue, Apr 17, 2007 at 04:00:19PM +0200, Jan Flokstra wrote: [...]
MapiClient -lx -h <your-fully-qualified-host-name>
-bash-3.1$ MapiClient -h u007694.hum.uva.nl !ERROR mapi_reconnect: connect: Connection refused MAPI = monetdb@u007694.hum.uva.nl:50000 ACTION= mapi_reconnect ERROR = Setup connection failed -bash-3.1$
OK gethostbyname() now works. (It only fails now because I did not start the mapi listener accepting connection from other machines then localhost. How does this work, I use to do pfstart(true) but this now all automagically.)
Mserver --set mapi_open=true or perl -i -p -e 's|mapi_open=false|mapi_open=true|' <prefix>/etc/MonetDB.conf Stefan
So it looks as if this system is just badly configured.!
yes (see Niels' comment). Stefan
Jan.
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |
participants (4)
-
Jan Flokstra
-
Niels Nes
-
Sjoerd Mullender
-
Stefan Manegold