Open
Description
Description
The db:create-and-fill
script fails on ARM64 architecture, specifically during the Flyway migration process. The error occurs while attempting to execute the flyway:migrate
command, which is part of the database setup and migration workflow.
Steps to Reproduce
- Run the following command on an ARM64 machine:
npm run db:create-and-fill
- Observe the following outputs:
- Database creation runs successfully
- Flyway migration fails with the error:
rosetta error: failed to open elf at /lib64/ld-linux-x86-64.so.2 /workspaces/nestjs-mod-fullstack/tmp/flyway-commandline-10.1.0/flyway-10.1.0/flyway: line 36: Trace/breakpoint trap "$JAVA_CMD" $JAVA_ARGS "$EXTRA_ARGS" -cp "$CP" org.flywaydb.commandline.Main "$@"
Expected Behavior
The script should complete all database setup steps successfully, including Flyway migrations, without encountering any errors on ARM64 architecture.
Actual Behavior
The Flyway migration step fails with a rosetta error, indicating a compatibility issue with the ELF binary required for Flyway on ARM64.
Possible Cause
The Flyway binary or its dependencies may be incompatible with the ARM64 architecture, as it appears to be looking for an x86-64 shared library (ld-linux-x86-64.so.2
), which is not available on ARM-based systems.
Environment
Architecture: ARM64
Node Version: 22
Flyway Version: 10.1.0
Project Version: 0.0.11
Nx Report
Node : 22.9.0
OS : linux-arm64
Native Target : aarch64-linux
npm : 8.19.4
nx : 20.0.3
@nx/js : 20.0.3
@nx/jest : 20.0.3
@nx/eslint : 20.0.3
@nx/workspace : 20.0.3
@nx/angular : 20.0.3
@nx/devkit : 20.0.3
@nrwl/devkit : 19.7.4
@nx/eslint-plugin : 20.0.3
@nx/node : 20.0.3
@nx/playwright : 20.0.3
@nx/vite : 20.0.3
@nx/web : 20.0.3
@nx/webpack : 20.0.3
typescript : 5.5.4
---------------------------------------
Registered Plugins:
@nx/playwright/plugin
@nx/eslint/plugin
---------------------------------------
Community plugins:
@nestjs-mod/schematics : 2.11.1
@theunderscorer/nx-semantic-release : 2.12.0
ng-zorro-antd : 18.1.1
---------------------------------------
The following packages should match the installed version of nx
- @nrwl/[email protected]
Metadata
Metadata
Assignees
Labels
No labels