[Postgres-xl-general] Not able to run pgxc_ctl

Ramanuj Kumar ramanujsingh at gmail.com
Tue Sep 16 09:13:44 PDT 2014


Hi, 

I am evaluating Postgresql-XL for cluster solution in our product. 

I have installed pgxl at '/var/tmp/research/tmp_pgxl/pgxl/‘ location via “—prefix” option to configure command. (8.4-RELEASE FreeBSD)
Had problem with compilation, after including "sys/wait.h” in ./src/gtm/gtm_ctl/gtm_ctl.c, and "sys/types.h” in contrib/pgxc_ctl/utils.h file compilation went fine. 

I am not able to run pgxc_ctl command, it gives core dump. Appreciate any help. 


——Log—
$ ./bin/pgxc_ctl prepare
bash_handler.c:install_pgxc_ctl_bash(33) Installing pgxc_ctl_bash script as /home/pgxl/pgxc_ctl/pgxc_ctl_bash.
bash_handler.c:install_pgxc_ctl_bash(33) Installing pgxc_ctl_bash script as /home/pgxl/pgxc_ctl/pgxc_ctl_bash.
pgxc_ctl.c:read_configuration(250) Reading configuration using /home/pgxl/pgxc_ctl/pgxc_ctl_bash --home /home/pgxl/pgxc_ctl --configuration /home/pgxl/pgxc_ctl/pgxc_ctl.conf
/home/pgxl/pgxc_ctl/pgxc_ctl_bash: not found
pgxc_ctl.c:read_configuration(260) Finished to read configuration.
config.c:check_configuration(1069) ERROR: GTM master configuration is missing. gtmName, gtmMasterServer, gtmMasterPort or gtmMasterDir
config.c:check_configuration(1073) ERROR: Coordinator master configuration is missing. coordNames, coodPorts, poolerPorts, coordMasterPorts or coordMasterDirs
config.c:check_configuration(1083) ERROR: Datanode master configuration is missing. datanodeNames, datanodePorts, datanodePoolerPorts, datanodeMasterPorts or datanodeMasterDirs
config.c:reportMissingVar(517) ERROR: gtmName is not configured.
config.c:reportMissingVar(517) ERROR: gtmMasterServer is not configured.
config.c:reportMissingVar(517) ERROR: gtmMasterPort is not configured.
config.c:reportMissingVar(517) ERROR: gtmMasterDir is not configured.
config.c:reportMissingVar(517) ERROR: coordNames is not configured.
config.c:reportMissingVar(517) ERROR: coordPorts is not configured.
config.c:reportMissingVar(517) ERROR: poolerPorts is not configured.
config.c:reportMissingVar(517) ERROR: coordMasterServers is not configured.
config.c:reportMissingVar(517) ERROR: coordMasterDirs is not configured.
config.c:reportMissingVar(517) ERROR: coordMaxWALSenders is not configured.
config.c:reportMissingVar(517) ERROR: coordNames is not configured.
config.c:reportMissingVar(517) ERROR: coordPorts is not configured.
config.c:reportMissingVar(517) ERROR: poolerPorts is not configured.
config.c:reportMissingVar(517) ERROR: coordMasterServers is not configured.
config.c:reportMissingVar(517) ERROR: coordMasterDirs is not configured.
config.c:reportMissingVar(517) ERROR: coordMaxWALSenders is not configured.
config.c:reportMissingVar(517) ERROR: datanodeNames is not configured.
config.c:reportMissingVar(517) ERROR: datanodePorts is not configured.
config.c:reportMissingVar(517) ERROR: datanodePoolerPorts is not configured.
config.c:reportMissingVar(517) ERROR: datanodeMasterServers is not configured.
config.c:reportMissingVar(517) ERROR: datanodeMasterDirs is not configured.
config.c:reportMissingVar(517) ERROR: datanodeMaxWALSenders is not configured.
config.c:verifyResource(917) ERROR: Found fundamental configuration error.
Segmentation fault
$
——————

—pgxc_ctl.conf file is ——
$ cat /home/pgxl/pgxc_ctl/pgxc_ctl.conf
pgxcOwner=pgxl 
pgxcUser=$pgxcOwner
pgxcInstallDir=/var/tmp/research/pgxl


gtmMasterDir=/var/tmp/research/pgxl/data/gtm_master 
gtmMasterServer=localhost
gtmSlave=n
gtmProxy=n

coordMasterDir=/var/tmp/research/pgxl/data/coord_master
coordNames=(coord1)
coordPorts=(5432)
poolerPorts=(20010) 
coordMasterServers=(localhost)
coordMasterDirs=($coordMasterDir/coord1)

coordMaxWALSenders=($coordMaxWALsernder) 
coordSlave=n 
coordSpecificExtraConfig=(none) 
coordSpecificExtraPgHba=(none)

datanodeNames=(dn1 dn2) 
datanodeMasterDir=/var/tmp/research/pgxl/data/dn_master 
datanodePorts=(5433 5434) 
datanodePoolerPorts=(20011 20012) 
datanodeMasterServers=(localhost localhost) 
datanodeMasterDirs=($datanodeMasterDir/dn1 $datanodeMasterDir/dn2)

datanodeMaxWALSenders=($datanodeMaxWalSender $datanodeMaxWalSender) 
datanodeSlave=n 
primaryDatanode=dn1


$ 
—————



Thanks,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.postgres-xl.org/pipermail/postgres-xl-general-postgres-xl.org/attachments/20140916/eba76eb3/attachment.htm>


More information about the postgres-xl-general mailing list