I was trying to test a plugin and when I run mvn hpi:run, it says Jenkins is fully up and running but I can’t access Jenkins at localhost:8080. I tried changing the port as well but I only get this in browser.
This page isn’t working
localhost didn’t send any data.
ERR_EMPTY_RESPONSE
Your Windows computer may have a firewall enabled that is blocking access to port 8080. I checked on my Windows computer and mvn hpi:run
works on my machine.
I totally disabled the firewall and reran the command but still facing the same issue.
C:\Phani\cucumber-mailer>mvn hpi:run
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------< io.jenkins.plugins:cucumber-mailer >-----------------
[INFO] Building TODO Plugin 1.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ hpi ]---------------------------------
[INFO]
[INFO] >>> hpi:3.53:run (default-cli) > compile @ cucumber-mailer >>>
[INFO]
[INFO] --- hpi:3.53:validate (default-validate) @ cucumber-mailer ---
[INFO]
[INFO] --- hpi:3.53:validate-hpi (default-validate-hpi) @ cucumber-mailer ---
[INFO]
[INFO] --- enforcer:3.4.1:enforce (display-info) @ cucumber-mailer ---
[INFO] Rule 0: io.jenkins.tools.incrementals.enforcer.RequireExtensionVersion passed
[INFO] Rule 1: org.apache.maven.enforcer.rules.version.RequireMavenVersion passed
[INFO] Rule 2: org.apache.maven.enforcer.rules.version.RequireJavaVersion passed
[INFO] Rule 3: org.codehaus.mojo.extraenforcer.dependencies.EnforceBytecodeVersion passed
[INFO] Rule 4: org.apache.maven.enforcer.rules.dependency.BannedDependencies passed
[INFO] Rule 5: org.apache.maven.enforcer.rules.dependency.RequireUpperBoundDeps passed
[INFO]
[INFO] --- enforcer:3.4.1:enforce (no-snapshots-in-release) @ cucumber-mailer ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.dependency.RequireReleaseDeps passed
[INFO]
[INFO] --- localizer:1.31:generate (default) @ cucumber-mailer ---
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ cucumber-mailer ---
[INFO] Copying 17 resources from src\main\resources to target\classes
[INFO]
[INFO] --- flatten:1.6.0:flatten (flatten) @ cucumber-mailer ---
[INFO] Generating flattened POM of project io.jenkins.plugins:cucumber-mailer:hpi:1.0-SNAPSHOT...
[INFO]
[INFO] --- compiler:3.11.0:compile (default-compile) @ cucumber-mailer ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< hpi:3.53:run (default-cli) < compile @ cucumber-mailer <<<
[INFO]
[INFO]
[INFO] --- hpi:3.53:run (default-cli) @ cucumber-mailer ---
[INFO] Generating C:\Phani\cucumber-mailer\work\plugins\cucumber-mailer.hpl
[INFO] Copying dependency Jenkins plugin C:\Users\shanm\.m2\repository\org\jenkins-ci\plugins\durable-task\550.v0930093c4b_a_6\durable-task-550.v0930093c4b_a_6.hpi
[INFO] Copying dependency Jenkins plugin C:\Users\shanm\.m2\repository\org\jenkins-ci\plugins\script-security\1326.vdb_c154de8669\script-security-1326.vdb_c154de8669.hpi
[INFO] Copying dependency Jenkins plugin C:\Users\shanm\.m2\repository\org\jenkins-ci\plugins\structs\337.v1b_04ea_4df7c8\structs-337.v1b_04ea_4df7c8.hpi
[INFO] Copying dependency Jenkins plugin C:\Users\shanm\.m2\repository\org\jenkins-ci\modules\instance-identity\185.v303dc7c645f9\instance-identity-185.v303dc7c645f9.hpi
[INFO] Copying dependency Jenkins plugin C:\Users\shanm\.m2\repository\org\jenkins-ci\plugins\workflow\workflow-cps\3883.vb_3ff2a_e3eea_f\workflow-cps-3883.vb_3ff2a_e3eea_f.hpi
[INFO] Copying dependency Jenkins plugin C:\Users\shanm\.m2\repository\org\jenkins-ci\plugins\workflow\workflow-durable-task-step\1331.vc8c2fed35334\workflow-durable-task-step-1331.vc8c2fed35334.hpi
[INFO] Copying dependency Jenkins plugin C:\Users\shanm\.m2\repository\io\jenkins\plugins\jakarta-activation-api\2.1.3-1\jakarta-activation-api-2.1.3-1.hpi
[INFO] Copying dependency Jenkins plugin C:\Users\shanm\.m2\repository\io\jenkins\plugins\caffeine-api\3.1.8-133.v17b_1ff2e0599\caffeine-api-3.1.8-133.v17b_1ff2e0599.hpi
[INFO] Copying dependency Jenkins plugin C:\Users\shanm\.m2\repository\org\jenkins-ci\plugins\scm-api\676.v886669a_199a_a_\scm-api-676.v886669a_199a_a_.hpi
[INFO] Copying dependency Jenkins plugin C:\Users\shanm\.m2\repository\org\jenkins-ci\plugins\workflow\workflow-scm-step\415.v434365564324\workflow-scm-step-415.v434365564324.hpi
[INFO] Copying dependency Jenkins plugin C:\Users\shanm\.m2\repository\io\jenkins\plugins\ionicons-api\56.v1b_1c8c49374e\ionicons-api-56.v1b_1c8c49374e.hpi
[INFO] Copying dependency Jenkins plugin C:\Users\shanm\.m2\repository\org\jenkins-ci\plugins\workflow\workflow-job\1385.vb_58b_86ea_fff1\workflow-job-1385.vb_58b_86ea_fff1.hpi
[INFO] Copying dependency Jenkins plugin C:\Users\shanm\.m2\repository\org\jenkins-ci\plugins\mailer\470.vc91f60c5d8e2\mailer-470.vc91f60c5d8e2.hpi
[INFO] Copying dependency Jenkins plugin C:\Users\shanm\.m2\repository\org\jenkins-ci\plugins\workflow\workflow-step-api\657.v03b_e8115821b_\workflow-step-api-657.v03b_e8115821b_.hpi
[INFO] Copying dependency Jenkins plugin C:\Users\shanm\.m2\repository\org\jenkins-ci\plugins\apache-httpcomponents-client-4-api\4.5.14-208.v438351942757\apache-httpcomponents-client-4-api-4.5.14-208.v438351942757.hpi
[INFO] Copying dependency Jenkins plugin C:\Users\shanm\.m2\repository\org\jenkins-ci\plugins\workflow\workflow-support\865.v43e78cc44e0d\workflow-support-865.v43e78cc44e0d.hpi
[INFO] Copying dependency Jenkins plugin C:\Users\shanm\.m2\repository\org\jenkins-ci\plugins\bouncycastle-api\2.30.1.77-225.v26ea_c9455fd9\bouncycastle-api-2.30.1.77-225.v26ea_c9455fd9.hpi
[INFO] Copying dependency Jenkins plugin C:\Users\shanm\.m2\repository\org\jenkins-ci\plugins\workflow\workflow-basic-steps\1049.v257a_e6b_30fb_d\workflow-basic-steps-1049.v257a_e6b_30fb_d.hpi
[INFO] Copying dependency Jenkins plugin C:\Users\shanm\.m2\repository\org\jenkins-ci\plugins\display-url-api\2.200.vb_9327d658781\display-url-api-2.200.vb_9327d658781.hpi
[INFO] Copying dependency Jenkins plugin C:\Users\shanm\.m2\repository\org\jenkins-ci\plugins\workflow\workflow-api\1291.v51fd2a_625da_7\workflow-api-1291.v51fd2a_625da_7.hpi
[INFO] Copying dependency Jenkins plugin C:\Users\shanm\.m2\repository\io\jenkins\plugins\jakarta-mail-api\2.1.3-1\jakarta-mail-api-2.1.3-1.hpi
[INFO] Configuring Jetty for project: TODO Plugin
[INFO] Try setting -DwildcardDNS=nip.io in a profile
[INFO] ===========> Browse to: http://localhost:8080/jenkins/
[WARNING] no such file C:\Phani\cucumber-mailer\target\jetty\webapp\META-INF\maven\org.jenkins-ci.main\jenkins-war\pom.properties
[INFO] Context path = /jenkins
[INFO] Tmp directory = C:\Phani\cucumber-mailer\target\jetty
[INFO] War = C:\Users\shanm\.m2\repository\org\jenkins-ci\main\jenkins-war\2.414.3\jenkins-war-2.414.3.war
[INFO] jetty-10.0.20; built: 2024-01-29T20:46:45.278Z; git: 3a745c71c23682146f262b99f4ddc4c1bc41630c; jvm 17.0.10+11-LTS-240
[INFO] No Spring WebApplicationInitializer types detected on classpath
[INFO] Session workerName=node0
May 19, 2024 6:17:05 PM hudson.WebAppMain contextInitialized
INFO: Jenkins home directory: C:\Phani\cucumber-mailer\work found at: SystemProperties.getProperty("JENKINS_HOME")
[INFO] Started o.e.j.m.p.MavenWebAppContext@500469b0{Jenkins v2.414.3,/jenkins,file:///C:/Phani/cucumber-mailer/target/jetty/webapp/,AVAILABLE}{C:\Users\shanm\.m2\repository\org\jenkins-ci\main\jenkins-war\2.414.3\jenkins-war-2.414.3.war}
[INFO] Started ServerConnector@c089a1b{HTTP/1.1, (http/1.1)}{localhost:8080}
[INFO] Started Server@674daf24{STARTING}[10.0.20,sto=0] @18680ms
Hit <enter> to redeploy:
2024-05-19 12:47:05.554+0000 [id=44] INFO jenkins.InitReactorRunner$1#onAttained: Started initialization
2024-05-19 12:47:05.872+0000 [id=73] INFO jenkins.InitReactorRunner$1#onAttained: Listed all plugins
2024-05-19 12:47:07.210+0000 [id=46] INFO jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
2024-05-19 12:47:07.236+0000 [id=42] INFO jenkins.InitReactorRunner$1#onAttained: Started all plugins
2024-05-19 12:47:07.247+0000 [id=69] INFO jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
2024-05-19 12:47:07.710+0000 [id=67] INFO jenkins.InitReactorRunner$1#onAttained: System config loaded
2024-05-19 12:47:07.711+0000 [id=67] INFO jenkins.InitReactorRunner$1#onAttained: System config adapted
2024-05-19 12:47:07.711+0000 [id=61] INFO jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
2024-05-19 12:47:07.713+0000 [id=61] INFO jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated
2024-05-19 12:47:07.762+0000 [id=63] INFO jenkins.model.Jenkins#setInstallState: Install state transitioning from: null to: DEVELOPMENT
2024-05-19 12:47:07.965+0000 [id=61] INFO jenkins.InitReactorRunner$1#onAttained: Completed initialization
2024-05-19 12:47:08.195+0000 [id=36] INFO hudson.lifecycle.Lifecycle#onReady: Jenkins is fully up and running
I restarted my laptop now I can connect, not sure what is the issue earlier.
1 Like
poddingue
(Bruno Verachten)
May 20, 2024, 12:16pm
7
Thanks a lot for the feedback, @ShanmukhaGajula .