Skip to content

Commit c62b470

Browse files
committed
fix: copy mysqlsh lib/mysqlsh/ directory (not just .so files)
mysqlsh expects lib/mysqlsh/ to exist as a subdirectory — it checks for this at startup and aborts with "lib folder not found, shell installation likely invalid" if missing. Previously we copied individual .so files flat into lib/ which didn't create the required lib/mysqlsh/ structure.
1 parent a76d93a commit c62b470

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/integration_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,8 @@ jobs:
544544
tar xzf "/tmp/$SHELL_TARBALL" -C /tmp/
545545
SHELL_DIR=$(ls -d /tmp/mysql-shell-${MYSQL_VERSION}* | head -1)
546546
cp "$SHELL_DIR/bin/mysqlsh" "$SANDBOX_BINARY/${MYSQL_VERSION}/bin/"
547-
# Copy mysqlsh bundled libraries (includes libprotobuf-lite)
548-
cp -a "$SHELL_DIR/lib/mysqlsh/"*.so* "$SANDBOX_BINARY/${MYSQL_VERSION}/lib/" 2>/dev/null || true
547+
# Copy mysqlsh bundled library directory (mysqlsh expects lib/mysqlsh/ to exist)
548+
cp -a "$SHELL_DIR/lib/mysqlsh" "$SANDBOX_BINARY/${MYSQL_VERSION}/lib/mysqlsh"
549549
echo "mysqlsh installed at $SANDBOX_BINARY/${MYSQL_VERSION}/bin/mysqlsh"
550550
551551
- name: Download and install MySQL Router

sandbox/templates/cluster/check_cluster.gotxt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{.Copyright}}
33
# Generated by dbdeployer {{.AppVersion}} using {{.TemplateName}} on {{.DateTime}}
44
MYSQLSH={{.MysqlShell}}
5-
export LD_LIBRARY_PATH={{.Basedir}}/lib:$LD_LIBRARY_PATH
5+
export LD_LIBRARY_PATH={{.Basedir}}/lib:{{.Basedir}}/lib/mysqlsh:$LD_LIBRARY_PATH
66
$MYSQLSH --uri icadmin:icadmin@127.0.0.1:{{.PrimaryPort}} --js -e "
77
var cluster = dba.getCluster();
88
print(cluster.status());

sandbox/templates/cluster/init_cluster.gotxt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{.Copyright}}
33
# Generated by dbdeployer {{.AppVersion}} using {{.TemplateName}} on {{.DateTime}}
44
MYSQLSH={{.MysqlShell}}
5-
export LD_LIBRARY_PATH={{.Basedir}}/lib:$LD_LIBRARY_PATH
5+
export LD_LIBRARY_PATH={{.Basedir}}/lib:{{.Basedir}}/lib/mysqlsh:$LD_LIBRARY_PATH
66

77
echo "Creating InnoDB Cluster..."
88

0 commit comments

Comments
 (0)