Rebuild our project using Vaadin 14.4.3 and get the following or start up (development mode):
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/webpack-dev-server/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN no-name@ No description
npm WARN no-name@ No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/@babel/cli/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2020-11-30 06:54:04.043 INFO 17506 --- [ restartedMain]
dev-updater : Frontend dependencies resolved successfully.
2020-11-30 06:54:04.044 INFO 17506 --- [ restartedMain]
dev-updater : Copying frontend resources from jar files ...
2020-11-30 06:54:04.061 INFO 17506 --- [ restartedMain]
dev-updater : Visited 18 resources. Took 17 ms.
2020-11-30 06:54:04.133 INFO 17506 --- [ restartedMain]
dev-updater : Updated /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/target/frontend/generated-flow-imports.js
------------------ Starting Frontend compilation. ------------------
2020-11-30 06:54:04.233 INFO 17506 --- [ restartedMain]
dev-webpack : Running webpack to compile frontend resources. This may take a moment, please stand by...
2020-11-30 06:54:06.564 INFO 17506 --- [ restartedMain]
dev-webpack : Started webpack-dev-server. Time: 2332ms
Vaadin application has been deployed and started to the context path "/development".
We get the login screen, logged in and then received this error:
2020-11-30 06:58:30.631 DEBUG 17506 --- [0.1-8080-exec-7]
o.a.u.c.n.ViewSecurityRegistrator : Granting access to view [class onerev.app.ui.dashboard.DashboardView]
2020-11-30 06:58:30.704 DEBUG 17506 --- [0.1-8080-exec-7]
o.a.ui.common.error.SessionErrorHandler : Handling uncaught exception
com.vaadin.flow.server.BootstrapException: Unable to read webpack stats file.
at com.vaadin.flow.server.BootstrapHandler$BootstrapPageBuilder.setupFrameworkLibraries(BootstrapHandler.java:893) ~[flow-server-2.3.7.jar:2.3.7]
at com.vaadin.flow.server.BootstrapHandler$BootstrapPageBuilder.setupDocumentHead(BootstrapHandler.java:770) ~[flow-server-2.3.7.jar:2.3.7]
at com.vaadin.flow.server.BootstrapHandler$BootstrapPageBuilder.getBootstrapPage(BootstrapHandler.java:539) ~[flow-server-2.3.7.jar:2.3.7]
at com.vaadin.flow.server.BootstrapHandler.synchronizedHandleRequest(BootstrapHandler.java:480) ~[flow-server-2.3.7.jar:2.3.7]
at com.vaadin.flow.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:40) ~[flow-server-2.3.7.jar:2.3.7]
at com.vaadin.flow.server.VaadinService.handleRequest(VaadinService.java:1545) ~[flow-server-2.3.7.jar:2.3.7]
at com.vaadin.flow.server.VaadinServlet.service(VaadinServlet.java:247) ~[flow-server-2.3.7.jar:2.3.7]
at com.vaadin.flow.spring.SpringServlet.service(SpringServlet.java:108) ~[vaadin-spring-12.3.1.jar:na]
...
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:na]
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) ~[na:na]
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) ~[na:na]
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) ~[na:na]
at java.base/java.net.Socket.connect(Socket.java:591) ~[na:na]
at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:177) ~[na:na]
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474) ~[na:na]
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:569) ~[na:na]
at java.base/sun.net.www.http.HttpClient.<init>(HttpClient.java:242) ~[na:na]
at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:341) ~[na:na]
at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:362) ~[na:na]
at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1242) ~[na:na]
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1181) ~[na:na]
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1075) ~[na:na]
at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1009) ~[na:na]
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1581) ~[na:na]
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1509) ~[na:na]
at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527) ~[na:na]
at com.vaadin.flow.server.frontend.FrontendUtils.getStatsAssetsByChunkName(FrontendUtils.java:532) ~[flow-server-2.3.7.jar:2.3.7]
at com.vaadin.flow.server.BootstrapHandler$BootstrapPageBuilder.appendNpmBundle(BootstrapHandler.java:909) ~[flow-server-2.3.7.jar:2.3.7]
at com.vaadin.flow.server.BootstrapHandler$BootstrapPageBuilder.setupFrameworkLibraries(BootstrapHandler.java:891) ~[flow-server-2.3.7.jar:2.3.7]
... 92 common frames omitted
ran npm install in node_modules/webpack-dev-server:
/usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js install --scripts-prepend-node-path=auto
npm WARN deprecated superagent@3.8.3: Please note that v5.0.1+ of superagent removes User-Agent header by default, therefore you may need to add it yourself (e.g. GitHub blocks requests without a User-Agent header). This notice will go away with v5.0.2+ once it is released.
npm WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
> husky@3.1.0 install /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server/node_modules/husky
> node husky install
husky > Setting up git hooks
Trying to install from node_modules directory, skipping Git hooks installation.
husky > Done
> puppeteer@1.20.0 install /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server/node_modules/puppeteer
> node install.js
Downloading Chromium r686378 - 114 Mb [====================]
100% 0.0s
Chromium downloaded to /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server/node_modules/puppeteer/.local-chromium/linux-686378
> core-js@2.6.12 postinstall /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> husky@3.1.0 postinstall /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server/node_modules/husky
> opencollective-postinstall || exit 0
Thank you for using husky!
If you rely on this package, please consider supporting our open collective:
> https://opencollective.com/husky/donate
> webpack-dev-server@3.10.3 prepare /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server
> rimraf ./ssl/*.pem && npm run build:client
> webpack-dev-server@3.10.3 build:client /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server
> rimraf ./client/* && npm-run-all -s -l -p "build:client:**"
[build:client:index ]
[build:client:index ]
> webpack-dev-server@3.10.3 build:client:index /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server
[build:client:index ]
> webpack ./client-src/default/index.js -o client/index.bundle.js --color --config client-src/default/webpack.config.js
[build:client:index ]
[build:client:live ]
[build:client:live ]
> webpack-dev-server@3.10.3 build:client:live /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server
[build:client:live ]
> webpack ./client-src/live/index.js -o client/live.bundle.js --color --config client-src/live/webpack.config.js
[build:client:live ]
[build:client:sockjs ]
[build:client:sockjs ]
> webpack-dev-server@3.10.3 build:client:sockjs /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server
[build:client:sockjs ]
> webpack ./client-src/sockjs/index.js -o client/sockjs.bundle.js --color --config client-src/sockjs/webpack.config.js
[build:client:sockjs ]
[build:client:clients]
[build:client:clients]
> webpack-dev-server@3.10.3 build:client:clients /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server
[build:client:clients]
> babel client-src/clients --out-dir client/clients
[build:client:clients]
[build:client:default]
[build:client:default]
> webpack-dev-server@3.10.3 build:client:default /home/pcorbett/corbettcode/clients/MedWorxs/onerev14/JavaModules/onerev-application/node_modules/webpack-dev-server
[build:client:default]
> babel client-src/default --out-dir client --ignore "./client-src/default/*.config.js"
[build:client:default]
[build:client:default]
babel:
[build:client:clients]
babel:
[build:client:default]
client-src/default does not exist
[build:client:clients]
client-src/clients does not exist
[build:client:default]
npm ERR! code ELIFECYCLE
[build:client:default]
npm ERR! errno 2
[build:client:clients]
npm ERR! code ELIFECYCLE
[build:client:clients]
npm ERR! errno 2
[build:client:default]
npm ERR! webpack-dev-server@3.10.3 build:client:default: `babel client-src/default --out-dir client --ignore "./client-src/default/*.config.js"`
[build:client:default]
npm ERR! Exit status 2
[build:client:default]
npm ERR!
[build:client:default]
npm ERR! Failed at the webpack-dev-server@3.10.3 build:client:default script.
[build:client:default]
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[build:client:clients]
npm ERR! webpack-dev-server@3.10.3 build:client:clients: `babel client-src/clients --out-dir client/clients`
[build:client:clients]
npm ERR! Exit status 2
[build:client:clients]
npm ERR!
[build:client:clients]
npm ERR! Failed at the webpack-dev-server@3.10.3 build:client:clients script.
[build:client:clients]
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[build:client:clients]
[build:client:clients]
npm ERR! A complete log of this run can be found in:
[build:client:clients]
npm ERR! /home/pcorbett/.npm/_logs/2020-11-30T15_38_48_390Z-debug.log
[build:client:default]
[build:client:default]
npm ERR! A complete log of this run can be found in:
[build:client:default]
npm ERR! /home/pcorbett/.npm/_logs/2020-11-30T15_38_48_390Z-debug.log
ERROR: "build:client:clients" exited with 2.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! webpack-dev-server@3.10.3 build:client: `rimraf ./client/* && npm-run-all -s -l -p "build:client:**"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the webpack-dev-server@3.10.3 build:client script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pcorbett/.npm/_logs/2020-11-30T15_38_48_429Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! webpack-dev-server@3.10.3 prepare: `rimraf ./ssl/*.pem && npm run build:client`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the webpack-dev-server@3.10.3 prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pcorbett/.npm/_logs/2020-11-30T15_38_48_472Z-debug.log
Process finished with exit code 1
As the dev server seems to have started you should try to connect to it.
for the 14 series you need to put the log level to debug and find a line looking something like: 2020-12-01 08:21:38.094 DEBUG 11924 --- [ webpack] dev-webpack : [38;5;35mi ?wds?: Project is running at http://localhost:53412/webpack-dev-server/ and try to connect to the devServer specially what you would want is the http://localhost:PORT/assetsByChunkName
Can you then connect to the server after it starts? As it would seem that the watchdog can’t get
a connection to the dev-server and then shuts it down as unreachable.