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


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


Change History (8)

comment:1 Changed 9 years ago by carlos

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,


comment:2 Changed 9 years ago by antonio

This is the output from hostname

[antonio@centos3 WRF4G]$ hostname -s
[antonio@centos3 WRF4G]$ hostname -f
hostname: Unknown host

and now?

I'm only want to run the WRF4G on my local machine.


comment:3 Changed 9 years ago by carlos

Dear Antonio,

You need to edit /etc/sysconfig/network file and enter the hostname in there:


Kind Regards,


comment:4 Changed 9 years ago by antonio


My network config file had that entry before

[antonio@centos3 bin]$ cat /etc/sysconfig/network

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: centos3

Kind Regards,


comment:6 Changed 9 years ago by antonio


I have added centos3 to my localhost entries   localhost localhost.localdomain localhost4 localhost4.localdomain4 centos3
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6 centos3

Now hostname -f is working:

[antonio@centos3 ~]$ hostname -f

and the ping command

[antonio@centos3 ~]$ ping centos3
PING localhost ( 56(84) bytes of data.
64 bytes from localhost ( icmp_seq=1 ttl=64 time=0.056 ms
64 bytes from localhost ( 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


[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.


comment:7 Changed 9 years ago by carlos

Dear Antonio,

The issue has been fixed wrf4g:diff:@1819:1820.

Kind Regards,


comment:8 Changed 9 years ago by carlos

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.