Skip to content
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

Webapp build failure due to connect timed out #180

Open
J-Maertens opened this issue Jun 7, 2023 · 1 comment
Open

Webapp build failure due to connect timed out #180

J-Maertens opened this issue Jun 7, 2023 · 1 comment

Comments

@J-Maertens
Copy link

Summary:

Building Webapp with Maven fails due to connection refused and/or connect timed out.

Steps to reproduce:

  1. Clone repository
  2. Run maven package in gtfs-realtime-validator-webapp

There are three warnings when trying to access build.staging.obanyc.com and finally there's a build failure (connect timed out).

[INFO] Scanning for projects...
[INFO]
[INFO] ----------< org.mobilitydata:gtfs-realtime-validator-webapp >-----------
[INFO] Building gtfs-realtime-validator-webapp 1.0.0-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from conveyal-snapshots-mvn-repo: https://build.staging.obanyc.com/archiva/repository/snapshots/org/mobilitydata/gtfs-realtime-validator-lib/1.0.0-SNAPSHOT/maven-metadata.xml
Downloading from conveyal-releases-mvn-repo: https://build.staging.obanyc.com/archiva/repository/releases/org/mobilitydata/gtfs-realtime-validator-lib/1.0.0-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.mobilitydata:gtfs-realtime-validator-lib:1.0.0-SNAPSHOT/maven-metadata.xml from/to conveyal-releases-mvn-repo (https://build.staging.obanyc.com/archiva/repository/releases/): Connect to build.staging.obanyc.com:443 [build.staging.obanyc.com/3.94.110.216] failed: connect timed out
[WARNING] Could not transfer metadata org.mobilitydata:gtfs-realtime-validator-lib:1.0.0-SNAPSHOT/maven-metadata.xml from/to conveyal-snapshots-mvn-repo (https://build.staging.obanyc.com/archiva/repository/snapshots/): Connect to build.staging.obanyc.com:443 [build.staging.obanyc.com/3.94.110.216] failed: connect timed out
[WARNING] org.mobilitydata:gtfs-realtime-validator-lib:1.0.0-SNAPSHOT/maven-metadata.xml failed to transfer from https://build.staging.obanyc.com/archiva/repository/releases/ during a previous attempt. This failure was cached in the local repository and resolution will not be reattempted until the update interval of conveyal-releases-mvn-repo has elapsed or updates are forced. Original error: Could not transfer metadata org.mobilitydata:gtfs-realtime-validator-lib:1.0.0-SNAPSHOT/maven-metadata.xml from/to conveyal-releases-mvn-repo (https://build.staging.obanyc.com/archiva/repository/releases/): Connect to build.staging.obanyc.com:443 [build.staging.obanyc.com/3.94.110.216] failed: connect timed out
[WARNING] org.mobilitydata:gtfs-realtime-validator-lib:1.0.0-SNAPSHOT/maven-metadata.xml failed to transfer from https://build.staging.obanyc.com/archiva/repository/snapshots/ during a previous attempt. This failure was cached in the local repository and resolution will not be reattempted until the update interval of conveyal-snapshots-mvn-repo has elapsed or updates are forced. Original error: Could not transfer metadata org.mobilitydata:gtfs-realtime-validator-lib:1.0.0-SNAPSHOT/maven-metadata.xml from/to conveyal-snapshots-mvn-repo (https://build.staging.obanyc.com/archiva/repository/snapshots/): Connect to build.staging.obanyc.com:443 [build.staging.obanyc.com/3.94.110.216] failed: connect timed out
Downloading from conveyal-releases-mvn-repo: https://build.staging.obanyc.com/archiva/repository/releases/org/mobilitydata/gtfs-realtime-validator-lib/1.0.0-SNAPSHOT/gtfs-realtime-validator-lib-1.0.0-SNAPSHOT.pom
Downloading from conveyal-snapshots-mvn-repo: https://build.staging.obanyc.com/archiva/repository/snapshots/org/mobilitydata/gtfs-realtime-validator-lib/1.0.0-SNAPSHOT/gtfs-realtime-validator-lib-1.0.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  23.427 s
[INFO] Finished at: 2023-06-07T21:38:03+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project gtfs-realtime-validator-webapp: Could not resolve dependencies for project org.mobilitydata:gtfs-realtime-validator-webapp:jar:1.0.0-SNAPSHOT: Failed to collect dependencies at org.mobilitydata:gtfs-realtime-validator-lib:jar:1.0.0-SNAPSHOT: Failed to read artifact descriptor for org.mobilitydata:gtfs-realtime-validator-lib:jar:1.0.0-SNAPSHOT: The following artifacts could not be resolved: org.mobilitydata:gtfs-realtime-validator-lib:pom:1.0.0-SNAPSHOT (absent): Could not transfer artifact org.mobilitydata:gtfs-realtime-validator-lib:pom:1.0.0-SNAPSHOT from/to conveyal-releases-mvn-repo (https://build.staging.obanyc.com/archiva/repository/releases/): Connect to build.staging.obanyc.com:443 [build.staging.obanyc.com/3.94.110.216] failed: connect timed out -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Platform:

maven 3.9.2
java version "11.0.17" 2022-10-18 LTS
Win 11

@J-Maertens J-Maertens changed the title Webapp build failure Webapp build failure due to connect timed out Jun 7, 2023
@treevm
Copy link

treevm commented Sep 28, 2023

I have the same problem. I tried with GitHub authentication in maven but still does't work. Any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants