question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

yo jhipster:upgrade failed from 4.2 to 4.3

See original GitHub issue

Here is the output:

Welcome to the JHipster Upgrade Sub-Generator This will upgrade your current application codebase to the latest JHipster version Looking for latest generator-jhipster version… New generator-jhipster version found: 4.3.0 Git repository detected Created branch jhipster_upgrade Cleaned up directory Installing JHipster 4.2.0 locally Installed generator-jhipster@4.2.0 Regenerating app with jhipster 4.2.0… Successfully regenerated app with jhipster 4.2.0 Committed with message “Generated with JHipster 4.2.0” Checked out branch “master” Current code recorded as generated with version 4.2.0 Updating generator-jhipster to 4.3.0 . This might take some time… Updated generator-jhipster to version 4.3.0 Checked out branch “jhipster_upgrade” Cleaned up directory Regenerating app with jhipster 4.3.0… Successfully regenerated app with jhipster 4.3.0 Committed with message “Generated with JHipster 4.3.0” Checked out branch “master” Merging changes back to master… Merge done! Installing dependencies, please wait… Error jhipster:upgrade

ERROR! yarnfailed.

The yo jhipster:info gives the following output:

Welcome to the JHipster Information Sub-Generator

JHipster Version(s)
smart-price@0.0.0 /Users/testuser/Demo/SmartPrice
└── (empty)

JHipster configuration, a .yo-rc.json file generated in the root folder
{
  "generator-jhipster": {
    "promptValues": {
      "packageName": "com.company.smartprice"
    },
    "jhipsterVersion": "4.2.0",
    "baseName": "SmartPrice",
    "packageName": "com.company.smartprice",
    "packageFolder": "com/company/smartprice",
    "serverPort": "8080",
    "authenticationType": "session",
    "hibernateCache": "ehcache",
    "clusteredHttpSession": false,
    "websocket": false,
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "prodDatabaseType": "mysql",
    "searchEngine": false,
    "messageBroker": false,
    "serviceDiscoveryType": false,
    "buildTool": "maven",
    "enableSocialSignIn": false,
    "rememberMeKey": "286e201fdd317cb4c624967b490c25997edc8f0b",
    "clientFramework": "angular2",
    "useSass": false,
    "clientPackageManager": "yarn",
    "applicationType": "monolith",
    "testFrameworks": [],
    "jhiPrefix": "jhi",
    "enableTranslation": false
  }
}
Entity configuration(s) entityName.json files generated in the .jhipster directory

ls: no such file or directory: .jhipster/*.json

Browsers and Operating System

java version “1.8.0_121” Java™ SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot™ 64-Bit Server VM (build 25.121-b13, mixed mode)

git version 2.11.0 (Apple Git-81)

node: v7.9.0

npm: 4.2.0

bower: 1.8.0

gulp: [13:30:37] CLI version 1.2.2

yeoman: 1.8.5

yarn: 0.23.2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
poolebucommented, May 26, 2017

Based on comments on the #5637 closed ticket, I did yarn upgrade and when the error appeared, I committed the yarn.lock and package.json, then ran jhipster upgrade again based on @jmlw solution. After that it worked perfectly, thank you! and thank you for this amazing framework

0reactions
jduboiscommented, Jun 6, 2017

Closed by #5883

Read more comments on GitHub >

github_iconTop Results From Across the Web

"jhipster upgrade" not working properly · Issue #5883 - GitHub
It's basically all the same issue: on some systems, the upgrade sub-generator cannot update the JHipster version. Typically, this is because it ...
Read more >
Upgrading an application - JHipster
When a new version of JHipster is released, the JHipster upgrade sub-generator helps upgrading an existing application to this new version, without erasing ......
Read more >
jhipster/generator-jhipster - Gitter
Successfully regenerated app with jhipster 4.2.0 Committed with message ... Updated generator-jhipster to version 4.3.0 Error jhipster:upgrade ERROR!
Read more >
What is the migration guide for upgrading jhipster app from ...
yarn global upgrade generator-jhipster@4.2.0. "jhipster" command stops being recognized in cmd and i have to use "yo jhipster" which results ...
Read more >
Next JHipster version - Google Groups
Otherwise, Liquibase would fail in production. I'm using PostgreSQL. ... Run "yo jhipster" in the project you want to upgrade. ... 4.2.0 (lowerca....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found