Opened 9 years ago
Closed 9 years ago
#225 closed defect (fixed)
The wrf4g_resources command is not working
Reported by: | antonio | Owned by: | carlos |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | WRF4G | Keywords: | |
Cc: | antonio |
Description
When I'm requesting the wrf4g resources availiable I'm getting this strange error:
[antonio@centos3 WRF4G]$ wrf4g_framework start Starting GridWay .... OK Starting MySQL .... OK [antonio@centos3 WRF4G]$ wrf4g_resources gethostbyname() : Unknown host FAILED: failed connection to gwd
Regards
Change History (8)
comment:1 Changed 9 years ago by carlos
comment:2 Changed 9 years ago by antonio
This is the output from hostname
[antonio@centos3 WRF4G]$ hostname -s centos3 [antonio@centos3 WRF4G]$ hostname -f hostname: Unknown host
and now?
I'm only want to run the WRF4G on my local machine.
Regards
comment:3 Changed 9 years ago by carlos
Dear Antonio,
You need to edit /etc/sysconfig/network file and enter the hostname in there:
HOSTNAME=centos3
Kind Regards,
Carlos
comment:4 Changed 9 years ago by antonio
Carlos,
My network config file had that entry before
[antonio@centos3 bin]$ cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=centos3
therefore rhis is not the solution to the problem.
comment:5 Changed 9 years ago by carlos
Dear Antonio,
If your problem continues, edit /etc/hosts file and add a line for your IP and hostname.
If you don't have an IP, you will have to use the example below:
127.0.0.0 centos3
Kind Regards,
Carlos
comment:6 Changed 9 years ago by antonio
Carlos,
I have added centos3 to my localhost entries
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 centos3 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 centos3
Now hostname -f is working:
[antonio@centos3 ~]$ hostname -f localhost
and the ping command
[antonio@centos3 ~]$ ping centos3 PING localhost (127.0.0.1) 56(84) bytes of data. 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.056 ms 64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.075 ms
but I don't understand why the MySQL was working with no problems and the GridWay not.
I had solved the problem changing the $WRF4G_LOCATION/opt/drm4g_gridway/var/gwd.port
[antonio@centos3 ~]$ cat /home/antonio/WRF4G/opt/drm4g_gridway/var/gwd.port centos3 6725
to
[antonio@centos3 ~]$ cat /home/antonio/WRF4G/opt/drm4g_gridway/var/gwd.port localhost 6725
GridWay doesnt need to write the FQDN of the host and only needs write it as localhost because all the client tools are communicating using the local filesystem $GW_LOCATION/etc and $GW_LOCATION/var`
We need to fix this.
Regards
comment:7 Changed 9 years ago by carlos
comment:8 Changed 9 years ago by carlos
- Resolution set to fixed
- Status changed from new to closed
Dear Antonio,
Maybe You have a wrong hostname configuration on your machine. Try to execute the commands bellow and check their answers:
hostname -s
hostname -f
Kind Regards,
Carlos