Summary: Nightly build uses autotools/yum https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=223861 (Comment #8)Instance creation utility ds_newinst.pl has started failing with the "command not found" error. Weird thing is it was working till yesterday. And the code related to the path hasn't been changed for a while... *puzzled*
------- Additional Comments From nhosoi@xxxxxxxxxx 2007-01-26 20:23 EST ------- Description of problem: Output from ds_newinst.pl (with some debug messages) ==================================================== CGI /usr/lib/fedora-ds/ds_newinst failed with 1: here is the output: Content-type: text/plain [slapd-laputa]: starting up server ... [slapd-laputa]: Fedora-Directory/1.1 B2007.026.2158 [slapd-laputa]: laputa:25543 (/dev/shm/DS7.2-2049/server/slapd-laputa) [slapd-laputa]: [slapd-laputa]: [26/Jan/2007:15:46:40 -0800] - Fedora-Directory/1.1 B2007.026.2158 starting up [slapd-laputa]: [26/Jan/2007:15:46:40 -0800] - slapd started. Listening on All Interfaces port 25543 for LDAP requests error:MY PATH IS ... error:/usr/lib/fedora-ds error:/dev/shm/DS7.2-2049/server/slapd-laputa/start-slapd: line 54: expr: command not found error:/dev/shm/DS7.2-2049/server/slapd-laputa/start-slapd: line 58: cat: command not found error:/dev/shm/DS7.2-2049/server/slapd-laputa/start-slapd: line 53: test: -le: unary operator expected error:/dev/shm/DS7.2-2049/server/slapd-laputa/start-slapd: line 69: expr: command not found error:Server failed to start !!! Please check errors log for problems error:server:The server could not be started. system_errno:2 error:could not create server laputa - The server could not be started. NMC_Status: 1 Error: could not run /usr/lib/fedora-ds/ds_newinst: 1 Error: Could not create new directory server instance ==================================================== This "command not found" error is caused by ds_newinst wrapper, which calls the binary ds_newinst-bin. The wrapper ds_newinst sets BIN_DIR as follows: BIN_DIR=/usr/lib/fedora-ds PATH=${BIN_DIR} export PATH Next, ds_newinst-bin launches "start-slapd" via "system". The start script calls typical system commands such as cat and expr, but PATH is not set for them. To solve this problem, can we add "/usr/bin" and "/bin" to BIN_DIR? Index: ds_newinst.in =================================================================== RCS file: /cvs/dirsec/ldapserver/wrappers/ds_newinst.in,v retrieving revision 1.2 diff -t -w -U4 -r1.2 ds_newinst.in --- ds_newinst.in 2 Nov 2006 03:11:40 -0000 1.2 +++ ds_newinst.in 27 Jan 2007 00:36:28 -0000 @@ -4,9 +4,9 @@ ## (1) Specify variables used by this script. ## ############################################################################### LIB_DIR=@nss_libdir@:@nspr_libdir@:@ldapsdk_libdir@:@sasl_libdir@:@serverdir@ -BIN_DIR=@serverdir@ +BIN_DIR=@serverdir@:/usr/bin:/bin COMMAND=ds_newinst-bin
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
-- Fedora-directory-devel mailing list Fedora-directory-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-directory-devel