jhipster / generator-jhipster

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
https://www.jhipster.tech
Apache License 2.0
21.47k stars 4.02k forks source link

exec: "bash": executable file not found in $PATH: unknown #22320

Closed amatosg closed 1 year ago

amatosg commented 1 year ago
Overview of the issue

When trying to run the application, I get the following message:

[+] Building 0.0s (0/0)
WARN[0000] Found orphan containers ([root-postgresql-1]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. 
[+] Running 0/1
⠼ Container root-facturapp-1  Starting  0.5s
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown

The modification I did to the POM file was changing the java version to temurin-17.0.7 and setting up the registry destination.

Motivation for or Use Case

This prevents me to run my application

Reproduce the error
Related issues

Searched, but found none.

Suggest a Fix

I'm not sure how to fix this.

JHipster Version(s)

7.9.3

JHipster configuration
.yo-rc.json file
{
  "generator-jhipster": {
    "applicationType": "monolith",
    "authenticationType": "jwt",
    "baseName": "FacturApp",
    "blueprints": [],
    "buildTool": "maven",
    "cacheProvider": "caffeine",
    "clientFramework": "angularX",
    "clientPackageManager": "npm",
    "clientTheme": "sandstone",
    "clientThemeVariant": "primary",
    "creationTimestamp": 1672205892286,
    "databaseType": "sql",
    "devDatabaseType": "postgresql",
    "devServerPort": 4200,
    "dtoSuffix": "DTO",
    "enableGradleEnterprise": false,
    "enableHibernateCache": true,
    "enableSwaggerCodegen": false,
    "enableTranslation": false,
    "entities": [
      "many-entities"
    ],
    "entitySuffix": "",
    "incrementalChangelog": true,
    "jhiPrefix": "fa",
    "jhipsterVersion": "7.9.3",
    "jwtSecretKey": "YourJWTSecretKeyWasReplacedByThisMeaninglessTextByTheJHipsterInfoCommandForObviousSecurityReasons",
    "languages": ["en", "fr"],
    "lastLiquibaseTimestamp": 1679976862000,
    "messageBroker": false,
    "microfrontend": false,
    "microfrontends": [],
    "nativeLanguage": "es",
    "otherModules": [],
    "packageName": "com.facturapp",
    "pages": [],
    "prodDatabaseType": "postgresql",
    "reactive": false,
    "searchEngine": false,
    "serverPort": "8080",
    "serverSideOptions": ["websocket:spring-websocket"],
    "serviceDiscoveryType": "no",
    "skipCheckLengthOfIdentifier": false,
    "skipClient": false,
    "skipFakeData": false,
    "skipUserManagement": false,
    "testFrameworks": ["cucumber"],
    "websocket": "spring-websocket",
    "withAdminUi": false
  }
}

Entity configuration(s) entityName.json files generated in the .jhipster directory

The error is not present before/after entity generation.

Browsers and Operating System

Firefox/Arch Linux Deployment server: Ubuntu 22.10 and latest docker from official repository

amatosg commented 1 year ago

sorry, it was a Java image related issue :)