tuhaihe commented on PR #1544:
URL: https://github.com/apache/cloudberry/pull/1544#issuecomment-3981846337
> Hi!
>
> Have you tried create demo cluster inside docker container? I created
docker, successfully configure && build but got error while executing
create-demo-cluster:
>
> Here is log of the initdb command:
>
> ```
> Data page checksums are enabled.
> Cluster file encryption is disabled.
>
> creating directory
/home/gpadmin/cloudberry/gpAux/gpdemo/datadirs/qddir/demoDataDir-1 ... ok
> creating subdirectories ... ok
> selecting dynamic shared memory implementation ... posix
> selecting default max_connections ... 150
> selecting default shared_buffers ... 125MB
> selecting default time zone ... Europe/London
> creating configuration files ... ok
> running bootstrap script ... LOG: gp_role forced to 'utility' in
single-user mode
> ok
> performing post-bootstrap initialization ... LOG: gp_role forced to
'utility' in single-user mode
> 2026-02-05 15:22:11.067436
GMT,,,p32196,th876465728,,,,0,,,seg-10000,,,,,"LOG","00000","registered custom
resource manager ""Pax resource manager"" with ID
199",,,,,,,,"RegisterCustomRmgr","rmgr.c",139,
> initdb: error: error while reading cdb_init.d directory: Function not
implemented
> initdb: removing data directory
"/home/gpadmin/cloudberry/gpAux/gpdemo/datadirs/qddir/demoDataDir-1"
> ```
Hi, got the same error.
A small patch:
```bash
gpadmin@cdw:~/cloudberry$ git diff src/bin/initdb/initdb.c
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index 708cf77f..17cb5488 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -2024,6 +2024,7 @@ setup_cdb_schema(FILE *cmdfd)
/* Collect all files with .sql suffix in array. */
nscripts = 0;
+ errno = 0;
while ((file = readdir(dir)) != NULL)
{
int namelen = strlen(file->d_name);
```
But a more root patch here:
https://github.com/tuhaihe/cloudberrydb/commit/e9a4bb98173f695e37689e074b3dfe15f7cdca63
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]