-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vaadin 23 Dev Mode + Payara -> NPM Dependency Error #13655
Comments
Does it reproduce consistently because it looks like a temporary network error or something similar? |
Yes, always. Tested on two different MacBooks in two different networks. Switching to production mode solves the issue on both MacBooks in both networks. |
Not strictly related, but I'm struggling with the exactly same problem when running V23 on |
only with |
only with |
With production mode you will not run ”npm install” from Java (it will run from Maven/Gradle) so you won’t see the same issue |
It seems like the problem is related to how STDERR is handled by processes launched by the JVM. |
Additional fact is that error seems to happen only with |
Hello! Any news on this? Keep getting the same error with Vaadin 23.3.6 and Payara 5.192 (productionMode = false). |
…ernal processes (#16520) When running an external process using INHERIT redirect strategy may break in some situations as the output is written directly to the main process stream. Errors may also arise on some OS when the strategy is PIPE (the default) and the streams are not completely consumed, as the call for Process.waitFor may hang indefinitely. This change uses PIPE for external processes and consumes both input and error streams of the started process, introducing a method to read the stream asynchronously and using it to ensure streams are consumed when running frontend tools commands. Covering tests were added. Fixes: - #13655 and #15339
Description of the bug
Deploying a simple Vaadin application in dev mode to Payara Server 5.2022.2 causes NPM Dependency ERROR.
Deploying the same application to Tomcat works fine.
Deploying the same application in production mode works with both servers.
Expected behavior
Dev Mode should be available with Vaadin 23 and Payara.
Minimal reproducible example
Preparation
Tomcat works
vaadinDevModeTroubleTomcat
./mvnw package
cd apache-tomcat-9.0.62/bin/ && ./startup.sh
)cd ../.. && cp target/myapp.war apache-tomcat-9.0.62/webapps/
)--> works fine
apache-tomcat-9.0.62/bin/shutdown.sh
Payara fails
vaadinDevModeTroublePayara
./mvnw package
payara5/bin/asadmin start-domain
)payara5/bin/asadmin deploy target/myapp.war
)payara5/glassfish/domains/domain1/logs/server.log contains
~/.npm/_logs/2022-04-29T06_49_42_618Z-debug-0.log contains
payara5/bin/asadmin stop-domain
Versions
The text was updated successfully, but these errors were encountered: